MATH6174 Chap.8 Hypothesis Testing and Likelihood Ratio Tests
Hypothesis Testing and Likelihood Ratio Tests
Hypothesis Testing and Likelihood Ratio Tests completes the classical half of the module. A hypothesis is simple when it specifies the distribution completely and composite when it allows a range of parameter values. A test is defined by its critical region, the set of outcomes for which the null hypothesis is rejected.
The size of the test is the probability of rejecting a true null, a type I error, and the power at an alternative value is the probability of correctly rejecting, one minus the type II error probability. For a composite null the size is the largest rejection probability over the null. Classical testing fixes the size in advance and then looks for the most powerful region.
The Neyman-Pearson lemma solves that problem for a simple null against a simple alternative: the most powerful test rejects when the likelihood ratio of the alternative to the null exceeds a constant chosen to give the required size.
In practice the ratio is simplified until it depends on the data only through one statistic, and the critical value is taken from that statistic's exact distribution, often a chi-squared or gamma obtained in the transformations chapter. When the resulting region does not depend on the particular alternative value, the test is uniformly most powerful against a one-sided composite alternative.
For general composite hypotheses the generalised likelihood ratio compares the maximised likelihood under the null with the maximised likelihood overall, and for large samples minus twice its logarithm is approximately chi-squared with degrees of freedom equal to the number of restrictions. The chapter ends with the p-value, the probability under the null of a result at least as extreme as the one observed.
Both recent final papers set a Neyman-Pearson question that goes on to the exact distribution of the test statistic.
What this chapter covers
- 01
Simple and composite hypotheses
- 02
Critical regions, size and power
- 03
Type I and type II errors
- 04
The Neyman-Pearson lemma for two simple hypotheses
- 05
Reducing the likelihood ratio to a statistic
- 06
Uniformly most powerful one-sided tests
- 07
The generalised likelihood ratio test and p-values
Worked example · free
Construct a most powerful test for a normal mean
- 2The log of the likelihood ratio L(11)/L(10) equals (1/4) times the sum of (xᵢ - 10.5), so it increases with the sample mean.
- 1The most powerful test therefore rejects for large sample means. Under the null the sample mean is N(10, 4/16), with standard deviation 0.5.
- 1For size 0.05 reject when the sample mean exceeds 10 + 1.645 times 0.5, which is 10.82.
- 2Under mu = 11 the power is P(Z > (10.82 - 11)/0.5) = P(Z > -0.355), which is about 0.64.
Key terms
- Critical region
- The set of sample outcomes for which a test rejects the null hypothesis.
- Size of a test
- The largest probability of rejecting the null hypothesis when it is true.
- Power function
- The probability of rejecting the null hypothesis, viewed as a function of the true parameter value.
- Generalised likelihood ratio
- The ratio of the likelihood maximised under the null to the likelihood maximised overall.
- p-value
- The probability under the null of a test statistic at least as extreme as the one observed.
Hypothesis Testing and Likelihood Ratio Tests FAQ
What makes a hypothesis simple rather than composite?
A simple hypothesis fixes every unknown parameter, so the distribution of the data is completely specified. A hypothesis such as mu greater than 10, or mu equal to 10 with an unknown variance, leaves parameters free and is composite. The Neyman-Pearson lemma needs both hypotheses simple.
Why can I not always get a size of exactly 0.05?
With a discrete statistic such as a Poisson total, the rejection probability jumps as the critical value changes. Choose the largest region whose size does not exceed the target and report the exact size you achieved, rather than claiming 0.05.
How many degrees of freedom does the chi-squared calibration use?
The degrees of freedom equal the number of parameters fixed by the null hypothesis, the dimension of the full parameter space minus the dimension of the null space. Testing one mean while estimating a variance, for example, gives one degree of freedom.
Is a p-value the probability that the null hypothesis is true?
No. It is computed assuming the null is true and measures how surprising the data would be under it. The probability of a hypothesis given the data is a Bayesian quantity and needs a prior, as the next chapter explains.
Exam move
Practise the Neyman-Pearson routine on four models until it is automatic: write the ratio, simplify to a statistic, state its exact null distribution, find the critical value and compute the power. Use at least one model where the alternative is smaller than the null so the region flips. Then derive one generalised likelihood ratio statistic in full, and finish by writing a p-value sentence for each test.
Working through Hypothesis Testing and Likelihood Ratio Tests in MATH6174? Sia is AskSia’s AI Statistics tutor — ask any MATH6174 Hypothesis Testing and Likelihood Ratio Tests question and get a clear, step-by-step explanation grounded in how MATH6174 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.