Sampling

Probability & Statistics

In statistics, we rarely have access to an entire population, so we draw a random sample of size nn and use it to make inferences. For a sample to be useful, every member of the population must have an equal chance of being selected; a biased sample (e.g. convenience sampling) can produce estimates that are systematically wrong.

What you need to know

Worked example 1 — exact normal population

The mass of a bag of rice is normally distributed with mean 1.02 kg and standard deviation 0.04 kg. A random sample of 16 bags is selected. Find the probability that the sample mean mass exceeds 1.03 kg.

The population is normal, so the result is exact:

XˉN ⁣(1.02, 0.04216)=N(1.02, 0.0001).\bar{X} \sim \text{N}\!\left(1.02,\ \frac{0.04^2}{16}\right) = \text{N}(1.02,\ 0.0001).

Standardise:

Z=Xˉ1.020.04/16=Xˉ1.020.01.Z = \frac{\bar{X} - 1.02}{0.04/\sqrt{16}} = \frac{\bar{X} - 1.02}{0.01}. P(Xˉ>1.03)=P ⁣(Z>1.031.020.01)=P(Z>1)=1Φ(1)0.159.P(\bar{X} > 1.03) = P\!\left(Z > \frac{1.03 - 1.02}{0.01}\right) = P(Z > 1) = 1 - \Phi(1) \approx 0.159.

Answer: 0.159 (3 s.f.)

Worked example 2 — CLT for a non-normal population

The number of minutes a student spends on social media per day follows an unknown distribution with mean 95 and variance 225. A random sample of 50 students is taken. Find the probability that the sample mean exceeds 100 minutes.

Since n=50n = 50 is large, by the CLT:

XˉN ⁣(95, 22550)=N(95, 4.5).\bar{X} \approx \text{N}\!\left(95,\ \frac{225}{50}\right) = \text{N}(95,\ 4.5). P(Xˉ>100)=P ⁣(Z>100954.5)=P(Z>2.357)1Φ(2.357)0.00921.P(\bar{X} > 100) = P\!\left(Z > \frac{100 - 95}{\sqrt{4.5}}\right) = P(Z > 2.357) \approx 1 - \Phi(2.357) \approx 0.00921.

Answer: 0.00921 (3 s.f.)

Worked example 3 — unbiased estimates

A random sample of 8 observations of a variable XX gives x=56\sum x = 56 and x2=420\sum x^2 = 420. Find unbiased estimates of the population mean and variance.

xˉ=568=7.\bar{x} = \frac{56}{8} = 7. s2=1n1(x2nxˉ2)=17 ⁣(4208×49)=4203927=287=4.s^2 = \frac{1}{n-1}\left(\sum x^2 - n\bar{x}^2\right) = \frac{1}{7}\!\left(420 - 8 \times 49\right) = \frac{420 - 392}{7} = \frac{28}{7} = 4.

Answer: unbiased estimate of mean =7= 7; unbiased estimate of variance =4= 4.

Common mistakes

Ask MathChat about Sampling →