What a p-value measures

The question
Commit to five interpretations before opening the experiments.
- 1 SeeJudge five claims; then inspect experiments.
- 2 TryTest a discrete null model.
- 3 ProveBuild the calibration argument.
- 4 ApplyCalculate and interpret five examples.
Before you start · 3 quick checks on tails, standard errors, and conditioning
Two ideas before you start
2 ideasMeasure distance in standard errors
A normal density and a dashed line at the selected standardized measurement.
Switch the observed mean. The dashed marker locates the measurement on the null model’s scale.
Exact definition
A test statistic summarizes the sample for a specified comparison. For independent normal measurements with known population SD \(\sigma\gt0\), fixed sample size n, and null mean \(\mu_0\), let \(s=\sigma/\sqrt n\) and \(Z=(\bar X-\mu_0)/s\). Under the null, Z is standard normal. Lowercase z denotes its observed value. The hypothesis tests lesson uses this statistic to define rejection regions.
A model describes repeated measurements
The sampling density of a normal sample mean under two possible sample sizes.
Change the planned sample size while keeping the population fixed. The curve describes the mean from a new sample.
Exact definition
A sampling distribution is the distribution of a statistic across fresh samples from the specified model. In this card the measurements are independent normal variables. The variance of the mean is \(\sigma^2/n\). Changing n changes the experiment; it does not create new observations from the sample already collected.
The plan behind the activities
The normal experiments use a simple null: all distributional parameters under the null are specified. Sample size, statistic, direction of the alternative, and analysis rule are fixed before sampling. There is one test per experiment. Normality and a known SD make the null distribution exact. An estimated SD or a different sampling design needs its own calibration.
The repeated-null experiment and the mixture experiment answer separate questions. In the first, every experiment has a true null. In the second, each experiment is selected from a population with a stated proportion of true effects and stated detection probabilities. Those proportions are teaching assumptions, not estimates from the observed p-value.
Judge five statements
- Choose true or false for every statement, then check the whole set.
- Read the feedback beside your choices, then compare the two experiments.
- Start over clears your answers and hides all results from this stage.
The claims below use the fixed testing plans and normal model described on Start. A statement asserting that something follows from a p-value alone must hold without adding a prior probability for the null.
First fix the reference model
A p-value is the probability, calculated under the null model, of a statistic at least as extreme as the observed statistic. “Extreme” must be specified by the test. The calculation holds the null model fixed and asks about possible data. It does not assign probabilities to hypotheses. It includes outcomes beyond the observed one; for a continuous statistic, any exact point has probability zero.
For the preselected upper-tail normal test, \(p=1-\Phi(z)\). For the preselected two-sided test, \(p=2[1-\Phi(|z|)]\). Here \(\Phi\) is the standard normal CDF. Two-sided means that departures in either direction count. An observed negative z can give a large upper-tail p-value while giving a small two-sided p-value.
Repeat only true nulls
Under this continuous null, p-values are uniform across the unit interval. Small values occur even though the null is true in every repetition. A chosen significance level α is a rule for future repetitions: reject when p ≤ α. It is a long-run error probability under the null, not a posterior probability after a particular sample. The proof in stage 3 explains the uniformity without relying on the simulation.
Now mix nulls and effects
| Truth | Significant | Not significant |
|---|
Call the real-effect fraction π, the false-positive rate α, and the power w, meaning the probability of significance given a real effect. Among significant experiments, the null share is
\[\begin{aligned} &P(H_0\mid p\le\alpha)\\ &=\frac{(1-\pi)\alpha}{(1-\pi)\alpha+\pi w}.\end{aligned}\]This is a probability conditional on crossing a threshold, not on observing one exact p-value. The latter would need the p-value distribution under the alternative as well. The table uses expected counts; actual counts vary. The Bayes and base rates lesson derives the same conditioning operation for a different setting.
What changes for a discrete statistic?
- Predict whether a fair-die test can produce a small p-value.
- After the reveal, choose an integer rejection cutoff to meet each error budget.
| Observed face | Outcomes at least as large | p-value |
|---|
The observed outcome itself belongs in the tail. Leaving it out would assign a zero p-value to the largest face even though that face has positive null probability. Discreteness creates jumps in the CDF, so an ordinary nonrandomized tail p-value is generally conservative: its probability of being at or below a given level is at most that level, and it can be strictly smaller.
Use what you found above
A cutoff c rejects for faces at least c. The last slider position rejects nothing. Choose the smallest allowed cutoff that respects the current budget. That includes the largest possible upper-tail set within the budget. These goals do not change the die or choose a rule after seeing its face; they compare plans before rolling.
Randomization can fill a gap between attainable rejection rates, as shown in the hypothesis tests lesson. This activity deliberately uses a deterministic rule. The conservative result here does not mean that arbitrary reported p-values are valid: selecting a favorable test after observing data can break calibration.
Why the continuous null is calibrated
Refresher: an inverse CDF
A CDF F(t) gives the probability up to t. If F is continuous and strictly increasing on the real line, with limits zero and one, then for every probability v strictly between zero and one there is a unique t with F(t)=v. Write that t as \(F^{-1}(v)\). An increasing function preserves the order of its inputs; its inverse does too. This inverse notation names a quantile, not a reciprocal.
Under a simple null, let T have a continuous, strictly increasing CDF F on the real line. The statistic and upper-tail direction are chosen before sampling. Define the random p-value \(P=1-F(T)\). Then \(P_0(P\le u)=u\) for every \(0\le u\le1\). The subscript zero denotes probability under the null. Capital P is a random variable here; a lowercase p is its observed value.
For the proof, fix \(0\lt u\lt1\) and put \(q=F^{-1}(1-u)\). Endpoints are handled afterward. The strict interior condition matters for the incorrect options.
Choose the quantile identity, identify the tail event, and evaluate its probability. Each step concerns the same fixed null model. No prior probability for that null enters the argument.
Continuity makes the probability at the boundary zero, so including equality does not change the tail area. At the endpoints, P lies strictly between zero and one almost surely: the CDF of a finite T under these assumptions is strictly between those limits. Thus the endpoint probabilities match the claimed rule too.
The same calibration holds for the two-sided standard normal p-value. For an interior u, set \(c=\Phi^{-1}(1-u/2)\). The event is \(|Z|\ge c\); symmetry gives two tails each of probability u/2. This uses the normal symmetry and the absolute-value definition of extremeness. A generic asymmetric distribution needs its own two-sided ordering.
Calculate, then state what was conditioned on
Enter a decimal without units or a percent sign. Each problem gives its accepted error and a worked solution. A probability is entered on the scale from zero to one. Use the exact model internally and round only the reported answer.
Report more than a threshold decision
A small p-value indicates that the observed degree of extremeness is uncommon under the stated null model. It does not measure the size or practical importance of an effect. A large sample can make a small departure precise; a noisy small sample can leave a substantial departure uncertain. Report the estimated effect and its uncertainty alongside the test and sampling assumptions.
Failure to reject is not proof of equality. It can reflect limited power against effects that matter. The confidence intervals lesson supplies a way to display the range of mean values compatible with a matching normal test. For a known-SD two-sided normal test using p < α, rejection is equivalent to the null mean lying outside the closed central interval of coverage 1 − α. At p = α the null mean is on its boundary; a rule using p ≤ α includes that boundary in rejection.
The calibration proved here applies to a fixed testing plan. Repeatedly examining results and stopping at a favorable p-value changes the procedure. So does choosing the direction after seeing the sign, or reporting only the smallest value from many analyses. Such procedures require their own error calculation; the single-test formula alone does not supply it.
Further reading
- G. Casella and R. L. Berger, Statistical Inference, chapter 8, “Hypothesis Testing.”