Skip to content
We use only essential cookies to keep you signed in and remember your preferences. See our Cookie Policy.
TestStop
MocksPracticeResourcesIndiaBlogPricing
Sign in
Resources › Basic statistics › 2. Averages
Basic statistics · Lesson 2 of 10

Mean, median and mode

One number to stand for many. There are three ways to choose it, they usually disagree, and which one you quote can change the story. This lesson shows what each one measures, how to compute it from raw data and from a table, and how to pick.

← Basic statistics moduleLesson 2 of 10 · about 55 minutes
1Data2Averages3GM and HM4Spread5Shape6Correlation7Regression8Index numbers9Growth rates10Hard problems
A question to hold on to
The lowest value of a set of observations is 4.5 and their range is 10.9. The arithmetic mean is found to be 19.9 and the median 15.6. Is the mean right, the median right, both, or neither?
UGC NET June 2024Solved at the end ↓
New here?What is Ashanagar?The invented district behind this page's examples: 60 households, with incomes you can inspect.

Ashanagar is an invented district. The statistics lessons use it for every worked example, so you meet the same households again as the ideas build: first as a list of numbers, then as a spread, then as a population to sample from.

It has 60 households, each with a monthly income in rupees. Unless a page says otherwise, those 60 are the whole population, and a “sample” means a few of them drawn at random. Where a page needs two variables, it uses a smaller set of 12 households with the head’s years of schooling beside income.

The figures are illustrative, made up once and fixed. They are not official statistics.

Households
60
Mean income
₹28,783 a month
Median income
₹25,000 a month
Standard deviation
₹13,366
Lowest and highest
₹10,500 and ₹72,000

Meet the full data set →

In this guide
Lesson · about 55 minutes
  1. Three answers to “what is typical?”
  2. The mean: a balance point
  3. Weighted and combined means
  4. The median: the middle value
  5. The mode: the most common value
  6. Grouped data, quartiles and the ogive
  7. Which average, when?
  8. The opening question, solved
  9. The lesson on one screen
  10. Check yourself
  11. Past papers, by level
01
The idea

Three answers to “what is typical?”

Nine households live on one street. Their monthly incomes, in thousands of rupees, are 12, 15, 18, 18, 20, 22, 25, 30 and 65. What is the income of the typical household? Three honest answers:

  • The mean is 25. Share the total (225) equally among nine households and each gets 25.
  • The median is 20. Line the households up from poorest to richest, and the fifth, the one in the middle, has 20.
  • The mode is 18. It is the one income that two households share.

None of them is wrong. They answer three different questions, and with skewed data like incomes they differ a lot. Learning which question each one answers is most of this lesson.

Three questions

The mean asks “what would each get if everything were shared equally?” The median asks “what does the one in the middle have?” The mode asks “what is the commonest?” Pick the average by the question you are really asking.

02
Interactive

The mean: a balance point

The arithmetic mean adds the values and divides by how many there are:

Arithmetic mean
xˉ=nx1​+x2​+⋯+xn​​=n1​i=1∑n​xi​

The best picture of it is a seesaw. Put each household on a number line as a weight. The mean is the one point where the line would balance, the fulcrum. Drag the dots below and the blue marker follows. Then press A rich household moves in.

020406080100120140160₹ thousand a monthmedian 20mean 25121518182022253065
Mean: the balance pointMedian: the middle valueMode: the ring
Mean25
Median20
Mode18
Households9

Start here: the mean is 25 and the median 20. Drag the right-hand dot (65) towards 150 and watch which marker moves.

Drag a dot, or focus one and use the arrow keys (Shift for steps of 5).

The mean jumped from 25 to 37.5. The median moved from 20 to 21, and only because there were now ten households and the middle fell between two of them. One very high income pulled the balance point a long way, because the mean counts how large every value is. The median counts only which side each value lies on. That is the mean’s strength, since it uses all the information, and its weakness, since it is hostage to extreme values.

