Statistical inference · Definition
Sample mean
Before you start you need to know
It is the most used summary of a sample and the first tool for estimating a population's average.
Definition
The sample mean \(\bar X\) is the arithmetic average of the \(n\) variables \(X_i\) of a random sample; since it depends on the sample, it is itself a random variable.
Once the observations \(x_1,\dots,x_n\) are collected, their average \(\bar x\) is a number. But before observing, \(\bar X\) depends on chance: another sample would give another average. That is why it has its own distribution, called the sampling distribution of the mean, and it is what tells us how far to trust a specific average.
By linearity of expectation, \(E[\bar X]=\mu\): on average, the sample mean hits the population mean. By independence, \(\operatorname{Var}(\bar X)=\sigma^2/n\), so the standard deviation \(\sigma/\sqrt n\), called the standard error, shrinks with the square root of the size: halving it takes four times as much data.
A useful property is that the deviations \(x_i-\bar x\) always add up to zero, so \(\bar x\) is the balance point of the data. It is also sensitive to extreme values: a single very large data point can pull it. With samples of different sizes, the combined mean is computed by weighting by the number of data points.
The typical mistake is confusing \(\bar X\) with \(\mu\): the first is computed from data, the second is an unknown parameter. The law of large numbers says \(\bar X\) approaches \(\mu\) as \(n\) grows, and the central limit theorem describes its shape. Every estimator is judged with these ideas.
Think about it
If the standard error of \(\bar X\) is 3 with \(n=16\), what is \(\sigma\)?
Since \(\sigma/\sqrt{16}=3\), we get \(\sigma=12\).
Why is \(\bar X\) a random variable although \(\mu\) is not?
Because it is computed from observations not yet made, which change from sample to sample; \(\mu\) is a fixed feature of the population.
Exercises 10
- The sample data are \(2,\ 4,\ 6,\ 8\). What is the sample mean?
- The data are \(3,\ 7,\ 5,\ 9,\ 6\). What is \(\bar x\)?
- A random sample of size 25 comes from a population with mean \(\mu=10\). What is \(E[\bar X]\)?
- A sample of size 9 comes from a population with variance \(\sigma^2=36\). What is \(\operatorname{Var}(\bar X)\)?
- With \(\sigma=10\) and \(n=25\), what is the standard deviation of \(\bar X\)?
- To halve the standard deviation of the sample mean, the sample size must be multiplied by:
- For the data \(1,\ 2,\ 6\), what do the deviations \(x_i-\bar x\) add up to?
- The mean of 10 observations is 12. One more observation of 23 is added. What is the new mean?
- A group of 10 data points has mean 4 and another of 30 has mean 8. What is the mean of all 40 together?
- What is the difference between \(\bar X\) and \(\mu\)?
What comes next
References
- George Casella, Roger L. Berger, Statistical Inference, 2nd edition, Duxbury / Cengage, 2002. §5.2
- Ronald E. Walpole, Raymond H. Myers, Sharon L. Myers, Keying Ye, Probabilidad y estadística para ingeniería y ciencias, 9.ª edición, Pearson, 2012. §8.4
- Larry Wasserman, All of Statistics, 1st edition, Springer, 2004. §6.1