Abstract

What does a sample license you to say about the population it came from? Bayesian inference, whose early landmark is an essay that Richard Price communicated to the Royal Society in 1763, combines prior belief with data to give a probability for an unknown quantity.1 Fisher’s likelihood compares parameter values by how well each accounts for the observed data, and his significance test asks how extreme the data would be under a stated model.23 The Neyman-Pearson framework chooses a decision rule by its error rates over repeated use.4 Student’s small-sample distribution, Efron’s bootstrap and the Benjamini-Hochberg false discovery rate belong to the frequentist line.567 A p-value can indicate incompatibility between data and a model and is not the probability that a hypothesis is true, the American Statistical Association stated in 2016.8 Ioannidis showed in 2005 how a field that follows the rules can publish mostly false findings when true effects are rare, and a 2015 project that replicated 100 psychology studies found 35 of the 97 originally significant effects significant again.910 Axelsson applied Bayes’ theorem to intrusion detection: in his scenario, with rare attacks, the false alarm rate is the limiting factor in whether alerts are worth reading.11

The problem: from a sample to a population

Statistics starts from an asymmetry. The thing you care about is large or unobservable: every login the company will ever see, every employee who would click a phishing link, every packet a sensor will ever capture. The thing you have is small and finite. Statistical inference is the set of methods for saying something defensible about the first from the second, together with a statement of how wrong the saying might be.

Student put the setup plainly in 1908: “Any experiment may be regarded as forming an individual of a ‘population’ of experiments which might be performed under the same conditions. A series of experiments is a sample drawn from this population.”5

  • A population is the full set of things a claim is about. It can be hypothetical, such as every future run of an experiment.
  • A sample is the part you observed. In survey sampling, random selection gives each member of the population a known chance of appearing. In the model-based treatment used below, the assumption is instead that observations are independent draws from a stated model.
  • A parameter is a fixed number describing the population: a mean, a proportion, a rate. Call a proportion p.
  • A statistic is a number computed from the sample, and an estimator is a rule for turning a sample into a guess at a parameter. The sample proportion x/n is an estimator of p.
  • The sampling distribution of a statistic is the distribution of values it would take over all the samples you might have drawn. It is a hypothetical object.

Fisher, in 1922, divided the work into three kinds of problem. Problems of specification choose the mathematical form of the population. Problems of estimation choose methods of calculating, from a sample, statistics that estimate the parameters of the hypothetical population. Problems of distribution work out the distribution of statistics derived from samples.2 The sampling distribution is the subject of the third kind, and the second kind cannot be judged without it.

A worked case runs through several sections. A security team sends a simulated phishing email to 10 employees, and 3 click. Model each employee’s click as an independent Bernoulli trial with a common click probability p, the setup of Bayes’s proposition 7 and of the binomial calculations below. (Drawing 10 distinct employees from a roster of 5,000 whose click behaviour is fixed would make the count hypergeometric, and with a small sampling fraction the binomial is a close approximation.) The estimator x/n gives 0.30. The question is what that licenses. Ten people is a small sample, so 0.30 could easily be an accident of who was picked. The example returns in the Bayesian, likelihood and bootstrap treatments, which answer it in different ways.

Inference is part of data analysis

John Tukey, in 1962, wrote: “For a long time I have thought I was a statistician, interested in inferences from the particular to the general. But as I have watched mathematical statistics evolve, I have had cause to wonder and to doubt.” He said his central interest was data analysis, which includes “ways of planning the gathering of data to make its analysis easier, more precise or more accurate”.12 The passage is quoted from Donoho’s 2015 essay on Tukey’s paper, which appeared in the Annals of Mathematical Statistics in March 1962.13

A sentence from the same paper, quoted in a 2003 lecture handout by David Brillinger, gives the practical consequence: “Far better an approximate answer to the right question, which is often vague, than an exact answer to the wrong question, which can always be made precise.”14

Inference is one stage of an analysis that also includes how the data were collected, how they were cleaned and which questions were asked of them. No formula applied afterwards repairs failures in those other stages.

Bayes and inverse probability

What the 1763 essay did

Thomas Bayes’s essay appears in volume 53 of the Philosophical Transactions, whose printed date is 1763 (pages 370 to 418; Todhunter gives 1764 as the year of publication15), and it reached the Royal Society after his death. Richard Price sent it to John Canton in a letter that the printed text dates as read in December 1763. Price wrote that he had “found among the papers of our deceased friend Mr. Bayes” an essay that “has great merit, and well deserves to be preserved”, and he described its aim as judging “the probability that an event has to happen, in given circumstances” when all we know is that “it has happened a certain number of times, and failed a certain other number of times.”1

The problem, as Bayes states it at the head of the essay, is: “Given the number of times in which an unknown event has happened and failed: Required the chance that the probability of its happening in a single trial lies somewhere between any two degrees of probability that can be named.”1 This is the phishing question under the Bernoulli model. Given 3 clicks and 7 non-clicks, how probable is it that the click rate lies between, say, 0.2 and 0.5?

Bayes solved it with a physical model. He supposes a level square table so made that a ball thrown on it is equally likely to come to rest on any equal part of the plane. A first ball, W, is thrown, and a line is drawn through the point where it rests, parallel to one side. A second ball, O, is then thrown n times, and each throw counts as the event happening if the ball comes to rest on one particular side of the line.1 The position of the line is fixed but unknown to the person counting, and it plays the part of the unknown probability. Since the first ball is equally likely to land anywhere, every position of the line is equally likely beforehand: the assumption later called a uniform prior.

Price reports that Bayes worried the assumption might not be accepted. Bayes “afterwards considered, that the postulate on which he had argued might not perhaps be looked upon by all as reasonable,” so he put the proposition in another form and added a scholium giving his reasons, rather than “take into his mathematical reasoning any thing that might admit dispute.”1 Fisher’s 1922 reading of the scholium is that “in the absence of all knowledge save that supplied by the sample, it is reasonable to assume this particular a priori distribution of p.”2

Bayes’ theorem and conjugate updating

The modern statement of the theorem, in the form Axelsson uses, is P(A|B) = P(A) P(B|A) / P(B).11 Read with A as a hypothesis and B as data, it says that the probability of a hypothesis after seeing data (the posterior) is its probability before (the prior) times how well it predicted the data (the likelihood), divided by a normalising constant.

For the phishing case, take the uniform prior that Bayes’s table implies. The probability of 3 clicks in 10 given p is proportional to p^3 (1-p)^7, and a flat prior multiplies by 1, so the posterior is proportional to p^3 (1-p)^7, the Beta distribution with parameters 4 and 8. In general, a uniform prior (Beta with parameters 1 and 1) updated by x successes and n-x failures gives Beta with parameters x+1 and n-x+1. Fisher’s account of Bayes’s result says the same in different notation: “the probability is clearly proportional to p^x (1-p)^y dp“, with y the number of failures.2 A prior and likelihood that combine into a posterior of the same family are called conjugate, and the Beta family is conjugate to the binomial, so updating reduces to adding counts.

Some numbers for the Beta(4, 8) posterior, computed directly from the Beta distribution:

  • The posterior mean is 4/12 = 0.333.
  • A central 95% credible interval runs from 0.109 to 0.610. Given the model and the prior, there is a 95% probability that p lies in it.
  • The posterior probability that the common click probability p exceeds 0.5 is 0.113, and that it exceeds 0.2 is 0.839. These are statements about the parameter, not about the outcome in any particular group of employees.

