Database › Mathematics › Applied mathematics › Statistics
From n independent measurements, the sample mean estimates the true mean, the sample variance with divisor n − 1 estimates the variance without bias, and the standard error s/√n gives the uncertainty of the mean.
Explanation
An estimator is unbiased if its expectation equals the true value. Since $\sum(x_i-\bar x)^2$ uses the fitted mean, its expectation is $(n-1)\sigma^2$, not $n\sigma^2$: one degree of freedom has been spent on $\bar x$. Good estimators are also consistent (converge as $n\to\infty$) and efficient (small variance).
For Gaussian data $(\bar x-\mu)/(s/\sqrt n)$ follows Student's $t$ distribution with $n-1$ degrees of freedom, wider than a Gaussian for small $n$; the confidence interval uses its quantile $t_{n-1}$ (1.96 only as $n\to\infty$).
Example 1
Five measurements give 4.9, 5.1, 5.3, 4.8, 5.4. Find the mean, the sample standard deviation, the standard error and a 95% confidence interval ($t_4=2.776$).
Solution
$\bar x=5.1$; deviations squared sum to 0.26, $s^2=0.065$, $s=0.255$; $\sigma_{\bar x}=0.255/\sqrt5=0.114$; interval $5.1\pm0.317$.
Example 2
Show that $E\big[\sum_i(x_i-\bar x)^2\big]=(n-1)\sigma^2$ for independent $x_i$ with variance $\sigma^2$.
Solution
$\sum(x_i-\bar x)^2=\sum(x_i-\mu)^2-n(\bar x-\mu)^2$, with expectations $n\sigma^2$ and $n\cdot\sigma^2/n$; the difference is $(n-1)\sigma^2$.
In graduate entrance exams
- University of Tokyo, Graduate School of Science, Physics (MSc entrance exam), FY2003 (H15), Problem 5