Four properties worth knowing cold

  1. The deviations from the mean add up to zero: ∑(xi​−xˉ)=0. That is what “balance point” means. JNU 2021 and Hyderabad 2012 both ask it.
  2. Add k to every value and the mean rises by k. Multiply by c and the mean is multiplied by c. So cx+k​=cxˉ+k.
  3. The mean is the value that makes the sum of squared deviations smallest. For any other number c:
    ∑(xi​−c)2=∑(xi​−xˉ)2+n(xˉ−c)2
    The extra term is never negative, so c = x̄ wins. JAM 2021 asks exactly this: S1 (about the mean) is less than S2 (about any other k).
  4. The mean can be corrected without starting over. If one value was recorded as 33 but should be 88, the total is 55 higher, so the mean rises by 55 ÷ n.
JNU 2019 · foundation
The average score of 100 students was given as 45. On scrutiny, a score of 88 had been recorded as 33. What is the corrected average?
  1. 1
    Work with the total, not the average.
    The reported total is 100 × 45 = 4,500.
  2. 2
    Correct the total.
    Remove the wrong 33 and put in the right 88: 4,500 − 33 + 88 = 4,555.
  3. 3
    Divide again.
    4,555 ÷ 100 = 45.55.
Answer
45.55. Always go through the total: an average cannot be adjusted by adding the difference of the two values, only by dividing that difference by n.
Pause and predict
The mean of 11 numbers is 7. One of them, 13, is deleted. What is the mean of the remaining ten?
03
When the groups differ in size

Weighted and combined means

Sometimes some values should count for more. The weighted mean multiplies each value by a weight w and divides by the total weight:

Weighted mean
xˉw​=∑wi​∑wi​xi​​

When the weights are group sizes, this is the combined mean of several groups: n1x̄1 + n2x̄2 over n1 + n2. It is why you can never average two averages without knowing how many were behind each.

In economics

Per-capita income is a weighted mean. Suppose State A has 4 crore people with a per-capita income of ₹1,50,000, and State B has 6 crore with ₹1,00,000 (invented figures). The two together average (4 × 150 + 6 × 100) ÷ 10 = ₹1,20,000 per head, not the simple ₹1,25,000. Likewise a sector’s contribution to GDP growth is its share times its growth: industry with a 25% share growing at 6% adds 0.25 × 6 = 1.5 points (Hyderabad 2011).

CUET 2024 · standard
Calculate the weighted mean of 10, 20 and 30 under each weight set, then arrange the results in descending order. (A) weights 3, 2, 1. (B) weights 1, 1, 3. (C) weights 1, 2, 3. (D) weights 2, 1, 2.
  1. 1
    Set A.
    (3·10 + 2·20 + 1·30) ÷ 6 = 100 ÷ 6 = 16.67. The weight sits on the small values, so the mean is low.
  2. 2
    Set B.
    (1·10 + 1·20 + 3·30) ÷ 5 = 120 ÷ 5 = 24.
  3. 3
    Set C.
    (1·10 + 2·20 + 3·30) ÷ 6 = 140 ÷ 6 = 23.33.
  4. 4
    Set D.
    (2·10 + 1·20 + 2·30) ÷ 5 = 100 ÷ 5 = 20.
Answer
24 (B) > 23.33 (C) > 20 (D) > 16.67 (A), so the order is B, C, D, A. A quick check without arithmetic: the more weight on 30, the higher the mean.

Averages that move the wrong way

JNU 2013 poses a puzzle. The average income of province A is higher than that of province B. Some people move from A to B, and the average of both provinces rises. Can that happen?

Yes. Let A have incomes 10, 20, 30, 40 (mean 25) and B have 5 and 15 (mean 10). Move the household earning 20 from A to B. A is left with 10, 30, 40, a mean of 26.67. B now has 5, 15, 20, a mean of 13.33. Both rose. The mover earned less than A’s average, so A improves by losing them, and more than B’s average, so B improves by gaining them. The answer is not “when the richer people move”, which would lower A’s mean. It needs someone in between.

