One-Tailed Hypothesis Tests for a Binomial Proportion | OCR B (MEI) A Level Maths notes

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

The Steps of a Binomial Test

Year 1 (AS)

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 20 patients, chosen at random, and 10 are helped. Is the new treatment better?

  • 10 out of 20 is 50%, 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.
  • This note turns the language of the last note into a method you can follow every time.

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 probability of wrongly rejecting H0 when it is true.
  • The test statistic is X, the number helped in the sample.

The five steps

Mark schemes give marks for each step.

  1. Hypotheses. H0:p=0.3, H1:p>0.3, where p is the proportion of all patients helped by the new treatment.
  2. Distribution under Hโ‚€. Assume H0 is true, so X~B(20,0.3). Why: we can only calculate probabilities with an exact p.
  3. Calculate. Find the p-value, P(X⩾10), or find the critical region.
  4. Compare. Compare the p-value with the significance level, or see whether the observed value is in the critical region.
  5. Conclude in context. State whether you reject H0 and what that means for the treatment, using cautious language.

โœ๏ธ 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).

Which Tail?

  • H1:p>p0: large values of X are evidence, so find P(X⩾x) (the upper tail).
  • H1:p<p0: small values are evidence, so find P(X⩽x) (the lower tail).
  • p0 is the value in H0 and x is the observed value.
  • Never find P(X=x) alone: the p-value includes everything at least as extreme.
H1Evidence is...p-valueCalculator form
p>p0large XP(X⩾x)1−P(X⩽x−1)
p<p0small XP(X⩽x)binomial CD directly

๐Ÿ“ Check which side of the mean you are

Under H0 the mean is np0=20×0.3=6. The observation 10 is above 6, which fits H1:p>0.3. If the observation were on the other side (say 4), there could be no evidence for H1 at all.

๐Ÿ‘€ Watch me do it: set up the p-value for the treatment test

What I writeWhy I do it
Mean under H0: 20×0.3=6. Observed 10 is above it.Side-of-mean check first: it fits H1:p>0.3.
Upper tail: p-value =P(X⩾10)."At least as extreme" in the direction of H1 means 10 or more.
=1−P(X⩽9)Binomial CD only gives "at most", and the opposite of "10 or more" is "9 or fewer".

โœ๏ธ YOUR TURN 2

Try this first:

For each test, write the p-value as a probability, and in the form your calculator needs.

  1. H1:p<0.4, X~B(25,0.4), observed 5.
  2. H1:p>0.2, X~B(30,0.2), observed 11.
  3. H1:p>0.3, X~B(20,0.3), observed 4.

Answer:

  1. P(X⩽5), used directly.
  2. P(X⩾11)=1−P(X⩽10).
  3. 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. (The p-value P(X⩾4) would be large: 0.893.)

Method 1: The p-Value

  • The p-value is the probability, if H0 is true, of a result at least as extreme as the one observed.
  • Here that means P(X⩾10). The calculator's binomial CD gives P(X⩽x), and the opposite of "10 or more" is "9 or fewer".

Diagram: Both charts show X B(20, 0.3), the model if H_0 is true. We observed 10 patients helped.

What the picture shows

  1. Both charts show X~B(20,0.3), the model if H0 is true. We observed 10 patients helped.
  2. Wrong: P(X=10)=0.0308 is the height of one bar only. With many possible values, every single bar is small, so one bar tells you nothing about how unusual the result is.
  3. Right: the evidence is "10 or more", so add the whole upper tail: P(X⩾10)=1−P(X⩽9)=0.0480.
  4. Compare that with the significance level: 0.0480⩽0.05, so we reject H0.

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 Testing

  1. The Language of Hypothesis Testing
  2. Rank Correlation: Testing for Association Using Ranks
  3. Testing a Mean with a Large Sample When the Variance Is Unknown
  4. One-Tailed Hypothesis Tests for a Binomial Proportion
  5. Two-Tailed Binomial Tests and Critical Regions
  6. Testing for Correlation with the Product Moment Correlation Coefficient
  7. The Distribution of the Sample Mean
  8. Hypothesis Tests for the Mean of a Normal Distribution
  9. Move Up a Grade: A Level Maths Hypothesis Testing
  10. Tricky Bits: A Level Maths Hypothesis Testing

Video

What's inside for this topic

10 teacher notes, 171 practice questions, 58 flashcards, 7 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: Testing a Mean with a Large Sample When the Variance Is Unknown Next note: Two-Tailed Binomial Tests and Critical Regions

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

All OCR B (MEI) A Level Maths topics ยท A Level Maths