Skip to main content

MINUIT2 from Python - Fitting like a boss

Project description

iminuit is a Python interface to the MINUIT2 C++ package.

It can be used as a general robust function minimization method, but is most commonly used for likelihood fits of models to data, and to get model parameter error estimates from likelihood profile analysis.

In a nutshell

from iminuit import Minuit

def f(x, y, z):
    return (x - 2) ** 2 + (y - 3) ** 2 + (z - 4) ** 2

m = Minuit(f)

m.migrad()  # run optimiser
print(m.values)  # {'x': 2,'y': 3,'z': 4}

m.hesse()   # run covariance estimator
print(m.errors)  # {'x': 1,'y': 1,'z': 1}

Download files

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

Files for iminuit, version 1.3.8
Filename, size File type Python version Upload date Hashes
Filename, size iminuit-1.3.8-cp27-cp27m-macosx_10_9_x86_64.whl (356.9 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size iminuit-1.3.8-cp27-cp27m-manylinux1_i686.whl (2.5 MB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size iminuit-1.3.8-cp27-cp27m-manylinux1_x86_64.whl (2.6 MB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size iminuit-1.3.8-cp27-cp27m-manylinux2010_x86_64.whl (4.1 MB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size iminuit-1.3.8-cp27-cp27mu-manylinux1_i686.whl (2.5 MB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size iminuit-1.3.8-cp27-cp27mu-manylinux1_x86_64.whl (2.6 MB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size iminuit-1.3.8-cp27-cp27mu-manylinux2010_x86_64.whl (4.1 MB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size iminuit-1.3.8-cp27-cp27m-win32.whl (225.9 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size iminuit-1.3.8-cp27-cp27m-win_amd64.whl (271.1 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size iminuit-1.3.8-cp35-cp35m-manylinux1_i686.whl (2.5 MB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size iminuit-1.3.8-cp35-cp35m-manylinux1_x86_64.whl (2.7 MB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size iminuit-1.3.8-cp35-cp35m-manylinux2010_x86_64.whl (4.2 MB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size iminuit-1.3.8-cp36-cp36m-macosx_10_9_x86_64.whl (368.7 kB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size iminuit-1.3.8-cp36-cp36m-manylinux1_i686.whl (2.6 MB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size iminuit-1.3.8-cp36-cp36m-manylinux1_x86_64.whl (2.7 MB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size iminuit-1.3.8-cp36-cp36m-manylinux2010_x86_64.whl (4.2 MB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size iminuit-1.3.8-cp36-cp36m-win32.whl (217.9 kB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size iminuit-1.3.8-cp36-cp36m-win_amd64.whl (257.4 kB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size iminuit-1.3.8-cp37-cp37m-macosx_10_9_x86_64.whl (362.3 kB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size iminuit-1.3.8-cp37-cp37m-manylinux1_i686.whl (2.6 MB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size iminuit-1.3.8-cp37-cp37m-manylinux1_x86_64.whl (2.7 MB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size iminuit-1.3.8-cp37-cp37m-manylinux2010_x86_64.whl (4.2 MB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size iminuit-1.3.8-cp37-cp37m-win32.whl (217.6 kB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size iminuit-1.3.8-cp37-cp37m-win_amd64.whl (257.5 kB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size iminuit-1.3.8-cp38-cp38-manylinux2010_x86_64.whl (4.3 MB) File type Wheel Python version cp38 Upload date Hashes View hashes
Filename, size iminuit-1.3.8.tar.gz (496.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page