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)
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:
matplotlib (optional, for plotting)
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
File details
Details for the file probfit-1.0.4.tar.gz
.
File metadata
- Download URL: probfit-1.0.4.tar.gz
- Upload date:
- Size: 960.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4eb2d8a171e008179c411c4c72a5413668bac7be9ac47015a7e81c2c022879e |
|
MD5 | e6f77bb7ba69bcdfcf784bbc67eef755 |
|
BLAKE2b-256 | 317475f28c372accc2176d030e3c623764810b22fb74b534b3d2e9170f4c8420 |