All notes

Statistical inference: CLT, confidence intervals and tests

GATE DA190 min read

Free preview: 30% of the note

From samples to populations

Vocabulary.

  • A population is described by parameters, such as the mean μ\mu, the variance σ2\sigma^2 or a proportion pp. Usually they are unknown.
  • A sample X1,…,XnX_1, \dots, X_n is drawn from it, independently and from the same distribution (i.i.d.).
  • A statistic is any function of the sample. Its probability distribution over repeated samples is its sampling distribution.

The sample mean Xˉ=1n∑Xi\bar X = \frac1n\sum X_i has

E[Xˉ]=μ,Var⁡(Xˉ)=σ2n,SE(Xˉ)=σn.E[\bar X] = \mu, \qquad \operatorname{Var}(\bar X) = \frac{\sigma^2}{n}, \qquad \text{SE}(\bar X) = \frac{\sigma}{\sqrt n}.

The standard error shrinks like 1/n1/\sqrt n: four times the data halves the error.

The sample variance S2=1n−1∑(Xi−Xˉ)2S^2 = \frac{1}{n - 1}\sum (X_i - \bar X)^2 is unbiased: E[S2]=σ2E[S^2] = \sigma^2. Dividing by nn would underestimate σ2\sigma^2 on average, because the deviations are measured from Xˉ\bar X, which sits closer to the data than μ\mu does. This adjustment is Bessel's correction, and n−1n - 1 is the number of degrees of freedom.

Example 1. For the sample 2, 4, 6, 8: xˉ=5\bar x = 5, and the squared deviations are 9, 1, 1, 9, which sum to 20.

  • The sample variance is s2=20/3≈6.67s^2 = 20/3 \approx 6.67, so s≈2.58s \approx 2.58.
  • Dividing by nn instead would give 5.

Two limit theorems

Law of large numbers. Xˉn→μ\bar X_n \to \mu as n→∞n \to \infty. Long-run averages settle down.

Central limit theorem (CLT). If the XiX_i are i.i.d. with mean μ\mu and finite variance σ2\sigma^2, then for large nn

Xˉn≈N ⁣(μ,σ2n),that is,Xˉn−μσ/n≈N(0,1),\bar X_n \approx N\!\left(\mu, \frac{\sigma^2}{n}\right), \qquad \text{that is,} \qquad \frac{\bar X_n - \mu}{\sigma/\sqrt n} \approx N(0, 1),

whatever the shape of the original distribution. Likewise, the sum satisfies ∑Xi≈N(nμ,nσ2)\sum X_i \approx N(n\mu, n\sigma^2). A common rule of thumb is that n≥30n \ge 30 is enough, unless the distribution is very skewed.

Standard normal values to know.

zz11.281.6451.9622.3262.5763
Φ(z)\Phi(z)0.84130.900.950.9750.97720.990.9950.9987

About 68%, 95% and 99.7% of a normal distribution lies within 1, 2 and 3 standard deviations of the mean.

Solved examples

Example 2. Exam scores have mean 50 and standard deviation 10, with an unknown shape. For a random sample of 100 scores, find P(Xˉ>52)P(\bar X > 52).

  • SE=10/100=1\text{SE} = 10/\sqrt{100} = 1, so z=(52−50)/1=2z = (52 - 50)/1 = 2.
  • P≈1−0.9772=0.0228P \approx 1 - 0.9772 = 0.0228.

Example 3: a sum. The service times of 36 customers are independent, each with mean 4 minutes and standard deviation 3 minutes. Find the probability that the total exceeds 160 minutes.

  • The total has mean 144144 and standard deviation 336=183\sqrt{36} = 18.
  • z=16/18≈0.89z = 16/18 \approx 0.89, so P≈1−0.813=0.187P \approx 1 - 0.813 = 0.187.

Example 4: the normal approximation to the binomial. If X∼Bin(n,p)X \sim \text{Bin}(n, p) with npnp and n(1−p)n(1 - p) both at least about 10, then X≈N(np,np(1−p))X \approx N(np, np(1 - p)). Use the continuity correction of ±0.5\pm 0.5.

For n=100n = 100 fair coin tosses, find P(X≥60)P(X \ge 60).

  • The mean is 50 and the standard deviation is 5.
  • P(X≥60)≈P(Z≥59.5−505)=P(Z≥1.9)=0.0287P(X \ge 60) \approx P\left(Z \ge \frac{59.5 - 50}{5}\right) = P(Z \ge 1.9) = 0.0287.

Point estimation

An estimator θ^\hat\theta is a statistic used to guess the parameter θ\theta.

  • Bias =E[θ^]−θ= E[\hat\theta] - \theta. An estimator is unbiased if the bias is 0.
  • Mean squared error: MSE=E[(θ^−θ)2]=Var⁡(θ^)+bias2\text{MSE} = E[(\hat\theta - \theta)^2] = \operatorname{Var}(\hat\theta) + \text{bias}^2.
  • An estimator is consistent if θ^→θ\hat\theta \to \theta as n→∞n \to \infty.

Methods.

  • Method of moments: set the sample moments equal to the population moments.
  • Maximum likelihood: maximise ∏f(xi;θ)\prod f(x_i; \theta).

Example 5. For X∼Uniform(0,θ)X \sim \text{Uniform}(0, \theta), E[X]=θ/2E[X] = \theta/2.

  • The method-of-moments estimate is θ^=2Xˉ\hat\theta = 2\bar X.
  • The MLE is max⁡iXi\max_i X_i: the likelihood θ−n\theta^{-n} falls as θ\theta grows, but θ\theta must be at least every observation.
  • For the data 1, 4, 3: the method of moments gives 2×83≈5.332 \times \frac83 \approx 5.33, and the MLE gives 4.

Example 6: biased can be better. For normal data, 1n∑(Xi−Xˉ)2\frac1n\sum(X_i - \bar X)^2 is biased, yet it has a smaller MSE than S2S^2. The MSE trades bias against variance, just as in machine learning.

Confidence intervals

Idea. A 95% confidence interval is a procedure that captures the true parameter in 95% of repeated samples. For one computed interval, the parameter is either inside it or not. "95%" describes the method, not this particular interval.

Mean, with σ\sigma known (the z-interval)

xˉ±zα/2 σn,z0.025=1.96 for 95%,z0.005=2.576 for 99%.\bar x \pm z_{\alpha/2}\,\frac{\sigma}{\sqrt n}, \qquad z_{0.025} = 1.96 \text{ for } 95\%, \quad z_{0.005} = 2.576 \text{ for } 99\%.

You have read the free 30% of this note

Sign in with Google to keep reading. It is free, takes one tap, and you also get:

  • 7 practice questions from this note
  • Every note in full, plus the PDF library
  • Official past papers as timed tests, with explanations
  • An AI tutor for doubts, in Hindi or English
  • Your progress, mistakes and study plan saved on every device
Continue reading, free