04
Ignoring the extremes

The median: the middle value

The median is the middle value once the data are sorted. With an odd number of values it is the one in position (n + 1) ÷ 2. With an even number it is halfway between the two in the middle. CUET asks both: seven wages 160, 180, 200, 280, 300, 320, 400 have a median of 280, the fourth, and the ten numbers 2, 4, 3, 6, 1, 8, 9, 2, 5, 7 sort to 1, 2, 2, 3, 4, 5, 6, 7, 8, 9, so the median is halfway between 4 and 5, which is 4.5.

The median pays no attention to how far out the extremes are. JNU 2015: six scores have a median of 21; the highest score rises by three points. The median stays 21, because the highest was and still is above the middle.

Where the mean minimises the sum of squared distances, the median minimises the sum of absolute distances ∑∣xi​−c∣. To see why, slide c to the right by one. Every point to its left gets one unit further away and every point to its right gets one unit nearer. That helps while more points are on the right than on the left, so you stop at the middle. This is why JNU 2021 says the mean deviation is least when taken about the median.

Pause and predict
Six scores have a median of 21. The highest score rises by 3 points. The new median is
In economics

In Ashanagar the mean household income is ₹28,783 and the median ₹25,000. The mean is higher because a few households, the three highest earning ₹58,500, ₹58,500 and ₹72,000, pull it up. For a statement about the typical household, quote the median. For a statement about total income divided by households, which is what you need to compare to total spending, the mean is right. Economists often report both for exactly this reason.

05
The popular choice

The mode: the most common value

The mode is the value that occurs most often. A data set can have no mode (every value different), one mode, or several: two peaks make it bimodal. It is the only average that works for nominal data: the most common religion in a village, the most common occupation. It is also the right answer when you want the commonest size of something, such as a shoe.

For a continuous variable the raw mode is nearly useless. In Ashanagar, ₹12,000 and ₹22,000 each occur three times in the sixty incomes, and that says nothing. Group the data first and the answer appears: the modal class is the one with the highest frequency, and the next section estimates a single figure from it.

06
Interactive

Grouped data, quartiles and the ogive

Often you only have the table, not the raw data. Here are the Ashanagar incomes grouped into classes ₹10,000 wide, which is how a survey report would print them.

Income (₹ ’000)Class markfCum. f
10 to under 20151414
20 to under 30252337
30 to under 40351148
40 to under 5045856
50 to under 6055359
60 to under 7065059
70 to under 8075160

Every value in a class is treated as if it sat at the class mark. That gives the mean, and two formulas give the median and the mode.

Grouped data
xˉ=N∑fm​Median=L+f2N​−cf​hMode=L+2f1​−f0​−f2​f1​−f0​​h
L is the lower limit of the class, h its width, f its frequency, cf the cumulative frequency before it, N the total. For the mode, f₁ is the modal class frequency, f₀ the class before and f₂ the class after.
By hand · the Ashanagar table
Find the mean, median and mode of the grouped incomes above.
  1. 1
    Mean, by step deviation.
    Pick a convenient assumed mean A = 25 (a class mark) and let u = (class mark − 25) ÷ 10. The u values are −1, 0, 1, 2, 3, 4, 5, so Σfu = −14 + 0 + 11 + 16 + 9 + 0 + 5 = 27. Then the mean is 25 + 10 × 27 ÷ 60 = 29.5 thousand. The direct sum Σfm ÷ N = 1,770 ÷ 60 gives the same.
  2. 2
    Median class.
    N ÷ 2 = 30. The cumulative frequency passes 30 in the class 20 to 30 (it goes from 14 to 37), so L = 20, cf = 14, f = 23, h = 10.
  3. 3
    Median.
    20 + (30 − 14) ÷ 23 × 10 = 20 + 6.96 = 26.96 thousand.
  4. 4
    Mode.
    The modal class is also 20 to 30, with f₁ = 23, f₀ = 14, f₂ = 11. Mode = 20 + (23 − 14) ÷ (46 − 14 − 11) × 10 = 20 + 9 ÷ 21 × 10 = 24.29 thousand.
