Hexa Scholar

Sampling distributions: a statistic is a random variable too

A clay merchant scoops small handfuls of gold beads from a large barrel into a row of identical glass cups.
One barrel, many small scoops: each cup is a sample drawn from the same population.

The question

Keep the population fixed. Change the sample, then record its mean.

  1. 1 SeePredict, then stack sample means.
  2. 2 TryTest a sampling plan.
  3. 3 ProveBuild the standard error proof.
  4. 4 ApplySolve sampling problems.
Before you start · 3 quick checks on means, spread, and probability

Two ideas before you start

2 ideas

A sample gives one statistic

Dots show the observations; a dashed line locates their mean.

Select a sample. Its observations become one point when you record only the mean.

Exact definition

A sample is a collection of observed values. Before observing them, write the random variables as \(X_1,\ldots,X_n\). A statistic is a function of these observations that does not use unknown population parameters. The sample mean is

\[\bar X=\frac{1}{n}\sum_{i=1}^n X_i.\]

After observing the data, write their numerical mean as \(\bar x\). The capital letter emphasizes the random quantity before sampling; the lowercase letter is its realized value. The same distinction applies to a sample median or a sample variance.

A distribution needs a sampling rule

Probability masses at the possible values of one draw.

Choose the population. The bars describe one draw, before any observations have been collected.

Exact definition

The sampling distribution of a statistic is its probability distribution under a specified sampling rule, with the population held fixed. It describes what the statistic would do across fresh samples of the same size. You do not need to collect all those samples to define it.

Here the default rule is independent and identically distributed, abbreviated iid: each observation has the same population distribution, and knowing other observations does not change its distribution. Sampling with replacement from a fixed list, with independent random choices, is one way to obtain iid draws.

Three different distributions

The population distribution describes a single draw. The empirical distribution of one sample puts equal weight on each observed value, including repetitions. The sampling distribution of the mean describes a new quantity computed from a whole sample. Its points are means, rather than individual observations.

The lesson on empirical distributions and quantiles constructs a distribution from observations. Here you will also construct an empirical distribution, but its observations will themselves be sample means. Keep track of what one dot represents.

1 See

Predict, then draw fresh samples

2 Try

Test the sampling rule

Sample size counts observations, but the way those observations are collected matters too. Consider a different rule before using a formula.

3 Prove

Account for the cross terms

Theorem

Let \(n\ge2\) be an integer. Suppose \(X_1,\ldots,X_n\) are iid with finite mean \(\mu\) and finite variance \(\sigma^2\gt0\). Write \(Y_i=X_i-\mu\). Then

\[\begin{aligned}E[\bar X]&=\mu,\\\operatorname{Var}(\bar X)&=\sigma^2/n,\\\operatorname{SE}(\bar X)&=\sigma/\sqrt n.\end{aligned}\]

The proof uses linearity of expectation, expansion of a squared sum, and the fact that independent variables with finite second moments have the expectation of their product equal to the product of their expectations. The definition of variance is recalled in expectation and variance.

Choose the next true equation. The assumptions include any real mean, including zero. Every incorrect equation is false throughout the stated range of sample sizes and positive variances.

What changes outside these assumptions?

The moment formulas also hold for a single observation, and for zero population variance. Those cases were excluded from the proof choices to keep the alternative formulas distinct. Zero variance means that every observation equals the population mean with probability one.

Pairwise zero covariance is enough for the variance calculation; full independence is a stronger assumption. For dependent observations the cross terms may survive. Sampling without replacement from a finite population introduces dependence and needs its own variance calculation. A selected or biased sample can also have a different center: a small standard error does not repair a sampling rule that systematically misses part of the population.

In practice the population SD is often unknown. Replacing it with a sample SD produces an estimated standard error, which is itself random. This page uses a known population model so that the true sampling distribution and its standard error can be checked directly.

4 Apply

Use the distribution of the statistic

Each problem has a hint and a worked solution. Identify what is random before choosing a formula. Enter a decimal without units; the accepted error is shown beside each problem.

Key point Name the sampling rule, the statistic, and the quantity being requested. A standard error is a width; a probability also needs information about the shape of the sampling distribution.
Level IntroPrerequisites expectation, variance, and the normal CDF; the central limit theorem is refreshed hereTime about 30 min

Further reading