Skip to content

Simple random sampling

Select every size-n subset with equal probability, enumerate a five-record fee audit, and distinguish equal inclusion from SRS and its finite-population variance correction.

Simple random sampling selects a fixed number of units so that every possible sample of that size has the same chance of selection. For the finite-population, without-replacement version used here, a selected unit cannot appear twice in one sample. The defining condition applies to entire samples, not just to individual units.
Let the population contain NN labelled units and let the sample contain nn distinct units, with 1≤n≤N1\le n\le N. For every size-nn subset ss,
P(S=s)=1(Nn).\mathbb{P}(\mathcal{S}=s)=\frac{1}{\binom{N}{n}}.
Here S\mathcal{S} is the random set of selected labels. Labels matter: two trades with identical fees are still two separate sampling units. This all-subsets definition is also the one in Measurement Canada's random-sampling specification, §3.1.13.

A fee audit with only ten possible outcomes

Suppose an operations analyst wants the average fee on a closed batch of five trade records. The synthetic fees are A: USD 0, B: USD 1, C: USD 2, D: USD 3 and E: USD 4. Reviewing two records is cheaper than reviewing the whole batch. The complete values are shown here so that we can evaluate the sampling rule; an actual audit would uncover only the sampled values.

There are (52)=10\binom52=10 possible unordered pairs. Select each with probability 1/101/10 and use its sample mean to estimate the batch average. Drawing uniformly from the five labels, then uniformly from the four remaining labels, produces this rule: AB can arrive as A-then-B or B-then-A, each with probability (1/5)(1/4)=1/20(1/5)(1/4)=1/20.

Ten equally likely two-record samples from synthetic fees A USD 0, B USD 1, C USD 2, D USD 3 and E USD 4. Their means range from USD 0.5 to USD 3.5. Counts at means 0.5, 1, 1.5, 2, 2.5, 3 and 3.5 are 1, 1, 2, 2, 2, 1 and 1. Expected mean is USD 2; variance is 0.75 USD squared.
Ten equally likely two-record samples from synthetic fees A USD 0, B USD 1, C USD 2, D USD 3 and E USD 4. Their means range from USD 0.5 to USD 3.5. Counts at means 0.5, 1, 1.5, 2, 2.5, 3 and 3.5 are 1, 1, 2, 2, 2, 1 and 1. Expected mean is USD 2; variance is 0.75 USD squared.
Each filled tile represents one sample with probability 0.10. The distribution is exact enumeration of a synthetic fixed batch, not a simulation or a distribution of future fees.

The population mean is USD 2. Averaging the ten possible sample means gives

E[Yˉ]=0.5+1+1.5+2+1.5+2+2.5+2.5+3+3.510=2 USD.\mathbb{E}[\bar Y] =\frac{0.5+1+1.5+2+1.5+2+2.5+2.5+3+3.5}{10} =2\text{ USD}.
The sample mean is an unbiased estimator: it is correct on average across repetitions of this selection procedure. A particular pair can still be misleading. AB gives USD 0.5 and DE gives USD 3.5; neither equals the true batch mean. Random selection gives a probability law for this error, not a guarantee that one sample looks representative.

Why equal chances for records are insufficient

Each record belongs to four of the ten possible pairs, so its inclusion probability is 4/10=2/54/10=2/5. In general, under this design,
πi=P(i∈S)=nN,πij=P(i,j∈S)=n(n−1)N(N−1),i≠j.\pi_i=\mathbb{P}(i\in\mathcal S)=\frac nN, \qquad \pi_{ij}=\mathbb{P}(i,j\in\mathcal S)=\frac{n(n-1)}{N(N-1)},\quad i\ne j.
The pair formula applies when N>1N>1. In the audit, πAB=1/10\pi_{AB}=1/10, whereas πAπB=(2/5)2=4/25\pi_A\pi_B=(2/5)^2=4/25. Inclusion events do not satisfy independence. Given that A is included, B's inclusion probability is 1/41/4, below its unconditional 2/52/5: A has used one of the two sample places.
Now change the procedure. Arrange the labels in the fixed cycle A–B–C–D–E–A and choose uniformly from its five neighbouring pairs: AB, BC, CD, DE and AE. Every record still occurs in two of five eligible pairs, so every inclusion probability is still 2/52/5. Yet AC, AD, BD, BE and CE can never be chosen. This is not simple random sampling.
All ten pairs have probability 0.10 under simple random sampling. A cyclic alternative assigns probability 0.20 to AB, AE, BC, CD and DE, and zero to AC, AD, BD, BE and CE. Both designs include each record with probability 0.40 and have expected mean USD 2, but their sample-mean variances are 0.75 and 1 USD squared respectively.
All ten pairs have probability 0.10 under simple random sampling. A cyclic alternative assigns probability 0.20 to AB, AE, BC, CD and DE, and zero to AC, AD, BD, BE and CE. Both designs include each record with probability 0.40 and have expected mean USD 2, but their sample-mean variances are 0.75 and 1 USD squared respectively.
Original design comparison for the same synthetic fees. Equal individual inclusion preserves the unbiased mean here, while the changed pair probabilities change its uncertainty.
The cyclic means are USD 0.5, 1.5, 2.5, 3.5 and 2. Their average is still USD 2, but their variance is 1 USD21\text{ USD}^2, compared with 0.75 USD20.75\text{ USD}^2 under SRS. Checking individual inclusion probabilities alone would miss that difference.