Answer
Mean about ₹29,500, median about ₹26,957, mode about ₹24,286. From the raw data they were ₹28,783, ₹25,000 and (no useful mode). Grouping costs a little accuracy, but the pattern, mean > median > mode, survives.

Quartiles from an ogive

The median splits the data in half. Quartiles split it into quarters: Q1 has a quarter of the data below it, Q3 three quarters. Percentiles do the same in hundredths, so the 90th percentile has 90% below it. All of them are read the same way. Go up the cumulative axis of the ogive to the right share of N, across to the curve, then down. The picture is the formula: within a class you assume the values are evenly spread, so the curve is a straight line, and the formula just reads along it. Try it.

Class (₹ ’000)fCum. f
10 to under 201414
20 to under 302337
30 to under 401148
40 to under 50856
50 to under 60359
60 to under 70059
70 to under 80160
01020304050601020304050607080monthly income, ₹ ’000households below26,957
The working

50% of N = 60 is 30. The running total first reaches that in the class 20 to under 30, which holds f = 23 households after 14 below it, and is 10,000 wide.

L + ((pN − cf) / f) × h = 20,000 + ((30 − 14) / 23) × 10,000 = 26,957

From the sixty raw incomes the same figure is 25,000. The grouped estimate is a little off because it assumes the households inside a class are spread evenly.

Two conventions are easy to mix up. For raw data, textbooks put Q1 at position (n + 1) ÷ 4 in the sorted list. For grouped data you work with N ÷ 4 and N ÷ 2, as above. CUET 2020 uses the second: with 500 observations, Q3 lies in the 3 × 500 ÷ 4 = 375th item. Statistical software uses other rules again, so a small data set can give a slightly different Q1 in a spreadsheet.

07
Choosing

Which average, when?

SituationUseBecause
Nominal categoriesModeNo order, no arithmetic
Ordinal ranks or ratingsMedianOrder is real, gaps are not
Skewed data, extreme values, open-ended classesMedianNot pulled by the tail; computable when the top class has no upper limit
Roughly symmetric numerical dataMeanUses every value; easiest to work with algebraically
Groups of different sizesWeighted meanEach group counts in proportion to its size
Growth rates; rates per unitGeometric or harmonic meanLesson 3

Six situations. Pick the average and read why.

Which average? · 1 of 6
The typical household income in a district where a handful of families are very rich
Watch out for

The mistakes examiners are fishing for

  • Averaging averages. The mean of two class means is the mean of all students only if the classes are the same size. Otherwise weight by size.
  • Adjusting a mean by the difference. A wrong entry changes the total by the difference between the right and wrong values. The mean changes by that difference divided by n, not by the difference itself.
  • Mean, median, mode all equal. That only suggests symmetry. It does not prove it, and it says nothing about the spread.
  • Median of an even number of values. It is the average of the two middle ones, so it may not be a value in the data.
  • Position formulas. (n + 1) ÷ 4 for raw quartiles, N ÷ 4 for grouped. Match the formula to the data type.
08
Solving the opening question

The opening question, solved

UGC NET June 2024 · standard
Lowest value 4.5, range 10.9, arithmetic mean 19.9, median 15.6. Which statements are correct?
  1. 1
    Find the highest value.
    Range = highest − lowest, so the highest is 4.5 + 10.9 = 15.4. Every observation lies between 4.5 and 15.4.
  2. 2
    Where can a mean be?
    The mean is a weighted average of the values, so it cannot be higher than the highest of them. 19.9 > 15.4: impossible.
  3. 3
    Where can a median be?
    The median is one of the values, or halfway between two of them, so it is also at most 15.4. 15.6 > 15.4: impossible too.
