✓ Official Syllabus VerifiedStandards & Rigor ↗
S2·3

Sampling & Estimation

📌 Sampling & Estimation S2  ·  Random sampling  ·  Unbiased estimators \bar{x} and s^2  ·  Central Limit Theorem  ·  Confidence interval for \(\mu\)

Populations and Samples

Population: entire group of interest. Sample: subset used to make inferences. Random sampling ensures unbiased estimates.

Sample Mean Distribution

If \(X\sim N(\mu,\sigma^2)\) then \(\bar{X}\sim N\!\left(\mu,\dfrac{\sigma^2}{n}\right)\). Standard error \(=\dfrac{\sigma}{\sqrt{n}}\).

Unbiased Estimators

\(\bar{X}\) is unbiased for \(\mu\). Unbiased variance: \(s^2=\dfrac{1}{n-1}\sum(x_i-\bar{x})^2\).

Confidence Intervals

95% CI for \(\mu\): \(\bar{x}\pm z_{0.025}\cdot\dfrac{\sigma}{\sqrt{n}}\) where \(z_{0.025}=1.96\).

Interpretation

A 95% CI means: 95% of all such intervals constructed would contain the true \(\mu\). Not a probability statement about \(\mu\).

Sample Size

Width of CI \(\propto 1/\sqrt{n}\). To halve width, multiply \(n\) by 4. Required \(n\geq\left(\dfrac{z\sigma}{E}\right)^2\).

▲ Sampling & Estimation — Reference
An unbiased estimator of \(\mu\) is \(\bar{X}\). An unbiased estimator of \(\sigma^2\) is \(s^2=\dfrac{\sum(x_i-\bar{x})^2}{n-1}=\dfrac{\sum x_i^2-n\bar{x}^2}{n-1}\). CLT: For large \(n\), \(\bar{X}\sim N\!\left(\mu,\dfrac{\sigma^2}{n}\right)\) approximately. A 95% confidence interval for \(\mu\) (known \(\sigma\)): \(\bar{x}\pm1.96\dfrac{\sigma}{\sqrt{n}}\). Use \(z=2.576\) for 99% CI.
● Deep Conceptual Intuition — Sampling & Estimation

Probabilistic Normalization & Moment Structure: Every probability model is governed by total probability conservation: \(\sum_x P(X=x) = 1\) for discrete random variables and \(\int_{-\infty}^{\infty} f(x)\,dx = 1\) (with \(f(x) \ge 0\)) for continuous density functions. Expected value \(\mathbb{E}[X]\) acts as a linear operator (\(\mathbb{E}[aX + bY] = a\mathbb{E}[X] + b\mathbb{E}[Y]\)), whereas variance scales quadratically and adds for independent variables: \(\operatorname{Var}(aX \pm bY) = a^2\operatorname{Var}(X) + b^2\operatorname{Var}(Y)\).

Parabola \(f(x) = (x - 2)^2 - 3\) with vertex \(V(2, -3)\) intersected by secant line \(g(x) = x - 1\).
⊙ Explorer · Sampling Distribution of \(\bar{X}\) & 95% Confidence Interval
interactive
Standard Error \(\sigma / \sqrt{n}\)SE = 0.500
95% Confidence Interval\([-0.58, 1.38]\)
Interval Half-Width ME\(\pm 0.980\)

As sample size \(n\) increases, the sampling distribution \(N(\mu, \sigma^{2}/n)\) narrows and the 95% confidence interval \(\bar{x} \pm 1.96 \cdot (\sigma /\sqrt{n})\) tightens.

Unbiased \(\hat{\mu}\)
\(\bar{x}=\dfrac{\sum x}{n}\)
Unbiased \(\hat{\sigma}^2\)
\(s^2=\dfrac{\sum x^2-n\bar{x}^2}{n-1}\)
Dist. of \(\bar{X}\)
\(N\!\left(\mu,\dfrac{\sigma^2}{n}\right)\)
95% CI
\(\bar{x}\pm1.96\dfrac{\sigma}{\sqrt{n}}\)
◆ Why It Works — First-Principles Derivation (Sampling & Estimation)

Why Variance Scales as \(a^2\) and Independent Variances Always Add: By definition, \(\operatorname{Var}(Y) = \mathbb{E}[(Y - \mu_Y)^2]\). For \(Y = aX - bW\) with independent \(X, W\), subtracting its mean \(\mu_Y = a\mu_X - b\mu_W\) gives:

