Mathematical statistics
Mathematical statistics is the theory of statistical methods and the mathematical side of statistics.[1] It works out how methods for learning from data behave, such as how close an estimate is likely to come to the truth, how often a test reaches a wrong conclusion, and which method does best for a given task. These results support the statistical inference used in health care, biology, engineering, business, economics, and many other fields.[2]
The field is built on probability theory, the mathematics of chance. Data vary by chance, so any theory of drawing conclusions from data has to rest on probability.[1]
From probability to statistics
Probability and statistics ask opposite questions.[3]
| Approach | What is given | What is asked |
|---|---|---|
| Probability | A process that generates data | What the outcomes will look like |
| Statistical inference | The observed outcomes | What can be said about the process that generated them |
A coin's fixed chance of heads is a different kind of number from the share of heads in a sample.[4] The chance is 1/2 for a fair coin, perhaps something else for a bent one, and it does not change. The share of heads is computed from the data and changes from one run of tosses to the next.
In his 1922 paper, Ronald Fisher gave these two kinds of quantity different names on purpose. He made parameter the standard term for the fixed unknown number and used statistic for a number computed from a sample to estimate it.[5]
Fisher's three problems
In the same paper, Fisher split the theory into three problems:[4]
- Specification: choose the family of distributions that could have produced the data.
- Estimation: find statistics that estimate the unknown parameters.
- Distribution: work out how those statistics vary from sample to sample.
Basic ideas
Models and samples
A probability distribution gives the chance of each possible data value. A statistical model is a family of probability distributions , one for each value of a parameter in a set .[6]
The data are usually assumed to be independent and identically distributed (IID). That means each value comes from the same distribution and does not affect the others, where is the true but unknown parameter.[6]
Statistics and their distributions
Two terms describe how a statistic behaves:
- An estimator is a statistic used to guess a parameter. Because it is computed from random data, it is itself random.[7]
- The sampling distribution of a statistic is its distribution over repeated samples.
Fisher described theoretical statistics as switching back and forth between two kinds of problem:[4]
- Propose a way to estimate a parameter.
- Work out the estimate's sampling distribution to see how large its errors are.
Two limit laws
Two results from probability theory describe the sample mean when the sample size is large.
- The law of large numbers: for IID data with finite mean , converges in probability to as grows.[6] Converging in probability means that the chance of being more than any fixed distance from shrinks to zero.
- The central limit theorem: for IID data with finite mean and finite variance , the scaled error of approaches a normal distribution.[8] Variance measures how spread out values are around their mean, and its square root is the standard deviation.
Here means convergence in distribution: probabilities about the left side approach those of a normal variable with mean 0 and variance .[8]
In practice, for large , is roughly normal with mean and variance .[6] Its standard deviation is therefore , which is times smaller than that of a single observation.
Estimation
Estimation theory asks how to guess a parameter from data and how to measure the quality of the guess.
Judging an estimator
Three measures describe how well an estimator tracks the true parameter :[7]
- The bias, , says how far the estimator's average lands from the truth. An estimator with zero bias is called unbiased.
- The standard error, , says how much it scatters around its own average.
- The mean squared error (MSE), , combines both.
The MSE splits exactly into a variance part and a bias part:[7]
Small bias alone does not make an estimator accurate if its standard error is large, and small standard error alone does not either if the bias is large.[7]
A running example on this page is the Poisson distribution, a model for counts that takes the values 0, 1, 2, and so on, with mean .[7]
For Poisson data, the sample mean is unbiased and has variance .[6]
Maximum likelihood
The likelihood function treats the probability of the observed data as a function of the parameter, with the data held fixed:
For discrete data, which take values from a countable set such as whole-number counts, is the probability of seeing exactly these values if the true parameter were . The maximum likelihood estimator (MLE) is the value of in that makes largest.[9]
Two examples recur on this page:[6]
- Coin tosses: with heads in tosses, , and the MLE is .
- Poisson counts: the MLE of is the sample mean .
Fisher's name for the idea changed over a decade. His first paper, written in 1912 as an undergraduate, called it the "absolute criterion", and the 1922 paper named it maximum likelihood.[4]
In 1922 Fisher also insisted that likelihood is not a probability for the parameter, since it cannot be integrated over a range of parameter values.[4]
Fisher proposed the MLE as a method that applies in general. He made two claims about it without proof:[10]
- It homes in on the true value as the sample grows.
- In large samples, it has the smallest possible variance.
The MLE has since become the most widely used method of estimation.[10]
Fisher information and the Cramér-Rao bound
Fisher information measures how much one observation tells about . It is defined from the score , the slope of the log-likelihood as the parameter changes:[6]
The information belongs to the model, not to any particular estimator.[11] The Cramér-Rao bound uses it to set a floor on how precise an unbiased estimator can be. Under mild smoothness conditions on the model, similar to those listed in the section "Large-sample theory", every unbiased estimator built from IID observations satisfies[11]
An unbiased estimator whose variance equals this bound is called efficient.[11] For Poisson data, , so the bound is .[6] The sample mean has exactly this variance, so it is efficient.
C. R. Rao proved the inequality in a 1945 paper, and Harald Cramér worked on the same problem independently.[12]
The same 1945 paper also started a way of measuring distance between distributions based on Fisher information.[12]
Sufficiency
A sufficient statistic keeps all the information about the parameter that the sample contains.[4] Fisher introduced the idea in 1922, as part of his view that statistics should reduce data to a few numbers without losing relevant information.[4]
The Rao-Blackwell theorem puts sufficiency to work. Starting from any estimator, it builds one that depends on the data only through a sufficient statistic and is at least as good, and usually better.[12]
The result is not limited to mean squared error. It also holds for more general risk functions, which are ways of measuring an estimator's performance, such as its expected loss.[12]
Rao and David Blackwell found the theorem independently, working on the same problem at the same time.[12]
Hypothesis testing
A hypothesis test uses data to choose between a null hypothesis and an alternative . It rejects when the data fall in a chosen rejection region.[13]
Errors and power
- A type I error rejects when it is true. The significance level is the probability of rejecting when is true.[13]
- A type II error fails to reject when is true.[13]
- The power of a test is the probability of rejecting when is true.[13]
The goal is to make power as large as possible while keeping the type I error probability at most .[13]
The Neyman-Pearson lemma
The Neyman-Pearson lemma solves this problem when each hypothesis names a single distribution. Write and for that distribution under and : a density function for continuous outcomes, or a mass function giving each probability for discrete outcomes.[13] The lemma uses the likelihood ratio, which compares how likely the observed data are under the two hypotheses:[13]
Suppose the test that rejects when , for a constant , has significance level . Then no other test with significance level at most has more power against .[13] The points with the smallest ratio add the least type I error for each unit of power gained.[13]
Jerzy Neyman and Egon Pearson published the result in 1933. Their paper made finding optimal procedures a planned effort for the first time.[10]
Uniformly most powerful tests
A uniformly most powerful (UMP) test is most powerful against every alternative at once. Such tests exist only rarely.[10] One example is testing whether a coin is fair against the alternative that heads is more likely: rejecting when the number of heads exceeds a cutoff is UMP.[13]
When no UMP test exists, extra conditions are added. In follow-up papers in 1936 and 1938, Neyman and Pearson required unbiasedness (power at least for every alternative).[10] They showed that the two-sided t-test, which looks for a difference from the null value in either direction rather than in only one, is UMP among unbiased tests.[10]
Confidence intervals
A confidence interval is an interval computed from the data that contains the true parameter with a stated probability.[14]
Its endpoints are statistics, so the interval changes from sample to sample. If 100 separate 90% intervals are built from 100 independent data sets, about 90 of them should contain the true value.[14]
Many intervals rely on the fact that, in large samples, the MLE is roughly normal with mean and variance .[6] Plugging in for the unknown gives the approximate interval[14]
Here is the point with probability above it under the standard normal curve.
The approximation can fail in small samples. In simulations of Poisson data with and , a stated 90% interval of this kind covered the true value only 63% of the time.[14]
Frequentist and Bayesian approaches
The methods above treat the parameter as a fixed unknown number. This is the frequentist approach. Bayesian statistics instead treats the parameter as a random variable and updates beliefs about it with data.[15]
| Feature | Frequentist | Bayesian |
|---|---|---|
| Parameter | Fixed, unknown number | Random variable with a prior distribution |
| Result of analysis | Estimates judged by their sampling distribution | Posterior distribution of the parameter |
| Interval | Confidence interval: the interval is random | Credible interval: the parameter is random |
Updating with Bayes' theorem
The posterior distribution follows from Bayes' theorem. It is proportional to the likelihood times the prior:[15]
Here is the prior, is the model, and is a constant that does not depend on .[15]
The coin example uses the Beta distribution Beta, a family of distributions on the interval from 0 to 1 with density proportional to .[15]
With a uniform prior on the heads probability , observing heads in tosses gives a Beta posterior, with posterior mean .[15]
A prior chosen so that the posterior has the same form is called conjugate. It is used mainly for convenience.[15]
Interpreting intervals
A credible interval has posterior probability of containing the parameter.[15] For a confidence interval, the probability statement is about the random interval, not the parameter.[15]
The two views have long been debated. Fisher rejected computing the probability that a parameter lies in a range, arguing in 1921 that this cannot be determined without knowing how parameter values arise, and he used likelihood instead.[4]
Decision theory
Statistical decision theory treats estimation and testing as special cases of choosing an action under uncertainty.[16]
Abraham Wald started this approach in a 1939 paper and developed it into his 1950 book Statistical Decision Functions.[10]
Loss and risk
The theory has four parts:[16]
- an action space of possible decisions, such as possible estimates;
- a loss function giving the cost of action when the parameter is ;
- a decision rule that picks an action from the data;
- the risk, which is the expected loss.
With squared loss , the risk of an estimator is its mean squared error.[16]
Choosing a rule
Risk depends on the unknown , so one rule is rarely best for every . The theory offers several ways to compare rules:[16]
- A minimax rule makes the worst-case risk, , as small as possible.
- A Bayes rule makes the average risk as small as possible for a prior .
- A rule is admissible if no other rule has risk at least as low for every and strictly lower for some .
These ideas connect. Any unique Bayes rule is admissible, and a Bayes rule with constant risk is minimax.[16]
Stein's paradox
Admissibility can fail in surprising places. For normal data in one dimension with known variance, the sample mean is admissible under squared loss.[16]
The picture changes in higher dimensions. Take normal data with known variance and total squared-error loss, and let the mean vector (the list of means, one for each coordinate) have three or more coordinates. Then the James-Stein estimator has smaller risk than the sample mean, even when the coordinates are unrelated, a result known as Stein's paradox.[16]
Sequential testing
During World War II, Wald proposed the sequential probability ratio test for testing a simple hypothesis against a simple alternative. It keeps collecting observations while the likelihood ratio stays between two limits and stops as soon as it crosses one.[10]
In 1948, Wald and Jacob Wolfowitz proved that, for a simple hypothesis against a simple alternative, it needs the fewest observations on average among tests with the same or smaller error probabilities, under both hypotheses.[10]
Large-sample theory
Asymptotic theory studies what happens as the sample size grows without limit.
An estimator is consistent if it converges in probability to the true parameter. It is asymptotically normal if converges in distribution to a normal distribution.[6]
Asymptotic normality of the MLE
For a model with one real parameter and IID data, suppose these regularity conditions hold, along with some further technical ones:[6]
- All distributions in the model have the same support (the set of possible values).
- The true value lies in the interior of , not on its boundary.
- The log-likelihood is differentiable, and is the unique solution of .
Then the MLE is consistent and[6]
So for large the MLE has variance close to , the Cramér-Rao bound. For this reason it is called asymptotically efficient.[11]
The proof combines three ingredients:[6]
- The law of large numbers handles the second derivative of the log-likelihood.
- The central limit theorem handles the score.
- A first-order Taylor expansion of around , a linear approximation near that value, links the two.
Limits of Fisher's claims
The study of Fisher's claims about the MLE led to counterexamples, even to consistency. It also led to the discovery of superefficiency, where an estimator beats the bound at some parameter values.[10]
Under suitable restrictions, Fisher's claim is essentially correct when the likelihood equation has a unique root.[10] Stronger results show that no estimator, biased or not, can have asymptotically smaller mean squared error than , except possibly on a small set of parameter values.[11]
Asymptotic tests
For tests, alternatives are moved closer as grows, , so that power tends to a limit between 0 and 1.[10]
Under weak assumptions, several tests are asymptotically most powerful in this sense:[10]
- the likelihood ratio test;
- the Wald test, introduced by Wald in 1943, which rejects when the MLE lies far from compared with its uncertainty, as measured through the Fisher information;[17]
- Rao's score test.
Telling them apart requires higher-order approximations, which add correction terms that make a large-sample approximation more precise.[10] The first-order theory is due to Lucien Le Cam.[10]
Resampling and computation
Computers made it possible to approximate sampling distributions by simulation. In 1979, Bradley Efron introduced the bootstrap, which estimates the sampling distribution of a statistic from the observed data alone.[18]
The simulation form of the bootstrap works in four steps:[18]
- Treat the observed data as a stand-in for the unknown population.
- Draw a new sample of the same size from the observed data at random, with replacement, so a value can be picked more than once.
- Recompute the statistic on the new sample.
- Repeat steps 2 and 3 many times. Use the histogram of the recomputed values (a graph counting how many fall in each range) as an approximation to the statistic's sampling distribution.
Efron noted that this simulation is easy to run on a computer.[18]
He also compared the bootstrap with the older jackknife method, which recomputes a statistic with observations left out one at a time. He showed that the jackknife is a linear approximation to the bootstrap.[18]
History
The field grew from early work on combining measurements into a theory built on axioms and proofs.
| Year | Development |
|---|---|
| Early 1800s | Laplace and Gauss study the best linear estimates; the Gauss-Markov theorem later states that least squares estimates have minimum variance among linear unbiased estimates[10] |
| 1908 | Francis Edgeworth publishes ideas similar to Fisher's later work, recognized only after 1922[4] |
| 1922 | Fisher's "On the mathematical foundations of theoretical statistics" introduces consistency, efficiency, and sufficiency, and names maximum likelihood[4] |
| 1930 | Harry Carver founds the Annals of Mathematical Statistics[19] |
| 1933 | Neyman and Pearson publish their theory of most efficient tests[10] |
| 1933 | Andrey Kolmogorov's Grundbegriffe sets out axioms that make probability a measure[20] |
| 1935 | The Institute of Mathematical Statistics is organized at Ann Arbor on September 12, with the Annals as its journal[19] |
| 1939 to 1950 | Wald develops statistical decision theory[10] |
| 1945 | Rao publishes the information inequality, found independently by Cramér[12] |
| 1948 | Wald and Wolfowitz prove the optimality of the sequential probability ratio test[10] |
| 1958 to 1981 | Jack Kiefer studies optimal experimental design (choosing how to run an experiment so the estimates are as precise as possible) in more than 40 papers[10] |
| 1979 | Efron introduces the bootstrap[18] |
Erich Lehmann described the field's growth as a period of new ideas from Student and Fisher. It was followed by a period that brought those ideas together into the optimality theory of Neyman, Pearson, Wald, and their students.[10]
Current directions
Modern data sets are very large and the problems complex, and many new methods are first proposed by trial and error.[10] Lehmann argued that the field's task is to supply theory for such methods and to find the conditions under which they are best possible.[10]
Classical tools continue to spread to new settings. Bounds similar to the Cramér-Rao bound have been derived for nonparametric and semiparametric models, where the data distribution is not fixed by a few parameters.[12]
References
- Mathematical Statistics, Springer, 2006.
- Statistics, Encyclopaedia Britannica.
- All of Statistics: A Concise Course in Statistical Inference, Larry Wasserman, Springer, 2004.
- From evidence to understanding: a commentary on Fisher (1922) 'On the mathematical foundations of theoretical statistics', Philosophical Transactions of the Royal Society A, 2015.
- Earliest Known Uses of Some of the Words of Mathematics (P), MacTutor History of Mathematics, University of St Andrews.
- Lecture 14: Consistency and asymptotic normality of the MLE, STATS 200, Stanford University, 2016.
- Lecture 12: Parametric models and method of moments, STATS 200, Stanford University, 2016.
- 254A, Notes 2: The central limit theorem, Terence Tao, 2010.
- Lecture 13: Maximum likelihood estimation, STATS 200, Stanford University.
- Some History of Optimality, Erich L. Lehmann, Institute of Mathematical Statistics, 2009.
- Lecture 15: Fisher information and the Cramer-Rao bound, STATS 200, Stanford University, 2016.
- C.R. Rao: Paramount statistical scientist (1920 to 2023), Proceedings of the National Academy of Sciences, 2024.
- Lecture 6: Simple alternatives and the Neyman-Pearson lemma, STATS 200, Stanford University, 2016.
- Lecture 18: Confidence intervals, STATS 200, Stanford University, 2016.
- Lecture 20: Bayesian analysis, STATS 200, Stanford University, 2016.
- Lecture 1: Elementary decision theory, STAT 581, University of Washington.
- Lecture 26: Asymptotic LRT, Wald test, and score test, Jun Shao, Stat 610, University of Wisconsin-Madison, 2014.
- Bootstrap Methods: Another Look at the Jackknife, The Annals of Statistics, 1979.
- The Founding of the IMS, Institute of Mathematical Statistics.
- The non-mathematical section of Kolmogorov's Grundbegriffe, Vladimir Vovk, probabilityandfinance.com.
