Reading history

Mean, Median and Mode for Grouped and Ungrouped Data

4 min read 3 views

Learn to find the mean, median and mode for a list of numbers and for grouped data in a frequency table, with the SSC formulas and worked examples.

When you have a long list of numbers, such as the marks of a whole class, one “typical” value often tells you more than the whole list. Statistics gives three ways to find it, called measures of central tendency: the mean, the median and the mode. This lesson shows how to find each one for a simple list and for grouped data in a frequency table, as in the SSC syllabus.

In this lesson you will learn

  • Mean, median and mode for a list of numbers
  • Making a frequency table with class intervals
  • Mean of grouped data using midpoints
  • Median and mode of grouped data using the formulas
  • Which measure to use when

You only need basic arithmetic. Solving the formulas uses the skills from Linear Equations in One Variable.

For a List of Numbers

Eight students scored these marks: 45, 52, 60, 52, 70, 48, 52, 65.

MeasureHow to find itResult
MeanAdd all values, divide by how many there are444 ÷ 8 = 55.5
MedianSort the values and take the middle one52
ModeThe value that appears most often52

For the median, sort first: 45, 48, 52, 52, 52, 60, 65, 70. With 8 values there are two middle values, the 4th and 5th, so the median is their average: (52 + 52) ÷ 2 = 52. With an odd number of values n, the median is simply the ((n + 1)/2)-th value.

A list can have more than one mode (two values tie for most frequent) or no mode at all (every value appears once).

Grouped Data and Frequency Tables

With many values, we group them into class intervals of equal width and count how many fall in each. Here are the marks of 40 students, with classes of width h = 10. A class such as 40–50 contains marks from 40 up to, but not including, 50.

MarksFrequency (f)Midpoint (x)f × xCumulative frequency
30–405351755
40–5084536013
50–60125566025
60–70106565035
70–8057537540
Total402220

The midpoint is the average of a class’s limits, such as (30 + 40) ÷ 2 = 35. The cumulative frequency is a running total of the frequencies.

Mean of Grouped Data

We do not know each exact mark any more, so we assume every value in a class sits at its midpoint.

Mean = Σfx / n = 2220 / 40 = 55.5

Σ (the Greek letter sigma) means “add up all of”. Because of the midpoint assumption, the grouped mean is an estimate of the true mean.

Median of Grouped Data

Median formula

Median = L + ((n/2 − F) / f) × h

L = lower limit of the median class, F = cumulative frequency of the class before it, f = frequency of the median class, h = class width.

n/2 = 40/2 = 20
The cumulative frequency first reaches 20 in class 50–60 (13 → 25),
so 50–60 is the median class.
L = 50, F = 13, f = 12, h = 10
Median = 50 + ((20 − 13) / 12) × 10
       = 50 + 70/12
       = 55.83 (to 2 decimal places)

Mode of Grouped Data

Mode formula

Mode = L + (f₁ / (f₁ + f₂)) × h

The modal class has the highest frequency. f₁ = its frequency minus the frequency of the class before it; f₂ = its frequency minus the frequency of the class after it.

Modal class = 50–60 (frequency 12)
f₁ = 12 − 8  = 4
f₂ = 12 − 10 = 2
Mode = 50 + (4 / (4 + 2)) × 10
     = 50 + 6.67
     = 56.67 (to 2 decimal places)

The mode leans towards 60 because the class after the modal class (frequency 10) is bigger than the class before it (frequency 8).

Which Measure Should You Use?

MeasureBest forWeakness
MeanData without extreme values; uses every valuePulled by outliers: one very high income raises the mean of a whole village
MedianSkewed data such as incomes or house pricesIgnores how far values are from the middle
ModeCategories, such as the most popular shoe sizeMay not exist, or there may be several

Common Mistakes

  1. Finding the median without sorting. Always put the values in order first.
  2. Using the class with the largest cumulative frequency as the median class. Use the first class whose cumulative frequency reaches n/2.
  3. Using the wrong F. F is the cumulative frequency of the class before the median class, not of the median class itself.
  4. Mixing up f₁ and f₂ in the mode formula. f₁ uses the class before, f₂ the class after.

Practice Exercises

Exercise 1. Find the mean, median and mode of 7, 3, 9, 3, 5, 8, 3.

Show answer

Mean = 38 ÷ 7 ≈ 5.43. Sorted: 3, 3, 3, 5, 7, 8, 9, so the median is the 4th value, 5. Mode = 3.

Exercise 2. Daily wages: 200–300 (4 workers), 300–400 (9), 400–500 (5), 500–600 (2). Find the mean wage.

Show answer

Midpoints 250, 350, 450, 550. Σfx = 1000 + 3150 + 2250 + 1100 = 7500, n = 20, so the mean is 7500 ÷ 20 = 375 taka.

Exercise 3. For the wage data in Exercise 2, find the median.

Show answer

n/2 = 10. Cumulative frequencies: 4, 13, 18, 20, so the median class is 300–400. L = 300, F = 4, f = 9, h = 100. Median = 300 + (6/9) × 100 ≈ 366.67 taka.

Frequently Asked Questions

My textbook writes classes as 31–40, 41–50. What changes?

Those classes have gaps between them (40 to 41). Some books first convert them to continuous boundaries such as 30.5–40.5 and use 30.5 as L. Follow the method your teacher and textbook use; the formulas stay the same.

Can the mean be a value that is not in the data?

Yes. The mean of 1, 2, 3 and 4 is 2.5, which is not in the list. The median can also fall between two values when there is an even number of them.

Summary

  • Mean = total ÷ count; median = middle value after sorting; mode = most frequent value.
  • For grouped data, the mean uses midpoints: Σfx / n.
  • Median = L + ((n/2 − F)/f) × h.
  • Mode = L + (f₁/(f₁ + f₂)) × h.
  • Use the median for skewed data and the mode for categories.

Next: Functions and Relations.

Lessons are also marked complete when you click Next.

Leave a Reply

Your email address will not be published. Required fields are marked *