How to calculate the mean
The arithmetic mean is what most people mean by “the average”. It’s the most widely used measure of central tendency, and the basis of t-tests, ANOVA and regression.
How to calculate it
x̄ = (x₁ + x₂ + … + xₙ) / n
- Add up all the values.
- Divide by the number of values.
Example: five quiz scores, 4, 6, 7, 8 and 10. The sum is 35, and 35 / 5 = 7.
The weighted mean
When values count unequally, multiply each by its weight, add them up, and divide by the total weight.
Example: a course grade is 60% exam and 40% coursework. A student scores 70 on the exam and 85 on coursework. Weighted mean = 0.6 × 70 + 0.4 × 85 = 42 + 34 = 76. A simple average would wrongly give 77.5.
The same idea appears when combining group means. The overall mean of two groups is their sizes-weighted average, not the average of the two means. Survey analysis uses weights too (see survey weights).
Properties of the mean
- It uses every value, which makes it efficient for well-behaved data.
- Deviations from it sum to zero, so it’s the balance point of the data.
- It minimises squared distances, which is why least-squares methods (regression, ANOVA) are built around means.
- It’s sensitive to extremes. In R’s
mtcarsdata, horsepower has a mean of 146.7 but a median of 123, because a few very powerful cars pull the mean up.
When not to rely on the mean alone
- Skewed data (incomes, house prices, reaction times): report the median too. See skewness.
- Ordinal data (a single rating item): the median is more defensible.
- Categorical codes: a mean of 1.8 for region codes is meaningless.
- Growth rates and ratios: use the geometric mean.
Reporting
Report the mean with a measure of spread, usually the standard deviation, to the same number of decimals: M = 7.00, SD = 2.24. For the other averages, see the median and the mode, or the overview of mean, median and mode.
More in Descriptive statistics
Try it with the free tools
Run this on your own data
Upload a dataset and ask your question in plain English. Analytika checks the assumptions, picks the test, runs it, and writes the results up in APA format.