Statistical significance and the p-value, honestly
A p-value is a probability, and a result called “statistically significant” is one whose p-value came out below a cutoff that was fixed in advance. Both ideas are narrower than their everyday sense. This article sets out what a p-value is the probability of, three things it is not, where the usual cutoffs come from, and what sample size and repeated testing do to the word “significant”. The mechanics of a test (null and alternative hypotheses, the five steps, the choice between one tail and two, the z-test and t-test) are in Hypothesis testing, properly understood and are taken as read here. Conditional probability and Bayes’ formula are in Bayes’ theorem, and how to actually use it. The sources are the OpenStax textbooks Introductory Statistics 2e and, for business, Introductory Business Statistics 2e; Introduction to Probability by Grinstead and Snell; the statistics chapter of the Particle Data Group’s Particle Physics Booklet, and David Tong’s lecture notes Particle Physics.
The event and the condition in a p-value
An analyst running a test starts from an assumption, the null hypothesis H₀, concerning some property of the population, and then gathers sample data randomly. The question is then how probable a result at least as far from what H₀ predicts as the sample’s would be if H₀ held. In Introductory Statistics 2e the p-value is defined in these terms [1]. Its definition has a condition, that H₀ be true, and an event: another randomly selected sample giving results as extreme as those of the given sample, or more extreme. That event’s probability, computed under that condition, is the p-value [1]. In the PDG statistics chapter the same idea is put in general notation. Its example takes a statistic t(x) whose large values “correspond to poor agreement with the hypothesis”; then p = P(t ≥ t_obs | H₀), where t_obs is the value of t computed from the observed data [16]. In that chapter a p-value reflects the “level of agreement” between the hypothesis and the data [16].
Three features of this definition matter for everything that follows. They are our reading of the two definitions just given.
1. The probability is conditional on H₀. Every probability in the calculation is computed on the assumption that H₀ is true. This is visible in the OpenStax interpretation of a worked result. Jeffrey’s earlier mean was 16.43 seconds, and his father timed 15 of Jeffrey’s swims with new goggles, and the p-value came out at 0.0187. In the book’s reading of that number, the first words are the clause “If H0 is true”, and only then comes the statement that the probability of his mean coming out at 16 seconds or below is 0.0187 [4]. Without the clause, the number has no meaning (our assessment).
2. The probability covers a tail, not only the observed result. To get it, one adds to the probability of the observed outcome the probabilities of all outcomes that disagree with H₀ at least as strongly. The whole calculation is worked in Grinstead and Snell’s Example 5.6, which illustrates Fisher’s Exact Test [13]. Fifty people are classified by gender and party: of 28 women, 24 are Democrats, and the 50 include 32 Democrats in all. H₀ here is independence of the two traits. If H₀ holds, about 28 × 32/50 = 17.92 of the women, so roughly 18, would be expected to be Democrats [13]. To decide whether 24 is far from 18, the authors list the possible tables lying no less far from the expected table than the observed one (24, 25, 26, 27 or 28 female Democrats, the margins held fixed), and add their probabilities under independence, each a hypergeometric probability. The total is .000395, and they conclude that the hypothesis of independence should be rejected [13]. (Our check: the sum is 0.000395; the observed table alone contributes 0.000363 of it.) In their general description of the method, before the data, they state its logic with a hedge: when this probability is small, a difference between the collected and expected data sets that is “due entirely to chance” is unlikely [13].
3. The p-value is itself a random quantity. It is computed from a sample, and a different sample usually has a different p-value. The authors of Introductory Business Statistics 2e make the point directly: “two researchers drawing randomly from the same population may find two different P-values from their samples”, because each p-value is the tail probability beyond that researcher’s own sample mean, computed with H₀ assumed correct [9]. A p-value of 0.03 in one study is a statistic, like a sample mean, and not a fixed property of the effect being studied (our assessment).
Significance means a p-value below a cutoff fixed in advance
Under the decision rule in Introductory Statistics 2e, the analyst compares the p-value with a preset α, also called the significance level, where α = P(Type I error) and a Type I error is the rejection of a true H₀ [2]. If α > p-value, the analyst rejects H₀, and in the book’s word the results are significant; if α ≤ p-value, the analyst does not reject H₀, and the results are not significant [2]. The statistician picks α before collecting the sample data, and when no level is given, the authors treat α = 0.05 as a common standard [3].
In this technical sense, then, a significant result is one whose p-value fell below the chosen α, and nothing more. Nothing follows from the label about whether the effect is large, useful or important (our assessment; the later sections give the arithmetic).
In the PDG chapter, hypothesis tests and significance tests are treated separately [16]. In a frequentist hypothesis test, the analyst specifies a critical region of possible data, chosen so that the probability of landing in it under H₀ is at most a given probability α (the “size” of the test); H₀ is rejected if the data fall in that region. There is more than one possible critical region, and the choice is generally made with reference to an alternative hypothesis H₁. In the same section the Neyman–Pearson lemma is stated: for the test to have its greatest power against H₁, the critical region should be chosen so that λ(x), the likelihood ratio of H₁ to H₀ at x, is at least a given constant c_α at every data value x inside it and below c_α everywhere outside it, c_α being fixed by the size α; and H₀ and H₁ “must not contain undetermined parameters” [16]. A frequentist significance test instead yields a p-value, and as noted above the p-value reflects the “level of agreement” between H₀ and the data, while goodness-of-fit testing needs no explicit alternative hypothesis to quantify the agreement [16]. In the rule of rejecting when p < α, the two are joined: α is the cutoff for the decision, and p is the value compared with it (our summary).
Who chooses α
The cutoff is a choice, not a fact about the world. In Introductory Business Statistics 2e, α is for the analyst to decide [9], and “the level of significance is a policy decision and should be based upon the risk of making a Type I error” [10]. For businesses, its authors give 80, 90, 95, 98 or 99 percent as typical confidence levels [10], which correspond to α = 0.20 (80 percent), 0.10 (90), 0.05 (95), 0.02 (98) and 0.01 (99) (our check: α = 1 − confidence level). Grinstead and Snell work an example of a drug test with a 5 percent limit on each kind of error, and note that the drug company “may not be happy with having as much as a 5 percent chance of an error” and might insist on 1 percent, which would mean more trials [12].
The standard that Tong describes for particle physics is far stricter (our comparison, from the figures below). In his notes, discrepancies between measurement and expectation are given in “sigma”, and he says that one set of results, at the time of his notes 3.1 sigma from the Standard Model’s expectations, fell somewhat short of “the 5 sigma gold standard necessary to claim a discovery” [19]. In Table 40.1 of the PDG chapter, sigma is converted into probability for a Gaussian measurement: the area in both tails outside ±δ of the mean is listed, and according to the PDG text the values for a one-sided limit are half those in the table [18].
| δ | area in both tails (PDG Table 40.1) | one tail (half; our check) |
|---|---|---|
| 1σ | 0.3173 | 0.159 |
| 1.96σ | 0.05 | 0.025 |
| 2σ | 4.55 × 10⁻² | 0.0228 |
| 3σ | 2.7 × 10⁻³ | 0.00135 |
| 5σ | 5.7 × 10⁻⁷ | 2.9 × 10⁻⁷ |
(Our check: the tail areas of the standard normal curve, computed independently, agree with the table to the digits printed.) The common α = 0.05 corresponds to 1.96σ in a two-tailed test. A one-tailed 5σ threshold is a probability of about 1 in 3.5 million (our check: 1/(2.87 × 10⁻⁷) ≈ 3.5 × 10⁶). The passage read for this article does not say whether the 5 sigma standard is meant as one tail or two, so we give both.
The same word, “significant”, is therefore used for very different strengths of evidence in different fields, according to the cutoff each has adopted (our assessment).
Misreading 1: p as the probability that H₀ is true
This misreading reverses a conditional probability. A p-value is a probability of data (results at least this extreme) given a hypothesis (H₀). The probability that H₀ is true given the data is a different conditional probability, and the two can be far apart. The argument in this section is ours; the cancer-test arithmetic is the source’s.
The size of the gap is clear in Grinstead and Snell’s cancer-test example [14]. The prior is P(cancer) = .001, one woman in 1000. A positive result comes in 99 percent of cases with the cancer and in 5 percent of cases without it: P(+ | cancer) = .99 and P(+ | not cancer) = .05. After a positive test, the probability of cancer has gone up only from .001 to .019, and P(not cancer | +) = .981: 98.1 percent of positive results are false positives [14]. Over half of the second-year medical students in one group who were asked this question incorrectly guessed a probability above .5 [14].
Now read the same numbers as a body of research (our mapping). Let cancer stand for the effect is real and not cancer for H₀ is true, and let a positive result stand for a rejection at p < 0.05. Then P(rejection | H₀ true) = .05, which is α; P(rejection | effect real) = .99, the power; and real effects make up 1 in 1000 of the hypotheses tested. By Bayes’ formula, P(H₀ true | rejected) = .981, exactly the source’s figure. With the same α and power but a 1 in 2 chance that the effect is real, by the same formula P(effect real | rejected) = 0.952 (our check: 0.5 × 0.99 / (0.5 × 0.99 + 0.5 × 0.05)). With a 1 in 10 chance and a power of 0.8, the result is 0.64 (our check: 0.08 / (0.08 + 0.045)). One and the same cutoff, p < 0.05, can thus go with almost any probability that H₀ is true, depending on how plausible the effect was before the data came in.
That prior plausibility is not an input to a p-value (our reading of the formula for p given above). The PDG chapter has a separate section, Bayes factors: in Bayesian statistics a hypothesis could be rejected when its posterior probability given the data is sufficiently small, and a quantity defined there would equal the ratio of the posterior probabilities of two models “if the overall prior probabilities for the two models were equal” [17]. The frequentist p-value is computed under H₀ alone [16]. Grinstead and Snell draw the general lesson before their cancer example: “one has to be careful when the prior probabilities are small” [14].
Misreading 2: p as proof either way
The authors of Introductory Statistics 2e tell the reader never to state that a claim has been proven true or false: since hypothesis tests rest on the laws of probability, “we can talk only in terms of non-absolute certainties” [5]. Both directions need saying.
A small p-value does not prove H₀ false (our application of that rule). Rare outcomes happen; a p-value of 0.0187 means that, when H₀ is true, an outcome at least this extreme has a probability of 0.0187 (1.87%) [4], not that it cannot occur.
A large p-value does not prove H₀ true (our application of the same rule). When the analyst does not reject H₀, “it does not mean that you should believe that H0 is true”; the sample has simply failed to give enough evidence to cast serious doubt on it [2]. The business text calls the null the status quo, adding that “it takes high probability to overthrow the status quo”; that bias toward the null, the authors say, gives rise to the statement “tyranny of the status quo” in discussions of the scientific method and hypothesis testing [9].
The problem is worse when power is low. In the OpenStax chapter review: “If the power is low, the null hypothesis might not be rejected when it should be.” [5]. A researcher whose study is too small to detect an effect of the size that matters will usually get a result that is not significant, whether or not the effect exists, so such a result is weak evidence that the effect is absent (our assessment).
Misreading 3: p as the size of an effect
In the historical note to the swimming example in Introductory Statistics 2e, z = (x̄ − μ)/(σ/√n) is the statistic used when σ is known, where x̄ is the sample mean, μ the mean under H₀ and n the sample size [4]. For Jeffrey, x̄ = 16, μ = 16.43, σ = 0.8 and n = 15, so z = −2.08, which gives a p-value of 0.0187 [4]. Here n appears in the denominator, under a square root. Holding the improvement fixed and changing only n, we get the following (all values are our check, computed with the same formula and the normal curve):
| improvement in mean time | swims timed (n) | z | p-value (left tail) |
|---|---|---|---|
| 0.43 s | 4 | −1.075 | 0.141 |
| 0.43 s | 15 | −2.08 | 0.0187 |
| 0.43 s | 100 | −5.38 | about 4 × 10⁻⁸ |
| 0.05 s | 15 | −0.24 | 0.404 |
| 0.05 s | 1000 | −1.98 | 0.024 |
The same improvement of 0.43 seconds is “not significant” with 4 swims and overwhelming with 100. An improvement less than an eighth as large, 0.05 seconds, is “significant” at α = 0.05 once 1000 swims are timed. In a p-value the size of an effect and the amount of data are combined, and from the p-value alone the two cannot be separated (our assessment).
The quantity that does measure size is an effect size. For the difference between two means, the authors of Introductory Statistics 2e present Cohen’s d = (x̄₁ − x̄₂)/s_pooled, where s_pooled = √[((n₁ − 1)s₁² + (n₂ − 1)s₂²)/(n₁ + n₂ − 2)] is the pooled standard deviation [7]. By Cohen’s standards, d = 0.2 is small, 0.5 medium and 0.8 large [7]. In the book’s Example 10.4, with means 4 and 3.5, standard deviations 1.5 and 1, and samples of 11 and 9, d = 0.384, a small effect, between the small and medium benchmarks [7]. (Our check: s_pooled = √(30.5/18) = 1.302, and 0.5/1.302 = 0.384.) For the swimmer, the improvement of 0.43 seconds is about half of one standard deviation (our check: 0.43/0.8 = 0.54). The authors of the business text add their own caution: unlike the other hypothesis tests in the book, Cohen’s d gives no comparable level of confidence about how big the effect is, and “The sizes of the effects are simply indicative.” [11].
Power: what a p-value does not report
Choosing α sets the rate of only one of the two errors. The other is the Type II error, not rejecting H₀ when it is false; β is its probability, and the test’s power is 1 − β. Ideally, the authors of Introductory Statistics 2e want “a high power that is as close to one as possible”, and they note that a bigger sample can raise it [6]. When the power is not high enough, they say, statisticians typically respond with a larger sample at the same α [5].
In Grinstead and Snell’s Example 3.11 the trade-off is worked with exact binomial numbers [12]. Ordinary aspirin “has been found effective against headaches 60 percent of the time”, and a drug firm says its new aspirin, which contains a special additive, is more effective. H₀ is p = .6 and the alternative is p > .6, p being the new aspirin’s probability of being effective. The drug goes to n people and a critical value m is chosen: H₀ is rejected when the number cured is m or more and, in the authors’ word, accepted when it is less. They introduce a function α(p) for the probability of rejecting H₀ and write it as a sum of binomial terms b(n, p, k) over k from m to n; we read that formula as the chance of rejecting H₀ when the cure probability is p (our reading), and they note that α(.6) is the Type I error probability. For the Type II error they fix an alternative value, p = .8, which they say is chosen arbitrarily, and set β(.8) = 1 − α(.8). With n = 100 and each error held under 5 percent, m can be any value from 69 to 73: 69 is the smallest m that keeps the Type I error under 5 percent, and 73 the largest that keeps the Type II error under 5 percent [12]. Our recomputation of the binomial sums agrees:
| m | α(.6), Type I | β(.8), Type II |
|---|---|---|
| 68 | 0.062 | 0.002 |
| 69 | 0.040 | 0.003 |
| 73 | 0.005 | 0.034 |
| 74 | 0.002 | 0.056 |
(Our check, exact binomial sums for n = 100.) The authors also explain the cost of an alternative close to the null value. If the alternative is set nearer .6, β is larger for a test population of fixed size, and a large test population is then needed to reject H₀ with a small β, an “expensive proposition” in their words [12].
p-values can be computed in the same set-up (our illustration): if 70 of the 100 people were cured, the p-value would be P(at least 70 cured | p = .6) = 0.0248; if 68 were cured, it would be 0.0615 (our check). A significance level is a statement about the procedure before the data are in; power is the chance of detecting a given real effect with that procedure; and a p-value belongs to one sample. All three are needed to read a result (our assessment).
Many tests: the chance of at least one false rejection
A test run at α = 0.05 on a true null hypothesis has a chance of a false rejection of no more than 5 percent: in the PDG chapter α is an upper limit on the probability of landing in the critical region, and for discrete data the requirement is P(x ∈ w | H₀) ≤ α [16]; in the aspirin test above, m = 69 gives 0.040 (our check). Over many tests the chance of at least one false rejection grows (our summary of the arithmetic below). In the chapter on analysis of variance in Introductory Statistics 2e, the authors call ANOVA preferable to a series of pairwise t-tests for more than two groups, because “performing multiple tests introduces the likelihood of making a Type 1 error” [8].
The arithmetic is short (our check). Suppose 20 independent tests are run, each with a chance of a false rejection of exactly 0.05, the upper limit at α = 0.05, and every null hypothesis is true. If events are mutually independent, the probability that all of them occur is found by multiplying their probabilities [15]; so P(no test rejects) = 0.95²⁰ = 0.358, and P(at least one “significant” result) = 1 − 0.358 = 0.642. The expected number of false rejections is 20 × 0.05 = 1. If any test’s chance is below 0.05, as in the discrete aspirin test above, these figures become limits: P(no test rejects) is at least 0.358, P(at least one “significant” result) is at most 0.642, and the expected number is at most 1. A report of one significant result out of twenty, with the other nineteen left unmentioned, is the number expected when every test’s chance is exactly 0.05 and every null hypothesis is true.
Tong’s notes on particle physics give a related case, though he does not discuss many tests (the link is ours). Of the anomalies he has just described, he writes that they may “be due to random fluctuations and will disappear as the data improves”; disagreements of this kind between theory and experiment have been present at every point in history, and since the Standard Model was established, “they have nearly all evaporated upon closer inspection” [19]. Our assessment: a threshold as strict as 5 sigma makes it far less likely that a chance discrepancy of this kind is announced as a discovery (see the table above).
Reading a p-value honestly
The following is this article’s assessment, and each point rests on an argument above. A report containing only the words “statistically significant” leaves out most of what a reader needs. An honest report:
- gives the p-value itself, not only the verdict. The authors of Introductory Statistics 2e ask the analyst to place more confidence in a rejection at p = 0.001 than at p = 0.04, even with α = 0.05 for both [3]; from the verdict alone, a reader cannot see that difference;
- states what the p-value is conditional on: the null hypothesis, and the model behind the test statistic (for the OpenStax tests, assumptions such as a simple random sample and a normally distributed population, approximately so for the t-test, or a sufficiently large sample [1]);
- does not translate p into the probability that H₀ is true, since that needs a prior that is not part of the test (the cancer-test arithmetic above);
- gives an effect size and the sample size beside the p-value, since with enough data the p-value for a trivial but nonzero effect falls below any significance level (the swimming table above);
- reports the power, or the smallest effect the study could detect, before treating “not significant” as evidence of no effect;
- counts the tests, so that the reader can judge how many significant results would be expected if every null hypothesis were true.
Not covered here
The mechanics of z-tests, t-tests and tests of proportions, and the Type I and II error examples of the OpenStax chapter: see Hypothesis testing, properly understood. Confidence intervals, including Neyman’s construction of them (PDG §40.4.2.1); credible intervals (PDG §40.4.1), and Bayes factors beyond the passage on them reported above (PDG §40.3.4). The particular anomalies Tong discusses (the muon’s magnetic moment and the B-meson results), which are left out because their status depends on measurements later than his notes. The history of significance testing and the work of Fisher, Neyman and Pearson, beyond the naming of Fisher’s Exact Test and the Neyman–Pearson lemma; the pages read for this article give no history of them. Formal corrections for multiple testing, and any statement on p-values by a professional body: none appears in the corpus sources read.
Sources
- OpenStax, Introductory Statistics 2e. Formulas in this PDF are images; the z formula (p. 473) and the Cohen’s d formulas (p. 518) were read from rendered pages.
- OpenStax, Introductory Business Statistics 2e.
- Grinstead, C. M. and Snell, J. L., Introduction to Probability.
- Particle Data Group, Particle Physics Booklet (2024), extracted from the Review of Particle Physics; ch. 40 “Statistics”, revised March 2024 by G. Cowan.
-
Tong, D., Particle Physics (CERN Lectures), ch. 5.
-
[1]Introductory Statistics 2e, §9.3–9.4, p. 467 (Assumptions; Rare Events; Using the Sample to Test the Null Hypothesis: the definition). View at source ↗
- [2]Same, §9.4, p. 468 (Decision and Conclusion: α, the two decisions, significant and not significant, not rejecting H₀). View at source ↗
- [3]Same, §9.5, p. 469 (bulleted notes: α chosen before sampling; 0.05 when none is given; 0.001 against 0.04). View at source ↗
- [4]Same, §9.5, pp. 471–473 (Example 9.14, Jeffrey’s swims, p-value 0.0187 and its interpretation; Historical Note, z = −2.08 and the z formula, rendered). View at source ↗
- [5]Same, ch. 9 Chapter Review, pp. 486–487 (§9.1 item 4, no claim proven; §9.5, power and sample size). View at source ↗
- [6]Same, §9.2, p. 464 (α, β, power 1 − β, sample size). View at source ↗
- [7]Same, §10.1, pp. 518–519 (Cohen’s Standards for Small, Medium, and Large Effect Sizes; Table 10.7; formulas, rendered; Example 10.4, d = 0.384). View at source ↗
- [8]Same, §13.2, p. 680 (note on ANOVA against pairwise t-tests). View at source ↗
- [9]Introductory Business Statistics 2e, §9.3, pp. 377–378 (P-Value Approach; two researchers, two p-values; α as the analyst’s decision; the null as status quo). View at source ↗
- [10]Same, §9.3, p. 380 (A Systematic Approach for Testing a Hypothesis: confidence levels for businesses; significance level as policy). View at source ↗
- [11]Same, §10.2, p. 413 (Cohen’s d: no level of confidence; sizes indicative). View at source ↗
- [12]Grinstead and Snell, §3.2, pp. 101–102 (Hypothesis Testing, Example 3.11: aspirin, α(p), β(.8), m from 69 to 73; Figure 3.7, p. 103).
- [13]Same, §5.1, pp. 193–195 (Example 5.6, Fisher’s Exact Test: Tables 5.2–5.4, 17.92, .000395).
- [14]Same, §4.1, pp. 147–148 (Example 4.17, the cancer test, and the sentence before it; Figure 4.5).
- [15]Same, §4.1, p. 141 (Definition 4.2, mutual independence).
- [16]PDG Booklet, §40.3.1–40.3.2, p. 257 (Hypothesis tests; Tests of significance, p-values).
- [17]Same, §40.3.4, p. 258 (Bayes factors: posterior probability, prior probabilities).
- [18]Same, §40.4.2.2, pp. 259–260 (Gaussian distributed measurements; Table 40.1; one-sided limits).
- [19]Tong, ch. 5, p. 189 (anomalies and random fluctuations; 5 sigma; earlier mismatches).
Wikipedia was not used as a source.
Works cited
- Barbara Illowsky and Susan Dean, Introductory Statistics 2e (OpenStax, Rice University, 2023). openstax.org/details/books/introductory-statistics-2e. License: CC BY-NC-SA 4.0. Access for free at openstax.org.
- Alexander Holmes, Barbara Illowsky and Susan Dean, Introductory Business Statistics 2e (OpenStax, Rice University, 2023). openstax.org/details/books/introductory-business-statistics-2e. License: CC BY-NC-SA 4.0. Access for free at openstax.org.
- Charles M. Grinstead and J. Laurie Snell, Introduction to Probability, 2nd revised edition, version dated 4 July 2006 (Dartmouth CHANCE Project). math.dartmouth.edu/~prob/prob/prob.pdf. License: GNU Free Documentation License.
- S. Navas et al. (Particle Data Group), Particle Physics Booklet, extracted from the Review of Particle Physics, Phys. Rev. D 110, 030001 (2024). pdg.lbl.gov. License: CC BY 4.0.
- David Tong, Particle Physics, University of Cambridge lecture notes. davidtong.org/teaching/particle-physics. License: © David Tong.