This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / stats / _fit / FitResult / nllf

function

scipy.stats._fit:FitResult.nllf

source: build-install/usr/lib/python3.14/site-packages/scipy/stats/_fit.py:87

Signature

def nllf(self, params = None, data = None)

Summary

Negative log-likelihood function

Extended Summary

Evaluates the negative of the log-likelihood function of the provided data at the provided parameters.

Parameters

params : tuple, optional

The shape parameters, location, and (if applicable) scale of the distribution as a single tuple. Default is the maximum likelihood estimates (self.params).

data : array_like, optional

The data for which the log-likelihood function is to be evaluated. Default is the data to which the distribution was fit.

Returns

nllf : float

The negative of the log-likelihood function.

Aliases

  • scipy.stats._fit.FitResult.nllf