Educerie · AP · Statistics
AP Statistics 3.6
p-Values
How can a sample of a few hundred people tell us something reliable about thousands, and how sure can we be?
What you will learn
- Understand that the p-value is the probability, assuming H0 is true, of a result at least as extreme in the direction of Ha
- Know that the tail follows Ha: right for greater than, left for less than, both for not equal
- Understand how a simulated null distribution gives a p-value as a proportion
- Know that a large p-value is not evidence that H0 is true and the p-value is not the probability that H0 is true
You must be able to
- Interpret a p-value in context with the assumption that H0 is true
- Find a p-value from a z-statistic for each form of Ha
- Estimate a p-value from a simulated null distribution
- Explain what a small and what a large p-value indicate
- Identify wrong readings such as the probability that H0 is true
- Double the one-tail area for a two-sided test
In the exam. Section I multiple choice: choose the correct interpretation of a stated p-value, say which tail a p-value comes from, or read a p-value from a simulated distribution. Section II: Question 3 asks for the p-value and often a sentence interpreting it in context. A wrong interpretation (for example, "the probability that the null is true") loses the interpretation mark. Skill: interpret results of inference (4.F).
1The null distribution
Before the data come in, ask: if were true, what would sample proportions look like?
Example (invented). A café chain says 40% of its orders come from its app, and a manager thinks the share is now higher: , . A random sample of 90 orders is checked.
If is true, then and (3.2) the sample proportion has
Note the 0.40 inside the square root. It is , the value in the null hypothesis.
The test statistic puts the sample result on the standard normal scale:
If is true and the conditions hold, has approximately a standard normal distribution. That curve is the null distribution of the test statistic. The p-value is an area under it.
2The p-value is an area, and the tail follows
The sample has 45 of 90 orders from the app. So .
points up, so the p-value is the area at or above the observed .
The rule for the tail follows :
| Alternative | Tail | p-value |
|---|---|---|
| upper (right) | ||
| lower (left) | ||
| both |
Figure 1 shows all three. The first panel is the café example, with the area to the right of . The second panel shows a left tail for a different result, , which has an area of 0.081. The third shows both tails: with the two areas add to 0.053.
For a two-sided test, double the one-tail area when the curve is symmetric. For the same :
A two-sided p-value is always larger than the matching one-sided p-value. A two-sided test needs more evidence, because it also counts the other direction.
3A simulated null distribution
The normal curve is a model. You can also build the null distribution by simulation. The p-value is then the proportion of simulated results that are as extreme as the observed one, or more.
Simulation for the café: use a random-number device to draw 10,000 samples of 90 orders from a population in which exactly 40% of orders are from the app. Record each sample proportion.
- is "greater than", so count the simulated proportions that are 0.50 or more.
- In one such simulation, 323 of the 10,000 are at or above 0.50.
That is close to the normal-model value of 0.026. Different simulations give slightly different numbers. For the other alternatives:
- : the proportion of simulated values at or below the observed one.
- : the proportion at least as far from in either direction, counting both ends.
On the exam, a simulated p-value is read from a dotplot or a count. Say which tail you counted and give the proportion.
4Interpreting the p-value
A p-value interpretation has three parts, and it needs the assumption that is true.
Assuming the true proportion of all the chain's orders placed through the app is 0.40, the probability of getting a sample proportion of 0.50 or higher in a random sample of 90 orders is 0.026.
Check it for three things:
- "Assuming ." The null value is stated, in context: "assuming the true proportion of is 0.40".
- The result and its direction. "A sample proportion of 0.50 or higher", with "or higher" matching .
- The probability. The number, with the sample size and the sampling method in the sentence.
A shorter template: "If were true, the probability of getting a sample result at least as extreme as ours, by chance alone, is ." Put the context into each blank.
5What size means
- A small p-value means the observed result would be unusual if were true. That provides evidence for . The smaller the p-value, the more convincing the evidence.
- A large p-value means the observed result would not be unusual if were true. That is not convincing evidence for .
A large p-value does not provide evidence that is true. It means the data are consistent with . They are also consistent with many other values. "No evidence of a difference" and "evidence of no difference" are different statements.
The line between small and large is the significance level. Topic 3.7 puts the p-value next to and makes the decision.
6What a p-value is not
Memorise these wrong readings.
- Not the probability that is true. is a statement about a fixed parameter. It is true or false. The p-value assumes and then asks how surprising the data are.
- Not the probability that the results happened "by chance". It is a conditional probability, given .
- Not the probability that is true.
- Not the probability of the exact observed value. It is the probability of that value or one more extreme.
- Not a measure of how big or important the difference is. A large sample can give a tiny p-value for a tiny difference.
Practice questions
30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.