Unit 3 · Topic 3.5 · about 20 minutes
Setting Up a Test for a Population Proportion
Set up a one-sample z-test for a population proportion: define the parameter in context, state the hypotheses, and verify the conditions with the null value.
Predict first
A biologist suspects that fewer than half of the frogs in a large lake carry a skin fungus. She plans a significance test using a random sample of frogs. Which statement does the test assume is true until the data say otherwise?
What a test does
A hypothesis test, also called a significance test, uses sample data to make a decision about the value of a population parameter. It works like a trial.
The null hypothesis, , is the status quo: a statement about the parameter that is assumed to be correct unless there is convincing statistical evidence otherwise. The alternative hypothesis, , is the claim or belief about the parameter that evidence is being collected for. The researcher's claim or suspicion, the thing the study is looking for evidence of, goes in .
A defendant is presumed innocent, and it is the prosecution's job to produce convincing evidence of guilt. A test does the same thing with . It assumes is true and asks whether the data would be surprising if it were. Data that would be surprising, in the direction predicts, are evidence for . Data that would not be surprising leave standing, which is not the same as proving it. The next lesson makes "surprising" precise.
For a single proportion, the procedure is the one-sample z-test for a population proportion.
Writing the hypotheses
Hypotheses are statements about a parameter, so they use , never . You already know the moment you collect the data, so there is nothing to test about it. Define in words first, naming the proportion, the response variable and the population: " = the proportion of all players of a free video game who buy something in the game."
The null hypothesis names one value, :
The alternative takes one of three forms, and the research question picks the form before anyone looks at the data. and are one-sided. is two-sided, for questions that ask whether the proportion is different without saying which way.
You will sometimes see a one-sided null written with an inequality, such as against . That is acceptable. The test is still carried out at the boundary value, .
| The question asks whether the proportion is | Alternative | Kind |
|---|---|---|
| greater than, more than, higher than, or has increased from | One-sided | |
| less than, fewer than, lower than, or has decreased from | One-sided | |
| different from, not equal to, or has changed from | Two-sided |
Sort it
An online store says 12% of its orders are returned. A manager suspects the return rate has gone up, and checks a random sample of 400 recent orders: 62 were returned, so . Sort each pair of hypotheses.
Correct for this question
Has an error
Conditions, checked with the null value
The one-sample z-test for a population proportion requires three conditions.
- Randomization condition: the data come from a random sample.
- 10% condition: when sampling without replacement, the population is at least 10 times the sample size, .
- Normality condition: the expected number of successes, , and the expected number of failures, , are both at least 10.
The last one differs from the interval version. A test does all of its calculations in a world where is true, so it checks normality with the counts you would expect if really were . The interval check in 3.3 Constructing a Confidence Interval for a Population Proportion uses the observed counts instead, because an interval assumes no particular value of .
Worked exampleSetting up a test about in-game purchases
A video game company tells investors that 25% of the players who download its free game buy something in the game. An analyst suspects the true proportion is lower. She selects a random sample of 250 of the game's 1.8 million players and finds that 51 of them have bought something. Set up a significance test: name the test, define the parameter, state the hypotheses, and check the conditions.
Name the test. One-sample z-test for a population proportion.
Define the parameter. = the proportion of all players of this game who buy something in the game.
State the hypotheses. and . The company's figure is the status quo, so it goes in the null. The analyst's suspicion is what she is collecting evidence for, so it goes in the alternative, and it is one-sided because she suspected lower before she saw any data.
Check the conditions. Randomization: the 250 players were randomly selected. 10%: 250 is far less than 10% of 1.8 million. Normality: and , both at least 10.
A one-sample z-test of against , with all three conditions met. Notice that the sample result, , appears nowhere in the setup. It is used when the test is carried out in 3.7 Carrying Out a Test for a Population Proportion.
Check your understanding
Last year, 8% of a hospital's heart patients were readmitted within 30 days of going home. This year the hospital starts a new discharge program meant to lower that rate, and it will test a random sample of patients discharged under the program. Which pair of hypotheses should it use?
A national survey found that 57% of teens get less than eight hours of sleep on school nights. A counselor wants to know whether the proportion at her large high school is different from the national figure. In a random sample of 120 of her students, 75 report getting less than eight hours. Which alternative hypothesis should she use?
A quality inspector tests against , where is the proportion of all circuit boards from a production line that are defective. Her random sample of 150 boards from a run of 20,000 contains 24 defective boards. Which calculation correctly checks the normality condition for this test?
A city wants to test whether more than 30% of its households compost food waste. It surveys a random sample of 500 households. Which is the best definition of the parameter for this test?
A consumer group writes the hypotheses and , where is the proportion of a brand's smoke detectors that fail a safety check. Which value of is used to carry out the test?
Course alignment, for teachers
AP Statistics topic 3.5, Unit 3: Inference for Categorical Data: Proportions.
- Skill 2.C: Identify appropriate statistical inference methods.
- Skill 2.E: Identify the null and alternative hypotheses.
- Skill 4.E: Justify the use of a chosen statistical inference method by verifying conditions.