STATHARBOR ANALYTICS · INTRODUCTION TO STATISTICS · CHAPTER 8
Estimation
Statistical estimation involves using sample data to infer values of unknown population parameters. Two main types of estimates are point estimates and interval estimates. A point estimate provides a single best guess of a parameter, while an interval estimate provides a range of plausible values accompanied by a level of confidence.
Point Estimates
A point estimate of a parameter is computed from sample data. Desirable properties include:
Unbiasedness: . The sample mean is an unbiased estimator of the population mean .
Consistency: converges in probability to as the sample size increases.
Efficiency: Among unbiased estimators, the one with the smallest variance is most efficient.
Some common estimators:
Sample mean for the population mean .
Sample proportion for the population proportion .
Sample variance for the population variance .
Interval Estimates
A confidence interval (CI) for a parameter is an interval computed from the data and a chosen confidence level (commonly 95%). The interpretation is that, under repeated sampling, a 95% CI will contain the true parameter 95% of the time.
Confidence Interval for a Mean
If are independent and normally distributed with unknown variance, a 95% confidence interval for is where is the 97.5th percentile of the distribution with degrees of freedom.
Confidence Interval for a Proportion
For a sample proportion based on Bernoulli trials, an approximate 95% CI is This approximation relies on the normality of ; more accurate intervals for small samples include the Wilson interval and exact (Clopper–Pearson) interval.
Example: Confidence Interval for Average Salary
Imagine we sample 50 employees at a company and record their annual salaries (in thousands of dollars). The sample mean is 62 and the sample standard deviation is 8.
Worked example
Constructing a confidence interval in R and Python.
n <- 50
xbar <- 62
s <- 8
alpha <- 0.05
tcrit <- qt(1 - alpha/2, df = n - 1)
se <- s / sqrt(n)
ci <- c(xbar - tcrit * se, xbar + tcrit * se)
ci
import scipy.stats as stats
n = 50
xbar = 62
s = 8
alpha = 0.05
tcrit = stats.t.ppf(1 - alpha/2, df=n-1)
se = s / (n**0.5)
ci = (xbar - tcrit * se, xbar + tcrit * se)
The resulting 95% confidence interval might be , indicating that the true mean salary likely lies within this range.
Exercises
Practice
A sample of 100 items has mean 20 and standard deviation 5. Construct 90% and 99% confidence intervals for the population mean. Interpret the results.
In a survey of 400 individuals, 320 support a new policy. Compute a 95% confidence interval for the support rate. Compare the standard normal approximation to the exact binomial interval.
Explain why increasing the confidence level (e.g., from 95% to 99%) leads to a wider interval. What trade-off does this represent?
Use Julia to generate 1000 samples of size 30 from an Exponential(1) distribution. For each sample, compute a 95% confidence interval for the mean using the -method. Estimate the proportion of intervals that contain the true mean. Does this align with the nominal coverage?
References
Efron B, Hastie T. Computer Age Statistical Inference. Cambridge University Press; 2016.
Lehmann EL, Casella G. Theory of Point Estimation. 2nd ed. Springer; 1998.
Bickel PJ, Doksum KA. Mathematical Statistics: Basic Ideas and Selected Topics. 2nd ed. Prentice Hall; 2001.