Now suppose the team samples 100 more employees and 30 click. Adding counts gives Beta(34, 78). The mean is 0.304 and the 95% interval is 0.222 to 0.391. The first sample moved the estimate and the second narrowed it. To see how much the prior matters, repeat both updates from a sceptical prior, Beta(2, 18), whose mean is 0.10. After the first 10 employees it gives Beta(5, 25), with mean 0.167 and 95% interval 0.058 to 0.317, which differs visibly from the flat-prior answer. After all 110 it gives Beta(35, 95), with mean 0.269 and interval 0.197 to 0.348, much closer to the flat-prior mean of 0.304 and interval 0.222 to 0.391. The two priors disagree less as data accumulate, which is the usual defence against the main objection.

The objection about priors, and the modern answers

The objection is that the prior is arbitrary, and Fisher made it with force. His 1922 example: inverse probability assumes that if an observed result could come from hypothesis X or Y, their probabilities stand in the ratio of the probabilities of the result under each, which amounts to assuming the universe was drawn from a population in which X and Y were equally common. “Clearly such an assumption is entirely arbitrary, nor has any method been put forward by which such assumptions can be made even with consistent uniqueness.” Split X into two indistinguishable sub-cases and the same rule gives X twice the weight, though the data cannot tell the sub-cases apart.2 Fisher called this “the fundamental paradox of inverse probability”, and he noted that Laplace and Poisson had accepted these assumptions.2

A related objection concerns parametrisation: a flat prior on p is not flat on p^2 or on the odds p/(1-p), so “no information” depends on how the question is written.

Modern Bayesian practice answers in three ways. In regular, identifiable models, and for priors that give non-negligible mass near the values the data support, the posterior’s dependence on the prior fades as data accumulate; Kleijn and van der Vaart’s Theorem 2.1 gives one such result: with a prior that has a Lebesgue density, continuous and positive in a neighbourhood of the limiting parameter value, a model satisfying local asymptotic normality, and a condition that the posterior concentrates at the right rate, the posterior converges in total variation to a normal distribution. Their setting allows a misspecified model.16 The example above shows only two priors. The prior can summarise earlier data or expert knowledge, in which case its influence is wanted, and the analyst reports how the conclusion changes under other reasonable priors. And posterior predictive checking compares data simulated from the fitted model with the observed data, usually through chosen summaries. Gelman and co-authors write that “There is no general way to choose which checks one should perform on a model”, so a check reveals only the kinds of misfit it examines.17

Lehmann, in a 1993 comparison of the other two traditions, reports that Fisher, Neyman and Pearson “were very hostile” to Bayesian hypothesis testing and “were in fact motivated in their work by a desire to rid hypothesis testing of the need to assume a prior distribution over the available hypotheses.”18

Student and the small sample

Student’s introduction describes the usual method for the probable error of a mean: assume a normal distribution about the sample mean with standard deviation s/sqrt(n), where s is the sample standard deviation, and use the tables of the probability integral.5 He pointed out the flaw: “as we decrease the number of experiments, the value of the standard deviation found from the sample of experiments becomes itself subject to an increasing error, until judgments reached in this way may become altogether misleading.”5 The denominator is itself an estimate, and with a handful of observations it is a poor one.

He also noted that no one had stated where “large” ends: “no one has yet told us very clearly where the limit between ‘large’ and ‘small’ samples is to be drawn.”5 His paper derives, for a normal population, the distribution of the sample mean’s error divided by the sample standard deviation, and tabulates it for samples of 4 to 10 observations.5

Two conventions differ from today’s: Student’s z is (x̄ - μ)/s with s computed using divisor n, so the modern t = z sqrt(n-1), and he phrased results as odds about the population mean.5

A five-number t statistic

Five response times in minutes: 12, 15, 9, 14, 10. Assume they are independent draws from a normal distribution, and test the null hypothesis that the true mean is 8 against a two-sided alternative.

  1. The mean is x̄ = 60/5 = 12.
  2. The deviations from the mean are 0, 3, -3, 2, -2, and their squares sum to 0+9+9+4+4 = 26.
  3. The sample variance, dividing by n-1 = 4, is 26/4 = 6.5, and s = 2.550.
  4. The standard error is s/sqrt(5) = 1.140.
  5. The statistic is t = (12 - 8)/1.140 = 3.51, with 4 degrees of freedom.

With 4 degrees of freedom the two-sided 5% critical value of the t distribution is 2.776, so the claim is rejected at that level. Under that model the two-sided p-value is 0.0247. The standard-normal tail area for the same statistic, two-sided, is 0.00045, about fifty times smaller, because the normal reference ignores the uncertainty in s. That gap shows why the 1908 derivation mattered: the standard error is itself estimated, and Student’s distribution accounts for that when the observations are normal.

Student’s own illustration used data of Cushny and Peebles on extra hours of sleep gained by ten patients from two forms (dextro- and laevo-) of hyoscyamine hydrobromide. The paired differences have mean 1.58 and standard deviation 1.17 on his divisor-n convention, a ratio of 1.35 whose tabulated probability is 0.9985, an approximation read from his table: “the odds are about 666 to one that 2 is the better soporific.”5 Today the same data give t = 4.06 on 9 degrees of freedom and a two-sided p-value of 0.0028. The one-sided value, 0.0014, matches Student’s 1 - 0.9985. His wording is a probability statement about the drug difference itself, where a modern frequentist report would give the p-value and an interval.

Fisher: likelihood, estimation and significance

The 1922 paper

R. A. Fisher’s “On the Mathematical Foundations of Theoretical Statistics” was published on 19 April 1922.2 It defined the vocabulary that estimation theory still uses. These are Fisher’s definitions, slightly shortened.

  • Consistency (Fisher’s wording, defined on the whole population; modern usage usually means convergence in probability to the parameter as the sample grows): “A statistic satisfies the criterion of consistency, if, when it is calculated from the whole population, it is equal to the required parameter.”
  • Efficiency: “the ratio (usually expressed as a percentage) which [a statistic’s] intrinsic accuracy bears to that of the most efficient statistic possible”, the proportion of the available relevant information that the statistic uses.
  • Sufficiency: “A statistic satisfies the criterion of sufficiency when no other statistic which can be calculated from the same sample provides any additional information as to the value of the parameter.”2

The sample proportion x/n is sufficient for p in the phishing example: the order of the clicks carries no further information about the click rate.

Likelihood and maximum likelihood

Fisher’s definition: “The likelihood that any parameter (or set of parameters) should have any assigned value (or set of values) is proportional to the probability that if this were so, the totality of observations should be that observed.” The “optimum” value is the one “of which the likelihood is greatest”, which is the method of maximum likelihood.2

For the phishing sample the likelihood of p is proportional to p^3 (1-p)^7, largest at p = 0.3, so the maximum likelihood estimate is x/n. At p = 0.3 the kernel p^3 (1-p)^7 is 0.3^3 × 0.7^7 = 0.002224 and at p = 0.5 it is 0.5^10 = 0.000977. The kernel’s scale is arbitrary and only the ratio matters. The ratio is 2.28: the data are about 2.3 times as probable if the click rate is 0.3 than if it is 0.5. Fisher proposed to speak of “the likelihood of one value of p being thrice the likelihood of another”, and he insisted that “likelihood is not here used loosely as a synonym of probability”.2

