One-Tailed Hypothesis Tests for a Binomial Proportion | Cambridge A Level Maths notes

Free preview: One-Tailed Hypothesis Tests for a Binomial Proportion

The Steps of a Binomial Test

9709 Paper 6: Probability & Statistics 2 (A Level)

Watch: common mistake (1-minute fix)

Watch: 1-minute explainer

Let's start with a story. A standard treatment helps 30% of patients. A doctor tries a new treatment on 12 patients, chosen at random, and 7 are helped. Is the new treatment better?

  • 7 out of 12 is 58%, but a small sample can do well by luck.
  • A hypothesis test asks: if nothing had changed, how unlikely is this result? Very unlikely means evidence of a change.

The words you need

  • p is the proportion in the whole population (all patients), not in the sample.
  • The null hypothesis H0 says nothing has changed: p=0.3.
  • The alternative hypothesis H1 is what we are looking for evidence of: p>0.3.
  • This is a one-tailed test, because H1 looks in only one direction (an increase).
  • The significance level (often 5%) is the largest probability we accept of wrongly rejecting H0 when it is true.
  • The test statistic is X, the number helped in the sample.

The five steps

  1. Hypotheses. H0:p=0.3, H1:p>0.3, where p is the proportion of all patients helped by the new treatment. Why: hypotheses are always about the population, never the sample.
  2. Distribution under H₀. Assume H0 is true, so X~B(12,0.3). Why: we can only calculate probabilities with an exact p.
  3. Calculate. Find the probability of the observed value or more extreme, P(X⩾7), or find the critical region.
  4. Compare. Compare that probability with the significance level, or see whether 7 is in the critical region.
  5. Conclude in context. Say whether you reject H0 and what that means for the treatment, using cautious language.

Which tail?

  • H1:p>p0: large values of X are evidence, so find P(X⩾x).
  • H1:p<p0: small values are evidence, so find P(X⩽x).
  • Never use P(X=x) alone: the evidence is "this result or more extreme".

📝 Check which side of the mean you are

Under H0 the mean is np0=12×0.3=3.6. The observation 7 is above 3.6, which fits H1:p>0.3. If it were on the other side, there could be no evidence for H1 at all.

✏️ YOUR TURN 1

Try this first:

A bakery says 15% of its loaves are underweight. An inspector thinks the proportion is higher. She weighs 40 randomly chosen loaves. Write down steps 1 and 2 of the test.

Answer:

  • Step 1: H0:p=0.15, H1:p>0.15, where p is the proportion of all the bakery's loaves that are underweight.
  • Step 2: under H0, X, the number underweight in the sample, has X~B(40,0.15).

✏️ YOUR TURN 2

Try this first:

For each test, write down the tail probability you would find, and say whether it is shorter to add those terms or to work out 1 minus the other side.

  • H1:p<0.4, X~B(10,0.4), observed 1.
  • H1:p>0.2, X~B(15,0.2), observed 7.
  • H1:p>0.3, X~B(20,0.3), observed 4.

Answer:

  • P(X⩽1)=P(0)+P(1): just 2 terms, so add them directly.
  • P(X⩾7) has 9 terms (7 to 15); 1−P(X⩽6) has 7 terms, so it is a little shorter.
  • The mean under H0 is 6, and 4 is below it. That is no evidence at all that p is bigger than 0.3, so do not reject H0. No calculation is needed.

Method 1: Adding the Tail

There are no binomial tables in MF19, so the tail probability is a sum of terms from the formula P(X=r)=(nr)pr(1−p)n−r. Here are the terms for the treatment test, X~B(12,0.3):

r789101112
P(X = r)0.029110.007800.001490.000190.000010.00000

Bar chart of B(12, 0.3) with bars 7 and above in pink; P(X = 7) = 0.0291 is one bar only, while the whole tail P(X ≥ 7) = 0.0386

What the picture shows

  • The bars are B(12,0.3), the distribution if H0 is true. The bars for 7 and above are pink.
  • P(X=7)=0.0291 is one bar only. The evidence is the whole pink tail, P(X⩾7)=0.0386.

P(X⩾7)=(127)(0.3)7(0.7)5+(128)(0.3)8(0.7)4+⋯+(0.3)12=0.0386

  • Write the first two or three terms in full, then the sum. That shows the method.
  • Choose the shorter sum. Here the upper tail is 6 terms; 1−P(X⩽6) would need 7. When the tail you want is long, work out the other side and subtract from 1.

👀 Watch me do it: the full treatment test at the 5% level

Unlock the full note: start 7 days free.

Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.

Log in · Subscribe · Start free trial

All notes in Hypothesis tests (6.5)

  1. The Language of Hypothesis Testing
  2. One-Tailed Hypothesis Tests for a Binomial Proportion
  3. Two-Tailed Binomial Tests and Critical Regions
  4. Hypothesis Tests for the Mean of a Poisson Distribution
  5. Hypothesis Tests for the Mean of a Normal Distribution
  6. z-Tests for a Population Mean Using the Central Limit Theorem
  7. Type I and Type II Errors

Video

What's inside for this topic

7 teacher notes, 161 practice questions, 40 flashcards, 2 quizzes.

Get the full notes, every practice question, flashcards, quizzes and mock papers.

Start your free 7-day trial

Questions? Chat with us on WhatsApp · Try one live lesson

Previous note: The Language of Hypothesis Testing Next note: Two-Tailed Binomial Tests and Critical Regions

One-Tailed Hypothesis Tests for a Binomial Proportion on other exam boards

All Cambridge A Level Maths topics · A Level Maths