Euler Hall — free maths guides

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.

Two contradictory claims, one of which the data can overturn

A hypothesis test is a comparison between two claims about a parameter, written before any data are used.

- The null hypothesisH0H_0 is the position of no difference: the parameter equals a stated value, or two parameters are equal. It always contains an equality —==,≥\ge or≤\le — because the arithmetic of a test has to substitute some value into a formula. - The alternative hypothesisHaH_a is the claim that contradicts it. It never contains an equality: it is≠\ne,<< 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 |H0H_0 |HaH_a | tail | |---|---|---|---| | "different from 2.0" |μ=2.0\mu = 2.0 |μ≠2.0\mu \ne 2.0 | two | | "fewer than 5" |μ≥5\mu \ge 5 |μ<5\mu < 5 | left | | "more than 30%" |p≤0.30p \le 0.30 |p>0.30p > 0.30 | right | | "no more than 30%" |p≤0.30p \le 0.30 |p>0.30p > 0.30 | right | | "at least 45" |μ≥45\mu \ge 45 |μ<45\mu < 45 | left |

Why an equality has to be in the null

The test statistic is

statistic=estimate−value under H0standard error under H0,\text{statistic} = \frac{\text{estimate} - \text{value under } H_0}{\text{standard error under } H_0},

and both the subtracted value and the standard error need a specific number. A null ofμ≤70\mu \le 70 supplies one: the worst case,μ=70\mu = 70, 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 writeH0:μ=70H_0: \mu = 70 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.μ≤70\mu \le 70 andμ>70\mu > 70 partition the possible values, so "the null is false" and "the alternative is true" are the same statement — which is what makes rejectingH0H_0 a conclusion aboutHaH_a rather than a remark about the null.

Worked example: three claims, three pairs

Claim 1 — "the mean is different from 2.0". The word different names no direction, so both tails matter:

H0:μ=2.0,Ha:μ≠2.0.H_0: \mu = 2.0, \qquad H_a: \mu \ne 2.0.

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:

H0:μ≥5,Ha:μ<5.H_0: \mu \ge 5, \qquad H_a: \mu < 5.

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%:

H0:p≤0.30,Ha:p>0.30.H_0: p \le 0.30, \qquad H_a: p > 0.30.

The check that catches most mistakes. Look atHaH_a 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.

By the end you can
  • 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
Check yourself
  1. 1. Write the pair for a claim that the mean commute is not 30 minutes.
  2. 2. Write the pair for a claim that a proportion is at least 0.6.
  3. 3. Why isH0:μ=70H_0: \mu = 70,Ha:μ>72H_a: \mu > 72 not a valid pair?
Answers

1.H0:μ=30H_0: \mu = 30,Ha:μ≠30H_a: \mu \ne 30 — two-tailed. 2.H0:p≥0.6H_0: p \ge 0.6,Ha:p<0.6H_a: p < 0.6 — left-tailed. (If the claim is the thing to be established, it belongs inHaH_a; 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.

Work out where to start — free, no accountAnswer six real questions — free, no account