Populations, Samples, and Statistics
Suppose a factory produces millions of light bulbs. You want to know their average lifetime. You cannot test every bulb, since testing destroys it. So you test a handful and hope it tells you something true about the millions. This is the founding problem of statistical inference: reasoning from a sample back to a population. You may use only what randomness and mathematics allow you to justify. Nearly every method downstream — confidence intervals, hypothesis tests, regression, machine learning — is built on the precise machinery introduced here. The key intellectual move is to treat the data itself as random. Before you draw the sample, the observations you will get are unknown. So we model them as random variables. Once you commit to a probabilistic model for how the sample relates to the population, things become computable. You can compute exactly how a numerical summary of the sample — a statistic — behaves. You can also compute how close it is likely to be to the population quantity of interest. This turns "does the sample tell us the truth?" into a question with a computable, quantitative answer. This article makes rigorous three intertwined ideas. First, what a statistical population is. Second, what it means for a sample to be a random sample (in particular, an iid sample). Third, what a statistic is as a function of the data. We prove the two basic facts that make sample averages trustworthy tools. The sample mean is an unbiased estimator of the population mean. Its variance shrinks like as the sample size grows. These two facts are the seed from which the entire theory of sampling distributions and estimation grows. By the end, you will have a precise vocabulary — population, parameter, random sample, statistic. You will also have one clean, fully proved theorem. It already explains why "more data is better" in a quantitative sense. Everything later in statistical inference (unbiasedness, consistency, the method of moments, confidence intervals) is a refinement of the ideas fixed here.
- A population is described by a probability distribution with unknown features called parameters.
- A random sample is a collection of iid random variables drawn from that distribution.
- A statistic is any function of the sample that does not depend on unknown parameters.
- The sample mean and sample variance are the two most important statistics.
- always (unbiasedness), and shrinks as grows.
- Independence and identical distribution are both essential — dropping either breaks the variance formula.
- Key idea: treating unobserved data as random variables lets you compute, not just guess, how trustworthy a sample summary is.
Where this lives today
The population/sample/statistic vocabulary is the operating system beneath essentially all data-based science. In clinical trials, patients enrolled are a sample from the (hypothetical) population of all patients with a condition, and treatment-effect estimates are statistics computed from that sample. In survey sampling and polling, pollsters explicitly model respondents as a random sample from a voter population, using finite-population corrections exactly like the one in the counterexample above when the sampling fraction is non-negligible. In machine learning, a training set is treated as an iid sample from an unknown data-generating distribution, and quantities like the average training loss are statistics whose expectation and variance (over resampling of the training set) govern generalization theory. In quality control and manufacturing, control charts plot sample means over time precisely because their known mean and shrinking variance make deviations from statistically meaningful. In physics and engineering measurement, repeated instrument readings are modeled as iid samples around a true value, with used to reduce measurement noise by a factor of in standard deviation — a direct consequence of . In cryptography and randomized algorithms, statistical tests for randomness draw on exactly this apparatus to check whether observed bit-sequences behave like iid samples from a uniform population.
For an iid sample, regardless of , while decreases as increases.
:::quiz[Why does the proof of require independence but the proof of does not?]
- Expectation is only linear for independent variables
- Variance of a sum needs covariance terms to vanish, which independence guarantees; expectation of a sum is always additive regardless of dependence ✓
- Independence is never actually used in either proof
- Identical distribution alone implies independence
Ask the tutor: How does the sampling distribution of change if the population itself is Normal versus non-Normal?
A statistical population is a probability distribution (equivalently, a random variable with that distribution) representing the entire collection of values under study. Numerical features of — such as its mean or variance — that are fixed but typically unknown are called parameters. A random sample of size from is a finite sequence of random variables
defined on a common probability space. The sample is called independent and identically distributed (iid) if: 1. (Independence) are mutually independent random variables. 2. (Identical distribution) Each has the same distribution as the population. Unless stated otherwise, "random sample" means an iid random sample. A statistic is any Borel-measurable function
of the sample that contains no unknown parameters — that is, is itself an observable random variable, computable once the data are observed. Its realized numerical value , computed from the actual observed data, is called the observed value of the statistic. The two central statistics are the sample mean
and the sample variance
Intuition
Think of the population as an enormous urn of numbered balls whose overall composition — the average value written on the balls, how spread out those values are — is unknown to you. Sampling means reaching in, drawing balls without seeing the rest, and using only what is on those balls to guess at the urn's composition. The word "random" is doing two jobs at once, and both matter. First, before you draw, you do not know which values you will get, so each is modeled as a random variable, not a fixed number. Second, the draws should not influence each other and should each reflect the same underlying urn — this is exactly the independence and identical-distribution conditions. If the balls are drawn with replacement (or the urn is infinite, or you sample a tiny fraction of a huge finite population), the iid model is essentially exact; if you sample without replacement from a small finite population, the draws are dependent, though still identically distributed marginally — a subtlety addressed in the counterexample below. A statistic is then a rule for turning the random numbers you will get into a single random number — a data-driven guess. Because is built from random variables, is itself random: draw the sample again and you likely get a different . The genius of the framework is that even though we cannot know the realized value of in advance, we can compute its entire probability distribution's key features — mean and variance — from the population's parameters, before ever collecting data.
Let be a random sample (iid) from a population with finite mean and finite variance . Let
Then: 1. . 2. . Consequently in the sense that as ; larger samples produce sample means with less variability around the true population mean.
We use only linearity of expectation and the definition of variance, together with the independence and identical-distribution hypotheses. This is a direct computational proof (no induction beyond the finite additivity already built into linearity of expectation, and no appeal to any limit theorem).
Step 1 (Linearity of expectation applies unconditionally). Expectation is linear for any finite collection of random variables with finite means, regardless of dependence structure:
This is a basic property of expectation (additivity), valid because each has finite mean by hypothesis, so the sum has finite mean and the interchange of and finite sum is justified.
Step 2 (Compute ). Since each has the same distribution as the population (identical distribution hypothesis), for every . Hence
This proves part 1. Note that identical distribution alone (no independence needed) suffices for this step.
Step 3 (Variance of a sum requires independence). For any random variables with finite variances, the general bilinearity of covariance gives
This is an algebraic identity: expand and use the bilinearity of the product of sums, which yields exactly the diagonal terms and off-diagonal terms for .
Step 4 (Independence kills the cross terms). By hypothesis are mutually independent. Independent random variables with finite variance are uncorrelated: if (), then (a standard consequence of independence for random variables with finite means, since independence implies whenever both expectations exist), and therefore
Substituting into Step 3 with , all cross terms vanish:
Step 5 (Use identical distribution). Since each has the same distribution as the population, for every . Hence
Step 6 (Scale by ). For any random variable and constant , — this follows directly from the definition . Applying this with and :
This proves part 2.
Step 7 (Consequence). Since is a fixed finite constant (independent of ) and as , the sample mean's variability around shrinks to zero, while its expectation remains exactly for every .
∎Worked examples
Example 1 — Asymmetric discrete population, small sample. A quality-control population of manufactured joints has defect counts per joint following a distribution on :
This is a genuinely asymmetric distribution. First compute the population mean and variance.
Now take a random sample of size , iid from this distribution — think of inspecting 4 joints from a very large production run, so independence and identical distribution are realistic. By the theorem,
Suppose the actual observed defect counts were . The observed value of the statistic is
Notice this single observed value happens to coincide numerically with ; that is a coincidence of this particular draw, not a guarantee — what the theorem guarantees is that averaged over all possible samples of size 4, the mean of equals exactly, and its spread (variance , standard deviation ) is a known, computable quantity, not a guess. To see the shrinking-variance effect quantitatively, compare to :
a 25-fold reduction in variance (matching the 25-fold increase in ), so the standard deviation of shrinks by a factor of , from about to about .
Example 2 — Continuous population, computing a statistic and checking unbiasedness numerically. Let the population be with rate (mean lifetime years for a component), so and . Take a random sample of size representing 5 independently tested components from a very large batch (so iid is justified). Suppose the observed lifetimes (in years) are:
The observed sample mean is
The observed sample variance uses :
Sum . Hence
Compare with the theorem's predictions before any data were drawn: and , so the standard deviation of is . Our single observed value is well within one standard deviation of (difference of only ), consistent with — though of course not a proof of — the predicted behavior. This illustrates the general logic of inference: the theorem tells us in advance the distributional behavior of (centered at , with a computable spread), and any one observed sample is a single random draw from that distribution.
Drop the identical-distribution/independence structure by sampling without replacement from a small finite population, and see the variance formula fail. Consider a tiny population of items with values . Population mean:
(Here is the population variance, dividing by , as is standard for a finite population.) Now draw items without replacement, uniformly at random, and let denote the first and second draws. Each individually is uniform over (identical distribution does still hold marginally: for each ), but and are not independent, since after seeing , only 3 values remain equally likely for . Compute directly by enumerating all equally likely ordered pairs with :
The corresponding sample means are: (each with probability ). Direct computation gives (unbiasedness of survives dependence — it only used linearity of expectation and identical marginal distributions, not independence). But now compute the variance:
If the iid formula were applied blindly here, it would predict
which is wrong — it overstates the true variance (). The correct formula for sampling without replacement includes a finite-population correction factor :
which matches the direct computation exactly. This shows precisely where independence was used in the theorem's proof (Step 4): without it, Step 3's cross-covariance terms do not vanish, and the simple formula is invalid.
Scope, edge cases & common traps
| Situation | What holds | What can fail |
|---|---|---|
| Sampling with replacement, or from an (effectively) infinite population | Full iid theorem applies exactly | — |
| Sampling without replacement from a finite population, small relative to | still holds | fails; needs finite-population correction |
| (e.g., heavy-tailed population) | still unbiased if finite | undefined; "shrinks like " claim is meaningless |
| Statistic depends on unknown parameters (e.g. with unknown ) | — | Not a statistic at all, by definition |
| Sample size | Theorem still technically true | ; no reduction in variability |
The mathematician behind it
Origins · 1 minRonald Aylmer Fisher and how this was discovered
Fisher gave statistics its modern mathematical backbone: the precise notions of a statistical population modeled by a parametric distribution, a random sample as a repeatable idealization of an experiment, and a statistic as any function of the data usable for inference. His 1922 paper On the Mathematical Foundations of Theoretical Statistics introduced much of the vocabulary — parameter, statistic, likelihood, sufficiency, consistency — that this very article relies on, and set the agenda for point estimation that the next articles in this chapter carry forward.
What exactly is the difference between a population and a sample?
A population is the entire distribution of interest — every unit or value you could in principle observe, described mathematically by a probability distribution with fixed but often unknown parameters like and . A sample is a finite, observable subset drawn from that population, modeled (under the iid assumption) as random variables each distributed as and mutually independent. The population is typically infinite or too large to fully examine; the sample is what you actually collect and compute with. Inference is the bridge: using known probabilistic relationships between sample statistics and population parameters (like the theorem in this article) to make justified claims about the population from the sample alone.
Why must a statistic not depend on unknown parameters?
The entire purpose of a statistic is to be computable from data you actually observe. If a function of the sample also involves an unknown parameter — for instance where is unknown — then you cannot compute its numerical value once the data are in hand, because itself is unknown; that formula still depends on a piece of information nobody has. Excluding unknown parameters from the definition of a statistic keeps the concept useful for its intended job: a statistic is meant to estimate or test something about unknown parameters, so it cannot itself secretly assume knowledge of them. Quantities like , using the sample mean instead, are legitimate statistics.
Does mean converges to ?
It is strong evidence toward convergence but is not itself a convergence proof. The formula shows the variance of shrinks to zero as , meaning becomes less and less spread out around in a mean-square sense. Combined with Chebyshev's inequality, this does imply convergence in probability of to — this chain of reasoning is exactly how one proves the weak Law of Large Numbers under a finite-variance assumption. But that extra logical step (applying Chebyshev, taking a limit of tail probabilities) is separate machinery, built on top of, not identical to, the mean/variance computation given here.
Why is the sample variance divided by instead of ?
Dividing by rather than makes an unbiased estimator of , meaning exactly for every sample size . Intuitively, the sample mean is itself estimated from the same data used to measure spread, and is always at least as close to the data (in squared distance) as the true unknown would be, which systematically shrinks relative to ; dividing by instead of exactly corrects this shrinkage on average. A full proof of belongs to the article on Point Estimation and Estimators, since it requires analyzing and jointly.
Is the iid assumption ever exactly true in real data?
Rarely exactly, but often an excellent approximation. Sampling with replacement from any population makes iid exact by construction. Sampling without replacement from a very large population relative to the sample size (say, a national survey with in the thousands from a population of hundreds of millions) makes the dependence between draws negligible, since the finite-population correction factor is extremely close to . The iid model breaks down more seriously when the population is small relative to , or when observations are naturally sequential and correlated, such as daily stock returns or repeated measurements on the same subject over time — situations requiring the more general dependent-sampling models mentioned in the counterexample.
What is the practical difference between a parameter and a statistic?
A parameter is a fixed (though usually unknown) number describing the population, such as or ; it does not change no matter how many samples you draw, since it belongs to the population itself, not to any particular sample. A statistic is a random variable computed from a sample, such as or ; its value changes from sample to sample, and it has its own probability distribution (called its sampling distribution, the subject of the next article in this chapter). The entire logic of estimation is to use a statistic, whose distribution you can compute or approximate, as a data-based stand-in for a parameter you cannot directly observe.
Why does the theorem require finite variance ?
The proof's Step 3–6 chain manipulates and as finite numbers; if (as happens for heavy-tailed distributions like the Cauchy distribution, which additionally has no finite mean at all), these quantities are not well-defined finite numbers, and the algebra of Step 6 () becomes vacuous or undefined. The unbiasedness result only needs to be finite (finite mean), a strictly weaker requirement than finite variance, which is why Step 2 of the proof survives even in some heavy-tailed cases where Steps 3–6 do not apply.