Unit 3 · Topic 3.5 Beta

Setting Up a Test for a Population Proportion

Set up a test before looking at the data.

Practice 2: Collect DataPractice 4: Interpret Results

Part 1 · Hook

Why this matters

Last year 70% of a city's households recycled. Then the city stopped picking up glass at the curb, and an environmental group thinks recycling has dropped. Before it surveys a single household, the group has to write down exactly what it is testing, in which direction, and how strong the evidence must be. Get that wrong and no calculation can save the conclusion.

Part 2 · Before you start

What this builds on

Part 3 · Prerequisite check

Quick check before you start

1. A random sample of 250 households is taken from a city of 82,000 households. Which statement checks the 10% condition?

  1. 250 is less than 10% of 82,000
  2. 250 is at least 10
  3. 250 is more than 10% of 2,500
  4. 10% of the sample recycles
Show the answer

The 10% condition compares the sample size with the population: 10% of 82,000 is 8,200.

  • Correct: 250 is less than 10% of 82,000:
  • 250 is at least 10:
  • 250 is more than 10% of 2,500:
  • 10% of the sample recycles:

2. Which is a parameter?

  1. The proportion of all the city's households that recycle
  2. The proportion of the 250 sampled households that recycle
  3. The number of sampled households that recycle
  4. The sample size, 250
Show the answer

A parameter describes the whole population; the other three describe the sample.

  • Correct: The proportion of all the city's households that recycle:
  • The proportion of the 250 sampled households that recycle:
  • The number of sampled households that recycle:
  • The sample size, 250:

Part 4 · See it

See it first

Three number lines for a proportion from 0.55 to 0.85, each with the null value 0.70 marked by a dot. First, alternative "p < 0.70": the values below 0.70 are highlighted. Second, alternative "p > 0.70": the values above 0.70 are highlighted. Third, alternative "p is not 0.70": the values on both sides of 0.70 are highlighted. The direction comes from the research question, before any data are seen.
The null value p₀ = 0.70 and the three possible alternative hypotheses. The research question, not the data, picks one. LevlPrep original diagram.

Part 5 · Step by step

How it works, step by step

  1. A study weighs a claim about a population proportionwrite H0:p=p0H_0: p = p_0 (no change, the claimed value) and HaH_a (what the study seeks evidence for)
  2. The question has a direction ("dropped", "more than")the alternative is one-sided; with no direction ("changed") it is two-sided, p≠p0p \ne p_0
  3. The standard of evidence must not depend on the datathe significance level α\alpha is chosen before the data are collected
  4. The test reasons as if H0H_0 were truelarge counts is checked with p0p_0: np0≥10np_0 \ge 10 and n(1−p0)≥10n(1 - p_0) \ge 10

Part 6 · Key ideas

Key ideas

  • H0:p=p0H_0: p = p_0 always has the equals sign; HaH_a is p<p0p < p_0, p>p0p > p_0 or p≠p0p \ne p_0.
  • Hypotheses are about the parameter pp, never p^\hat{p}. Define pp in context right after them.
  • The direction of HaH_a comes from the question, before the data: never from which way the sample went.
  • α\alpha is the standard of evidence, set in advance. Smaller α\alpha, stricter standard.
  • Procedure: one-sample z test for a proportion. Conditions: random, 10%, large counts with p0p_0.

Part 7 · Misconception

A common mistake

The wrong idea: The sample came out at 31% red, so the alternative should be Ha:p>0.25H_a: p > 0.25.

What actually happens: The alternative comes from the research question, set before the data. If the question was "is the spinner fair?", the alternative is Ha:p≠0.25H_a: p \ne 0.25 whatever the sample shows.

Part 8 · Check yourself

Check yourself

Exam-style questions. Anything you miss goes into your review queue.

Table

Has recycling dropped?

Last year, 70% of a city's households recycled. This year the city stopped collecting glass at the curb, and an environmental group suspects that the proportion of households that recycle has dropped. The group plans to survey a random sample of 250 of the city's 82,000 households.

The plan for the study
ItemValue
Populationthe city's 82,000 households, this year
Last year's proportion that recycled0.70
Planned sample250 households, chosen at random
Significance levelα=0.05\alpha = 0.05