A likelihood is defined only up to a factor that does not depend on the parameter, so only ratios of likelihoods carry meaning. Fisher wrote that likelihood “is not a differential element, and is incapable of being integrated” and that “There is no such absolute measure of likelihood.” He meant that it is not a probability density over the parameter and has no absolute scale. The kernel p^3 (1-p)^7 does integrate to a finite number (a Beta integral), and a Bayesian multiplies it by a prior and normalises, which is a further step.2 Fisher’s point about transformation is that a density changes with the scale of measurement, so a posterior mode can be moved anywhere by rescaling: “the mode must change its position, and can be brought to have any value, by an appropriate change of scale.” The maximum likelihood point does not behave that way. Under a one-to-one reparametrisation such as q = p^2 the maximiser maps to the new coordinate (0.3 becomes 0.09), and the likelihood ordinate there is the same for the same kernel. What changes is the coordinate. A posterior mode changes in a different way, because a density changes with the parametrisation, and that is the contrast Fisher draws between the position of the optimum and the mode of a transformed density.2 This property concerns the optimiser. It does not choose a prior, which a Bayesian analysis still needs.

Significance tests and the 5% convention

The p-value took its modern role through Fisher’s 1925 Statistical Methods for Research Workers. For a test statistic with a known sampling distribution under a null hypothesis, the p-value is the probability, if the null hypothesis were true, of a result at least as extreme as the one observed. Fisher’s chapter on distributions says of the normal curve: “The value for which P = .05, or 1 in 20, is 1.96 or nearly 2; it is convenient to take this point as a limit in judging whether a deviation is to be considered significant or not. Deviations exceeding twice the standard deviation are thus formally regarded as significant.”3 The same passage adds: “Using this criterion, we should be led to follow up a negative result only once in 22 trials, even if the statistics are the only guide available.”3

Lehmann reports that Fisher advocated 5% as the standard level, with 1% as a more stringent alternative, and quotes his 1935 statement that “it is usual and convenient for experimenters to take 5 percent as a standard level of significance, in the sense that they are prepared to ignore all results which fail to reach this standard”.18 That is a convenience and a working rule for deciding what to follow up, and Fisher’s wording does not say that a result below 0.05 is true.

A p-value for a coin shows the arithmetic. Flip a coin 20 times and get 15 heads. Under the null hypothesis that the coin is fair, the number of heads follows a binomial distribution with n = 20 and p = 0.5. The probability of 15 or more heads is 0.0207, and by symmetry the probability of an outcome at least this far from 10 in either direction is 0.0414. The two-sided p-value is 0.041.

What that figure means is narrow. If the coin is fair, outcomes this lopsided turn up about 4% of the time. It is not the probability that the coin is fair, and to get that you need a prior. Give the fair coin prior probability 1/2 and spread the other half uniformly over all possible biases. The probability of exactly 15 heads is C(20,15)/2^20 = 0.0148 if the coin is fair, and under the uniform alternative every count from 0 to 20 has probability 1/21 = 0.0476. The ratio, the Bayes factor for the fair coin, is 0.31, and the posterior probability of fairness is 0.31/1.31 = 0.24. Other priors for the alternative give other answers, and this dependence is part of what the 2016 American Statistical Association statement warns about.

Neyman and Pearson: tests as decisions

Rules of behaviour

Jerzy Neyman and Egon Pearson’s 1933 paper, “On the Problem of the Most Efficient Tests of Statistical Hypotheses” (received 31 August 1932, read 10 November 1932), starts from a refusal. They write that they are inclined to think that, “as far as a particular hypothesis is concerned, no test based upon the theory of probability can by itself provide any valuable evidence of the truth or falsehood of that hypothesis.” What a test can do is govern behaviour: “Without hoping to know whether each separate hypothesis is true or false, we may search for rules to govern our behaviour with regard to them, in following which we insure that, in the long run of experience, we shall not be too often wrong.”4

Their example of such a rule: calculate a specified character x of the observed facts, reject H if x exceeds a cut-off, accept it otherwise. “Such a rule tells us nothing as to whether in a particular case H is true”, but in the long run “we shall reject H when it is true not more, say, than once in a hundred times, and in addition we may have evidence that we shall reject H sufficiently often when it is false.”4 The paper asks which rule is best.

Two errors, power and the lemma

Their framework has two sources of error. Rejecting a true hypothesis is an error of the first kind, and “it is very easy to control errors of the first kind”: “the chance of rejecting the hypothesis H0 when it is true may be reduced to as low a level as we please.” The second source of error is “that of accepting H0 when it is false”, and this is where critical regions differ.4 In current terms:

  • The type I error rate, α, is the probability of rejecting a true null hypothesis.
  • The type II error rate, β, is the probability of failing to reject a false one.
  • The power is 1 - β, the probability of rejecting when the alternative is true.

Neyman and Pearson define the best critical region for H0 against an alternative H1 as the one that, among all regions with the same probability ε of rejecting H0 when it is true, maximises the probability of rejecting when H1 is true.4 For two simple hypotheses, each fully specifying the distribution, their calculus-of-variations derivation shows that on the boundary of the best region the ratio of the two probability laws is constant. The conclusion, now called the Neyman-Pearson lemma, is that the most powerful test of a given size rejects when the likelihood ratio p1(x)/p0(x) is large.4

An example with ten coin flips makes the lemma checkable. Take H0: p = 0.5 and H1: p = 0.7. The likelihood ratio for k heads is (0.7/0.5)^k × (0.3/0.5)^(10-k) = 1.4^k × 0.6^(10-k). It equals 0.98 at 6 heads, 2.28 at 7, and 5.31 at 8, and it increases with k, so the lemma orders outcomes by the number of heads. The table compares deterministic count cutoffs.

Reject if heads at leastType I error, α (p = 0.5)Power (p = 0.7)
80.05470.383
90.01070.149
100.00100.028

Both the 9-head and 10-head cutoffs keep α at or below 0.05, and 9 heads is the most powerful feasible cutoff in this class, with power 0.149 against 0.7. With a discrete statistic the lemma gives a sharper rule, which randomises at the boundary: a most powerful test of size exactly 0.05 rejects at 9 or 10 heads, and at 8 heads with probability 0.893, for a power of 0.358. A significance level says how seldom the rule cries wolf. Power says how often it notices a wolf, and with small samples the answer is often “rarely”. At the 9-head cutoff the type II error rate is β = 0.851.

Intervals, and the quarrel

A confidence interval applies the same long-run reasoning to estimation. A standard textbook definition is “a range of values such that with 95% probability, the range will contain the true unknown value of the parameter”, with the limits “computed from the sample of data”.19 The probability belongs to the procedure: once a particular interval has been computed, the parameter is inside it or not. The credible interval of the phishing example differs, since there the probability attaches to p given the data and the prior.

Fisher and Neyman fought over these differences for years after the 1933 paper. Lehmann lists the issues as interpretation of the outcome, power, conditioning and fixed significance levels, and records that after Neyman left Pearson’s department the debate was carried on mainly by Fisher and Neyman.18 Fisher objected that power cannot be calculated because it depends on the unknown alternative, and Pearson later wrote that the words “acceptance” and “rejection” were perhaps unfortunately chosen.18 Lehmann’s verdict is that “despite basic philosophical differences, in their main practical aspects the two theories are complementary rather than contradictory.”18

Fisher himself recommended a conventional threshold, and Lehmann argues the two approaches are partly complementary, so a report that states “significant at the 5% level” and gives an exact p-value draws on both traditions.

Resampling: the bootstrap and the jackknife

Every method so far needs a sampling distribution, and in the frequentist examples it came from a formula: the t and binomial laws. For many statistics, such as a median or a ratio, no clean formula exists. Efron’s 1979 abstract states the problem: “given a random sample X = (X1, X2, ..., Xn) from an unknown probability distribution F, estimate the sampling distribution of some prespecified random variable R(X, F), on the basis of the observed data x.” It introduces “a general method, called the ‘bootstrap’” and works through examples including the “variance of the sample median”.6 The setting is a random sample from an unknown distribution. Whether the empirical bootstrap is valid also depends on the statistic and the population, and dependent data and tail-sensitive statistics need separate treatment.

