A likelihood-ratio test rejects where the alternative likelihood is sufficiently large relative to the null likelihood.
For two independent statistical samples from exponential distributions with positive means and , write , and . The unconstrained maximum-likelihood estimators are and ; under equality of the means the common fitted mean is . Dividing the constrained maximum likelihood function by its unrestricted maximum gives the displayed likelihood ratio. Its maximum is one at , so the likelihood-ratio test rejects for sufficiently small values, in either tail of .
Under the null hypothesis, the sums have independent gamma distributions with a common rate, so by beta sampling by gamma ratios. This permits exact calibration. For large samples with , the Wilks theorem gives . Its upper-tail probability is the asymptotic p-value. The one statistical degree of freedom is the difference between the unrestricted and constrained parameter dimensions.
Take two independent statistical samples from beta distributions with parameters and , of positive sizes . Put , , and . To test the null hypothesis , divide the maximized common-rate likelihood function by the unrestricted maximum to obtain the displayed likelihood ratio. Indeed the unrestricted fitted rates are , and the common fitted rate is ; substitution cancels the exponential factors.
Under the null hypothesis, and have independent gamma distributions with a common rate. Beta-gamma independence gives . The derivative of changes sign at , so the exact critical region of size is or , with . Its cutoffs satisfyHere is the beta distribution cumulative distribution function. Equal likelihood ratios at the cutoffs do not generally mean equal tail probabilities. Increasing the ratio threshold continuously adds positive null distribution mass on both sides, proving uniqueness for .
For an independent normal distribution sample with unknown mean, test against unrestricted positive variance. Put and assume . Profiling the mean and variance gives the likelihood ratio for a nondegenerate sample. Its logarithmic derivative changes sign at , so small ratios select a lower and an upper tail.
Under the null hypothesis, Cochran's theorem gives . The exact size- cutoffs therefore satisfyThe second equation makes the two boundary ratios equal. Rejection on or is consequently the exact likelihood-ratio test, and its tails need not have equal probability. For a large sample, the Wilks theorem instead calibrates by . A Bartlett correction for a normal variance with unknown mean improves this asymptotic calibration; it is unnecessary when using the exact distribution.
For independent observations from a nonsingular multivariate normal distribution with unknown mean, let . The unrestricted maximum-likelihood estimator of covariance is , while the diagonal restriction gives . The fitted trace terms both equal , so twice the log-likelihood difference is , where is the sample correlation matrix. Under the diagonal null hypothesis and fixed dimension, the Wilks theorem gives .
For independent multivariate normal observations with unrestricted mean and positive-definite sample covariance matrix , the unrestricted maximum-likelihood estimates are . Requiring a diagonal population covariance matrix gives the same mean and covariance estimate . Both fitted quadratic terms equal , so their likelihood quotient is , where is the sample correlation matrix. Small determinants give evidence against diagonality. For two variables this is a two-sided test of their sample correlation.
For independent samples from normal distributions with separate unknown means, test equal variances against . Profiling the means gives sample means. Under the null the variance maximum is ; the separate maxima are and . If the latter obey the proposed order, their likelihood quotient isIt decreases strictly as increases. Otherwise the ordered alternative maximum lies on the equal-variance boundary and the quotient is one. Under the null, Cochran's theorem gives independent chi-squared residual sums with degrees , so rejection is in the upper tail of the displayed F-distribution statistic, calibrated at the desired significance level.
For independent unit-variance Gaussian samples with means , testing against unrestricted means gives . The unrestricted maximum-likelihood estimators are the two sample means, while the null estimators are and zero. Under the null, write , , and , with independent standard Gaussian variables. Then decreases pointwise with , so the largest rejection probability occurs at the boundary . There its law is the chi-bar-squared distribution . The exact size- threshold is therefore determined by .
For a scalar parameter restricted to , test against with identifiable interior nuisance parameters. A locally quadratic regular likelihood has an efficient null score , and the constrained fit projects the unconstrained local maximizer onto the nonnegative half-line. ConsequentlyFor a positive statistic, its asymptotic upper-tail p-value is half the ordinary one-degree chi-squared tail. Its 5% critical value is the 90th chi-squared percentile, approximately 2.7055. Additional boundary nuisance parameters or nonidentified mixture parameters can change this law.
Testing a single nonnegative random-effect variance against zero puts the null on the boundary of the parameter space. In the usual regular increasing-independent-groups limit, the likelihood-ratio test statistic has limit , rather than . A finite-sample simulation calibrated for the actual design avoids relying on this asymptotic approximation.
With fixed , compare and by maximizing the ordinary likelihood function in both models. Their likelihood-ratio test statistic is unchanged by , , because both maximized log-likelihoods change by the same . Its null law can therefore be simulated using independent responses. Comparing the observed statistic with simulated statistics by gives a conservative finite-sample Monte Carlo p-value, subject to correctly maximizing both likelihoods.
A log-likelihood ratio compares two likelihoods on an additive scale. For independent observations its increments add. Under distributions with suitable integrability and common support, and , where is Kullback-Leibler divergence. This sign change motivates likelihood-based sequential monitoring.
For nested null and alternative parameter spaces, the likelihood-ratio test statistic isUnder the regularity conditions of Wilks theorem, its null limit is a chi-squared distribution whose degrees of freedom equal the difference in model dimensions.
A Bartlett correction rescales a regular likelihood-ratio test statistic so that its null expected value matches its limiting chi-squared degrees of freedom to a higher asymptotic order. If , divide by . The operation uses a model-specific Bartlett correction coefficient; matching the mean alone is not a general proof of any claimed distributional error rate.
If , the Bartlett-corrected statistic has mean . It is commonly calibrated against a chi-squared distribution with degrees of freedom. Equivalently, to the displayed order, one may multiply by .
The coefficient is the leading relative null-mean discrepancy of a regular likelihood-ratio test statistic. It is distinct from the finite-sample divisor used in a Bartlett correction. Different conventions call either of these a correction factor, so the normalization should always be stated explicitly.
For a sample of size from a normal distribution with unknown mean, the null variance likelihood-ratio test statistic is , where . With , its expected Taylor terms start with . Here , , and . Higher fixed-order terms contribute only under valid termwise asymptotic integration. Thus and .
A generalized likelihood-ratio test compares the likelihood maximized under the null with the likelihood maximized over the full parameter space.
Let for independent and identically distributed observations, with having an exponential distribution of unknown scale . Test the null hypothesis within . For nondegenerate data, the likelihood function isMaximizing over the scale gives , and the resulting profile likelihood increases with . Thus the unrestricted maximum-likelihood estimates are and , while the null estimate is . The likelihood ratio is consequently
Under the null, put and . The memoryless property gives independent gamma distributions of shapes and and common scale . For a direct verification, fix which observation is the minimum and write its value as and the other observations as . Their joint density is proportional to , which factors into an exponential density for the minimum and independent exponential densities for the excesses. The minimum's index does not affect the resulting laws of .
By beta sampling by gamma ratios, . ThereforeAn exact test size is obtained by rejecting for . Equivalently,Although the alternative adds one endpoint parameter, a regular one-parameter Wilks theorem calibration is incorrect: the support depends on the endpoint, and the null lies on its boundary. In particular, tends to a chi-squared distribution with two statistical degrees of freedom, not one.
Two equally numerous groups of independent counts with Poisson distributions have areas and . Under common density their group means are in ratio . With group sums and , the maximized alternative-to-null likelihood ratio isUse zero-count limits and when . The regular Wilks theorem calibration has one degree of freedom. Exactly conditioning on gives under the null; this supports small-count testing without the large-sample approximation.
The deviance of a fitted generalized linear model isFor regular nested models, the deviance reduction is asymptotically chi-squared with degrees of freedom equal to the difference in fitted dimensions.
The unscaled residual deviance of an exponential dispersion family compares its fitted mean with the saturated statistical model at a common dispersion parameter. Its normalization removes the factor in the log-likelihood. In Poisson regression and binomial regression, , so it is twice the saturated-minus-fitted log-likelihood. Under suitable regularity, has approximately a chi-squared distribution with the residual degrees of freedom; this is not an automatic accurate approximation for sparse responses. Nested deviance reductions with estimated dispersion lead to approximate F-tests after scaling by the dispersion estimate.
The null deviance is the unscaled deviance of the intercept-only mean model relative to the saturated model at a common dispersion parameter , retaining any known generalized linear model offset. It supplies a baseline against which predictor terms improve the fit. Its difference from a fitted model's residual deviance, divided by , is the statistic for a likelihood-ratio test of those added terms, with nuisance parameters handled consistently in both fits. In Poisson and binomial families, .
Likelihood-ratio tests of different null subspaces can have crossing rejection regions; comparing their quadratic-form geometry exhibits observations accepted by one and rejected by another.
Articles by others on the same topic
There are currently no matching articles.