When estimating the value of some parameter, the maximum likelihood estimation provides the single estimate with highest possible likelihood. But we might prefer to have a range of values, with some quantitative measure of how certain we are that the true parameter value could be in the range.
Suppose some measurement has a mean \(\mu\) and variance \(\sigma^2\) across the entire population. Independent measurements \(X_1, X_2, \dotsc, X_n\) and calculate the sample mean
Then, according to TheoremΒ 4.2.1, \(A_n \approx \Norm\left(\mu, \frac{\sigma^2}{n}\right)\) as long as we take a sufficient number of measurements. However, we donβt have access to the true values of \(\mu, \sigma^2\text{.}\)
Let \(X_1, X_2, \dotsc, X_n\) be independent samples taken from a population. Let \(A_n = \frac{X_1 + \dotsb + X_n}{n}\) be the sample mean. The sample variance is:
Note that \(s^2\) is an estimate of the variance of each individual measurement \(X_i\) taken from the population. Therefore, \(\frac{s^2}{n}\) is an estimate of the variance of the mean \(A_n\text{.}\) Hence "standard error of the mean" is an estimate of the standard deviation of the mean.
Next, we want to pick a distance \(c\) so that our measured sample mean \(A_n\) is within \(c\) of the true population mean \(\mu\) with a high probability. We can pick some value \(\alpha \in (0, 1)\text{,}\) and let \(c_{\alpha} = \Phi^{-1}\left(1 - \frac{\alpha}{2}\right)\text{.}\) Then the interval:
Let \(X_1, X_2, \dotsc, X_n\) be independent samples taken from a population. Suppose \(A_n\) is the sample mean and \(s^2\) the sample variance. Then the 95% confidence limits are:
Suppose measurements are taken of the heights of several plants in a garden plot. The measurements are given below. (Note: for the sake of a managable calculation, only five measurements are given. However, for TheoremΒ 4.2.1 to apply, the number of measurements would need to be greater.)
If the individual measurements \(X_1, \dotsc, X_n\) are indicator random variables, then the mean \(A_n\) represents the proportion which take on the value 1. For example, if the \(X_i\)βs indicate heads on coin flips, then \(A_n\) represents the proportion which come up heads. In this setting, we have a nice shortcut formula (ExampleΒ 3.2.7) for the variance of \(S_n = X_1 + \dotsc + X_n\text{.}\) We can make use of this formula to get the variance of \(A_n\) without going through the sample variance calculation above:
Suppose in a sample of 100 people, 40 have a particular trait. The maximum likelihood estimate for the probability \(p\) of a random person having the trait is \(\widehat{p} = \frac{40}{100} = 0.4\text{.}\) So the standard error will be:
Suppose we flip a coin 100 times and count 60 heads. Let \(p\) be the (unknown) probability that the coin comes up heads on a flip. Give an approximate 95% confidence interval for the value of \(p\text{.}\)
The weights of five mice are measured and recorded below. Give a 95% confidence interval for the sample mean weight of mice. (Pretend 5 measurements is large enough for the CLT to apply.)
The heights of five plants are measured and recorded below. Give a 95% confidence interval around the sample mean for the heights of the plants. (Pretend 5 measurements is large enough for the CLT to apply.)