The procedure

If you could draw fresh samples from the population, you could estimate the sampling distribution by simulation. The bootstrap draws from the sample instead: “Rather than repeatedly obtaining independent data sets from the population, we instead obtain distinct data sets by repeatedly sampling observations from the original data set.” Each bootstrap data set has the same size as the original and is drawn with replacement. The statistic is computed on each of B such data sets, and the spread of the B values estimates the standard error.19

Here it is on six numbers: 3, 5, 6, 9, 14, 40. The sample median, the average of the middle pair 6 and 9, is 7.5.

  1. Draw six values from the list at random with replacement. One draw might be 5, 40, 5, 9, 3, 5.
  2. Sort that draw (3, 5, 5, 5, 9, 40) and take its median, which is 5.
  3. Repeat, say, 10,000 times, recording each median.
  4. The standard deviation of the recorded medians estimates the standard error of the sample median, and the 2.5th and 97.5th percentiles give a percentile interval.

With six observations the full bootstrap distribution can be computed exactly, because there are 6^6 = 46,656 equally likely ordered draws. Doing so gives a bootstrap standard error of 5.53 for the median. The distribution is lumpy: the median can take only 20 distinct values, 7.5 is the most likely at about 15.5% of the draws, and the probability of 40 as the median is 0.9%. The 2.5th and 97.5th percentiles are 4 and 27. The interval is wide and asymmetric because the sample contains one large value. It illustrates the percentile method. Whether such an interval covers the population median at its nominal rate is not established for six observations, and nothing in the procedure repairs the smallness of the sample.

What it can and cannot do

The bootstrap estimates the variability of a statistic by treating the sample as a stand-in for the population. It preserves whatever selection produced the sample: if the phishing sample were drawn from employees who answer email quickly, bootstrapping the click rate would reproduce that selection in every resample. And in this empirical-resampling form, every resample is drawn from the observed values, so no resample can contain a value outside the observed range. In the example above no resample median exceeds 40, though nothing in six numbers rules out a value of 100. This describes resampling the observed data and does not extend to model-based bootstraps or specialised tail methods.

The jackknife

The jackknife, which Efron’s paper treats as a linear approximation to the bootstrap, recomputes a statistic with each observation left out in turn and uses the variation among those n values to estimate standard error and bias.6

Multiple testing

Why one test at 5% is not the same as twenty

A 5% significance level means that, in repeated use, a true null hypothesis is rejected with probability at most 5%. Run twenty independent exact-size tests on twenty true nulls and the chance that at least one is rejected is 1 - 0.95^20 = 0.64. The expected number of false rejections is 20 × 0.05 = 1. Benjamini and Hochberg set the problem out for m null hypotheses, m0 of which are true. R is the number rejected, V the number of true nulls among them (false discoveries), and S the number of false nulls among them. They call the per-comparison error rate E(V/m) and the family-wise error rate (FWER) P(V ≥ 1).7

The classical remedy controls the FWER. In the authors’ words: “Testing individually each hypothesis at level α/m guarantees P(V ≥ 1) ≤ α.”7 This is the Bonferroni correction. With 20 tests, each is judged at 0.0025. It is safe, and it has a price: “Classical procedures that control the FWER in the strong sense, at levels conventional in single-comparison problems, tend to have substantially less power than the per comparison procedure of the same levels.”7 The correction guards against a single false alarm in a family of tests, and in screening problems that guard is often stricter than the situation needs.

The false discovery rate

Benjamini and Hochberg’s 1995 paper proposed a different error rate: “the expected proportion of errors among the rejected hypotheses, which we term the false discovery rate (FDR).” Formally, let Q = V/(V+S), the proportion of rejections that are false, with Q = 0 when nothing is rejected. “We define the FDR Qe to be the expectation of Q, Qe = E(Q) = E{V/(V+S)} = E(V/R).”7

Two properties follow, both stated in the paper. If all null hypotheses are true, the FDR equals the FWER. When some are false, the FDR is less than or equal to the FWER, so “any procedure that controls the FWER also controls the FDR”, and a procedure that controls only the FDR can be more powerful, increasingly so as more hypotheses are non-null.7 The authors motivate the measure with screening problems such as “screening of various chemicals for potential drug development”, where “too large a fraction of false leads would burden the second phase of the confirmatory analysis.”7

The step-up procedure

Order the m p-values P(1) ≤ P(2) ≤ ... ≤ P(m), and let H(i) be the null hypothesis that goes with P(i). The procedure in the paper: “let k be the largest i for which P(i) ≤ (i/m) q*; then reject all H(i), i = 1, 2, ..., k.” Theorem 1 of the paper: “For independent test statistics and for any configuration of false null hypotheses, the above procedure controls the FDR at q*.” The proof shows E(Q) ≤ (m0/m) q* ≤ q*.7 The guarantee is on an unconditional expectation over repeated use of the procedure, with Q taken as 0 when nothing is rejected. The paper distinguishes this from the expected proportion among batches that contain at least one rejection, which is E(V/R | R > 0) and can be larger.7 If no p-value passes its threshold, nothing is rejected. The proof in the paper does not need independence among the test statistics of the false nulls, and the theorem as stated assumes independent test statistics.

Ten p-values, ordered, with m = 10 and q* = 0.05. The threshold for rank i is i × 0.05/10.

Rank ip-valueBH threshold (i/10)(0.05)p ≤ threshold?
10.0010.005yes
20.0080.010yes
30.0120.015yes
40.0190.020yes
50.0340.025no
60.0410.030no
70.0490.035no
80.2000.040no
90.4500.045no
100.7800.050no

The largest rank that passes is k = 4, so the first four hypotheses are rejected. Seven p-values are below 0.05, and testing each at 0.05 without correction would have rejected seven. Across repeated runs, unadjusted valid tests produce at most 0.05 × m0 false rejections on average, with equality for exact-size tests. Bonferroni, at 0.05/10 = 0.005, rejects only the first. BH rejects four. The guarantee does not say that at most 5% of these four are false. It says that over repeated use on data of this kind, the average of Q is at most (m0/10) × 5%. The rule looks for the largest i that passes, so a hypothesis whose p-value misses its own threshold is still rejected if a later rank, with a larger index and a larger p-value, passes.

The replication crisis

Ioannidis: the arithmetic of rare true effects

John Ioannidis’s 2005 essay Why Most Published Research Findings Are False models a field as a stream of tested relationships, some true and some not. Let R be the ratio of true to not-true relationships among those tested in the field before any study is run. So the pre-study probability that a tested relationship is true is R/(R+1). Let 1 - β be the power and α the type I error rate. A finding is “claimed” when a test reaches formal significance. Then, in his words, “the post-study probability that it is true is the positive predictive value, PPV”, and “one gets PPV = (1 − β)R/(R − βR + α).”9 A finding is more likely true than false if (1 - β)R > α.9

Take α = 0.05 and power 0.8.

  • If true and false relationships are equally common (R = 1), PPV = 0.8/(1 - 0.2 + 0.05) = 0.94.
  • If one relationship in ten is true (R = 1/9, as with 100 true among 1,000 tested), the field finds 80 of the 100 true ones and, at 5%, flags 45 of the 900 false ones. PPV = 80/125 = 0.64.
  • If power is 0.2 and one in a thousand tested relationships is true (R = 0.001), PPV = 0.0002/(0.001 - 0.0008 + 0.05) = 0.004. About 4 in 1,000 significant findings would be true.