\[ \operatorname{Var}(aX - bW) = \mathbb{E}\!\left[(a(X - \mu_X) - b(W - \mu_W))^2\right] = a^2\mathbb{E}[(X-\mu_X)^2] - 2ab\,\operatorname{Cov}(X,W) + b^2\mathbb{E}[(W-\mu_W)^2] \]

Because independence implies \(\operatorname{Cov}(X, W) = 0\), the cross term vanishes and \((-b)^2 = +b^2\), proving \(\operatorname{Var}(aX - bW) = a^2\operatorname{Var}(X) + b^2\operatorname{Var}(W)\). Uncertainty compounds whether random variables are added or subtracted.

Worked example 1 — Confidence interval
Problem. A sample of 36 light bulbs has mean lifetime \(\bar{x}=1200\) hours. The population SD is known to be \(\sigma=60\) hours. Find a 95% CI for the population mean.
▸ Show step-by-step solution
\[\bar{x}\pm1.96\cdot\frac{\sigma}{\sqrt{n}}=1200\pm1.96\cdot\frac{60}{\sqrt{36}}=1200\pm19.6.\]

95% CI: \((1180.4,\;1219.6)\) hours.

Worked example 2 — Unbiased estimators
Problem. A sample of 5 values: 12, 15, 11, 14, 13. Find unbiased estimates of \(\mu\) and \(\sigma^2\).
▸ Show step-by-step solution

\(\bar{x}=65/5=13\). \(\sum x^2=144+225+121+196+169=855\). \(s^2=\dfrac{855-5(169)}{4}=\dfrac{855-845}{4}=\dfrac{10}{4}=2.5\).

Worked Example \(C\) — Sampling & Estimation (Easy Application)
Problem. A random sample of \( n = 50 \) observations is taken from a population. The sample values are summarised as follows: \[ \sum x = 450, \quad \sum x^2 = 4295. \] Find an unbiased estimate of the population variance.
▸ Show step-by-step solution

The unbiased estimate of the population variance, denoted \( s^2 \), is calculated using the formula: \[ s^2 = \frac{1}{n - 1} \left( \sum x^2 - \frac{(\sum x)^2}{n} \right) \] Substitute the given values \( n = 50 \), \( \sum x = 450 \), and \( \sum x^2 = 4295 \): \[ s^2 = \frac{1}{50 - 1} \left( 4295 - \frac{450^2}{50} \right) \] \[ s^2 = \frac{1}{49} \left( 4295 - \frac{202500}{50} \right) \] \[ s^2 = \frac{1}{49} (4295 - 4050) = \frac{245}{49} = 5.0 \] Why other choices fail: - \( 4.9 \) is the biased sample variance obtained by dividing by \( n = 50 \) instead of \( n - 1 = 49 \). - \( 2.24 \) is the unbiased estimate of the standard deviation, \( \sqrt{5.0} \approx 2.24 \). - \( 9.0 \) is the sample mean \( \bar{x} = \frac{450}{50} \).

Worked Example \(D\) — Sampling & Estimation (Medium Application)
Problem. A quality control process monitors the weight, \(W\) grams, of chocolate bars produced by a machine. A random sample of 50 chocolate bars was taken, and their weights were recorded. The sample mean weight was 102.5 grams, and the sample standard deviation was 3.5 grams.

A) Calculate the standard error of the mean.
B) Construct a 95% confidence interval for the mean weight of the chocolate bars.
C) The machine is calibrated to produce chocolate bars with a mean weight of \(\mu_0 = 100\) grams. Based on your confidence interval, what conclusion can be drawn about the calibration of the machine?
▸ Show step-by-step solution

A) The standard error of the mean (SE) is calculated using the formula: \(SE = \frac{s}{\sqrt{n}}\), where \(s\) is the sample standard deviation and \(n\) is the sample size.
Given \(s = 3.5\) grams and \(n = 50\).
\(SE = \frac{3.5}{\sqrt{50}} \approx \frac{3.5}{7.071} \approx 0.495\) grams.

B) To construct a 95% confidence interval for the mean weight, we use the formula: \(CI = \bar{x} \pm z^* \times SE\), where \(\bar{x}\) is the sample mean and \(z^*\) is the critical z-value for a 95% confidence level. For a 95% confidence level, \(z^* \approx 1.96\).
Given \(\bar{x} = 102.5\) grams and \(SE \approx 0.495\) grams.
\(CI = 102.5 \pm 1.96 \times 0.495\)
\(CI = 102.5 \pm 0.9702\)
The 95% confidence interval is approximately \((101.53, 103.47)\) grams.

