Unit 3 · Topic 3.6 · about 20 minutes
AP Statistics 3.6: p-Values
Find the p-value of a test for a population proportion, from the normal model or from a simulation, and interpret it in context as a probability computed assuming the null hypothesis is true.
Unit 3: 15 to 25% of the multiple-choice section
What you'll be able to do
- Interpret the p-value of a hypothesis test for a population proportion in context.
Key vocabulary
| Term | What it means | The exam trap |
|---|---|---|
| p-value | The probability, computed assuming is true, of a test statistic as extreme as the one observed or more extreme, in the direction of . | With a two-sided alternative both tails count, so gives a p-value of about 0.072, not 0.036. |
| Null distribution | The distribution of the test statistic when the null hypothesis is true. | It is built from , not from the sample: for the dog owners the null distribution of centers at 0.40, and the observed 0.44 sits out in its tail. |
| Test statistic | , the number of standard deviations lies from under the null. | Its denominator uses , not , because the calculation takes place in the world where is true. |
| Simulated p-value | The proportion of simulated null values that are as extreme as the observed value or more extreme. | For only the upper tail counts, so 9 of 200 at or above 0.38 gives 0.045, and the 3 values at or below 0.22 stay out. |
Predict first
A candy maker says 25% of its candies are red. A small bag you open has 4 red candies out of 20. A big jar has 80 red out of 400. Both are 20% red. Which result gives you more reason to doubt the company's claim?
The null distribution
A significance test starts by assuming the null hypothesis is true. Even in that imagined world, the test statistic changes from sample to sample, and its distribution there is called the null distribution. For a one-sample z-test for a proportion, the test statistic is the standardized score of in that world,
and when the conditions are met, its null distribution is the standard normal distribution. 3.7 Carrying Out a Test for a Population Proportion covers this calculation in full.
The p-value is the probability, computed assuming is true, of getting a test statistic as extreme as the one observed or more extreme. Extreme means in the direction of the alternative hypothesis, so the alternative decides which area you find.
| Alternative hypothesis | p-value |
|---|---|
| , the area at or above | |
| , the area at or below | |
| , the area in both tails beyond |
Worked exampleDog owners: finding and interpreting a p-value
A news report says that 40% of adults in a state own a dog. A pet food company believes the proportion is higher. In a random sample of 600 of the state's adults, 264 own a dog, so . The company tests against , where is the proportion of all adults in the state who own a dog. The conditions are met. Find and interpret the p-value.
Place the result in the null distribution. If , then has mean 0.40 and standard deviation . The test statistic is .
Pick the tail. The alternative is , so a result as extreme or more extreme means a test statistic at or above 2.00.
Find the area. p-value .
Interpret. Assuming that 40% of all adults in the state own a dog, there is about a 0.023 probability of getting a sample proportion of 0.44 or higher in a random sample of 600 adults.
Weigh the evidence. A result this high would be unusual if the report were right, so the data provide evidence that more than 40% of the state's adults own a dog.
The p-value is about 0.023. It describes samples in a world where the report is right. It is not the probability that the report is right.
Null distribution of , assuming and
Read on the z-scale under the axis, the same curve is the null distribution of the test statistic. The shaded area at or above , which is , is the p-value, about 0.023.
When the null distribution is simulated
You can also get a p-value without any formula. Simulate the null distribution: generate many samples in a world where is true, compute the statistic for each one, and find the proportion of simulated values that are as extreme as the observed value or more extreme.
A student suspects a coin is unfair. She flips it 40 times and gets 25 heads, so . Her hypotheses are and , where is the proportion of all flips of this coin that land heads. A computer flipped a fair coin 40 times, recorded the proportion of heads, and repeated that 100 times.
Proportion of heads in 100 simulated sets of 40 flips of a fair coin
Five simulated proportions are at or above 0.625. Six are at or below 0.375, which is the same distance below 0.5.
Reading the simulation
The alternative is two-sided, so a result counts as extreme when it lands at least as far from 0.5 as 0.625 does, in either direction: at or above 0.625, or at or below 0.375. That is of the 100 simulated values, so the simulated p-value is about 0.11. With a one-sided alternative you would count one tail only: values at or above the observed one for , at or below it for .
Assuming the coin is fair, about 11% of sets of 40 flips give a proportion of heads at least as far from 0.5 as the student's 0.625. That is not unusual, so her flips do not provide convincing statistical evidence that the coin is unfair. They do not show that the coin is fair, either. A coin that lands heads 55% of the time could easily have produced the same 25 heads.
What small and not small mean
A small p-value says the observed result would be unusual if were true, so it provides evidence for . The lower the p-value, the more convincing the statistical evidence for . The dog owners' 0.023 is fairly convincing. A p-value of 0.0004 would be far more so.
A p-value that is not small says the result would not be unusual under . It does not provide convincing statistical evidence for , and it does not provide evidence that is true. Where to draw the line between small and not small is a decision made before the data are collected, and 3.7 Carrying Out a Test for a Population Proportion shows how it is made.
Check your understanding
A city says that 70% of its residents recycle. A researcher suspects the proportion is lower. In a random sample of 300 residents, 195 recycle, so . For the test of against , the p-value is 0.029. Which is a correct interpretation of the p-value?
A test of against produces a test statistic of . Which is the p-value?
To test against , a researcher simulated 200 random samples of the same size assuming . Her actual sample gave . Of the 200 simulated sample proportions, 9 were at or above 0.38 and 3 were at or below 0.22. What is the simulated p-value?
A test of against , where is the proportion of a city's voters who favor a new park, gives a p-value of 0.41. Which statement is correct?
A test of against gives a test statistic of . Find the p-value. Round to four decimal places.
Exam strategy for this topic
- Section I, Multiple Choice: 42 questions in 90 minutes.
- Section II, Free Response: 4 questions in 90 minutes.
- A graphing calculator with statistical capabilities is expected on both sections.
Questions students ask
Why does the big jar give stronger evidence than the small bag when both are 20 percent red?
If 25 percent of the candies are red, a bag of 20 has 4 or fewer red about 41 percent of the time, which is ordinary. A jar of 400 has 80 or fewer red only about 1 percent of the time.
How small does a p-value have to be?
The lower it is, the more convincing the evidence for the alternative. A p-value of 0.023 is fairly convincing and 0.0004 far more so. Where to draw the line is decided before the data are collected.
How do I count a two-sided p-value from a simulation?
Count the simulated values at least as far from as yours, on both sides. For 25 heads in 40 flips, , so count values at or above 0.625 and at or below 0.375: 5 plus 6 is 11 of 100, about 0.11.
Does "more extreme" ever mean the other tail?
Only for a two-sided alternative. For the p-value is the area at or above the test statistic, and for it is the area at or below it.
Why does flipping a biased coin more times tend to give smaller p-values?
The same lopsided proportion gets harder to explain by chance as the flips pile up, because varies less in larger samples.
Course alignment, for teachers
AP Statistics topic 3.6, Unit 3: Inference for Categorical Data: Proportions.
- Skill 4.F: Interpret results of statistical inference methods.