{ } Raw JSON

bundles / scipy 1.17.1 / docs

Doc

Nakagami Distribution

docs/tutorial:stats:continuous_nakagami

Generalization of the chi distribution. Shape parameter is The support is

where is the lower incomplete gamma function, .

Implementation: scipy.stats.nakagami

MLE of the Nakagami Distribution in SciPy (nakagami.fit)

The probability density function of the nakagami distribution in SciPy is

for such that , where is the shape parameter, is the location, and is the scale.

The log-likelihood function is therefore

which can be expanded as

Leaving supports constraints out, the first-order condition for optimality on the likelihood derivatives gives estimates of parameters:

where is the polygamma function of order ; i.e. .

However, the support of the distribution is the values of for which , and this provides an additional constraint that

For , the partial derivative of the log-likelihood with respect to reduces to:

which is positive when the support constraint is satisfied. Because the partial derivative with respect to is positive, increasing increases the log-likelihood, and therefore the constraint is active at the maximum likelihood estimate for

For sufficiently greater than , the likelihood equation has a solution, and this solution provides the maximum likelihood estimate for . In either case, however, the condition provides a reasonable initial guess for numerical optimization.

Furthermore, the likelihood equation for can be solved explicitly, and it provides the maximum likelihood estimate

Hence, the _fitstart method for nakagami uses

as initial guesses for numerical optimization accordingly.