All revision notes topics

Language of hypothesis testingAQA A-Level Maths: Revision notes

Section 1

Hypotheses

A hypothesis test uses a sample to decide whether a claim about a population parameter is believable. For a binomial model X∼B(n,p)X\sim B(n,p) the parameter is pp, the probability of success on each trial.

  • The null hypothesis, H0H_0, is the claim assumed true for the test. It gives one value: H0:p=0.6H_0:p=0.6.
  • The alternative hypothesis, H1H_1, says what you suspect instead.
    • A 1-tail test has H1:p<p0H_1:p<p_0 or H1:p>p0H_1:p>p_0 because the suspicion has a direction.
    • A 2-tail test has H1:p≠p0H_1:p\ne p_0 because the suspicion is only that the value has changed. Always define pp in words, for example "pp is the probability that a seed germinates". The direction of H1H_1 comes from the wording of the question, never from the sample result.
Key termsnull hypothesisalternative hypothesis1-tail test2-tail test
Common mistake

Writing H0:p<0.6H_0:p<0.6 or putting the sample result (such as p^=0.5\hat p=0.5) in a hypothesis. Hypotheses are about pp, the population.

Section 2

Test statistic and sampling distribution

The test statistic is the quantity calculated from the sample, here the number of successes XX. The test works by asking: if H0H_0 is true, how likely is a result like the one observed? So you work under H0H_0 and use its distribution, for example X∼B(20,0.6)X\sim B(20,0.6) if n=20n=20 and H0:p=0.6H_0:p=0.6. Only the value of pp from H0H_0 is used in the calculation.

Key termstest statistic

Section 3

Significance level, critical region and critical value

The significance level, α\alpha, is the probability of rejecting H0H_0 when H0H_0 is true; it is a measure of how unlikely a result must be before you reject. It is set in advance, commonly 5% or 1%. The critical region is the set of values of the test statistic that lead to rejecting H0H_0. Its boundary is the critical value. The acceptance region is the remaining values, where H0H_0 is not rejected. Finding it, for X∼B(20,0.6)X\sim B(20,0.6) with H1:p<0.6H_1:p<0.6 at 5%: P(X≤7)=0.0210≤0.05P(X\le7)=0.0210\le0.05 but P(X≤8)=0.0565>0.05P(X\le8)=0.0565>0.05. The critical region is X≤7X\le7, the critical value is 77 and the acceptance region is X≥8X\ge8. For a 1-tail test all of α\alpha is in one tail. For a 2-tail test split it: for 5%, put at most 2.5%2.5\% in each tail.

Key termssignificance levelcritical regioncritical valueacceptance region
Exam tip

For the upper tail use P(X≥k)=1−P(X≤k−1)P(X\ge k)=1-P(X\le k-1); one slip in the −1-1 moves the critical value by one.

Common mistake

Choosing the critical region whose probability is closest to α\alpha even when it exceeds it. The probability must not exceed α\alpha.

Section 4

The pp-value

The pp-value is the probability, assuming H0H_0 is true, of obtaining a result at least as extreme as the one observed. For X∼B(15,0.3)X\sim B(15,0.3) and an observed value of 9 with H1:p>0.3H_1:p>0.3, pp-value =P(X≥9)=0.0152=P(X\ge9)=0.0152. Decision rule: if the pp-value is less than or equal to the significance level, reject H0H_0; otherwise do not reject. In a 2-tail test either compare the one-tail probability with α/2\alpha/2, or double it and compare with α\alpha.

Key termsp-value
Common mistake

Saying the pp-value is the probability that H0H_0 is true. It assumes H0H_0 is true.

Section 5

Actual significance level and conclusions

With a discrete distribution the critical region rarely uses up exactly α\alpha. The actual significance level is the real probability of falling in the critical region when H0H_0 is true. For the 2-tail test X∼B(30,0.35)X\sim B(30,0.35) with critical region X≤5X\le5 or X≥17X\ge17: 0.0233+0.0124=0.03570.0233+0.0124=0.0357, which is below 5%. Conclusions must be in context and cautious. If the result is in the critical region: "There is sufficient evidence at the 5% level to suggest that the proportion has changed." If not: "There is insufficient evidence to suggest that it has changed." Never say that H0H_0 has been proved. The significance level is also the probability of wrongly rejecting a true H0H_0.

Key termsactual significance level
Exam tip

Phrase the conclusion in two parts: the decision about H0H_0, then what it means in the context of the question.

That's the notes covered.

Carry on to the next subtopic.

Exam questions on Language of hypothesis testing

  1. A seed company claims that 60% of its seeds germinate. A gardener suspects that the true percentage is lower. She plants 20 seeds and records the number XX that germinate. She will test her suspicion at the 5% significance level, assuming that X∼B(20,p)X\sim B(20,p), where pp is the probability that a seed germinates. For reference, P(X≤7)=0.0210P(X\le7)=0.0210 and P(X≤8)=0.0565P(X\le8)=0.0565 when p=0.6p=0.6.
    State the critical value of the test and write down the acceptance region.2 marks
  2. A spinner has four equal-looking sections, one of which is red. The manufacturer says that the probability of the spinner landing on red is 0.250.25. A teacher thinks the spinner may be biased, in either direction. She spins it 20 times and records the number YY of reds, using Y∼B(20,p)Y\sim B(20,p) and a 10% significance level. When p=0.25p=0.25: P(Y≤1)=0.0243P(Y\le1)=0.0243, P(Y≤2)=0.0913P(Y\le2)=0.0913, P(Y≥8)=0.1018P(Y\ge8)=0.1018 and P(Y≥9)=0.0409P(Y\ge9)=0.0409.
    The teacher says: "A 10% significance level means there is a 10% chance that the spinner is biased." Explain why this is incorrect.2 marks
  3. A café owner believes that 30% of customers order a cold drink. She runs an advert that is intended to increase this proportion. Afterwards she picks 15 customers at random and finds that 9 of them order a cold drink. Let XX be the number of cold drinks ordered by 15 customers, and test at the 5% significance level whether the proportion has increased.
    Write down the null and alternative hypotheses, and state the distribution of XX if the null hypothesis is true.3 marks
See the full worksheet

Written by the Exaim team, led by Shaun Daswani (Head of Upper Secondary, Improve ME Institute; MSc Financial Mathematics, Imperial College London; BSc, UCL) and Jason Daswani (operational lead, Improve ME Institute; LSE).