Write and . Holding the nuisance parameter fixed, the parametric score function is the derivative with respect to of the one-observation log-likelihood. The joint probability density function is
Because , differentiating gives
For instance ensures a square-integrable score function. Its expected value is zero by independence and the centered normal distribution of the error. This is the Gaussian regression score.
Now . With and the location score , differentiation of the log-likelihood gives
Take the usual regularity conditions and so that this score function belongs to L2 space.
For the specified nuisance statistical path, differentiating at zero gives the score function . Normalization requires . There is a second constraint: the statistical path must preserve the model's zero error expected value. Thus
This constraint follows from being a path through the model, rather than from normalization alone. For a centered symmetric logistic distribution, for example, is bounded and has zero expected value, but ; it would not preserve the mean.
For any , independence implies
All these products are integrable by the Cauchy-Schwarz inequality, since is square-integrable. Thus every such error-density score function is orthogonal to every . Covariate-density nuisance score functions are also orthogonal to these functions, since . This is the mean-preserving error tangent space orthogonality used in the final calculation.
Use the normal linear model , with fixed full-column-rank design matrix , independent errors , and . Its log-likelihood is
For fixed , differentiating with respect to gives . Since is positive-definite, the unique least-squares estimate is
Let . The variance score equation is , giving
This is the maximum-likelihood estimator, whereas the residual standard error reported by linear-regression software is . The latter uses the unbiased residual estimate of Gaussian noise variance. These formulas assume and positive RSS; exact interpolation gives a variance-boundary degeneracy rather than an interior maximum.
For the Poisson regression, the log-likelihood is
Since , the score function and its derivative are
Consequently a finite maximum-likelihood estimator satisfies
These nonlinear equations are normally solved by iteratively reweighted least squares. If has full column rank, the Hessian is negative definite and any finite solution is the unique maximizer. Full rank does not by itself rule out a boundary solution at infinite coefficients for every conceivable data set. The Poisson generalized linear model has dispersion one, so there is no separate scale parameter in this likelihood.
The saturated model estimates each Poisson mean separately as , permitting the boundary value zero when . Subtracting fitted from saturated log-likelihood gives the Poisson deviance
with . A zero observation contributes . If the model includes an intercept, the score equation gives , so the summed linear terms cancel; the unsimplified expression applies generally.
For goodness of fit, the null hypothesis is that the specified independent Poisson mean model is correct; the alternative is an unrestricted collection of means. When a quadratic likelihood approximation is valid, for example with fixed and large expected counts, has approximately a chi-squared distribution with statistical degrees of freedom. Reject for a large upper-tail deviance. Merely increasing the number of sparse observations does not make this saturated-model reference reliable: the alternative dimension also increases. With small fitted means, replication-based checks or a parametric bootstrap are more defensible. This qualification concerns the absolute goodness-of-fit deviance; a fixed-dimensional nested likelihood-ratio comparison can have a better chi-squared approximation.
The likelihood-ratio statistic is
The null hypothesis is at the boundary of the permitted mixture weights. Assuming the remaining parameters are identifiable and interior, including , an efficient normalized score for is asymptotically under the null hypothesis. The locally unconstrained quadratic log-likelihood maximizer is proportional to , while the constrained maximizer truncates it at zero. Thus , giving the one-sided boundary likelihood-ratio limit
Here is a point mass at zero. For a positive observed statistic the upper-tail probability is half the ordinary upper tail. The 5% critical value is the 90th percentile of , about 2.7055, displayed as 2.71. Hence the reported likelihoods give a very marginal rejection of at 5%, with .
Using the ordinary 95th-percentile cutoff 3.84 would be inappropriate for this one-sided boundary test. The conclusion is close enough to the threshold that likelihood rounding matters: since each log-likelihood is printed to two decimals, the unrounded statistic can differ from 2.72 by nearly 0.02. The intended calculation rejects using the reported values, but an exact decision from the fitted data requires unrounded likelihoods. If the nuisance dispersion is also on its boundary or the mixture is not identifiable, the stated half-and-half null distribution needs reconsideration.
Write . Apart from a constant, the log-likelihood is
For each group,
Thus maximum likelihood estimation sets . The corner-point constraint identifies , giving
The baseline mean is the first group mean, rather than the grand mean, because of the chosen identifiability constraint.