FS2 5.4, 5.5 - Testing the difference between two means
Two sample means vary even when their population means have a stated difference. You will test that difference using independent normal samples with known variances, choose the correct tail, and extend the method to large samples with estimated variances.
Build the sampling model for the difference
Can the same data be significant in a one-sided test but not in a two-sided test? Yes. A standardised difference of about exceeds the one-sided critical value , but not the two-sided value . The tests ask different questions.
That is not a licence to choose an alternative after looking at the result. State the question first; it determines which outcomes count as evidence.
You already know
Independent normal means remain normal when subtracted. Their mean difference is the difference of their population means, while their variance contributions add. A sample variance estimates a population variance; it is not automatically a known population quantity.
Let be the population mean difference. For independent samples of sizes from normal populations,
This follows from the preceding normal-combination result. The populations need not have equal variances.
Null and alternative hypotheses for a mean difference
The null hypothesis specifies a benchmark . The alternative states the question: a greater difference, a smaller difference or a difference in either direction. Hypotheses concern population means, not the two observed sample means. The common benchmark is , but a non-zero stated difference is equally valid.
The standard error measures the sampling spread of the difference. Under the null, subtract its stated centre before standardising.
Known-variance difference statistic
For independent normal samples with known population variances, under ,
In the formula booklet.
At the level, the appropriate normal comparisons are:
| Alternative | Rejection rule | p-value from observed |
|---|---|---|
| $ | z |
Here . A p-value is the probability, under , of a result at least as extreme in the direction or directions specified by . Compare it with the significance level. These test rules are consequences of the supplied normal distribution and percentage points, rather than separately printed test recipes.
Key idea
Keep one convention throughout: define the difference as minus , state the matching population hypothesis, then use its corresponding tail.
Translate the claim into population parameters before using any data.
Use the stated alternative with the known variances
A complete test states its hypotheses, sampling model, statistic, critical comparison and contextual conclusion. Show which population is being subtracted; a sign change without a matching tail change can reverse the conclusion.
For the next pair, component lengths in populations and are normal. Independent random samples give
The two population standard deviations are known.
Worked example 1: a one-sided difference claim
Question. Test, at the level, whether exceeds by more than .
Plan. Use benchmark , calculate the standard error from the two known variances, and compare the signed statistic with the upper-tail critical value.
Why subtract ? The null sampling model is centred at a difference of , rather than at zero.
Answer. Reject . There is sufficient evidence at the level that population 's mean length exceeds population 's by more than .
Check. The upper-tail p-value is , agreeing with the critical-value decision.
Worked example 2 changes only the alternative, from a greater difference to a difference in either direction. The data, benchmark and level remain fixed.
Worked example 2: the same data with a two-sided question
Question. Test, at the level, whether the population mean difference differs from .
Plan. Keep the statistic and use both tails, each with probability .
Why does the decision change? The two-sided test reserves probability for evidence in either direction, making each individual tail smaller.
Answer. Do not reject . There is insufficient evidence at the level that the population mean difference differs from .
Check. . The statistic lies between and , exactly the range where these two questions can give different decisions.
The opening puzzle is therefore consistent: the same observation is being judged against different pre-specified alternatives.
[DIAGRAM: asset_name: One-sided and two-sided normal rejection regions; asset_slug: 9fm0-fs2-130-test-tails; caption: The same observed statistic can cross a one-sided cutoff while remaining inside two-sided cutoffs; description: Two panels show the standard normal density with pale blue non-rejection regions and pale clay rejection tails. In the one-sided five percent panel, the right rejection tail begins at one point six four four nine. In the two-sided five percent panel, the rejection tails begin at minus and plus one point nine six zero zero. A grey observed-statistic guide at approximately one point seven six eight is in the right rejection region of the first panel and inside the central region of the second. Grey curve outlines, ink labels and full-opacity pointers keep the comparisons clear.]

Watch out
Wrong: use and a positive critical value for every test, or choose a one-sided alternative after seeing a favourable sign. Right: choose the alternative first and preserve its direction throughout.
Change only the alternative's direction once more.
Continue this lesson.
You’re previewing NovaLearn without an account. Create a free account to read the rest.
Create free account