Answer
Both are wrong. The point to remember: the mean and the median always lie between the smallest and largest value, and so does the mode. Use it as a quick check on any answer.
09
Revise

The lesson on one screen

The lesson on one screen
Mean
Σx ÷ n. The balance point; deviations sum to zero; minimises Σ(x − c)². Pulled by extremes. (cx + k) has mean c·x̄ + k.
Median
Middle of the sorted data; position (n + 1) ÷ 2. Ignores extremes; minimises Σ|x − c|. Even n: average the two middle values.
Mode
Most frequent value or modal class. The only average for nominal data. Can be absent or multiple.
Weighted mean
Σwx ÷ Σw. Combined mean of groups = Σ n x̄ ÷ Σn. Never average two means unweighted.
Correcting a mean
Change the total, then divide: new mean = old + (right − wrong) ÷ n.
Grouped data
Mean = Σfm ÷ N. Median = L + ((N/2 − cf)/f)h. Mode = L + ((f₁ − f₀)/(2f₁ − f₀ − f₂))h.
Quartiles
Raw: position (n + 1)/4. Grouped: N/4 on the ogive, interpolated in the class.
Always
Mean, median and mode lie between the smallest and largest values.
10
Practice

Check yourself

0 of 11 correct so far

Compute

The street
The nine incomes are 12, 15, 18, 18, 20, 22, 25, 30, 65. What is the mean?
A tenth household
A household earning 150 moves in, so there are ten incomes. What is the median now?
Weighted mean
State A has 4 crore people with a per-capita income of ₹150 thousand; State B has 6 crore with ₹100 thousand. What is the combined per-capita income, in ₹ thousand?
Recover a group mean
A class of 40 has a mean mark of 60. The 10 girls average 70. What is the boys’ mean?
Correct the mean
The mean of 50 observations is 30. One of them, 45, should have been 54. What is the corrected mean?
Grouped median
Classes 0 to 10, 10 to 20, 20 to 30, 30 to 40 have frequencies 4, 10, 16, 10. Find the median.
Grouped mean and mode
For the same table, find the mean (using class marks 5, 15, 25, 35) and the mode. Enter the mean.

Quick questions

1The mean deviation is smallest when measured about the
2The highest of nine incomes is replaced by a much larger figure. Which average does not change?
3For data on religion, the only meaningful average is the
4The deviations of a set of values from their arithmetic mean always
11
Real questions

Past papers, by level

Foundation

Definitions, one-step arithmetic and which-measure questions. Most CUET and Hyderabad questions sit here.

14 questionsPractise →

Standard

Grouped data, combined means, effects of shifting and scaling, and statement questions, up to JNU level.

13 questionsPractise →

Delhi School level

This topic’s hardest questions, from the DSE entrance, are worked through in Lesson 10: Data and averages.

5 questionsLesson 10 →
All 27 past-paper questions for this lesson, easiest first: practise the full set →

✦These are questions from the TestStop bank. A free account answers 10 a day, each with its worked solution; All-Access opens every set with no daily limit.

← Lesson 1Types of data, and how to picture themLesson 3 →Geometric and harmonic means

Read next

All resources →
StatisticsStatistics 3: geometric mean and harmonic meanThe geometric mean for ratios and its link to logs, the harmonic mean for speeds and prices, when each average is the right one, and AM ≥ GM ≥ HM in one picture.Complete guide · 35 minStatisticsStatistics 1: types of data, scales and frequency tablesPopulation and sample, the four scales of measurement, cross-section, time series and panel data, stocks and flows, class intervals, and the histogram, frequency polygon and ogive.Complete guide · 40 minStatisticsBasic statistics for economics students, from zero to exam levelA module in ten lessons: types of data, the three averages, the geometric and harmonic means, variance and standard deviation, then shape, correlation, regression and index numbers, with a short add-on on growth rates, on one running example, with graded past papers and the Delhi School’s hard problems.Module · 465 min