The essay then adds bias, defined as “the combination of various design, data, analysis, and presentation factors that tend to produce research findings when they should not be produced.” Its Table 4 lists results across settings: a PPV of 0.85 for an adequately powered randomised trial with little bias and 1:1 pre-study odds, and 0.0010 for “discovery-oriented exploratory research with massive testing” (power 0.20, R of 1:1,000, bias u of 0.80).9

One section heading of the essay is the sentence “It can be proven that most claimed research findings are false.”9 The proof is conditional on the model, and whether a given field has the values of R, power and bias that make it true is an empirical question. What the essay establishes is that a field can follow the rules (publish when p < 0.05) and still publish mostly false findings, with no fraud involved: low power, long odds against any tested effect being real, and flexibility in analysis.

Flexible analysis

Simmons, Nelson and Simonsohn, in 2011, showed by simulation and two experiments that “flexibility in data collection, analysis, and reporting dramatically increases actual false-positive rates.” Their abstract continues: “In many cases, a researcher is more likely to falsely find evidence that an effect exists than to correctly find evidence that it does not.” They propose a disclosure-based remedy, with six requirements for authors and four guidelines for reviewers.20

Gelman and Loken’s 2013 draft makes the mechanism subtler. They argue that “researcher degrees of freedom can lead to a multiple comparisons problem, even in settings where researchers perform only a single analysis on their data”, when “the details of data analysis are highly contingent on data”. Their image is a garden of forking paths: had the data come out differently, the researcher could have chosen a different, equally reasonable, analysis, so the single test reported stands for a family of tests that were never run.21

Both papers show how data-dependent choices that are not accounted for can inflate the type I error rate of a nominal 5% test, and that this can happen in good faith. Prespecifying the analysis is one way to keep the stated error rate valid, and adaptive procedures can also be calibrated to control it. In the unaccounted case the family of tests is larger than the number the researcher consciously ran.

The large replication project

The Open Science Collaboration’s 2015 paper in Science reports replications of 100 experimental and correlational studies from three psychology journals, “using high-powered designs and original materials when available.” The abstract reports that replication effects were half the magnitude of the original effects. The full paper gives mean effect sizes of 0.197 for replications and 0.403 for originals, and reports that 97 of the 100 original studies had significant results, of which 35 (36%) were significant again in replication.22 The abstract also reports that 47% of original effect sizes fell within the 95% confidence interval of the replication effect size, and that 39% of effects were subjectively rated as having replicated. Combining original and replication results, if no bias in the originals is assumed, left 68% significant.10

Each percentage answers a different question. The 36% (35 of 97) asks whether an originally significant effect was significant again. The 47% asks whether the original estimate lies inside the replication’s interval. The 39% records the replicators’ own judgement. The measures can disagree: a replication whose effect is half the original’s can fail to reach significance while its interval still contains the original estimate, and it would count as a failure on one measure and a success on another. The abstract also reports that replication success was “better predicted by the strength of original evidence than by characteristics of the original and replication teams.”10 Possible explanations for the gap include selective publication of significant results, low power, sampling variability and differences in conditions, and the abstract’s figures do not separate them. The figures belong to one field and three journals.

What the ASA said about p-values

In March 2016 the American Statistical Association issued a statement on p-values. The release of 7 March 2016 lists six principles, quoted here exactly:8

  1. “P-values can indicate how incompatible the data are with a specified statistical model.”
  2. “P-values do not measure the probability that the studied hypothesis is true, or the probability that the data were produced by random chance alone.”
  3. “Scientific conclusions and business or policy decisions should not be based only on whether a p-value passes a specific threshold.”
  4. “Proper inference requires full reporting and transparency.”
  5. “A p-value, or statistical significance, does not measure the size of an effect or the importance of a result.”
  6. “By itself, a p-value does not provide a good measure of evidence regarding a model or hypothesis.”

Ron Wasserstein, the ASA’s executive director, said in the release: “The p-value was never intended to be a substitute for scientific reasoning.” The statement also lists approaches that supplement or replace p-values, among them confidence, credibility or prediction intervals, Bayesian methods, likelihood ratios or Bayes factors, decision-theoretic modeling and false discovery rates.8 The coin example earlier shows principle 2 in numbers: a p-value of 0.041 and a posterior probability of fairness near 0.24.

Redefine or retire

Two proposals from 2017 to 2019 pull in different directions, and the experts who made them disagree.

Benjamin and a large group of co-authors, in Nature Human Behaviour (online 1 September 2017), “propose to change the default P-value threshold for statistical significance from 0.05 to 0.005 for claims of new discoveries.”23 Their figures relate the p-value to the Bayes factor, and the threshold and power to the false positive rate.23 The proposal concerns claims of new discoveries and keeps a threshold. The earlier arithmetic shows the logic: the false-positive proportion among claims depends on prior odds, power and the per-test α, and lowering α raises the PPV when R is small. With R = 1/10, power 0.8 and α = 0.005, the formula gives 0.94, against 0.62 at α = 0.05. For a fixed design and effect size, the cost is sample size.

Valentin Amrhein, Sander Greenland, Blake McShane and “more than 800 signatories” wrote in Nature (20 March 2019, volume 567, pages 305 to 307). Nature’s summary says they “call for an end to hyped claims and the dismissal of possibly crucial effects”, and the comment opens by asking when you last heard a seminar speaker claim there was “no difference” between two groups because the difference was “statistically non-significant”.24 That habit is the one the ASA’s principle 3 above warns against.

Both proposals respond to a single threshold carrying too much meaning. One changes the default threshold for claims of new discoveries, and the other targets the labelling of results as significant or not. Whether a given operational decision, such as a regulator approving a drug or a SOC deciding whether to page someone, needs a cutoff is a separate question that neither summary settles.

Security: base rates, sequential tests and reading claims

Axelsson’s base-rate argument

Stefan Axelsson’s paper in ACM Transactions on Information and System Security (volume 3, number 3, August 2000, pages 186 to 205) takes Bayes’ theorem to intrusion detection. Its abstract says that “the false alarm rate is the limiting factor for the performance of an intrusion detection system.”11

He begins with a medical test that is “99% accurate” (P(R|S) = 0.99, P(¬R|¬S) = 0.99) for a disease with prevalence P(S) = 1/10000, which he calls the incidence. Bayes’ theorem gives P(S|R) = 0.00980, about 1%, “because the population of healthy people is much larger than the population with the disease.”11

For intrusions he assumes a small installation producing about 1,000,000 audit records per day, with “one or two” actual attempted intrusions per day, each affecting about 10 audit records. That gives a base rate P(I) = 1/(1×10^6/(2×10)) = 2×10^-5. Applying Bayes’ theorem with A for an alarm, I for intrusion:

P(I|A) = P(I) P(A|I) / (P(I) P(A|I) + P(¬I) P(A|¬I))

He reports: with a detection rate P(A|I) of 1.0, a false alarm rate P(A|¬I) “on the order of 1×10^-5” is needed for the Bayesian detection rate to reach 66%, “about two-thirds of all alarms will be a true indication of intrusive activity.” With a detection rate of 0.7 at the same false alarm rate, the Bayesian detection rate is “about 58%, nearing 50-50.” A false alarm rate of 1×10^-3, which on his 10^5 events a day (1,000,000 audit records grouped ten to an intrusion-sized event) gives 100 false alarms a day, brings the Bayesian detection rate “down to around 2%”, his best case at a detection rate of 1.0.11 He adds that “even quite a large difference in the detection rate does not substantially alter the Bayesian detection rate, which instead is dominated by the false alarm rate.”11