C) The machine is calibrated to produce chocolate bars with a mean weight of \(\mu_0 = 100\) grams. Our calculated 95% confidence interval for the mean weight is \((101.53, 103.47)\) grams. Since the hypothesized mean weight of 100 grams lies outside this interval, we have statistically significant evidence to conclude that the machine is likely not calibrated correctly to produce chocolate bars with a mean weight of 100 grams.

Error Diagnosis — Common Student Traps vs. Exam-Board Method (Sampling & Estimation)
Common Student TrapWhy It Fails MathematicallyCorrect Exam-Board Method
Writing \(\operatorname{Var}(X - Y) = \sigma_X^2 - \sigma_Y^2\)Produces smaller or even negative variance for the difference of independent variables.Always add variances of independent variables: \(\sigma_{X-Y}^2 = \sigma_X^2 + \sigma_Y^2\).
Using \(\sigma / n\) instead of \(\sigma / \sqrt{n}\) for \(\bar{X}\)Confuses the variance of the sample mean \(\sigma^2/n\) with its standard error.Take the square root: \(\text{SE}(\bar{X}) = \sigma / \sqrt{n}\).
Accepting \(H_0\) with certainty when \(p > \alpha\)Absence of sufficient evidence against \(H_0\) does not prove \(H_0\) is true.Write in context: "There is insufficient evidence at the \(\alpha\) level to reject \(H_0\)."
▲ Exam Pacing & Verification Strategy — Sampling & Estimation

Exam Marking Tip (Cambridge International A Level (9709 Paper 3 / Paper 6)): Always state the distribution parameters explicitly (e.g., \(X \sim \operatorname{N}(\mu, \sigma^2)\) or \(\bar{X} \sim \operatorname{N}(\mu, \sigma^2/n)\)) and sketch a quick shaded bell curve before standardizing to \(z = \dfrac{x - \mu}{\sigma}\). This secures the method mark even if a rounding slip occurs later.

A sample of size 100 from a population (known \(\sigma=20\)) gives \(\bar{x}=142\). Find a 99% CI for \(\mu\) and state what "99% confidence" means.
💡 Hint 1 of 3
Start with the expression: \(142\pm2.576\cdot\dfrac{20}{\sqrt{100}}\).
💡 Hint 2 of 3
Rewrite and substitute: \(142\pm2.576\cdot\dfrac{20}{\sqrt{100}} = 142\pm5.15\). Evaluate \(142\pm5.15\) to obtain the final answer.
💡 Hint 3 of 3
"99% confidence" means: if this process were repeated many times, 99% of the intervals produced would contain the true \(\mu\).
\(142\pm2.576\cdot\dfrac{20}{\sqrt{100}}=142\pm5.15=(136.85,\,147.15)\). "99% confidence" means: if this process were repeated many times, 99% of the intervals produced would contain the true \(\mu\).
Sampling distribution of the mean, with shaded central 95% area corresponding to margin of error ± 1.96 standard errors.
⚠️ Cambridge 9709 Traps — Unbiased Sample Variance (\(n - 1\)) & CLT Applicability

Divisor \(n-1\) for Unbiased Variance: When estimating population variance from sample data, you MUST divide by \(n-1\), not \(n\):

\[s^2 = \frac{1}{n-1}\left(\sum x^2 - n\bar{x}^2\right)\]

Using \(n\) in the denominator gives the biased sample variance and forfeits marks.

Central Limit Theorem Meaning: The CLT states that the distribution of the sample mean \(\bar{X}\) tends toward normality as sample size \(n\) grows large (\(n \ge 30\)), regardless of the parent distribution. It does NOT make the individual data points normally distributed! If the parent population is already normal, \(\bar{X}\) is exactly normal for *any* sample size, and CLT is not required.

The masses, \(x\) grams, of 50 packets of tea gave \(\sum x = 5090\) and \(\sum x^2 = 518380\). (a) Calculate unbiased estimates of the population mean and variance. (b) Calculate a 95% confidence interval for the population mean.
💡 Hint 1 of 3
(a) Sample mean: \(\bar{x} = \frac{5090}{50}\).
💡 Hint 2 of 3
Unbiased sample variance: \(s^2 = \frac{1}{50 - 1}\left(518380 - 50(101.8)^2\right) = \frac{1}{49}(518380 - 518162) = \frac{218}{49} \approx 4.449\text{ g}^2\) (b) Standard error: \(\text{SE} = \sqrt{\frac{s^2}{n}} = \sqrt{\frac{4.449}{50}}\).
💡 Hint 3 of 3
Use the resulting form to finish: \(\bar{x} \pm 1.96(0.2983) = 101.8 \pm 0.585\).

(a) Sample mean:

