One-Tailed Hypothesis Tests for a Binomial Proportion | Applications and Interpretation IB Maths notes

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

The Steps of a Binomial Test

Applications and interpretation: HL only (AHL 4.18), using the language of SL 4.11

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-valueGDC form
p>p0large XP(X⩾x)1−P(X⩽x−1)
p<p0small XP(X⩽x)binomial cdf 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 GDC 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 GDC's binomial cdf gives P(X⩽x), and the opposite of "10 or more" is "9 or fewer".

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 HL: Further hypothesis testing (AHL 4.18)

  1. One-Tailed Hypothesis Tests for a Binomial Proportion
  2. Two-Tailed Binomial Tests and Critical Regions
  3. Testing for Correlation with the Product Moment Correlation Coefficient
  4. Hypothesis Tests for the Mean of a Normal Distribution
  5. Hypothesis Tests for the Mean of a Poisson Distribution
  6. Type I and Type II Errors and the Power of a Test
  7. z-Tests for a Population Mean Using the Central Limit Theorem
  8. The One-Sample t-Test for a Mean

Video

What's inside for this topic

8 teacher notes, 64 practice questions, 38 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

Next note: Two-Tailed Binomial Tests and Critical Regions

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

All Applications and Interpretation IB Maths topics ยท IB Maths