For a generalized likelihood-ratio test, maximize the likelihood separately over the null parameter space and the unrestricted space. Define , and reject for small , equivalently large . Choose the rejection threshold to achieve the desired null significance level, using an exact distribution when available or a justified asymptotic calibration; nuisance parameters are fitted under the respective restrictions.
For independent Poisson distributions, the likelihood is . The unrestricted maximizers are , allowing zero as a boundary value. Under the common-mean null, maximizing gives . The exponential and factorial factors cancel in the ratio, yielding
If all counts are zero, set and ; no division by is then needed.
For positive , put , so . Expanding the logarithm gives
Consequently
It is the quadratic Pearson approximation to the Poisson deviance. The approximated statistic is the logarithmic ratio , not the bounded raw ratio .
Under the null in the large-common-count regime, this statistic has an approximate chi-squared distribution with degrees of freedom: fitting the common mean removes one independent residual direction. For , use six degrees of freedom. At , the upper-tail probability in that approximation is
Thus reject the equal-mean null at conventional 5% or 1% significance levels, provided the expected counts justify the chi-square approximation. No particular significance level or common count was supplied, so the numerical decision is stated with those assumptions.
For independent observations from a normal distribution with unknown mean and positive variance, the maximum likelihood estimation of the mean gives
Indeed , which is minimized at . The likelihood is
For fixed , differentiation in gives the maximizer . Thus the unrestricted fit has , whereas under the null hypothesis the fitted variance is . Both maximize rather than minimize the likelihood: it tends to zero at either variance endpoint when the residual sum of squares is positive.
The restricted-to-unrestricted likelihood ratio is therefore
The generalized likelihood-ratio test rejects for small , equivalently large . Under the null, is standard normal, has a chi-squared distribution with degrees of freedom, and they are independent. To see the independence, apply an orthogonal matrix to the standardized normal sample, taking its first row to be : the transformed coordinates remain independent standard normal variables, and is the sum of squares of the other coordinates. Hence has Student's t-distribution with degrees of freedom.
For this two-sided test at , the cutoff is the percentile of , namely . The data give
Since , do not reject the manufacturer's mean-hardness claim at the level. This is a failure to reject, not proof that the mean equals .
Assume independent samples and , each consisting of independent normal random variables, with respective means and a common unknown variance . Take . Normality, independence and equal variances are the assumptions giving the exact pooled Student's t-test; unequal variances would require a different test. We test against an unrestricted difference.
Put and
The normal likelihood is proportional to , where is the residual sum of squares. Under the unrestricted model, the maximizing means are and . Under , the maximizing common mean is and decomposition about the sample means gives . For either model, maximizing over variance gives . Thus the generalized likelihood-ratio test statistic is
Small is therefore equivalent to large .
Under the null, is standard normal. In each sample an orthogonal change of Gaussian coordinates separates the sample-mean coordinate from the centered residual coordinates; those coordinates are independent. Consequently has a chi-squared distribution with degrees of freedom and is independent of . Therefore has the Student's t-distribution with degrees of freedom. At significance level , reject exactly when , the two-sample pooled t-test.
Let , and . Define the within-group and between-group scatter matrices by
The within-group and between-group scatter decomposition gives total scatter : in each group the residuals about sum to zero, so all cross terms vanish. Under unrestricted group means, the maximum-likelihood estimators are and . Under the common-mean null hypothesis, they are and .
For either fitted scatter matrix , substitution into the log-likelihood gives
since . Thus the maximized likelihood ratio is
A generalized likelihood-ratio test rejects for small , equivalently
The cutoff is chosen for the desired significance level. The determinant ratio itself is the Wilks lambda statistic. The derivation assumes is positive-definite, which for continuous normal samples requires enough within-group degrees of freedom, ; singular does not support this ordinary determinant-based test without a modified model.
Write and . The normal-sample likelihood is
Without the mean restriction, its maximum has and . Under the null, the maximizing variance is . Substituting them gives the generalized likelihood-ratio test statistic
where and . Assume ; almost surely for positive population variance.
The ratio decreases strictly as increases, so rejecting for small is equivalent to rejecting for large . Under , has Student's t-distribution with degrees of freedom. Therefore the exact size- rule is
This is the two-sided Student's t-test. Equivalently reject when . No large-sample chi-squared approximation is needed for this normal-mean likelihood ratio with unknown variance.
Write , , and . The normal likelihood is proportional to . Its unrestricted maximizers are , . Under the null the variance maximizer is . Substitution gives the generalized likelihood-ratio test statistic
The ratio decreases as increases, so the likelihood-ratio rejection region is two-sided in . Under , is standard normal and is independent chi-squared with degrees of freedom. Independence follows by resolving the isotropic Gaussian sample vector into its projection on the constant vector and its orthogonal complement. Hence has the exact Student t-distribution with degrees of freedom.
For a chosen significance level , compute the sample mean and the sample standard deviation with denominator , and reject precisely when
Equivalently, report the two-sided -value . This requires and positive population variance; holds almost surely under that model. The nuisance variance is removed by the exact null distribution, so one should not substitute a normal critical value or a large-sample chi-squared approximation. This is the normal-mean likelihood ratio with unknown variance.
A sufficient statistic is one for which the conditional distribution of the full sample, given its value, is independent of the parameter. For independent observations the likelihood is , depending on the data only through the counts. The factorization criterion for sufficiency therefore makes sufficient. Directly, all ordered samples with given counts have the same probability, so their conditional distribution is uniform over the possible arrangements, independently of the .
The unrestricted maximum-likelihood estimator is . Thus the generalized likelihood-ratio test uses
with zero-count terms interpreted by continuity. Reject for small , equivalently large .
Write , so . A Taylor series expansion of gives . Summing cancels the linear terms, and yields
Under the null hypothesis, the multinomial central limit theorem places the standardized count deviations in the five-dimensional subspace with coordinate sum zero, with identity covariance on that subspace. Their squared norm consequently tends to the chi-squared distribution with five degrees of freedom. This gives the Pearson chi-squared goodness-of-fit test.
For , the asymptotic p-value is about . The 5% critical value of is approximately . Do not reject at the usual 5% level, or at 10%. A significance level is not specified in the paper, so an unconditional yes-or-no decision is not determined: using this approximation, rejection would require a chosen level at least about .
Put . Independence gives a likelihood ratio
Since , this is strictly increasing in . A threshold chosen between its values at and gives precisely the stated upper-tail critical region, so it is a likelihood-ratio test.
The sum has a Poisson distribution with mean . Thus the size of a statistical test and its statistical power at are
For the grouped-area problem, let , , . The null log likelihood, up to data-only constants, is
The maximum-likelihood estimate is , giving fitted means and in the two groups. Under the alternative, the fitted group means are and .
Use the increasing generalized likelihood-ratio test convention , consistent with the printed positive . The exponential and factorial factors cancel, yielding the likelihood-ratio test of area-proportional Poisson means
Terms with zero count are interpreted as ; if , take . If the inverse ratio is used, the reported test statistic is instead .
Under the null, the regular large-sample Wilks theorem approximation is : the alternative has two rate parameters and the null one. The value far exceeds the usual critical value, about , and has approximate tail probability . Thus reject proportionality of the expected counts to area: the two groups show evidence of different territory densities. The statistic alone does not say which group has greater density; that requires versus . For small counts, an exact conditional test uses under the null instead of the asymptotic calibration.
Put for the unrestricted fit. Under , the best slope is still because the design is centered. Orthogonality of the residuals to the constant vector gives
At either fitted mean, the maximum-likelihood estimator of variance is . The ratio used by the generalized likelihood-ratio test is consequently
Small likelihood ratios correspond to large . Under , part (a) gives independent and . Thus has the Student's t-distribution with degrees of freedom. The exact size-5% critical region is
where is the 97.5th percentile of that distribution. The denominator uses the unbiased residual variance estimate, not the likelihood variance denominator .
Under an alternative, the same statistic has the representation
The joint law of is parameter-free, and has disappeared. Therefore
where . This is also the noncentral t-distribution description of the power. As explained in part (a), an exact residual-based test requires .
Under the null hypothesis that treatment and recovery are independent, estimate each expected cell count by
and form the Pearson chi-squared test of independence statistic . For a table its asymptotic null law is a chi-squared distribution with one degree of freedom. A second-order Taylor expansion of the generalized likelihood-ratio test statistic around the fitted counts gives this Pearson statistic, which explains its asymptotic null distribution.
Writing the four residuals over their fitted counts and simplifying gives
For ,
whose one-degree-of-freedom p-value is about . There is no evidence of an effect. One fitted count is only , however, so the chi-squared approximation is questionable; Fisher's exact test would be preferable.
The unrestricted maximum-likelihood estimates are , while the null fixes both means at zero. Hence
Under the null this is , so the size- generalized likelihood-ratio test rejects exactly when
Let be the likelihood function, with full parameter space and null hypothesis . The generalized likelihood-ratio test compares the best null fit to the best unrestricted fit:
The likelihood ratio lies between zero and one, and small values count against the null hypothesis; equivalently, large values of the likelihood-ratio test statistic count against it.
Compute restricted and unrestricted maximum-likelihood estimates, evaluate their log-likelihoods, and form . Under the regular conditions of Wilks theorem, the null limit is
These statistical degrees of freedom count independent parameter restrictions. The regularity includes a locally identifiable smooth model, nonsingular Fisher information, and an interior null value; parameter-dependent support can invalidate the result.
For a chosen significance level , obtain the quantile of the chi-squared distribution and use
Equivalently, compare the asymptotic p-value to . This is a large-sample calibration; part (c) requires direct treatment because its support depends on a parameter.