01 / 21

Sampling Variability
& Distributions

Understand why sample statistics change from sample to sample, and how those statistics form predictable patterns called sampling distributions.

Biostatistics

What Is Sampling Variability?

Imagine measuring the average heart rate of 30 randomly selected patients from a hospital. Now repeat with a different group of 30. The two averages will almost certainly differ: this natural fluctuation is called sampling variability.

Population vs Sample

Population
The entire group you want to study. Parameters like \(\mu\) (mean) and \(\sigma\) (standard deviation) are fixed but usually unknown.
Sample
A subset drawn from the population. Statistics like \(\bar{x}\) and \(s\) are calculated from the sample and vary from sample to sample.

Visualizing Sample-to-Sample Change

Population: \(\mu = 72\) bpm
Sample 1: \(\bar{x}=70.3\)
Sample 2: \(\bar{x}=73.8\)
Sample 3: \(\bar{x}=71.5\)
68 70 72 74 70.3 73.8 71.5
\(\mu = 72\)
Each sample mean scatters around the true population mean

Three different random samples of \(n = 30\) patients yield three different sample means. They cluster around the true population mean \(\mu = 72\) bpm, but none hits it exactly.

What Is a Sampling Distribution?

A sampling distribution is the probability distribution of a statistic (like \(\bar{x}\)) obtained from all possible samples of a given size \(n\) drawn from the same population.

1
Draw a random sample of size \(n\) from the population.
2
Compute the statistic (e.g., \(\bar{x}\)) for that sample.
3
Repeat infinitely many times.
4
Plot the histogram of all those statistics: that is the sampling distribution.

The Bell Curve Emerges

Sample Mean \(\bar{x}\)
Frequency
\(\mu_{\bar{x}} = \mu\)
\(\mu - \sigma_{\bar{x}}\)
\(\mu + \sigma_{\bar{x}}\)
Sampling distribution
of \(\bar{x}\)

The Central Limit Theorem

If \(X_1, X_2, \dots, X_n\) are independent observations from a population with mean \(\mu\) and standard deviation \(\sigma\), then for sufficiently large \(n\):

Center
\(\mu_{\bar{x}} = \mu\): the sampling distribution is centered at the population mean.
Spread
\(\sigma_{\bar{x}} = \frac{\sigma}{\sqrt{n}}\): larger samples produce less spread.
Shape
Approximately normal when \(n \geq 30\) (rule of thumb), regardless of population shape.

Standard Error: Measuring the Spread

The standard error (SE) quantifies how much a sample statistic is expected to vary from sample to sample. For the sample mean:

Interpretation: A smaller SE means the sample mean is a more precise estimate of \(\mu\). Increasing sample size \(n\) shrinks the SE by a factor of \(\sqrt{n}\).

How Sample Size Affects Variability

\(\bar{x}\)
\(\mu\)
\(n = 10\)
\(n = 30\)
\(n = 100\)

Standard Deviation vs Standard Error

Standard Deviation (\(\sigma\)) Standard Error (SE)
Measures Spread of individual observations Spread of a sample statistic (e.g., \(\bar{x}\))
Formula \(\sigma = \sqrt{\frac{\sum(x_i - \mu)^2}{N}}\) \(\text{SE} = \frac{\sigma}{\sqrt{n}}\)
Depends on \(n\)? No Yes: decreases as \(n\) grows
Used for Describing a dataset Quantifying estimation precision

Sampling Distribution of \(\hat{p}\)

For proportions (e.g., the fraction of patients who recover), the same logic applies. If the true population proportion is \(p\) and we draw samples of size \(n\):

Center
\(\mu_{\hat{p}} = p\)
Standard Error
\(\text{SE}(\hat{p}) = \sqrt{\frac{p(1-p)}{n}}\)

How to Apply the CLT: Step by Step

1
Identify the parameter: Are you estimating a mean (\(\mu\)) or a proportion (\(p\))?
2
Check conditions: Is \(n \geq 30\) (for means) or are \(np \geq 10\) and \(n(1-p) \geq 10\) (for proportions)?
3
State the sampling distribution: Write \(\bar{X} \sim N(\mu, \sigma/\sqrt{n})\) or \(\hat{p} \sim N(p, \sqrt{p(1-p)/n})\).
4
Compute probabilities using the z-score: \(z = \frac{\bar{x} - \mu}{\sigma / \sqrt{n}}\).
5
Interpret results in context: what does the probability mean for the biostatistical question?

Example 1: Blood Pressure

Systolic blood pressure in a population has \(\mu = 120\) mmHg and \(\sigma = 15\) mmHg. A nurse samples \(n = 36\) patients. What is the probability that the sample mean exceeds 124 mmHg?

Example 2: Vaccine Efficacy

A vaccine is known to be effective in 70% of patients (\(p = 0.70\)). In a clinical trial of \(n = 200\) patients, what is the probability that fewer than 65% show effectiveness?

Interpretation: There is about a 6.2% chance of seeing fewer than 65% effectiveness in the sample, assuming the true rate is 70%.

Example 3: Choosing Sample Size

A researcher wants the standard error of the sample mean cholesterol level to be at most 3 mg/dL. The population standard deviation is \(\sigma = 25\) mg/dL. How large must the sample be?

Always round up to the next whole number when determining sample size: you cannot sample a fraction of a person.

Common Mistakes

✕ Confusing SD and SE
Using \(\sigma\) when you need \(\sigma / \sqrt{n}\) (or vice versa). SD describes individuals; SE describes the statistic.
✕ Ignoring Conditions
Applying the CLT when \(n\) is too small or the success/failure condition fails. Always check before using the normal model.
✕ Wrong Denominator
Using \(n\) instead of \(\sqrt{n}\) in the SE formula. Remember: \(\text{SE} = \sigma / \sqrt{n}\), not \(\sigma / n\).

Question 1 of 5

A population has \(\mu = 50\) and \(\sigma = 10\). If we take samples of size \(n = 25\), what is the standard error of the sample mean?

Question 2 of 5

The Central Limit Theorem states that the sampling distribution of \(\bar{x}\) is approximately normal when:

Question 3 of 5

If a researcher quadruples the sample size, the standard error of the mean will:

Question 4 of 5

In a population where 40% carry a certain gene (\(p = 0.40\)), a sample of \(n = 50\) is drawn. What is the standard error of \(\hat{p}\)?

Question 5 of 5

Which of the following best describes sampling variability?