\[\bar{x} = \frac{5090}{50} = 101.8\text{ g}\]

Unbiased sample variance:

\[s^2 = \frac{1}{50 - 1}\left(518380 - 50(101.8)^2\right) = \frac{1}{49}(518380 - 518162) = \frac{218}{49} \approx 4.449\text{ g}^2\]

(b) Standard error: \(\text{SE} = \sqrt{\frac{s^2}{n}} = \sqrt{\frac{4.449}{50}} \approx 0.2983\).

\[\bar{x} \pm 1.96(0.2983) = 101.8 \pm 0.585 = (101.2,\; 102.4)\text{ g (1 d.p.)}\]
[Practice 3 · Hard] Two independent random samples, each of size \(n\), are taken from a normal population with mean \(\mu\) and known standard deviation \(\sigma\). From each sample, a symmetric \(90\%\) confidence interval for \(\mu\) is constructed. Given that \(\Phi(1.645) = 0.9500\) and \(\Phi(2.326) = 0.9900\), where \(\Phi\) denotes the standard normal cumulative distribution function, find the probability that these two confidence intervals overlap.
💡 Hint 1 of 3
Margin of error for each confidence interval: For a symmetric \(90\%\) confidence interval with known \(\sigma\), the critical value is \(z = 1.645\). Each interval has half-width:.
💡 Hint 2 of 3
Rewrite and simplify to obtain: \(E = 1.645\frac{\sigma}{\sqrt{n}}\) The two intervals are \(I_1 = [\bar{X}_1 - E, \bar{X}_1 + E]\) and \(I_2 = [\bar{X}_2 - E, \bar{X}_2 + E]\).
💡 Hint 3 of 3
Using the symmetry of the standard normal distribution: \(P(|Z| \le 2.326) = 2\Phi(2.326) - 1 = 2(0.9900) - 1 = 1.9800 - 1\).
1. **Margin of error for each confidence interval:** For a symmetric \(90\%\) confidence interval with known \(\sigma\), the critical value is \(z = 1.645\). Each interval has half-width: \[ E = 1.645\frac{\sigma}{\sqrt{n}} \] The two intervals are \(I_1 = [\bar{X}_1 - E, \bar{X}_1 + E]\) and \(I_2 = [\bar{X}_2 - E, \bar{X}_2 + E]\). 2. **Condition for interval overlap:** Two intervals of identical half-width \(E\) overlap if and only if the distance between their centres does not exceed the sum of their half-widths: \[ |\bar{X}_1 - \bar{X}_2| \le 2E = 2(1.645)\frac{\sigma}{\sqrt{n}} \] 3. **Distribution of the difference between sample means:** Since \(\bar{X}_1 \sim N\left(\mu, \frac{\sigma^2}{n}\right)\) and \(\bar{X}_2 \sim N\left(\mu, \frac{\sigma^2}{n}\right)\) are independent: \[ D = \bar{X}_1 - \bar{X}_2 \sim N\left(0, \frac{\sigma^2}{n} + \frac{\sigma^2}{n}\right) = N\left(0, \frac{2\sigma^2}{n}\right) \] The standard deviation of \(D\) is \(\sigma_D = \sqrt{\frac{2\sigma^2}{n}} = \frac{\sigma\sqrt{2}}{\sqrt{n}}\). 4. **Standardization and probability calculation:** \[ P(|D| \le 2E) = P\left(|Z| \le \frac{2(1.645)\frac{\sigma}{\sqrt{n}}}{\sqrt{2}\frac{\sigma}{\sqrt{n}}}\right) = P(|Z| \le 1.645\sqrt{2}) \] Evaluating the boundary: \[ 1.645\sqrt{2} \approx 1.645 \times 1.41421 \approx 2.326 \] Using the symmetry of the standard normal distribution: \[ P(|Z| \le 2.326) = 2\Phi(2.326) - 1 = 2(0.9900) - 1 = 1.9800 - 1 = 0.980 \]
[Practice 4 · Easy] A random sample of 10 values of a variable \( x \) is taken. The results are summarised as follows: \[ \sum x = 50, \quad \sum x^2 = 322 \] Calculate an unbiased estimate of the population variance.
💡 Hint 1 of 3
To find an unbiased estimate of the population variance \( s^2 \), we use the formula: \(s^2 = \frac{1}{n - 1} \left( \sum x^2 - \frac{(\sum x)^2}{n} \right)\).
💡 Hint 2 of 3
Given \( n = 10 \), \( \sum x = 50 \), and \( \sum x^2 = 322 \): \(\frac{(\sum x)^2}{n} = \frac{50^2}{10} = \frac{2500}{10}\).
💡 Hint 3 of 3
Substitute these values into the formula: \(s^2 = \frac{1}{10 - 1} (322 - 250) = \frac{1}{9} \times 72\).
To find an unbiased estimate of the population variance \( s^2 \), we use the formula: \[ s^2 = \frac{1}{n - 1} \left( \sum x^2 - \frac{(\sum x)^2}{n} \right) \] Given \( n = 10 \), \( \sum x = 50 \), and \( \sum x^2 = 322 \): \[ \frac{(\sum x)^2}{n} = \frac{50^2}{10} = \frac{2500}{10} = 250 \] Substitute these values into the formula: \[ s^2 = \frac{1}{10 - 1} (322 - 250) = \frac{1}{9} \times 72 = 8 \] - The distractor 7.2 results from dividing by \( n = 10 \) instead of \( n - 1 = 9 \), which gives the biased sample variance rather than the unbiased estimate of the population variance. - The distractor 2.83 is the unbiased estimate of the population standard deviation \( \sqrt{8} \approx 2.83 \). - The distractor 32.2 arises from incorrectly dividing \( \sum x^2 \) by 10.

