Dove's LibraryDove's Library

3.6 - p-Values

Overview

Every hypothesis test asks the same question: if the null hypothesis were true, how surprising would our sample be? The pp-value is the number that answers it. This topic covers what a pp-value is, how to find one from a normal model or from a simulation, and how to interpret it in context, which the AP exam asks for often.

The null distribution

A test starts by assuming the null hypothesis H0H_0 is true. Under that assumption, the test statistic has a probability distribution, called the null distribution. It shows every value the test statistic could take in repeated random samples, and how likely each one is, if H0H_0 were true.
For a one-sample zz-test for a population proportion, the test statistic is a zz-score that measures how far the sample proportion p^\hat{p} is from the null value p0p_0 (Topic 3.7 shows how to calculate it). When H0H_0 is true and the conditions are met, its null distribution is approximately standard normal: centered at 00 with a standard deviation of 11.
Why we need it: a sample proportion that differs from p0p_0 might be nothing more than sampling variability. The null distribution tells us how much random variation to expect when H0H_0 is true, so we can judge whether our result is ordinary or unusual.

What a pp-value is

The pp-value is the probability of getting a test statistic as extreme as or more extreme than the one observed, assuming the null hypothesis is true. "More extreme" means farther in the direction of the alternative hypothesis.
Three parts of that definition do real work:
  • "Assuming H0H_0 is true": the pp-value comes from the null distribution, so it is calculated as if p=p0p = p_0.
  • "As extreme or more extreme": the pp-value is a tail area. It is not the probability of getting exactly the value you observed.
  • "In the direction of HaH_a": the alternative hypothesis decides which tail (or tails) you use.

Which tail? Let the alternative decide

Let xx stand for the observed value of the test statistic (a number like 1.851.85). The pp-value is:
Alternative hypothesis
pp-value
Area you find
Ha ⁣:p>p0H_a\colon p > p_0
P(z≥x)P(z \geq x)
at or above xx (right tail)
Ha ⁣:p<p0H_a\colon p < p_0
P(z≤x)P(z \leq x)
at or below xx (left tail)
Ha ⁣:p≠p0H_a\colon p \neq p_0
P(z≤−∣x∣)+P(z≥∣x∣)P(z \leq -|x|) + P(z \geq |x|)
beyond −∣x∣-|x| and ∣x∣|x| (both tails)
3.6 - p-Values
For a two-sided test, the standard normal curve is symmetric, so the two tails have equal area and the pp-value is 2P(z≥∣x∣)2P(z \geq |x|).

Example 1: One test statistic, three pp-values

A test of H0 ⁣:p=0.40H_0\colon p = 0.40 gives a test statistic of z=1.85z = 1.85. Find the pp-value for each possible alternative.
If Ha ⁣:p>0.40H_a\colon p > 0.40: shade the right tail.
P(z≥1.85)=1−0.9678=0.0322P(z \geq 1.85) = 1 - 0.9678 = 0.0322
If Ha ⁣:p<0.40H_a\colon p < 0.40: shade the left tail, everything at or below 1.851.85.
P(z≤1.85)=0.9678P(z \leq 1.85) = 0.9678
That pp-value is huge because the sample landed on the wrong side. The alternative says pp is below 0.400.40, but a positive zz means the sample proportion was above 0.400.40. Data on the opposite side give no evidence at all for HaH_a.
If Ha ⁣:p≠0.40H_a\colon p \neq 0.40: shade both tails.
P(z≤−1.85)+P(z≥1.85)=2(0.03216)≈0.0643P(z \leq -1.85) + P(z \geq 1.85) = 2(0.03216) \approx 0.0643
Answer: The same z=1.85z = 1.85 gives a pp-value of 0.03220.0322, 0.96780.9678, or 0.06430.0643 depending on the alternative. That's why you always write HaH_a before you find the pp-value.

pp-values from a simulation

Sometimes there's no formula for the null distribution, or you want to see it directly. Then you simulate it: generate many samples assuming H0H_0 is true, calculate the statistic for each one, and plot the results. The pp-value is the proportion of simulated values that are as extreme as or more extreme than the observed value:
  • If HaH_a uses >>: the proportion of simulated values at or above the observed value.
  • If HaH_a uses <<: the proportion of simulated values at or below the observed value.
  • If HaH_a uses ≠\neq: the proportion at or below −∣x∣-|x| plus the proportion at or above ∣x∣|x|. When the simulated statistic is p^\hat{p} instead of zz, this means counting values at least as far from p0p_0 as the observed p^\hat{p}, in either direction.

Example 2: Orange candies

