Book contents

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 θ̂\hat{\theta} of a parameter θ\theta is computed from sample data. Desirable properties include:

Some common estimators:

Interval Estimates

A confidence interval (CI) for a parameter θ\theta is an interval (L,U)(L, U) 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 X1,…,XnX_1,\dots,X_n are independent and normally distributed with unknown variance, a 95% confidence interval for μ\mu is X‾±tn−1,0.975×sn,\bar{X} \pm t_{n-1,0.975} \times \frac{s}{\sqrt{n}}, where tn−1,0.975t_{n-1,0.975} is the 97.5th percentile of the tt distribution with n−1n-1 degrees of freedom.

Confidence Interval for a Proportion

For a sample proportion p̂\hat{p} based on nn Bernoulli trials, an approximate 95% CI is p̂±1.96p̂(1−p̂)n.\hat{p} \pm 1.96 \sqrt{\frac{\hat{p}(1-\hat{p})}{n}}. This approximation relies on the normality of p̂\hat{p}; 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 (59.8,64.2)(59.8, 64.2), indicating that the true mean salary likely lies within this range.

Exercises

Practice

  1. 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.

  2. 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.

  3. Explain why increasing the confidence level (e.g., from 95% to 99%) leads to a wider interval. What trade-off does this represent?

  4. 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 tt-method. Estimate the proportion of intervals that contain the true mean. Does this align with the nominal coverage?

References