Sampling & Estimation — 8-Mark Structured Problem

8 pts Calculator Active
For Sampling & Estimation, consider the linear-rate relationship \(f(x) = 3x + 5\) on \(x \ge 0\) together with the quadratic auxiliary \(g(x) = x^2 - 6x + 5\).
  1. (a)2 pts
    Find the initial value \(f(0)\) and the slope \(f'(x)\).
    Scoring Guideline & Justification
    • [M1] Evaluates f(0) and reads gradient coefficient (1 pt)
    • [A1] Obtains f(0) = 5 and slope = 3 (1 pt)
  2. (b)3 pts
    Determine the vertex \((h, k)\) and minimum value of \(g(x)\).
    Scoring Guideline & Justification
    • [M1] Finds axis of symmetry x = 3 (2 pt)
    • [A1] Evaluates minimum k = -4 (1 pt)
  3. (c)3 pts
    Compute the average rate of change of \(g(x)\) from \(x = 0\) to \(x = 5\).
    Scoring Guideline & Justification
    • [M1] Applies (g(5) - g(0)) / 5 (2 pt)
    • [A1] Simplifies to -1 (1 pt)
Complete Worked Solution
(a) \(f(0)=5\), gradient \(3\). (b) Completing the square gives \(g(x)=(x-3)^2+-4\), minimum \(-4\) at \(x=3\). (c) Average rate \(= (x_1+x_2-6) = -1\).
🔗 See also: Hypothesis Testing
A random sample of \( n = 50 \) observations is taken from a population. The sample values are summarised as follows: \[ \sum x = 450, \quad \sum x^2 = 4295. \] Find an unbiased estimate of the population variance.
💡 Hint 1 of 3
The unbiased estimate of the population variance, denoted \( s^2 \), is calculated using the formula: \(s^2 = \frac{1}{n - 1} \left( \sum x^2 - \frac{(\sum x)^2}{n} \right)\).
💡 Hint 2 of 3
Substitute the given values \( n = 50 \), \( \sum x = 450 \), and \( \sum x^2 = 4295 \): \(s^2 = \frac{1}{50 - 1} \left( 4295 - \frac{450^2}{50} \right)\) \(s^2 = \frac{1}{49} \left( 4295 - \frac{202500}{50} \right)\).
💡 Hint 3 of 3
- \(9.0\) is the sample mean \(\bar{x}\).
The unbiased estimate of the population variance, denoted \( s^2 \), is calculated using the formula: \[ s^2 = \frac{1}{n - 1} \left( \sum x^2 - \frac{(\sum x)^2}{n} \right) \] Substitute the given values \( n = 50 \), \( \sum x = 450 \), and \( \sum x^2 = 4295 \): \[ s^2 = \frac{1}{50 - 1} \left( 4295 - \frac{450^2}{50} \right) \] \[ s^2 = \frac{1}{49} \left( 4295 - \frac{202500}{50} \right) \] \[ s^2 = \frac{1}{49} (4295 - 4050) = \frac{245}{49} = 5.0 \] Why other choices fail: - \( 4.9 \) is the biased sample variance obtained by dividing by \( n = 50 \) instead of \( n - 1 = 49 \). - \( 2.24 \) is the unbiased estimate of the standard deviation, \( \sqrt{5.0} \approx 2.24 \). - \( 9.0 \) is the sample mean \( \bar{x} = \frac{450}{50} \).
📝 Chapter Quiz