Eighteen ways to misread a p-value
Greenland and colleagues listed 25 common misreadings of statistical tests. Work through the 18 about p-values, grouped by the mistake behind them, and leave with a reading that survives all of them.
What runs in CodeSplash
- Combine p-values (global test across studies) Verified in Python and R
- Two-sample t-test (Welch / Student, or z test) Verified in Python and R
You will be able to
- State what a p-value is a probability of, and what it assumes
- Replace common misreadings of a single p-value with accurate sentences
- Compare studies by their estimates, not by their p-values
Read first
Six statements
PredictPredict first
A test of "no difference" gives . How many of these are right?
- There's a 3% chance the null hypothesis is true.
- There's a 3% chance that chance alone produced this.
- The null hypothesis is false.
- If you reject it, there's a 3% chance you're wrong.
- The effect is important.
- A repeat of the study will probably be significant too.
Reveal
None of them. Greenland et al. (2016) list 25 such readings, and all six are on the list. Surveys find that most people who use p-values believe at least some of them.
What p is
ExploreChange the observed statistic, and watch the shaded area. That area is the p-value: the chance of a result at least this extreme, computed as if every assumption of the test were true. That includes the null hypothesis, random sampling or assignment, and no selection of which results you see.
BExplorable · The p-value as an area
What exactly is a p-value a probability of?
Picture the reference curve and where the statistic falls. Will p land below α?
Reference distribution
Used by the t and χ² references.
Alternative
If H₀ were true, a statistic at least as extreme as 1.70 would turn up 8.9% of the time: p = .089.
Commit your prediction above to see the result
Make your prediction to see the result.
So p measures how far the data sit from one whole model. It doesn't say which part of the model is off, and every misreading below forgets that.
It isn't about the hypothesis
Checkpointp assumes the hypothesis. It can't also be the probability of that hypothesis. These four are versions of one mistake.
Check yourself
Which sentence is right, for ?
Show the answer
Answer: c
The first, second and last all ask p to be a probability of a hypothesis, which needs a prior. Only the third reads it as what it is.
A cut-off isn't a verdict
CheckpointCrossing 0.05 changes a label. It doesn't change what the data say. A small p can come from a false null, from noise, or from another broken assumption. A large p can come from a true null, or from a study too small to tell.
Check yourself
A trial reports a risk ratio of 1.4, 95% CI 0.8 to 2.4, . What did it find?
Show the answer
Answer: c
An effect was observed: it's the estimate. The interval shows that the data can't separate many hypotheses, including "none" and "a lot".
Significance isn't size
CheckpointWith a big enough sample, tiny effects are significant. With a small one, big effects aren't. Significance also isn't a property of the effect. It's a label on the result of one test, and the same effect can earn it in one study and miss it in another.
Check yourself
An app with 20 million users finds a conversion lift of 0.02 percentage points, . What can you say?
Show the answer
Answer: b
p reflects the sample size as much as the effect. Compare the interval with what would matter to the business.
Say exactly what you got
CheckpointThese three are about how p gets written down. Report the exact value, because and say quite different things, and so do and . CodeSplash prints exact values and uses an inequality only below .
Check yourself
A colleague has written "" for a test whose exact result was , and for another whose exact result was . What is lost?
Show the answer
Answer: b
The cut-off is a convention, and the data don't stop at it. Report the exact value and let readers apply their own standard.
Comparing two studies
PredictPredict first
Two trials measure the same treatment, and both observe a mean difference of 3. Trial A has standard error 2, so . Trial B has standard error 1, so . How do they compare?
Reveal
They agree perfectly: the two estimates are identical, so a test of the difference between them has . Only their precision differs. The reverse also happens. Estimates of 3 (standard error 1) and 12 (standard error 4) have the same , and a test of their difference gives .
Adding up the evidence
PredictPredict first
Five independent studies of one question each get . None is significant. What do they say together?
Reveal
Together they point to an effect. Fisher's method gives on 10 degrees of freedom, so . Reading the same list of results as five failures gets it backwards. Combine the estimates where you can, and the p-values where you can't.
The run below uses Fisher's method on five real p-values.
Fisher (−2 Σ log p) combination of k = 5 tests: 24.86, p = .006
- Combined statistic
- 24.858
- p (global null)
- .006
- Tests combined
- 5
Plots
View data
| test | p |
|---|---|
| Trial A | 0.0100 |
| Trial B | 0.0400 |
| Trial C | 0.2000 |
| Trial D | 0.5000 |
| Trial E | 0.1000 |
View data
| p |
|---|
| 0.0100 |
| 0.0400 |
| 0.2000 |
| 0.5000 |
| 0.1000 |
View data
| chosen | method | combined p |
|---|---|---|
| chosen | Fisher (−2 Σ log p) | 0.0056 |
| Stouffer Z (weighted) | 0.0028 | |
| Tippett (minimum p) | 0.0490 | |
| Edgington (sum of p) | 0.0037 | |
| Lancaster (weighted χ²) | 0.0079 | |
| Wilkinson (r-th smallest p) | 0.0490 | |
| Simes | 0.0500 | |
| Brown (dependent Fisher) | 0.0056 | |
| Cauchy combination (ACAT) | 0.0359 | |
| Higher criticism | 0.0017 | |
| Mudholkar–George (logit) | 0.0035 |
Assumptions
- Valid p-values — All 5 p-values lie in (0, 1].
- Independent tests — This method assumes the tests are independent; with correlated tests use Brown, Simes or Cauchy.
Component tests
| Test | p |
|---|---|
| Trial A | 0.0100 |
| Trial B | 0.0400 |
| Trial E | 0.1000 |
| Trial C | 0.2000 |
| Trial D | 0.5000 |
Every method on the same p-values (sensitivity; the chosen one counts)
| Method | Statistic | Reference | p | |
|---|---|---|---|---|
| Fisher (−2 Σ log p) | 24.858 | χ²(10) | 0.0056 | chosen |
| Stouffer Z (weighted) | 2.773 | N(0, 1) | 0.0028 | |
| Tippett (minimum p) | 0.0100 | Beta(1, 5) | 0.0490 | |
| Edgington (sum of p) | 0.8500 | Irwin–Hall(5) | 0.0037 | |
| Lancaster (weighted χ²) | 15.656 | χ²(5) | 0.0079 | |
| Wilkinson (r-th smallest p) | 0.0100 | Beta(1, 5) | 0.0490 | |
| Simes | 0.0500 | Simes | 0.0500 | |
| Brown (dependent Fisher) | 24.858 | 1·χ²(10) | 0.0056 | |
| Cauchy combination (ACAT) | 8.838 | standard Cauchy | 0.0359 | |
| Higher criticism | 3.354 | Monte Carlo, 10000 null draws | 0.0017 | |
| Mudholkar–George (logit) | 2.902 | t(29) | 0.0035 |
- The method was fixed before the results: the other rows are a sensitivity check, not alternatives to pick from.
The exact R script · R R version 4.5.1 (2025-06-13)
# Combine p-values (global test across studies)
# Generated by CodeSplash Analytics 1.0.0 on 2026-11-09 · method meta.combine_p 1.1.0 · spec cce5975d0878ff0d
# Dataset: m1_pvalues (version 1)
# Runs on its own: outside the app, cs_publish() writes $CS_RESULT_PATH or prints the result JSON.
# %% Setup
library(codesplashr) # cs_meta_combine_p (twin of codesplash.stats.meta)
# %% Data
df <- as.data.frame(nanoparquet::read_parquet("tests/parity/fixtures/m1_pvalues.parquet", col_select = c("p", "test")))
n_input <- nrow(df)
df[["test"]] <- factor(df[["test"]], levels = c("Trial A", "Trial B", "Trial C", "Trial D", "Trial E")) # stored level order
df <- df[stats::complete.cases(df[c("p", "test")]), , drop = FALSE] # listwise deletion
df[] <- lapply(df, function(x) if (is.factor(x)) droplevels(x) else x)
n_dropped <- n_input - nrow(df)
warnings <- list()
if (n_dropped > 0) {
warnings <- c(warnings, cs_warning("CS_W_ROWS_DROPPED", dropped = n_dropped, total = n_input))
}
if (n_input > 0 && nrow(df) == 0) cs_error("CS_E_NO_ROWS")
cs_check_finite_columns(df, c("p", "test")) # infinite values stop the run (registry/errors.yaml)
# %% Combine
p <- as.numeric(df[["p"]])
if (length(p) < 2) cs_error("CS_E_TOO_FEW_ROWS", what = "Combining p-values", min = 2, n = length(p))
n_bad <- sum(p <= 0 | p > 1)
if (n_bad > 0) cs_error("CS_E_INVALID_VALUES", column = "p", requirement = "a p-value in (0, 1]", count = n_bad)
labels <- as.character(df[["test"]])
weights <- NULL
method <- "fisher" # chosen before looking at the results
res <- cs_meta_combine_p(p, method, weights, r = 1, rho = 0, sides = "two",
hc_alpha0 = 0.5, b = 10000, seed = 42)
chosen <- res$chosen
k <- length(p)
by <- setNames(res$all, cs_meta_combine_methods)
# %% Assumptions
assumptions <- list(
list(key = "valid", label = "Valid p-values", status = if (all(p > 0 & p <= 1)) "pass" else "fail",
detail = paste0(sprintf("All %d p-values lie in (0, 1].", k),
if (any(p == 1)) " Some equal 1: methods that need an open interval move them inside by 1e-12." else "")),
list(key = "independence", label = "Independent tests", status = "info",
detail = if (method == "brown") "Brown's scaled χ² accounts for the stated correlation."
else if (method == "cauchy") "Valid under arbitrary dependence for small combined p."
else if (method == "simes") "Valid under positive dependence."
else "This method assumes the tests are independent; with correlated tests use Brown, Simes or Cauchy.")
)
# %% Result
rows <- lapply(res$all, function(r) list(method = r$label, statistic = r$statistic, reference = r$reference, p = r$p,
chosen = if (r$method == method) "chosen" else ""))
ord <- order(p, method = "radix")
values <- list(k = k, statistic = chosen$statistic, p = chosen$p, df = chosen$df, method_label = chosen$label,
min_p = min(p), n_below_05 = sum(p < 0.05))
for (m in cs_meta_combine_methods) values[[paste0("p_", m)]] <- by[[m]]$p
cs_publish(list(
method = "meta.combine_p",
methodVersion = "1.1.0",
title = paste0("Combined test: ", chosen$label),
engine = cs_engine_info("stats", "nanoparquet"),
n = k,
summary = sprintf("%s combination of %d p-values: statistic %s against %s, %s.", chosen$label, k, format(signif(chosen$statistic, 4)),
chosen$reference, cs_fmt_p(chosen$p)),
apa = sprintf("%s combination of k = %d tests: %s, %s", chosen$label, k, cs_fmt_num(chosen$statistic), cs_fmt_p(chosen$p)),
statistics = list(
list(key = "statistic", label = "Combined statistic", value = chosen$statistic),
list(key = "p", label = "p (global null)", value = chosen$p, format = "p"),
list(key = "k", label = "Tests combined", value = k, format = "integer")
),
tables = list(
list(key = "components", title = "Component tests", columns = list(list(key = "label", label = "Test", type = "string"), list(key = "p", label = "p", type = "number")),
rows = lapply(ord, function(i) list(label = labels[i], p = p[i]))),
list(key = "methods", title = "Every method on the same p-values (sensitivity; the chosen one counts)",
columns = list(list(key = "method", label = "Method", type = "string"), list(key = "statistic", label = "Statistic", type = "number"),
list(key = "reference", label = "Reference", type = "string"), list(key = "p", label = "p", type = "number"),
list(key = "chosen", label = "", type = "string")),
rows = rows)
),
assumptions = assumptions,
warnings = warnings,
notes = list("The method was fixed before the results: the other rows are a sensitivity check, not alternatives to pick from."),
charts = list(
cs_chart("pvalue_qq", "pvalue-qq", "Observed p-values against the uniform null", list(p = cs_col("p", p), label = cs_col("test", labels))),
cs_chart("pvalue_hist", "pvalue-histogram", "Distribution of the component p-values", list(p = cs_col("p", p)), controls = list(bins = 10)),
cs_chart("methods", "combine-compare", "Every method on the same p-values (sensitivity)",
list(method = cs_col("method", vapply(rows, function(r) r$method, "")), p = cs_col("combined p", vapply(rows, function(r) r$p, 0)),
chosen = cs_col("chosen", vapply(rows, function(r) r$chosen, ""))))
),
values = values
))
Fisher (−2 Σ log p) combination of k = 5 tests: 24.86, p = .006
- Combined statistic
- 24.858
- p (global null)
- .006
- Tests combined
- 5
To keep this page light, the plots are shown once, under the R tab.
Assumptions
- Valid p-values — All 5 p-values lie in (0, 1].
- Independent tests — This method assumes the tests are independent; with correlated tests use Brown, Simes or Cauchy.
Component tests
| Test | p |
|---|---|
| Trial A | 0.0100 |
| Trial B | 0.0400 |
| Trial E | 0.1000 |
| Trial C | 0.2000 |
| Trial D | 0.5000 |
Every method on the same p-values (sensitivity; the chosen one counts)
| Method | Statistic | Reference | p | |
|---|---|---|---|---|
| Fisher (−2 Σ log p) | 24.858 | χ²(10) | 0.0056 | chosen |
| Stouffer Z (weighted) | 2.773 | N(0, 1) | 0.0028 | |
| Tippett (minimum p) | 0.0100 | Beta(1, 5) | 0.0490 | |
| Edgington (sum of p) | 0.8500 | Irwin–Hall(5) | 0.0037 | |
| Lancaster (weighted χ²) | 15.656 | χ²(5) | 0.0079 | |
| Wilkinson (r-th smallest p) | 0.0100 | Beta(1, 5) | 0.0490 | |
| Simes | 0.0500 | Simes | 0.0500 | |
| Brown (dependent Fisher) | 24.858 | 1·χ²(10) | 0.0056 | |
| Cauchy combination (ACAT) | 8.838 | standard Cauchy | 0.0359 | |
| Higher criticism | 3.354 | Monte Carlo, 10000 null draws | 0.0017 | |
| Mudholkar–George (logit) | 2.902 | t(29) | 0.0035 |
- The method was fixed before the results: the other rows are a sensitivity check, not alternatives to pick from.
The exact Python script · Python Python 3.13.5 · scipy 1.18.1 · pandas 3.1.0
# Combine p-values (global test across studies)
# Generated by CodeSplash Analytics 1.0.0 on 2026-11-09 · method meta.combine_p 1.1.0 · spec cce5975d0878ff0d
# Dataset: m1_pvalues (version 1)
# Runs on its own: outside the app, cs.publish() writes $CS_RESULT_PATH or prints the result JSON.
# %% Setup
import numpy as np
import pandas as pd
import codesplash as cs
from codesplash.stats import meta # combination tests (twins of codesplashr::cs_meta_*)
# %% Data
df = pd.read_parquet("tests/parity/fixtures/m1_pvalues.parquet", columns=["p", "test"])
n_input = len(df)
df["test"] = pd.Categorical(df["test"], categories=["Trial A", "Trial B", "Trial C", "Trial D", "Trial E"]) # stored level order
df = df.dropna(subset=["p", "test"]) # listwise deletion over the analysis columns
df["test"] = df["test"].cat.remove_unused_categories()
n_dropped = n_input - len(df)
warnings = []
if n_dropped:
warnings.append(cs.cs_warning("CS_W_ROWS_DROPPED", dropped=n_dropped, total=n_input))
if n_input and not len(df):
cs.cs_error("CS_E_NO_ROWS")
cs.check_finite_columns(df, ["p", "test"]) # infinite values stop the run (registry/errors.yaml)
# %% Combine
p = df["p"].to_numpy(dtype=float)
if len(p) < 2:
cs.cs_error("CS_E_TOO_FEW_ROWS", what="Combining p-values", min=2, n=len(p))
n_bad = int(np.sum((p <= 0) | (p > 1)))
if n_bad:
cs.cs_error("CS_E_INVALID_VALUES", column="p", requirement="a p-value in (0, 1]", count=n_bad)
labels = df["test"].astype(str).tolist()
weights = None
method = "fisher" # chosen before looking at the results
res = meta.combine_p(p, method, weights, r=1, rho=0, sides="two",
hc_alpha0=0.5, b=10000, seed=42)
chosen = res["chosen"]
k = len(p)
by = {r["method"]: r for r in res["all"]}
# %% Assumptions
assumptions = [
{"key": "valid", "label": "Valid p-values", "status": "pass" if np.all((p > 0) & (p <= 1)) else "fail",
"detail": f"All {k} p-values lie in (0, 1]." + (" Some equal 1: methods that need an open interval move them inside by 1e-12." if np.any(p == 1) else "")},
{"key": "independence", "label": "Independent tests", "status": "info",
"detail": ("Brown's scaled χ² accounts for the stated correlation." if method == "brown" else
"Valid under arbitrary dependence for small combined p." if method == "cauchy" else
"Valid under positive dependence." if method == "simes" else
"This method assumes the tests are independent; with correlated tests use Brown, Simes or Cauchy.")},
]
# %% Result
rows = [{"method": r["label"], "statistic": r["statistic"], "reference": r["reference"], "p": r["p"], "chosen": "chosen" if r["method"] == method else ""} for r in res["all"]]
order = np.argsort(p, kind="stable")
cs.publish({
"method": "meta.combine_p",
"methodVersion": "1.1.0",
"title": f"Combined test: {chosen['label']}",
"engine": cs.engine_info("numpy", "scipy"),
"n": k,
"summary": f"{chosen['label']} combination of {k} p-values: statistic {chosen['statistic']:.4g} against {chosen['reference']}, {cs.fmt_p(chosen['p'])}.",
"apa": f"{chosen['label']} combination of k = {k} tests: {cs.fmt_num(chosen['statistic'])}, {cs.fmt_p(chosen['p'])}",
"statistics": [
{"key": "statistic", "label": "Combined statistic", "value": chosen["statistic"]},
{"key": "p", "label": "p (global null)", "value": chosen["p"], "format": "p"},
{"key": "k", "label": "Tests combined", "value": k, "format": "integer"},
],
"tables": [
{"key": "components", "title": "Component tests", "columns": [{"key": "label", "label": "Test", "type": "string"}, {"key": "p", "label": "p", "type": "number"}],
"rows": [{"label": labels[i], "p": float(p[i])} for i in order]},
{"key": "methods", "title": "Every method on the same p-values (sensitivity; the chosen one counts)",
"columns": [{"key": "method", "label": "Method", "type": "string"}, {"key": "statistic", "label": "Statistic", "type": "number"},
{"key": "reference", "label": "Reference", "type": "string"}, {"key": "p", "label": "p", "type": "number"},
{"key": "chosen", "label": "", "type": "string"}],
"rows": rows},
],
"assumptions": assumptions,
"warnings": warnings,
"notes": ["The method was fixed before the results: the other rows are a sensitivity check, not alternatives to pick from."],
"charts": [
cs.chart("pvalue_qq", "pvalue-qq", "Observed p-values against the uniform null",
{"p": cs.col("p", [float(v) for v in p]), "label": cs.col("test", labels)}),
cs.chart("pvalue_hist", "pvalue-histogram", "Distribution of the component p-values",
{"p": cs.col("p", [float(v) for v in p])}, controls={"bins": 10}),
cs.chart("methods", "combine-compare", "Every method on the same p-values (sensitivity)",
{"method": cs.col("method", [r["method"] for r in rows]), "p": cs.col("combined p", [float(r["p"]) for r in rows]),
"chosen": cs.col("chosen", [r["chosen"] for r in rows])}),
],
"values": {
"k": k, "statistic": float(chosen["statistic"]), "p": float(chosen["p"]), "df": float(chosen["df"]),
"method_label": chosen["label"], "min_p": float(p.min()), "n_below_05": int(np.sum(p < 0.05)),
**{f"p_{m}": float(by[m]["p"]) for m in meta.COMBINE_METHODS},
},
})
from scipy import stats
print(stats.combine_pvalues([0.10] * 5, method="fisher"))stat <- -2 * sum(log(rep(0.10, 5)))
pchisq(stat, df = 2 * 5, lower.tail = FALSE)The next study
ExploreReplicate the same experiment many times, and watch how far p moves when nothing about the design changes. Then lower the true effect, and raise .
BExplorable · The dance of the p-values
If you ran the same experiment again, how different could the p-value be?
What share of these replications will reach p < .05?
Each dot is one exact replication of the same study: same truth, same n. Colored dots reached p ≤ .05.
Commit your prediction above to see the result
Make your prediction to see the result.
With a modest true effect, p jumps around from one replication to the next. So one small p tells you little about the next study's p.
One last check
CheckpointCheck yourself · choose all that apply
Which of these are accurate? Choose all that apply.
Show the answer
Answer: a, b, e
The last one is why a cut-off is a poor summary. The two false ones are misreadings from this lesson.
Use the reading
In the appOpen a result card and write what its p-value means in one sentence, using "if", then "at least this extreme". Then choose Understand this result… in the Learn menu, and compare your sentence with the shaded area under the curve.
Recap
Recap- p is the chance of a result at least this extreme, if the whole model were true. It isn't the probability of any hypothesis.
- Crossing a cut-off changes a label, not the evidence. Significance says nothing about size or importance.
- Report the exact p with the estimate and its interval, and compare studies by their estimates.
Concepts in this lesson