These are assumptions Axelsson states, and he says the conclusion holds “for a reasonable set of assumptions” about event volume, intrusion frequency and operator tolerance. In his assumed scenario, citing studies from process control, he writes that even a 50% share of false alarms is a conservative requirement: “Most human operators will have completely lost faith in the device at that point.”11

A SOC worked example

The same arithmetic with round modern-looking numbers, labelled as illustrative and not drawn from any measurement. A detector watches 2,000,000 events a day. Suppose 4 of them are malicious, a base rate of 2×10^-6. The vendor claims a 90% detection rate and a false alarm rate of 0.01%, or 10^-4 per benign event.

  • True alerts: 4 × 0.9 = 3.6 per day.
  • False alerts: about 2,000,000 × 0.0001 = 200 per day.
  • The share of alerts that are real is 3.6/203.6 = 1.8%.

In odds form, posterior odds equal prior odds times the likelihood ratio. The prior odds are about 2×10^-6 and the likelihood ratio is 0.9/10^-4 = 9000, so the posterior odds are 0.018, a probability of 0.0177, which is the same 1.8% at this precision.

Positive predictive value depends jointly on prevalence, sensitivity and false alarm rate. Raising detection from 90% to 99% at the same false alarm rate moves the 1.8% to 1.9%. Holding detection at 90%, cutting the false alarm rate to 10^-5 gives 20 false alerts and a 15% real share, and cutting it to 2×10^-6 gives about 4 false alerts against 3.6 true ones, a 47% share. For a target of 50% of alerts real, sensitivity 90% allows about 3.6 false alerts a day, a false alarm rate near 1.8×10^-6. A false alarm rate of 0.01% and a detection rate of 99% both sound excellent.

Sequential testing for port scans

Jung, Paxson, Berger and Balakrishnan applied a sequential likelihood-ratio test to a security problem in a paper at the IEEE Symposium on Security and Privacy in May 2004.2526 The authors “develop a connection between this problem and the theory of sequential hypothesis testing”, model accesses to local addresses as a random walk on one of two stochastic processes, one for benign remote hosts and one for malicious ones, and present TRW (Threshold Random Walk), which “requires a much smaller number of connection attempts (4 or 5 in practice) to detect malicious activity compared to previous schemes.”25 They credit Wald’s sequential hypothesis testing for the method.25

The mechanics are a likelihood-ratio test, as in the coin example, run one observation at a time. For each remote host, take its first connection attempt to each new local address and code the outcome Y = 0 for a success and Y = 1 for a failure. H0 says the host is benign and H1 that it is a scanner, with outcomes independent given the hypothesis, Pr[Y = 0 | H0] = θ0 and Pr[Y = 0 | H1] = θ1. In the simulation reported, θ0 = 0.8 and θ1 = 0.2, with target detection probability β = 0.99 and target false positive probability α = 0.01.25

Wald’s thresholds are simple functions of those targets: about β/α = 99 above and (1 - β)/(1 - α) = 0.0101 below. After each attempt the running likelihood ratio is multiplied by (1 - θ1)/(1 - θ0) = 4 for a failure and by θ1/θ0 = 0.25 for a success. At or above 99 the host is declared a scanner, at or below 0.0101 benign, and in between the test waits. Three failures in a row give 4^3 = 64, below 99, and four give 4^4 = 256, above it, so four failed first-contact attempts suffice. With thresholds set at these values, the paper’s inequalities bound the false-alarm probability by α/β = 0.01/0.99 ≈ 0.010101 and the miss probability by (1 - β)/(1 - α) = 0.01/0.99 ≈ 0.010101; these model-based bounds need not individually meet the nominal 0.01 targets, and they differ from measured trace performance. The paper confirms that with these parameters TRW “requires at least 4 observations to make a decision”.25

The paper describes the Bro detector as counting distinct destination addresses: for a configurable list of services (by default HTTP, SSH, SMTP, IDENT, FTP data and Gopher) it counted only failed attempts, for other services all attempts, and it flagged a source when the count reached N, by default 100, though the two sites studied had used N = 20.25 That is a count threshold, where the sequential test uses the evidence so far to decide when to stop. Here α and β are design targets, with β the detection probability, and the paper reports the realised trace outcomes separately. The values θ0 and θ1 are modelling choices informed by traffic, and the independence assumption is what lets the product of per-observation ratios stand for the likelihood ratio.

Experiments, hunting and vendor claims

A/B tests in a security programme. In a hypothetical trial, a team randomly assigns 400 employees to a new phishing-awareness module or the old one, 200 each. The new arm has 12 clicks (6%) and the old arm 20 (10%). Using an unpooled normal (Wald) approximation, the standard error of the 4-point difference is sqrt(0.06×0.94/200 + 0.10×0.90/200) = 0.027, so z = 1.48, the two-sided p-value is 0.139, and the approximate 95% interval is about -1.3 to +9.3 points. The data are compatible with no effect and with a large one, so the experiment was too small to tell. A report should state the interval and sample size.

Multiple comparisons in threat hunting. A hunt team runs 200 independent queries, flagging anything whose statistic exceeds its 5% threshold. If the queries are exact-size tests on pure noise, the expected number of flags is 200 × 0.05 = 10 and the probability of at least one is 1 - 0.95^200 = 0.99996, so a hunt of this kind will almost certainly produce leads, and what the count means depends on the number of queries tried. A Benjamini-Hochberg or Bonferroni adjustment needs a defined family of tests, valid p-values, and a rule for adaptive queries and dependence between them. A query log alone does not supply those. Whether surviving leads are worth chasing is a base-rate question.

Vendor detection claims. A claim of “99% detection” does not determine how many alerts will be real, because that also depends on the false alarm rate and the attack prevalence. In a hypothetical test, a claim of “0 false positives” in n benign samples has a one-sided 95% upper confidence bound on the false alarm rate, under independent, representative trials, of the r that satisfies (1 - r)^n = 0.05. For n = 1000 that is r = 0.0030, which on 2,000,000 events a day is about 6,000 false alerts. For “49 of 50 detected” the two-sided Clopper-Pearson exact limits for the detection rate are 89.4% and 99.9%.27 A vendor who reports the best of many configurations is exposed to the forking-paths problem.

Small-sample claims in breach reports. If 5 of 8 investigated incidents involved a particular initial access technique, the sample proportion is 62.5%. With a uniform Beta(1, 1) prior and a binomial sampling model, the Beta(6, 4) posterior gives a 95% credible interval of about 30% to 86%, conditional on that model. If the reports come from detected, investigated and disclosed cases, the model’s random-sampling assumption may not hold for intrusions in general.

A practitioner’s checklist

  • Ask for the false alarm rate per unit of benign traffic, not only the detection rate, and compute the share of alerts that would be real at your own base rate.
  • Ask how many things were tried. A result that is the best of 20 comparisons needs a multiple-testing adjustment, and a single valid comparison with no additional selection or repeated looks does not. Bonferroni and BH apply to specified families, and Gelman and Loken show that even an analysis reporting one result can hide data-dependent comparisons.
  • Check that the sample was drawn from the population the claim is about. Statistical methods quantify sampling noise and do not correct selection.

Related library articles: learning theory covers what a finite training set guarantees about unseen examples. Confidently wrong: a reader on hallucination and calibration in language models covers calibration. Evaluating AI systems: what benchmarks measure and how they fail covers benchmark noise and repeated comparisons. MITRE ATT&CK: what the matrix measures, and what it does not covers detection coverage.