1. Which pair of hypotheses matches the group's question?

  1. H0:p=0.70H_0: p = 0.70, Ha:p<0.70H_a: p < 0.70
  2. H0:p=0.70H_0: p = 0.70, Ha:p≠0.70H_a: p \ne 0.70
  3. H0:p<0.70H_0: p < 0.70, Ha:p=0.70H_a: p = 0.70
  4. H0:p^=0.70H_0: \hat{p} = 0.70, Ha:p^<0.70H_a: \hat{p} < 0.70
Show the answer

The null hypothesis says nothing has changed, p=0.70p = 0.70. The group suspects a drop, so the alternative is one-sided: p<0.70p < 0.70. Both are about the parameter pp.

  • Correct: H0:p=0.70H_0: p = 0.70, Ha:p<0.70H_a: p < 0.70: Right: no change against the suspected drop.
  • H0:p=0.70H_0: p = 0.70, Ha:p≠0.70H_a: p \ne 0.70: The group's question has a direction (a drop), so the alternative is one-sided, not two-sided.
  • H0:p<0.70H_0: p < 0.70, Ha:p=0.70H_a: p = 0.70: These are reversed. The null hypothesis holds the equals sign; the suspected change is the alternative.
  • H0:p^=0.70H_0: \hat{p} = 0.70, Ha:p^<0.70H_a: \hat{p} < 0.70: Hypotheses are about the parameter pp, never about the sample statistic p^\hat{p}.

2. Which is the correct definition of the parameter pp in these hypotheses?

  1. The proportion of the 250 sampled households that recycle
  2. The true proportion of all the city's households that recycle this year
  3. The number of the city's households that recycle this year
  4. The proportion of the city's households that recycled last year
Show the answer

The parameter is a population value: the proportion of all the city's households that recycle this year, after the change.

  • The proportion of the 250 sampled households that recycle: That is p^\hat{p}, a statistic. The hypotheses are about the population.
  • Correct: The true proportion of all the city's households that recycle this year: Right: a population proportion, in context.
  • The number of the city's households that recycle this year: A count is not a proportion, and pp in these hypotheses is a proportion.
  • The proportion of the city's households that recycled last year: Last year's value, 0.70, is the null value p0p_0. The parameter is this year's proportion.

3. Which correctly checks the large counts condition for this test?

  1. 250(0.70)=175250(0.70) = 175 and 250(0.30)=75250(0.30) = 75, both at least 10
  2. n=250n = 250 is at least 30
  3. 250 is less than 10% of the 82,000 households
  4. The sample will have at least 10 households of each kind
Show the answer

A test assumes H0H_0 is true while it checks conditions, so it uses p0=0.70p_0 = 0.70: np0=250(0.70)=175np_0 = 250(0.70) = 175 and n(1−p0)n(1 - p_0)=250(0.30)= 250(0.30)=75= 75, both at least 10.

  • Correct: 250(0.70)=175250(0.70) = 175 and 250(0.30)=75250(0.30) = 75, both at least 10: Right: use the null value p0p_0 in a test.
  • n=250n = 250 is at least 30: "At least 30" is a rule of thumb for means. Proportions need expected successes and failures.
  • 250 is less than 10% of the 82,000 households: That is the 10% condition, which protects independence, not the normal shape.
  • The sample will have at least 10 households of each kind: We have not seen the sample yet; the check uses p0p_0, which also matches the assumption that H0H_0 is true.

4. Why does the group need to check the 10% condition, and is it met?

  1. It makes the shape normal; it is met because 250 is at least 10
  2. It removes bias; it is met because the sample is random
  3. It makes the households close to independent; met, since 250 is under 8,200
  4. It is not needed, because the city has more than 10,000 households
Show the answer

The sample is taken without replacement, so the households are close to independent only if the sample is at most 10% of the population. 10% of 82,000 is 8,200, and 250 is far less.

  • It makes the shape normal; it is met because 250 is at least 10: Shape comes from large counts. The 10% condition compares the sample with the population size.
  • It removes bias; it is met because the sample is random: Random selection removes bias. The 10% condition is about independence.
  • Correct: It makes the households close to independent; met, since 250 is under 8,200: Right: 250 is less than 10% of 82,000.
  • It is not needed, because the city has more than 10,000 households: It is needed whenever the sample is drawn without replacement; a large city just makes it easy to meet.

Table

Is the spinner fair?

