State a null hypothesis and an alternative
Write a null and an alternative from a claim in words. The idea in plain words, a worked example, and a check with the answers shown — part of the free Statistics guides.
A hypothesis test is a comparison between two claims about a parameter, written before any data are used.
- The null hypothesis is the position of no difference: the parameter equals a stated value, or two parameters are equal. It always contains an equality —, or — because the arithmetic of a test has to substitute some value into a formula. - The alternative hypothesis is the claim that contradicts it. It never contains an equality: it is, or.
The two must be contradictory and exhaustive: between them they cover every possibility, so exactly one can be true. If they overlapped, a test could never be decisive; if they left a gap, some outcomes would be undecidable.
The notation is easy; the reading is the skill. The words of the claim decide the pair:
| the claim | | | tail | |---|---|---|---| | "different from 2.0" | | | two | | "fewer than 5" | | | left | | "more than 30%" | | | right | | "no more than 30%" | | | right | | "at least 45" | | | left |
The test statistic is
and both the subtracted value and the standard error need a specific number. A null of supplies one: the worst case,, because that is the value closest to the alternative and therefore the hardest to distinguish. If the data are surprising even at that boundary, they are surprising anywhere inside the null.
So the inequality version and the equality version are the same test. This is why many books write even for a one-sided claim, and it is not sloppiness: the equality is the value the arithmetic uses.
Exhaustiveness does the rest of the work. and partition the possible values, so "the null is false" and "the alternative is true" are the same statement — which is what makes rejecting a conclusion about rather than a remark about the null.
Claim 1 — "the mean is different from 2.0". The word different names no direction, so both tails matter:
Claim 2 — "students take fewer than five years". Fewer is a direction, and it points down, so the alternative is and the null takes the complement:
Claim 3 — "no more than 30% of voters turned out". The claim itself is an inequality, so it becomes the null; what would contradict it is more than 30%:
The check that catches most mistakes. Look at and ask what the data would have to show to support it. In claim 2 the answer is "a mean below 5", so the evidence lives in the left tail. In claim 3 it is "a proportion above 0.30", so the evidence lives in the right tail. If the tail you name does not match the claim's direction, the pair is wrong.
- Write a null and an alternative from a claim in words
- Say which tail holds the evidence and why
- Explain why the null always carries the equality
- Recognise a pair that overlaps or leaves a gap
- 1. Write the pair for a claim that the mean commute is not 30 minutes.
- 2. Write the pair for a claim that a proportion is at least 0.6.
- 3. Why is, not a valid pair?
Answers
1., — two-tailed. 2., — left-tailed. (If the claim is the thing to be established, it belongs in; here the claim is "at least", so the alternative is its contradiction.) 3. It leaves the values between 70 and 72 in neither hypothesis, so a sample mean of 71 would be undecidable.