Skip to content
The book

Likelihood ratio and standard tests

Why this is asked: Match the situation to the test and remember the degrees of freedom. For confidence intervals, watch whether the quantile is upper or lower and whether σ is known.

In one sentence

The likelihood ratio test compares the best fit under the null with the best fit overall, −2log⁡Λ-2\log\Lambda is asymptotically chi-square with degrees of freedom equal to the number of constraints, and every standard test is a special case.

Why the exam asks it

Because degrees of freedom are where the arithmetic goes wrong, and because Wilks's theorem has hypotheses — nested models, interior parameters — that options quietly drop.

The idea

The likelihood ratio test

Λ=sup⁡θ∈Θ0L(θ)sup⁡θ∈ΘL(θ)∈(0,1].\Lambda = \frac{\sup_{\theta\in\Theta_0} L(\theta)}{\sup_{\theta\in\Theta} L(\theta)} \in (0,1].

Small Λ\Lambda means the null fits much worse than the unrestricted model, so reject for small Λ\Lambda.

Wilks: under H0H_0 and regularity, −2log⁡Λ→dχk2-2\log\Lambda \xrightarrow{d} \chi^2_k, where kk is the number of independent constraints the null imposes — equivalently the difference in the number of free parameters.

The hypotheses matter. The models must be nested, and the null must not lie on the boundary of the parameter space. Testing a variance component equal to zero violates the second, and the limit there is a mixture of chi-squares rather than a chi-square.

The standard tests as special cases

  • One-sample tt: Xˉ−μ0s/n∼tn−1\dfrac{\bar X-\mu_0}{s/\sqrt n}\sim t_{n-1}. One degree of freedom is spent estimating μ\mu.
  • Two-sample tt: tn1+n2−2t_{n_1+n_2-2} with a pooled variance, assuming equal variances. Unequal variances give Welch's approximation.
  • Paired tt: a one-sample test on the differences, tn−1t_{n-1} — using the two-sample test on paired data throws away the pairing and is a standard error.
  • Chi-square goodness of fit: ∑(O−E)2E∼χk−1−p2\sum\frac{(O-E)^2}{E}\sim\chi^2_{k-1-p} for kk cells and pp estimated parameters. Each estimated parameter costs a degree of freedom.
  • Contingency table: χ(r−1)(c−1)2\chi^2_{(r-1)(c-1)} — that count is the number of free cells once the margins are fixed.
  • FF test for equality of variances, and for regression, as a ratio of independent chi-squares over their degrees of freedom.

The relationship worth knowing: tn2=F1,nt_n^2 = F_{1,n}. A two-sided tt test and the corresponding FF test are the same test, which is why regression output quotes one for a single coefficient and the other for a group.

p-values

The pp-value is P(statistic at least this extreme∣H0)P(\text{statistic at least this extreme}\mid H_0). Reject when p<αp<\alpha.

It is not the probability the null is true, and it is not the probability the result was chance. Both misreadings invert the conditional, exactly as in the medical-test example.

A pp-value is also a random variable: under H0H_0 it is uniform on (0,1)(0,1), which is why testing many hypotheses at level α\alpha produces false positives at rate α\alpha — the multiple comparisons problem, and the reason for Bonferroni and its relatives.

Where intuition breaks

"Degrees of freedom is the sample size." It is the number of free quantities after constraints. Each estimated parameter costs one, and the counting is what the question usually tests.

"−2log⁡Λ-2\log\Lambda is always chi-square." Asymptotically, for nested models with the null in the interior. Boundary cases give mixtures.

"A significant result means a large effect." Significance combines effect size with sample size. A tiny effect becomes significant with enough data.

"p=0.04p = 0.04 and p=0.06p = 0.06 are qualitatively different." They are nearly the same evidence. The threshold is a convention, not a boundary in nature.

"The chi-square goodness-of-fit test has k−1k-1 degrees of freedom." k−1−pk-1-p where pp parameters were estimated from the data.

"tt and FF tests are different tools." tn2=F1,nt_n^2 = F_{1,n}. For a single parameter they are the same test.

"Non-significant means no effect." It means insufficient evidence at that sample size. Absence of evidence, as ever.

The exam's angle

  1. Count degrees of freedom explicitly: cells or observations, minus constraints, minus estimated parameters.
  2. For a likelihood ratio question, count the constraints — that is the chi-square df, and usually the whole question.
  3. Check nesting and boundaries before applying Wilks.
  4. Use t2=Ft^2=F to convert between the two when a question mixes them.
  5. Read the pp-value as a statement about data given the null, and reject any option that phrases it as a probability about the hypothesis.

The night before

  • Λ=sup⁡Θ0L/sup⁡ΘL\Lambda = \sup_{\Theta_0}L / \sup_\Theta L; reject for small Λ\Lambda.
  • Wilks: −2log⁡Λ→χk2-2\log\Lambda\to\chi^2_k, kk the number of constraints. Needs nested models and an interior null.
  • One-sample tn−1t_{n-1}; two-sample tn1+n2−2t_{n_1+n_2-2}; paired is one-sample on differences.
  • Goodness of fit χk−1−p2\chi^2_{k-1-p}; contingency table χ(r−1)(c−1)2\chi^2_{(r-1)(c-1)}.
  • tn2=F1,nt_n^2 = F_{1,n}.
  • pp-value =P(data∣H0)=P(\text{data}\mid H_0); uniform under H0H_0; multiple testing inflates false positives.

See it move

What 95% confidence actually meansinteractive

This visual is part of Trap Analysis

Forty samples, forty intervals, and a count of how many cover the truth — the misconception this kills is worth several marks.

Unlock interactive visuals

The trap here

“Any interval of the form [Xˉ−(S/n)t,∞)[{\bar{X}} - (S/\sqrt{n})t, \infty) with a 90% quantile t is a 90% confidence interval” — false

t = tn−1,0.9t_{n-1,0.9} under the convention tm,αt_{m,\alpha} =(1−α)−= (1-\alpha)-th quantile

That t is the 10th percentile, so the interval has coverage 10%, not 90%.

More on this →

More in Hypothesis Testing

Take it further

Last revised . Found a mistake? Tell us — corrections are the fastest thing we act on.

Next: Gauss–Markov, regression, ANOVA basics

Create a free account to keep your place and have this feed your study plan.

ShareWhatsAppTelegram

Open this in the full syllabus view · Unit 4