• Foundation
  • About 14 min
  • 5 practice questions

Mean, median and mode of raw data

Find the mean, median and mode of a list of numbers and of a simple frequency table, and know which measure answers which question.

If something looks wrong, please tell us.

Statistics begins with a simple question: if you had to describe a whole set of numbers by one number, which number would you choose? The answers are called measures of central tendency. The three you need are the mean, the median and the mode. Each is easy to compute, and each gives a slightly different picture of the data. This lesson works with ungrouped data, meaning the individual values are known.

The mean

The mean (arithmetic mean) is the sum of the observations divided by how many there are. If the observations are x₁, x₂, …, xₙ, the mean is x̄ = (x₁ + x₂ + … + xₙ)/n, written x̄ = Σx/n. The symbol Σ (sigma) just means "add them all up".

When the data come as a frequency table, each value x occurs f times. Multiply each value by its frequency, add the products, and divide by the total frequency: x̄ = Σfx/Σf. The total frequency Σf is often written N.

The median

The median is the middle value after the data are arranged in order. If n is odd, it is the ((n + 1)/2)-th value. If n is even, there are two middle values, the (n/2)-th and the (n/2 + 1)-th, and the median is their average. Forgetting to arrange the data first is the most common mistake.

The mode

The mode is the value that occurs most often. A data set can have one mode, more than one, or none at all if every value occurs equally often.

Mean x̄ = Σx/n (or Σfx/Σf for a frequency table). Median = middle value of the ordered data (average the two middle values when n is even). Mode = most frequent value.

Worked example 1: a list of marks

Eight students scored 6, 7, 10, 12, 13, 4, 8 and 12. The sum is 72, so the mean is 72/8 = 9. In order the marks are 4, 6, 7, 8, 10, 12, 12, 13. With n = 8, the middle values are the 4th and 5th, 8 and 10, so the median is (8 + 10)/2 = 9. The value 12 occurs twice and every other value once, so the mode is 12.

Worked example 2: a frequency table

Number of books read by 20 students
Value x23456
Frequency f35741

Here N = 3 + 5 + 7 + 4 + 1 = 20 and Σfx = 6 + 15 + 28 + 20 + 6 = 75, so the mean is 75/20 = 3.75. For the median we need the 10th and 11th values. Running totals (cumulative frequencies) are 3, 8, 15, 19, 20: values 1 to 3 are 2, values 4 to 8 are 3, and values 9 to 15 are 4. So the 10th and 11th values are both 4 and the median is 4. The highest frequency, 7, belongs to 4, so the mode is also 4.

Which measure to use

  • The mean uses every value, so one very large or very small value pulls it strongly.
  • The median ignores how extreme the end values are, so it suits data such as incomes with a few very large values.
  • The mode suits categories or the "most common size", for example the shoe size a shop should stock most.

Key takeaways. Add and divide for the mean, using Σfx/Σf for a frequency table. Arrange the data before finding the median and average the two middle values when n is even. The mode is the most frequent value, and there may be more than one.

Check your understanding

  1. 1. What is the mean of 3, 7, 8, 10 and 12?

    1. 8
    2. 7
    3. 9
    4. 10
    Show answer

    Answer: A. Sum = 3 + 7 + 8 + 10 + 12 = 40. Mean = 40/5 = 8.

  2. 2. What is the median of 11, 4, 9, 15, 7 and 13?

    1. 9
    2. 11
    3. 10
    4. 12
    Show answer

    Answer: C. Arranged: 4, 7, 9, 11, 13, 15. With six values, the median is the average of the 3rd and 4th: (9 + 11)/2 = 10.

  3. 3. What is the mode of 2, 3, 3, 5, 5, 5, 6, 7, 7?

    1. 3
    2. 7
    3. 6
    4. 5
    Show answer

    Answer: D. 5 occurs three times, more than any other value.

  4. 4. Values 1, 2, 3, 4 occur with frequencies 4, 3, 2, 1. What is the mean?

    1. 2
    2. 2.5
    3. 3
    4. 1.5
    Show answer

    Answer: A. Σfx = 4 + 6 + 6 + 4 = 20 and Σf = 10, so the mean is 20/10 = 2.

  5. 5. Five numbers have mean 12. When the number 20 is removed, what is the mean of the other four?

    1. 8
    2. 11
    3. 12
    4. 10
    Show answer

    Answer: D. Total = 5 × 12 = 60. Without 20 the total is 40, and 40/4 = 10.

Sign in to keep track of the lessons you finish.

Next lesson → Mean, median and mode of grouped data

Privacy · Terms · Refunds · Delivery