Annotated reference list

  1. *Bayes, “An Essay towards solving a Problem in the Doctrine of Chances”, Philosophical Transactions 53 (1763), pages 370 to 418.* A billiard-table model gives the probability that an unknown chance lies between two values, given successes and failures. It is an early landmark in inverse probability. Fisher attacked its flat-prior step in 1922.1 Essay (opens in a new tab)
  2. *“Student”, “The Probable Error of a Mean”, Biometrika 6 (1908), pages 1 to 25.* The distribution of the standardised mean for normal samples, tabulated for small n. Modern usage divides by n - 1 and reports p-values or intervals where Student gave odds.5 Paper (opens in a new tab)
  3. *Fisher, “On the Mathematical Foundations of Theoretical Statistics”, Philosophical Transactions A 222 (1922), pages 309 to 368.* Defines consistency, efficiency, sufficiency and likelihood, and proposes maximum likelihood. JSTOR stable 91208.2 Scan (opens in a new tab)
  4. *Fisher, Statistical Methods for Research Workers (1925), chapter 3.* The 1.96 rule and the once-in-22 follow-up remark are on page 47 of the original.3 Chapter (opens in a new tab)
  5. *Neyman and Pearson, “On the Problem of the Most Efficient Tests of Statistical Hypotheses”, Philosophical Transactions A, 16 February 1933, DOI 10.1098/rsta.1933.0009.* Rules of behaviour, the two error types and the best critical region for simple hypotheses (section III).4 Archived PDF (opens in a new tab)
  6. *Lehmann, “The Fisher, Neyman-Pearson Theories of Testing Hypotheses: One Theory or Two?”, Journal of the American Statistical Association 88 (424), 1993, pages 1242 to 1249.* The clearest map of the quarrel.18 Copy (opens in a new tab)
  7. *Tukey, “The Future of Data Analysis”, Annals of Mathematical Statistics 33 (1), March 1962, DOI 10.1214/aoms/1177704711.* Quoted here through Donoho’s 2015 essay and a lecture handout.131214 Donoho (opens in a new tab)
  8. *Efron, “Bootstrap Methods: Another Look at the Jackknife”, Annals of Statistics 7 (1), January 1979, DOI 10.1214/aos/1176344552.* The bootstrap, with the jackknife as a linear approximation. The textbook exposition used above is James, Witten, Hastie and Tibshirani, section 5.2.619 Textbook (opens in a new tab)
  9. *Benjamini and Hochberg, “Controlling the False Discovery Rate”, Journal of the Royal Statistical Society B 57 (1), 1995, pages 289 to 300.* Definition in section 2.1, procedure and Theorem 1 in section 3.1.7 Paper (opens in a new tab)
  10. *Axelsson, “The Base-Rate Fallacy and the Difficulty of Intrusion Detection”, ACM Transactions on Information and System Security 3 (3), August 2000, pages 186 to 205.* Sections 4 and 5 hold the calculation. Its inputs describe a 2000-era installation.11 Paper (opens in a new tab)
  11. *Ioannidis, “Why Most Published Research Findings Are False”, PLoS Medicine 2 (8), August 2005, DOI 10.1371/journal.pmed.0020124.* The PPV model and Table 4. Its inputs are assumptions.9 Essay (opens in a new tab)
  12. *Wasserstein and Lazar, ASA statement on p-values, The American Statistician, 2016, DOI 10.1080/00031305.2016.1154108.* The six principles are quoted above from the ASA release of 7 March 2016.8 Release (opens in a new tab)
  13. Jung, Paxson, Berger and Balakrishnan, “Fast Portscan Detection Using Sequential Hypothesis Testing”, IEEE Symposium on Security and Privacy, May 2004. Sections 4 and 5 hold the model and the trace results. Four or five attempts is a typical empirical result from the two traces, and four is the model-specific minimum for the stated settings.25 Paper (opens in a new tab)
  14. *Open Science Collaboration, “Estimating the reproducibility of psychological science”, Science 349 (6251), 28 August 2015, DOI 10.1126/science.aac4716.* One field, three journals, 100 studies.10 DOI (opens in a new tab)
  15. *Simmons, Nelson and Simonsohn, “False-positive psychology”, Psychological Science 22 (11), November 2011, DOI 10.1177/0956797611417632.* Simulations and two experiments on undisclosed flexibility.20 DOI (opens in a new tab)
  16. Gelman and Loken, “The garden of forking paths”, draft of 14 November 2013. Data-contingent analysis as an implicit multiple comparisons problem.21 Draft (opens in a new tab)
  17. *Benjamin et al., “Redefine statistical significance”, Nature Human Behaviour 2 (1), January 2018, DOI 10.1038/s41562-017-0189-z.* A 0.005 default for claims of new discoveries.23 Comment (opens in a new tab)
  18. *Amrhein, Greenland and McShane, “Scientists rise up against statistical significance”, Nature 567, 20 March 2019, DOI 10.1038/d41586-019-00857-9.* Comment on dichotomised reading of significance.24 Comment (opens in a new tab)

Conclusion

A sample licenses a statement whose strength depends on a model of how the sample arose. Bayes asks what the data make probable and needs a prior, and the prior is where the argument lives. Likelihood compares parameter values by their support from the observed data. A p-value asks how extreme the data would be under a stated model and can indicate incompatibility with it. Neyman and Pearson ask which rule has the best power at a controlled error rate against a specified alternative. Each answers a different question, and each can be misread as an answer to another. A p-value of 0.041 and a posterior probability of 0.24 for the same coin are both correct.

The failures in practice come from what surrounds the formulas: tests run in numbers nobody counted, analyses chosen after seeing the data, effects that are rare among the things tested, and samples that do not resemble the population. Ioannidis’s formula and Axelsson’s false alarm arithmetic apply the same Bayes’ theorem calculation of a positive predictive value. The 36% replication figure is a different quantity, the share (35 of 97) of originally significant effects that were significant again in replication. For a practitioner the working discipline is to ask how many things were tried, how common the target is, how large the effect is with its interval, and who was in the sample.

