Algorithm Search⌘K

Conceptintro

Sampling distribution

Also called distribution of a statistic.

The distribution of a statistic over repeated samples from the same population. Standard errors, tests and intervals all come from it.

The sampling distribution of a statistic T=t(X1,…,Xn)T = t(X_1, \ldots, X_n) is the probability distribution of TT when the sample is drawn again and again from the same population at a fixed parameter θ\theta. It is the object on which the properties of an estimator are defined: its mean gives the bias, its standard deviation the standard error, and its concentration as nn grows gives consistency. Confidence intervals and the null distributions of tests are statements about it too.

In plain words

Take a sample and compute one number from it, such as the average. A second sample from the same source gives a slightly different number, and a third gives another. If you could repeat this many times, the numbers would form their own histogram. That histogram is the sampling distribution of the average.

It is not the histogram of the data. The data show how single values vary. The sampling distribution shows how the computed number varies from sample to sample. Its center tells whether the method is right on average. Its width tells how much one result can be trusted. In practice you see only one sample, so the sampling distribution comes from theory, from a computer simulation, or from resampling the one sample you have.

The idea

Three distributions. Keep three distributions apart:

  • the population law PθP_\theta of one observation, with density or mass function f(x;θ)f(x; \theta);
  • the empirical distribution of the observed sample, which puts mass 1/n1/n on each xix_i;
  • the sampling distribution of TT, the law of t(X1,…,Xn)t(X_1, \ldots, X_n) when X1,…,XnX_1, \ldots, X_n are iid PθP_\theta: Pθ(T∈B)=Pθ((X1,…,Xn)∈t−1(B))P_\theta(T \in B) = P_\theta\big((X_1, \ldots, X_n) \in t^{-1}(B)\big).

The sampling distribution depends on θ\theta, on nn and on the function tt. Each property in the table on estimator is a property of it at each θ\theta.

Four ways to find it.

  1. Exactly, by enumeration, a change of variables or a generating function. This works for small discrete problems and for a few families, above all the normal.
  2. Asymptotically, as n→∞n \to \infty. The central limit theorem gives n(Xˉ−μ)\sqrt n(\bar X - \mu) converging in distribution to N(0,σ2)N(0, \sigma^2) when σ2<∞\sigma^2 < \infty, and the delta method carries this to smooth functions of means.
  3. By simulation at a chosen θ\theta: draw many samples with a fixed seed, compute TT on each, and use the Monte Carlo histogram.
  4. By resampling: the bootstrap replaces the unknown PθP_\theta by the empirical distribution and simulates from it.

Normal data. Let X1,…,XnX_1, \ldots, X_n be iid N(μ,σ2)N(\mu, \sigma^2) with n≥2n \ge 2, and let S2S^2 be the sample variance (divisor n−1n - 1). Then (Casella and Berger, Theorem 5.3.1):

  1. Xˉ\bar X has the law N(μ,σ2/n)N(\mu, \sigma^2/n);
  2. (n−1)S2/σ2(n - 1) S^2/\sigma^2 has the chi-square law with n−1n - 1 degrees of freedom;
  3. Xˉ\bar X and S2S^2 are independent;
  4. (Xˉ−μ)/(S/n)(\bar X - \mu)/(S/\sqrt n) has the Student t law with n−1n - 1 degrees of freedom.

Item 3 is special to the normal. Lukacs (1942) proved that if X1,…,XnX_1, \ldots, X_n (n≥2n \ge 2) are iid with finite variance and Xˉ\bar X and S2S^2 are independent, then the law is normal. Item 4 is exact only under normal iid data; for other data it holds only approximately for large nn.

Pivots. The ratio in item 4 depends on μ\mu, so it is not a statistic, but its law is free of (μ,σ)(\mu, \sigma). Such a quantity is a pivot. Inverting a pivot gives an interval with exact coverage, as the t interval does.

Examples

Exact enumeration. Let the population be uniform on {1,2,9}\{1, 2, 9\}, so μ=4\mu = 4 and σ2=38/3\sigma^2 = 38/3 (divisor N=3N = 3 for a whole population law). Draw n=2n = 2 values with replacement. The 9 ordered pairs are equally likely, and Xˉ\bar X has this law:

xˉ\bar x 1 1.5 2 5 5.5 9
probability 1/9 2/9 1/9 2/9 2/9 1/9

Its mean is 4=μ4 = \mu and its variance is 19/3=σ2/219/3 = \sigma^2/2, as the general formulas E[Xˉ]=μ\mathbb{E}[\bar X] = \mu and Var⁡(Xˉ)=σ2/n\operatorname{Var}(\bar X) = \sigma^2/n require. The law is not symmetric, even though Xˉ\bar X is unbiased. The sample variance S2=(X1−X2)2/2S^2 = (X_1 - X_2)^2/2 takes the values 00, 1/21/2, 49/249/2 and 3232 with probabilities 1/31/3, 2/92/9, 2/92/9 and 2/92/9. Its mean is 38/3=σ238/3 = \sigma^2, so S2S^2 is unbiased, but E[S]=2.514\mathbb{E}[S] = 2.514 while σ=3.559\sigma = 3.559. Here Xˉ\bar X and S2S^2 are dependent: S2=32S^2 = 32 forces Xˉ=5\bar X = 5.

Counts. For iid Bernoulli(p)(p) data, nXˉn\bar X has the Binomial(n,p)(n, p) law exactly. Its standard error is p(1−p)/n\sqrt{p(1-p)/n} on the scale of Xˉ\bar X.

The maximum. For iid Uniform(0,θ)(0, \theta) data, Pθ(max⁡iXi≤t)=(t/θ)nP_\theta(\max_i X_i \le t) = (t/\theta)^n for 0≤t≤θ0 \le t \le \theta. The law piles up just below θ\theta, with a spread of order 1/n1/n, not 1/n1/\sqrt n.

No concentration. For iid Cauchy data, Xˉ\bar X has the same standard Cauchy law for every nn (by the characteristic function e−∣s∣e^{-\lvert s \rvert}). The sampling distribution does not narrow, so Xˉ\bar X is not consistent for the center, while the sample median is.

Where it is used

  • Properties of estimators. Bias, standard error, mean squared error and consistency are each a property of the sampling distribution.
  • Intervals. A confidence interval has its coverage over the sampling distribution at a fixed θ\theta.
  • Tests. The null distribution of a test statistic is its sampling distribution under the null hypothesis, and a p-value is a tail probability of it.
  • Survey sampling. In design-based inference the population values are fixed, and the randomness comes only from which units the design selects. The Horvitz-Thompson estimator is unbiased over that sampling distribution.
  • The Bayesian contrast. A posterior distribution is conditional on the observed data and treats θ\theta as random. It is not a sampling distribution, and the two answer different questions.

References

  1. George Casella and Roger L. Berger, Statistical Inference, second edition, Duxbury, 2002, Section 5.2 (the sampling distribution of a statistic of a random sample) and Section 5.3.1 (properties of the sample mean and variance of normal data, Theorem 5.3.1)
  2. Eugene Lukacs, A characterization of the normal distribution, Annals of Mathematical Statistics 13(1), 1942, pp. 91 to 93 (independence of the sample mean and the sample variance implies normality, under a finite variance)
  3. Bradley Efron and Robert J. Tibshirani, An Introduction to the Bootstrap, Chapman and Hall, 1993, Chapter 2 (the accuracy of a sample mean) and Chapter 6 (the bootstrap estimate of standard error)

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/EJ454X/text.yaml