The finite-population correction, with the denominator visible

In design-based analysis, the values y1,…,yNy_1,\ldots,y_N are fixed. Randomness comes from which labels are selected. Define

μ=1N∑i=1Nyi,S2=1N−1∑i=1N(yi−μ)2.\mu=\frac1N\sum_{i=1}^{N}y_i, \qquad S^2=\frac1{N-1}\sum_{i=1}^{N}(y_i-\mu)^2.

For N>1N>1, simple random sampling without replacement gives

E[Yˉ]=μ,Var(Yˉ)=(1−nN)S2n.\mathbb{E}[\bar Y]=\mu, \qquad \text{Var}(\bar Y)=\left(1-\frac nN\right)\frac{S^2}{n}.
The factor 1−n/N1-n/N is a finite-population correction for variance in this convention. Its square root enters the standard error. In the audit,
S2=(0−2)2+(1−2)2+(2−2)2+(3−2)2+(4−2)24=2.5 USD2,S^2=\frac{(0-2)^2+(1-2)^2+(2-2)^2+(3-2)^2+(4-2)^2}{4} =2.5\text{ USD}^2, Var(Yˉ)=(1−25)2.52=0.75 USD2,SE(Yˉ)=0.75≈0.866 USD.\text{Var}(\bar Y)=\left(1-\frac25\right)\frac{2.5}{2} =0.75\text{ USD}^2, \qquad \text{SE}(\bar Y)=\sqrt{0.75}\approx0.866\text{ USD}.

A second common convention uses σN2=N−1∑i(yi−μ)2\sigma_N^2=N^{-1}\sum_i(y_i-\mu)^2, which is 2 USD22\text{ USD}^2 here. The equivalent formula is

Var(Yˉ)=σN2nN−nN−1.\text{Var}(\bar Y)=\frac{\sigma_N^2}{n}\frac{N-n}{N-1}.
Do not combine the divisor-NN variance with the factor 1−n/N1-n/N; the correction and variance definition must match. With independent sampling with replacement, the variance would instead be σN2/n=1 USD2\sigma_N^2/n=1\text{ USD}^2. Without replacement, later draws provide information about what remains, reducing uncertainty about this fixed batch mean. If n=Nn=N, the entire batch is observed and the design variance is zero.

When the population values are unknown and n≥2n\ge2, estimate S2S^2 using the observed sample variance s2=(n−1)−1∑i∈S(yi−Yˉ)2s^2=(n-1)^{-1}\sum_{i\in\mathcal S}(y_i-\bar Y)^2. Then

Var^(Yˉ)=(1−nN)s2n\widehat{\text{Var}}(\bar Y)=\left(1-\frac nN\right)\frac{s^2}{n}
is an unbiased estimator of the design variance. It varies with the selected sample. This does not make a normal or Student-tt confidence interval exact for an arbitrary finite population; the audit's sampling distribution is the discrete distribution displayed above.

Make the sampling rule match the question

Start with a complete, deduplicated list of eligible records: the sampling frame. Assign each record a unique label and use a uniform without-replacement sampler, or a uniform random permutation followed by its first nn labels. Record the frame, selection method and random seed so the selection can be reproduced. Decide the sample size before examining sampled fees; outcome-dependent stopping or substitutions change the design.
The target also matters. An unweighted sample average estimates the average per record. It does not automatically estimate a volume-weighted fee or an average per client. A random draw from a database that omits failed trades is only random within that database; it does not repair sampling bias in the frame. Missing fee records after selection need explicit handling rather than convenient replacements.
Finally, this calculation describes uncertainty about a fixed batch. Randomly selecting historical dates does not establish that future returns follow the same distribution, or eliminate market dependence. If guaranteed coverage of desks or trade types matters, stratified sampling can impose that coverage through a different design, whose variance must be analysed accordingly.
For a short introduction to population parameters, sample summaries and the independent-sample standard-error baseline, read Basic Statistics and Regression (public preview; full lesson free with a signed-in account).

Sources

Last updated
  • sampling
  • finite population
  • survey design
  • sampling distribution
  • standard error
← Back to the glossaryBack to top ↑