Statistical inference · Definition

Sample mean

statisticsinference

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.

\[\bar X=\dfrac{1}{n}\sum_{i=1}^{n}X_i\]

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

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