Nakagami Distribution#
Generalization of the chi distribution. Shape parameter is ν>0. The support is x≥0.
where γ is the lower incomplete gamma function, γ(ν,x)=∫x0tν−1e−tdt.
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 x such that x−μσ≥0, where ν≥12 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 ψ(0) is the polygamma function of order 0; i.e. ψ(0)(ν)=ddνlogΓ(ν).
However, the support of the distribution is the values of x for which x−μσ≥0, and this provides an additional constraint that
For ν=12, 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 12, the likelihood equation ∂l∂μ(ν,μ,σ)=0 has a solution, and this solution provides the maximum likelihood estimate for μ. In either case, however, the condition μ=minixi 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.