6.5 Hypothesis tests
The language of testing
A hypothesis test uses a sample to decide whether a claim about a population is believable.
| Term | Meaning |
|---|---|
| Null hypothesis, | The claim being tested; states one exact value, as in |
| Alternative hypothesis, | What is believed if the null is rejected |
| Test statistic | The value from the sample used to decide |
| Significance level | The probability at or below which the result counts as too unlikely |
| Rejection (or critical) region | The values that lead to rejecting |
| Acceptance region | The values that do not |
One-tailed and two-tailed tests
| Wording | Test | |
|---|---|---|
| "Has increased", "more than" | One-tailed | |
| "Has decreased", "less than" | One-tailed | |
| "Has changed", "is different", "biased" | Two-tailed |
For a two-tailed test, half the significance level goes in each tail.
Testing a binomial proportion
Work out the probability of the observed result, or one more extreme, assuming .
: . : . Under , .
, so reject . There is evidence that the coin is biased towards heads.
Finding a rejection region
Find the most extreme values whose total probability is no more than the significance level.
, while . So the rejection region is .
Testing a Poisson mean
: . : . Under , .
, so do not reject . There is not enough evidence that the rate of complaints has fallen.
Using normal approximations
When or is large, use the normal, and remember the continuity correction.
: . : . Under , , approximated by .
, so reject . There is evidence that the proportion has increased.
Testing a population mean
Use the distribution of the sample mean. This needs a normal population with known variance, or a large sample.
| Significance level | One-tailed | Two-tailed |
|---|---|---|
| 10% | 1.282 | 1.645 |
| 5% | 1.645 | 1.960 |
| 2% | 2.054 | 2.326 |
| 1% | 2.326 | 2.576 |
: . : . Under , .
, so reject . There is evidence that the mean mass has changed.
Type I and Type II errors
| is true | is false | |
|---|---|---|
| Reject | Type I error | Correct |
| Do not reject | Correct | Type II error |
Probability of a Type I error. For a normal test, this is the significance level. For a binomial or Poisson test, it is the actual probability of landing in the rejection region under , which is usually below the stated level. In the coin test, it is .
Probability of a Type II error. Find the rejection region, then work out the probability of falling outside it, using the true value.
The rejection region is .
A Type II error means when :

