Skip to main content

Distribution Fitting/Regression Library

Project description

probfit is a set of functions that helps you construct a complex fit. It’s intended to be used with iminuit. The tool includes Binned/Unbinned Likelihood estimator, \(\chi^2\) regression, Binned \(\chi^2\) estimator and Simultaneous fit estimator. Various functors for manipulating PDF such as Normalization and Convolution(with caching) and various builtin functions normally used in B physics is also provided.

import numpy as np
from iminuit import Minuit
from probfit import UnbinnedLH, gaussian
data = np.random.randn(10000)
unbinned_likelihood = UnbinnedLH(gaussian, data)
minuit = Minuit(unbinned_likelihood, mean=0.1, sigma=1.1)
minuit.migrad()
unbinned_likelihood.draw(minuit)
  • MIT license (open source)

  • Documentation

  • The tutorial is an IPython notebook that you can view online here. To run it locally: cd tutorial; ipython notebook –pylab=inline tutorial.ipynb.

  • Dependencies:
  • Developing probfit: see the development page

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

probfit-1.1.0.tar.gz (1.2 MB view details)

Uploaded Source

File details

Details for the file probfit-1.1.0.tar.gz.

File metadata

  • Download URL: probfit-1.1.0.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.13.0 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/2.7.10

File hashes

Hashes for probfit-1.1.0.tar.gz
Algorithm Hash digest
SHA256 f185676cdaea52e41ec354b4113b0dfd14ca442aae9e0bd46ab449157f1af98d
MD5 3a852d6bee0ccfebacf6f9d3ad581803
BLAKE2b-256 9c0e3adcb85031548bc0d605346e41cbd4a2c4dfc45861ea077d8fa6edc1924e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page