letx=

Probability and statistics

Mean (average)

The arithmetic mean: add up the values and divide by how many there are.

x¯=∑i=1nxin

Calculator

The live calculator needs JavaScript. The worked example below shows the same steps it would.

What the symbols mean

x¯
the mean of the data (μ is used for a whole population)
xi
the data values x1,x2,…,xn
n
the number of values
∑
"add up": the sum of all the values

When to use it

Use the mean for a typical value when the data are roughly symmetric: test scores, heights, daily temperatures. If a few values are extreme (incomes, house prices), the median is often a better summary, because one very large value pulls the mean a long way. The calculator shows both. Type the data as numbers separated by commas or spaces.

Worked example

Eight students score 4, 8, 6, 5, 3, 7, 9 and 6 on a quiz. What is the mean score?

  1. Start from the formula: add the values, divide by how many there are.

    x¯=∑xin
  2. Add up all 8 values.

    ∑xi=4+8+6+5+3+7+9+6=48
  3. Divide by the number of values, n = 8.

    x¯=488
    =6
  4. For comparison, the median (the middle value once sorted) is 6, the same as the mean.

Answer x̄ = 6

Why it works

The mean is the balance point of the data: the distances above it exactly cancel the distances below it, so ∑(xi−x¯)=0. It is also the single number that makes the sum of squared distances as small as possible, which is why the standard deviation is measured from it.

Common mistakes

  • Dividing by the wrong count, for example forgetting a zero score, which still counts as a value.
  • Averaging averages: the mean of two class means is not the overall mean unless the classes are the same size.
  • Using the mean for skewed data, where it can be far from any typical value.