UNIHIVE

Study Hub UNIPORT STA 160

STA 160 · Descriptive Statistics

Mean, median and mode

Measures of central tendency for raw and grouped data, with their strengths and weaknesses.

Our notes

2 min read

Measures of central tendency (averages) give one typical value for a data set.

Ungrouped data

Worked example. Data: 4, 7, 7, 9, 13.

  • Mean x̄ = Σx/n = 40/5 = 8.
  • Median: the middle value when arranged in order = 7. For an even number of values, average the two middle ones. Position: (n + 1)/2.
  • Mode: the most frequent value = 7. A set can have no mode, one (unimodal), two (bimodal) or more.

For a frequency table: x̄ = Σfx / Σf.

Grouped data (using the table from the frequency distributions topic)

MarksfMidpoint xfxCumulative f
10–19514.572.55
20–29824.5196.013
30–391234.5414.025
40–49544.5222.530
Total30905.0

Mean: x̄ = Σfx/Σf = 905/30 ≈ 30.17.

Median: Median = L + ((N/2 − F)/f) × c

  • L = lower class boundary of the median class, N = total frequency, F = cumulative frequency before the median class, f = frequency of the median class, c = class width.
  • N/2 = 15 → the median class is 30–39 (cumulative frequency reaches 25 there). L = 29.5, F = 13, f = 12, c = 10.
  • Median = 29.5 + ((15 − 13)/12) × 10 = 29.5 + 1.67 ≈ 31.17.

Mode: Mode = L + (d₁/(d₁ + d₂)) × c

  • Modal class = the class with the highest frequency (30–39). d₁ = 12 − 8 = 4 (difference with the class before); d₂ = 12 − 5 = 7 (with the class after).
  • Mode = 29.5 + (4/11) × 10 ≈ 33.14.

The assumed mean (short-cut) method

x̄ = A + Σfd/Σf, where A is an assumed mean and d = x − A. It gives the same answer with smaller numbers.

Other means

  • Weighted mean: x̄ = Σwx/Σw. Your CGPA is a weighted mean of grade points, weighted by course units.
  • Geometric mean: ⁿ√(x₁x₂…xₙ), for growth rates and ratios.
  • Harmonic mean: n / Σ(1/x), for average speeds over equal distances.

Worked example (weighted). A student scores grade points 5 (3 units), 4 (2 units) and 3 (1 unit). GPA = (15 + 8 + 3)/6 = 26/6 ≈ 4.33.

Comparing the three

MeanMedianMode
Uses all valuesyesnono
Affected by extreme values (outliers)yesnono
Used for qualitative datanoordinal onlyyes
Best whendata are symmetricaldata are skewed (incomes, house prices)most common item (shoe size, popular choice)

Empirical relation (moderately skewed data): Mean − Mode ≈ 3(Mean − Median).

Exams usually ask: mean, median and mode of ungrouped and grouped data; the formulas for grouped median and mode; weighted mean (GPA); merits and demerits of each measure.

Common mistake: in the grouped median formula, using the cumulative frequency of the median class for F instead of the one before it.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

Practise

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All STA 160 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.