Skip to main content

MINUIT from Python - Fitting like a boss

Project description

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

It can be used as a general robust function minimisation 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}

Release history Release notifications | RSS feed

Download files

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

Source Distribution

iminuit-1.3.1.tar.gz (492.1 kB view details)

Uploaded Source

File details

Details for the file iminuit-1.3.1.tar.gz.

File metadata

  • Download URL: iminuit-1.3.1.tar.gz
  • Upload date:
  • Size: 492.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for iminuit-1.3.1.tar.gz
Algorithm Hash digest
SHA256 eecfb0a483d80455be87a3fe3cd48adc84f72d6c851305022a1e90b09f603078
MD5 a646a40c4332a04eec772df53aeb7e02
BLAKE2b-256 642cd511b9cf66237e3d2b5a1412738c263b83444771c65258af40c9294d2b75

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