Statistical inference: CLT, confidence intervals and tests
GATE DA190 min read
From samples to populations
Vocabulary.
- A population is described by parameters, such as the mean , the variance or a proportion . Usually they are unknown.
- A sample 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 has
The standard error shrinks like : four times the data halves the error.
The sample variance is unbiased: . Dividing by would underestimate on average, because the deviations are measured from , which sits closer to the data than does. This adjustment is Bessel's correction, and is the number of degrees of freedom.
Example 1. For the sample 2, 4, 6, 8: , and the squared deviations are 9, 1, 1, 9, which sum to 20.
- The sample variance is , so .
- Dividing by instead would give 5.
Two limit theorems
Law of large numbers. as . Long-run averages settle down.
Central limit theorem (CLT). If the are i.i.d. with mean and finite variance , then for large
whatever the shape of the original distribution. Likewise, the sum satisfies . A common rule of thumb is that is enough, unless the distribution is very skewed.
Standard normal values to know.
| 1 | 1.28 | 1.645 | 1.96 | 2 | 2.326 | 2.576 | 3 | |
|---|---|---|---|---|---|---|---|---|
| 0.8413 | 0.90 | 0.95 | 0.975 | 0.9772 | 0.99 | 0.995 | 0.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 .
- , so .
- .
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 and standard deviation .
- , so .
Example 4: the normal approximation to the binomial. If with and both at least about 10, then . Use the continuity correction of .
For fair coin tosses, find .
- The mean is 50 and the standard deviation is 5.
- .
Point estimation
An estimator is a statistic used to guess the parameter .
- Bias . An estimator is unbiased if the bias is 0.
- Mean squared error: .
- An estimator is consistent if as .
Methods.
- Method of moments: set the sample moments equal to the population moments.
- Maximum likelihood: maximise .
Example 5. For , .
- The method-of-moments estimate is .
- The MLE is : the likelihood falls as grows, but must be at least every observation.
- For the data 1, 4, 3: the method of moments gives , and the MLE gives 4.
Example 6: biased can be better. For normal data, is biased, yet it has a smaller MSE than . 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 known (the z-interval)
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