A mobile game shows a spinner with four equal colored sections and says each color comes up one fourth of the time. A designer suspects the code is off but does not know in which direction. She plans to record 400 spins and use α=0.05\alpha = 0.05.

The designer's plan
ItemValue
Advertised proportion of red0.25
Planned spins400
Significance levelα=0.05\alpha = 0.05

5. After the 400 spins, 31% land on red. The designer then rewrites the alternative as Ha:p>0.25H_a: p > 0.25. What is wrong with this?

  1. Nothing, because the sample shows the direction
  2. The alternative should be Ha:p^>0.25H_a: \hat{p} > 0.25
  3. The hypotheses must be set from the question, before seeing the data
  4. The null hypothesis should be changed to p=0.31p = 0.31
Show the answer

Hypotheses come from the question asked before the data are collected. Choosing the direction after seeing which way the sample went makes unusual results look more convincing than they are.

  • Nothing, because the sample shows the direction: Letting the data pick the direction is the mistake: the question had no direction.
  • The alternative should be Ha:p^>0.25H_a: \hat{p} > 0.25: Hypotheses are never written about p^\hat{p}.
  • Correct: The hypotheses must be set from the question, before seeing the data: Right: her question was two-sided, so the alternative stays p≠0.25p \ne 0.25.
  • The null hypothesis should be changed to p=0.31p = 0.31: The null value comes from the claim being weighed, 0.25, not from the sample.

6. A factory's defect rate has been 2%. After a new supplier starts, a manager wants to know whether the defect rate has changed. Which alternative hypothesis fits?

  1. Ha:p>0.02H_a: p > 0.02
  2. Ha:p<0.02H_a: p < 0.02
  3. Ha:p≠0.02H_a: p \ne 0.02
  4. Ha:p=0.02H_a: p = 0.02
Show the answer

"Has changed" has no direction, so the alternative is two-sided: Ha:p≠0.02H_a: p \ne 0.02.

  • Ha:p>0.02H_a: p > 0.02: That asks only whether the rate went up. "Changed" could mean up or down.
  • Ha:p<0.02H_a: p < 0.02: That asks only whether the rate went down.
  • Correct: Ha:p≠0.02H_a: p \ne 0.02: Right: "changed" in either direction is two-sided.
  • Ha:p=0.02H_a: p = 0.02: The alternative never contains the equals sign; that is the null hypothesis.

7. A student asks: "Is the proportion of all students at my school who own a pet different from the national figure of 0.65?" She surveys a random sample of 120 of the school's 1,800 students. Which plan fits her question?

  1. A one-sample z test with H0:p=0.65H_0: p = 0.65 and Ha:p≠0.65H_a: p \ne 0.65
  2. A one-sample z test with H0:p=0.65H_0: p = 0.65 and Ha:p>0.65H_a: p > 0.65
  3. A one-sample z test with H0:p≠0.65H_0: p \ne 0.65 and Ha:p=0.65H_a: p = 0.65
  4. A test with H0:p^=0.65H_0: \hat{p} = 0.65 against the national survey's sample
Show the answer

A question with a specific claimed value and "different from" calls for a one-sample z test for a proportion with H0:p=0.65H_0: p = 0.65 and Ha:p≠0.65H_a: p \ne 0.65.

  • Correct: A one-sample z test with H0:p=0.65H_0: p = 0.65 and Ha:p≠0.65H_a: p \ne 0.65: Right: one proportion, a claimed value, no direction.
  • A one-sample z test with H0:p=0.65H_0: p = 0.65 and Ha:p>0.65H_a: p > 0.65: "Different from" has no direction, so the alternative is two-sided.
  • A one-sample z test with H0:p≠0.65H_0: p \ne 0.65 and Ha:p=0.65H_a: p = 0.65: The equals sign and the national figure belong in the null hypothesis.
  • A test with H0:p^=0.65H_0: \hat{p} = 0.65 against the national survey's sample: Hypotheses are about the school's population proportion pp, not a sample proportion.

Part 9 · Summary

Summary

Set up a test before looking at the data. Write hypotheses about pp (H0:p=p0H_0: p = p_0 and a one-sided or two-sided HaH_a chosen from the question), pp defined in context, a significance level α\alpha, the procedure named (one-sample z test for a proportion), and the conditions checked in words, with large counts using p0p_0.

Part 10 · Up next

What comes next

Part 11 · Connections

Connections