Footnotes

  1. Thomas Bayes (communicated by Richard Price to John Canton), “An Essay towards solving a Problem in the Doctrine of Chances”, Philosophical Transactions of the Royal Society, Philosophical Transactions of the Royal Society of London 53 (1763), pp. 370-418; the printed text dates Price’s letter as read in December 1763. https://www.york.ac.uk/depts/maths/histstat/essay.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
  2. R. A. Fisher, “On the Mathematical Foundations of Theoretical Statistics”, Philosophical Transactions of the Royal Society of London A 222, pp. 309-368, published 19 April 1922. https://lies.mat.uc.cl/wp-content/uploads/2020/12/Fisher1922.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13
  3. R. A. Fisher, Statistical Methods for Research Workers, Oliver and Boyd, 1925, chapter III (online edition, Classics in the History of Psychology, York University). https://psychclassics.yorku.ca/Fisher/Methods/chap3.htm (opens in a new tab) ↩1 ↩2 ↩3 ↩4
  4. J. Neyman and E. S. Pearson, “On the Problem of the Most Efficient Tests of Statistical Hypotheses”, Philosophical Transactions of the Royal Society A, published 16 February 1933 (received 31 August 1932, read 10 November 1932), DOI 10.1098/rsta.1933.0009; Internet Archive copy of the Royal Society PDF. https://web.archive.org/web/2023/https://royalsocietypublishing.org/doi/pdf/10.1098/rsta.1933.0009 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
  5. “Student” (W. S. Gosset), “The Probable Error of a Mean”, Biometrika 6 (1908), pp. 1-25. https://www.york.ac.uk/depts/maths/histstat/student.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9
  6. B. Efron, “Bootstrap Methods: Another Look at the Jackknife”, Annals of Statistics 7 (1), January 1979, pp. 1-26, DOI 10.1214/aos/1176344552 (abstract page, Project Euclid, Internet Archive snapshot of 2 January 2025). https://web.archive.org/web/20250102025641/https://projecteuclid.org/journals/annals-of-statistics/volume-7/issue-1/Bootstrap-Methods-Another-Look-at-the-Jackknife/10.1214/aos/1176344552.full (opens in a new tab) ↩1 ↩2 ↩3 ↩4
  7. Y. Benjamini and Y. Hochberg, “Controlling the False Discovery Rate: A Practical and Powerful Approach to Multiple Testing”, Journal of the Royal Statistical Society, Series B 57 (1), 1995, pp. 289-300. https://www.math.tau.ac.il/~ybenja/MyPapers/benjamini_hochberg1995.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10
  8. American Statistical Association, “American Statistical Association Releases Statement on Statistical Significance and P-Values”, 7 March 2016, announcing the statement by R. L. Wasserstein and N. A. Lazar, The American Statistician, DOI 10.1080/00031305.2016.1154108. https://www.amstat.org/asa/files/pdfs/p-valuestatement.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4
  9. J. P. A. Ioannidis, “Why Most Published Research Findings Are False”, PLoS Medicine 2 (8), e124, August 2005, DOI 10.1371/journal.pmed.0020124. https://journals.plos.org/plosmedicine/article?id=10.1371/journal.pmed.0020124 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
  10. Open Science Collaboration, “Estimating the reproducibility of psychological science”, Science 349 (6251), aac4716, 28 August 2015, DOI 10.1126/science.aac4716. https://doi.org/10.1126/science.aac4716 (opens in a new tab) ↩1 ↩2 ↩3 ↩4
  11. S. Axelsson, “The Base-Rate Fallacy and the Difficulty of Intrusion Detection”, ACM Transactions on Information and System Security 3 (3), August 2000, pp. 186-205. https://www.profsandhu.com/cs6393_s20/p186-axelsson.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8
  12. D. Donoho, “50 Years of Data Science”, version 1.00, prepared for the Tukey Centennial workshop, Princeton, 18 September 2015; it quotes Tukey 1962. https://courses.csail.mit.edu/18.337/2015/docs/50YearsDataScience.pdf (opens in a new tab) ↩1 ↩2
  13. J. W. Tukey, “The Future of Data Analysis”, Annals of Mathematical Statistics 33 (1), 1-67, March 1962, DOI 10.1214/aoms/1177704711 (citation page, Internet Archive snapshot of 13 December 2024). https://web.archive.org/web/20241213143253/https://projecteuclid.org/journals/annals-of-mathematical-statistics/volume-33/issue-1/The-Future-of-Data-Analysis/10.1214/aoms/1177704711.full (opens in a new tab) ↩1 ↩2
  14. D. R. Brillinger, Statistics 215A lecture handout of 15 September 2003, University of California, Berkeley, quoting Tukey 1962. https://www.stat.berkeley.edu/users/brill/Stat215a/sept16.pdf (opens in a new tab) ↩1 ↩2
  15. I. Todhunter, A History of the Mathematical Theory of Probability, chapter XIV (Bayes), University of York online transcription; it gives pages 370-418 of volume 53, “the volume for 1763”, with “the date of publication” as 1764. https://www.york.ac.uk/depts/maths/histstat/bayestodhunter.htm (opens in a new tab) ↩
  16. B. J. K. Kleijn and A. W. van der Vaart, “The Bernstein-Von-Mises theorem under misspecification”, Electronic Journal of Statistics 6 (2012), 354-381, DOI 10.1214/12-EJS675, section 2.1. https://pure.uva.nl/ws/files/1850322/114737_376240.pdf (opens in a new tab) ↩
  17. A. Gelman, A. Vehtari, D. Simpson, C. C. Margossian, B. Carpenter, Y. Yao, L. Kennedy, J. Gabry, P.-C. Burkner and M. Modrak, “Bayesian workflow”, 2 November 2020, section 6.1. https://sites.stat.columbia.edu/gelman/research/unpublished/Bayesian_Workflow_article.pdf (opens in a new tab) ↩
  18. E. L. Lehmann, “The Fisher, Neyman-Pearson Theories of Testing Hypotheses: One Theory or Two?”, Journal of the American Statistical Association 88 (424), December 1993, pp. 1242-1249 (copy hosted at errorstatistics.com). https://errorstatistics.com/wp-content/uploads/2013/11/lehmann_1-theory-or-2.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
  19. G. James, D. Witten, T. Hastie and R. Tibshirani, An Introduction to Statistical Learning, Springer, 2013 (7th printing), chapters 3 and 5. https://www.statlearning.com/s/ISLR-Seventh-Printing.pdf (opens in a new tab) ↩1 ↩2 ↩3
  20. J. P. Simmons, L. D. Nelson and U. Simonsohn, “False-positive psychology: undisclosed flexibility in data collection and analysis allows presenting anything as significant”, Psychological Science 22 (11), 1359-1366, November 2011, DOI 10.1177/0956797611417632. https://doi.org/10.1177/0956797611417632 (opens in a new tab) ↩1 ↩2
  21. A. Gelman and E. Loken, “The garden of forking paths: Why multiple comparisons can be a problem, even when there is no ‘fishing expedition’ or ‘p-hacking’ and the research hypothesis was posited ahead of time”, draft dated 14 November 2013. https://sites.stat.columbia.edu/gelman/research/unpublished/p_hacking.pdf (opens in a new tab) ↩1 ↩2
  22. Open Science Collaboration, “Estimating the reproducibility of psychological science”, Science 349 (6251), aac4716, 28 August 2015, full text with Table 1 (copy hosted at people.umass.edu). https://people.umass.edu/biep540w/pdf/Open%20Science%20Collaboration%20-%20Reproducibility%20Science%20aug%202015.pdf (opens in a new tab) ↩
  23. D. J. Benjamin et al., “Redefine statistical significance”, Nature Human Behaviour 2 (1), 6-10, online 1 September 2017, DOI 10.1038/s41562-017-0189-z. https://www.nature.com/articles/s41562-017-0189-z (opens in a new tab) ↩1 ↩2 ↩3
  24. V. Amrhein, S. Greenland, B. McShane and more than 800 signatories, “Scientists rise up against statistical significance”, Nature 567, 305-307, online 20 March 2019, DOI 10.1038/d41586-019-00857-9. https://www.nature.com/articles/d41586-019-00857-9 (opens in a new tab) ↩1 ↩2
  25. J. Jung, V. Paxson, A. W. Berger and H. Balakrishnan, “Fast Portscan Detection Using Sequential Hypothesis Testing”, MIT CSAIL and ICSI Center for Internet Research (author copy). https://www.icir.org/vern/papers/portscan-oak04.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
  26. V. Paxson, publication list, ICSI Center for Internet Research, which gives the venue of the Jung et al. paper as Proc. IEEE Symposium on Security and Privacy, May 2004. https://www.icir.org/vern/papers.html (opens in a new tab) ↩
  27. Z.-Q. J. Lu, “Estimating Instrument Performance: with Confidence Intervals and Confidence Bounds”, NIST Technical Note 2119, section 4.1 (Clopper-Pearson interval). https://nvlpubs.nist.gov/nistpubs/TechnicalNotes/NIST.TN.2119.pdf (opens in a new tab) ↩