# ¶

Jupyter-friendly Python interface to the C++ Minuit2 library.

• Supported CPython versions: 3.5+
• Supported PyPy versions: 3.5, 3.6
• Supported platforms: Linux, OSX and Windows.

iminuit can be used for general function minimisation, but is most commonly used for least-squares and maximum-likelihood fits of statistical 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)