where ψ(0) is the polygamma function of order 0; i.e. ψ(0)(ν)=dνdlogΓ(ν).
However, the support of the distribution is the values of x for which σx−μ≥0, and this provides an additional constraint that
μ≤iminxi.(7)
For ν=21, the partial derivative of the log-likelihood with respect to μ reduces to:
∂μ∂l(ν,μ,σ)=σ2i=1∑N(xi−μ),
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 μ
μ=iminxi,ν=21.(8)
For ν sufficiently greater than 21, the likelihood equation ∂μ∂l(ν,μ,σ)=0 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
σ=N∑i=1N(xi−μ)2.(9)
Hence, the _fitstart method for nakagami uses
μ0σ0=iminxiand=N∑i=1N(xi−μ0)2
as initial guesses for numerical optimization accordingly.