A candy company says 20% of its candies are orange. Maya thinks the true proportion is higher. She buys a bag of 60 candies (assume it acts like a random sample of the company's candies) and finds 18 orange ones, so p^=1860=0.30\hat{p} = \frac{18}{60} = 0.30.
Her hypotheses are H0 ⁣:p=0.20H_0\colon p = 0.20 and Ha ⁣:p>0.20H_a\colon p > 0.20, where pp is the true proportion of all the company's candies that are orange. To see whether 0.300.30 is surprising, she uses a computer to simulate 100 bags of 60 candies, assuming p=0.20p = 0.20. Each dot is the proportion of orange candies in one simulated bag.
3.6 - p-Values
Step 1: The alternative uses >>, so count the simulated values at or above the observed 0.300.30. There are 4 of them (two at 0.300.30, one at about 0.320.32, and one at about 0.380.38).
Step 2: The pp-value is the proportion of simulated values in that tail.
p-value≈4100=0.04p\text{-value} \approx \frac{4}{100} = 0.04
Step 3: Interpret it. Assuming the true proportion of orange candies is 0.200.20, there is about a 0.040.04 probability of getting a sample proportion of 0.300.30 or higher in a bag of 60 candies just by chance.
Answer: A pp-value of about 0.040.04 is small. A bag like Maya's would be unusual if only 20% of the candies were orange, so her bag gives evidence that the true proportion of orange candies is greater than 0.200.20.
A simulation only estimates the pp-value. The binomial probability of 18 or more orange candies in 60 is about 0.0430.043, and more simulated bags would land closer to it.
Two-sided version: If Maya's alternative had been Ha ⁣:p≠0.20H_a\colon p \neq 0.20, she would count simulated values at least 0.100.10 away from 0.200.20 in either direction: at or above 0.300.30 (4 dots) and at or below 0.100.10 (3 dots). The pp-value would be about 7100=0.07\frac{7}{100} = 0.07.

Interpreting a pp-value in context

An interpretation of a pp-value must say that it was calculated assuming the null hypothesis is true, with the null value in context. On the AP exam, this is the part students most often leave out. Use this template:
Assuming the true proportion of [population and response] is [p0p_0], there is a [pp-value] probability of getting a sample proportion of [p^\hat{p}] or [higher / lower / as far from p0p_0] just by chance in a random sample of [nn] [units].
"Higher" or "lower" matches the direction of HaH_a, and "as far from p0p_0" is for a two-sided test.

What small and large pp-values tell you

  • A small pp-value means the observed result would be unusual if H0H_0 were true. That gives evidence for the alternative hypothesis. The lower the pp-value, the more convincing the evidence for HaH_a.
  • A pp-value that isn't small means the observed result would not be unusual if H0H_0 were true. That is not convincing evidence for HaH_a. It is also not evidence that H0H_0 is true: the data are consistent with p0p_0, but they're also consistent with plenty of other values of pp.
How small is small? Topic 3.7 makes this formal by comparing the pp-value to a significance level α\alpha chosen in advance, often 0.050.05.

Example 3: Interpreting a pp-value (AP-style)

A city council member claims that more than half of the city's adults support a later start time for high schools. In a random sample of 200 adults from the city, 116 support it (p^=0.58\hat{p} = 0.58). For the test of H0 ⁣:p=0.50H_0\colon p = 0.50 versus Ha ⁣:p>0.50H_a\colon p > 0.50, where pp is the true proportion of all adults in the city who support a later start time, the pp-value is 0.01180.0118.
(a) Interpret the pp-value in context. (b) What does it tell you about the council member's claim? (c) Suppose instead that 106 of the 200 adults had supported it (p^=0.53\hat{p} = 0.53), giving a pp-value of 0.1980.198. What would that tell you?
(a) Assuming the true proportion of all adults in the city who support a later start time is 0.500.50, there is about a 0.01180.0118 probability of getting a sample proportion of 0.580.58 or higher in a random sample of 200 adults just by chance.
(b) That's small: a result this extreme would happen in only about 1 of every 85 random samples if support were really 50%. The sample gives convincing evidence that more than half of the city's adults support a later start time, which backs the council member's claim.
(c) A pp-value of 0.1980.198 is not small. About 1 in 5 random samples would show 53% support or more just by chance, even if exactly half the adults supported it. So the sample would not give convincing evidence that more than half support a later start. It also would not show that exactly half support it.

Common mistakes

  • Calling the pp-value the probability that H0H_0 is true. The pp-value assumes H0H_0 is true. It's the probability of data like yours (or more extreme), not the probability of a hypothesis.
  • Leaving out "assuming H0H_0 is true." An interpretation without that condition, in context, doesn't earn credit on the AP exam.
  • Shading the tail where the sample landed instead of the tail HaH_a points to. The alternative decides the direction (see Example 1).
  • Forgetting both tails for a two-sided test, or doubling a one-sided pp-value.
  • Treating a large pp-value as proof of H0H_0. It only means the data aren't convincing evidence against H0H_0.
  • Describing the probability of getting exactly p^\hat{p}. The pp-value includes every result as extreme as or more extreme than the one observed.

AP® is a registered trademark of the College Board, which is not affiliated with Dove's Library and was not involved in the production of, and does not endorse, this website.

Providing free, high-quality AP notes to help students succeed, earn college credit, and reach their educational goals, ensuring everyone has access to the resources they need.

© 2026 Standard Learning Group, Inc., which operates Dove's Library. All rights reserved.