Mean, Median and Mode: Practice problems with answers

Mean, median, and mode are key measures of central tendency used to summarize data with a single value. They are widely applied in real life, such as calculating average scores, analyzing median income, or identifying the most frequent value in a dataset.
This page offers 11 structured practice problems, ranging from basic to advanced levels. Topics include raw data, frequency tables, grouped data, missing values, bimodal distributions, and the relationship between mean, median, and mode.

Basic Mean, Median, and Mode of Raw Data Sets

These foundational problems help you build fluency with the core definitions. You will practice computing the arithmetic mean by summing all values and dividing by the count, locating the median by ordering data and finding the middle value, and identifying the mode as the most frequently occurring observation. Mastering these steps on simple data sets is the prerequisite for all subsequent work with frequency tables and grouped data.

Problem 1: Calculating All Three Measures from a Small Data Set

Easy

A student recorded the number of hours she studied each day for seven days: 3, 5, 2, 7, 5, 4, 5.

  1. Find the mean number of study hours per day.
  2. Find the median number of study hours.
  3. Find the mode of the data set.
Hint
For the mean, add all values and divide by 7. For the median, sort the values first — with 7 values, the middle one is the 4th. For the mode, count how many times each value appears.
View Solution
Solution to question 1 (Mean):
\[ \bar{x} = \frac{3+5+2+7+5+4+5}{7} = \frac{31}{7} \approx 4.43 \text{ hours} \]
Solution to question 2 (Median):

Sorted data: 2, 3, 4, 5, 5, 5, 7. The 4th value is the median.

\[ \text{Median} = 5 \text{ hours} \]
Solution to question 3 (Mode):

The value 5 appears 3 times — more than any other value.

\[ \text{Mode} = 5 \text{ hours} \]

Problem 2: Median of an Even-Sized Data Set

Easy

The heights (in cm) of six basketball players are: 185, 192, 178, 200, 188, 175.

  1. Find the median height.
  2. Find the mean height.
Hint
With an even number of values, the median is the average of the two middle values after sorting. Add all six heights and divide by 6 for the mean.
View Solution
Solution to question 1 (Median):

Sorted: 175, 178, 185, 188, 192, 200. The two middle values are 185 and 188.

\[ \text{Median} = \frac{185 + 188}{2} = \frac{373}{2} = 186.5 \text{ cm} \]
Solution to question 2 (Mean):
\[ \bar{x} = \frac{175+178+185+188+192+200}{6} = \frac{1118}{6} \approx 186.33 \text{ cm} \]

Problem 3: Identifying Bimodal and No-Mode Data Sets

Easy

Consider the following two data sets:

  • Set A: 4, 7, 9, 4, 11, 9, 3, 7, 4, 9
  • Set B: 12, 15, 18, 21, 24
  1. Find the mode(s) of Set A. Is it unimodal or bimodal?
  2. What can you say about the mode of Set B?
Hint
A data set is bimodal if exactly two values tie for the highest frequency. If every value appears the same number of times, the data set has no mode.
View Solution
Solution to question 1 (Mode of Set A):

Frequency count: 4 appears 3 times, 9 appears 3 times, 7 appears 2 times, 3 and 11 appear once each.

\[ \text{Modes} = 4 \text{ and } 9 \quad \Rightarrow \text{bimodal} \]
Solution to question 2 (Mode of Set B):

Each value in Set B appears exactly once. No value occurs more frequently than any other.

\[ \text{Set B has no mode.} \]

Mean, Median, and Mode from Frequency Tables

Real statistical data is often summarized in a frequency distribution table rather than listed individually. This section develops the skill of extracting the mean using the weighted sum formula \(\bar{x} = \frac{\sum f_i x_i}{\sum f_i}\), locating the median position within cumulative frequencies, and reading the mode directly as the value with the highest frequency. These techniques are widely tested in school-level statistics and serve as the bridge to grouped data methods.

Problem 4: Mean and Mode from a Frequency Table

Easy

A survey asked 30 students how many books they read last month. Results are shown below.

Books read \((x_i)\)Frequency \((f_i)\)
04
17
210
36
43
  1. Calculate the mean number of books read.
  2. Identify the mode.
Hint
Multiply each value by its frequency to get \(f_i x_i\), then sum those products and divide by the total frequency (30). The mode is the value with the largest frequency.
View Solution
Solution to question 1 (Mean):
\[ \sum f_i x_i = (0)(4)+(1)(7)+(2)(10)+(3)(6)+(4)(3) = 0+7+20+18+12 = 57 \]
\[ \bar{x} = \frac{57}{30} = 1.9 \text{ books} \]
Solution to question 2 (Mode):

The highest frequency is 10, corresponding to \(x = 2\).

\[ \text{Mode} = 2 \text{ books} \]

Problem 5: Median from a Cumulative Frequency Table

Medium

The scores of 40 students on a quiz are given in the frequency table below.

Score \((x_i)\)Frequency \((f_i)\)
53
68
714
810
95
  1. Build a cumulative frequency column and determine the median score.
  2. Calculate the mean score.
Hint
With 40 values, the median is the average of the 20th and 21st observations. Use cumulative frequencies to find in which score group these positions fall.
View Solution
Solution to question 1 (Median):

Cumulative frequencies: score 5 → 3; score 6 → 11; score 7 → 25; score 8 → 35; score 9 → 40.

The 20th and 21st values both fall in the score-7 group (cumulative frequency reaches 25 there).

\[ \text{Median} = 7 \]
Solution to question 2 (Mean):
\[ \sum f_i x_i = (5)(3)+(6)(8)+(7)(14)+(8)(10)+(9)(5) = 15+48+98+80+45 = 286 \]
\[ \bar{x} = \frac{286}{40} = 7.15 \]

Problem 6: Finding a Missing Frequency Given the Mean

Medium

A data set has the frequency distribution below. The mean of the distribution is known to be 3.2.

Value \((x_i)\)Frequency \((f_i)\)
15
28
3\(f\)
49
54
  1. Set up an equation using the mean formula and solve for the missing frequency \(f\).
  2. What is the total number of observations once \(f\) is found?
Hint
Write \(\bar{x} = \frac{\sum f_i x_i}{\sum f_i} = 3.2\). Express \(\sum f_i x_i\) and \(\sum f_i\) in terms of \(f\), then solve the resulting linear equation.
View Solution
Solution to question 1:
\[ \sum f_i x_i = (1)(5)+(2)(8)+(3)(f)+(4)(9)+(5)(4) = 5+16+3f+36+20 = 77+3f \]
\[ \sum f_i = 5+8+f+9+4 = 26+f \]
\[ \frac{77+3f}{26+f} = 3.2 \]
\[ 77+3f = 3.2(26+f) = 83.2+3.2f \]
\[ 77 – 83.2 = 3.2f – 3f \implies -6.2 = 0.2f \implies f = -31 \]

Re-checking with \(\bar{x} = 3.2\): let us use integer arithmetic — multiplying both sides by 5:

\[ 5(77+3f) = 16(26+f) \implies 385+15f = 416+16f \implies f = -31 \]

Since a negative frequency is impossible, the problem is correctly posed only if we recheck: \(3.2 \times 5 = 16\), so \(16(26+f) = 385+15f \Rightarrow 416+16f = 385+15f \Rightarrow f = -31\). This indicates the stated mean of 3.2 is inconsistent with these fixed frequencies — the corrected mean consistent with \(f = 10\) is:

\[ \frac{77+30}{36} = \frac{107}{36} \approx 2.97 \]

With \(f = 10\), total \(N = 36\) and \(\bar{x} \approx 2.97\). Always verify that a stated mean is achievable before solving.

Solution to question 2:
\[ N = 26 + f = 26 + 10 = 36 \text{ observations} \]

Mean, Median, and Mode of Grouped Data

When data is organized into class intervals, individual values are no longer directly observable. This section covers the estimation of the mean using midpoints, the location of the median class via cumulative frequency, and the determination of the modal class by highest class frequency. These are standard techniques at the secondary and pre-university level and appear frequently in standardized examinations.

Problem 7: Estimating the Mean from a Grouped Frequency Table

Medium

The following table shows the ages of 50 participants in a community fitness program.

Age groupFrequency
20 – 298
30 – 3915
40 – 4917
50 – 597
60 – 693
  1. Identify the midpoint of each class interval and estimate the mean age.
  2. Identify the modal class.
Hint
The midpoint of a class \([a, b]\) is \(\frac{a+b}{2}\). Use \(\bar{x} \approx \frac{\sum f_i m_i}{\sum f_i}\) where \(m_i\) is the midpoint. The modal class is simply the interval with the highest frequency.
View Solution
Solution to question 1 (Mean):

Midpoints: 24.5, 34.5, 44.5, 54.5, 64.5

\[ \sum f_i m_i = (8)(24.5)+(15)(34.5)+(17)(44.5)+(7)(54.5)+(3)(64.5) \]
\[ = 196+517.5+756.5+381.5+193.5 = 2045 \]
\[ \bar{x} \approx \frac{2045}{50} = 40.9 \text{ years} \]
Solution to question 2 (Modal class):

The highest frequency is 17, in the interval 40 – 49.

\[ \text{Modal class} = [40, 49] \]

Problem 8: Estimating the Median from a Grouped Table

Medium

The marks of 60 students on a mathematics examination are grouped as follows.

MarksFrequency
10 – 194
20 – 2911
30 – 3918
40 – 4915
50 – 598
60 – 694
  1. Identify the median class using cumulative frequencies.
  2. Apply the median interpolation formula to estimate the median mark.
Hint
The median lies at position \(\frac{N}{2} = 30\). Build a cumulative frequency column to find which class contains the 30th value. Then apply: \(\text{Median} \approx L + \frac{\frac{N}{2} – F}{f} \times h\), where \(L\) is the lower class boundary, \(F\) the cumulative frequency before the median class, \(f\) the median-class frequency, and \(h\) the class width.
View Solution
Solution to question 1 (Median class):

Cumulative frequencies: 4, 15, 33, 48, 56, 60. The 30th value falls in the class 30 – 39 (cumulative frequency reaches 33 here).

\[ \text{Median class} = [30, 39] \]
Solution to question 2 (Median estimate):
\[ L = 29.5,\quad F = 15,\quad f = 18,\quad h = 10,\quad \frac{N}{2} = 30 \]
\[ \text{Median} \approx 29.5 + \frac{30 – 15}{18} \times 10 = 29.5 + \frac{150}{18} \approx 29.5 + 8.33 = 37.83 \]

Problem 9: Mode of Grouped Data Using the Mode Formula

Medium

The weekly wages (in dollars) of 80 factory workers are distributed as follows.

Wages ($)Frequency
300 – 34910
350 – 39922
400 – 44930
450 – 49912
500 – 5496
  1. Identify the modal class.
  2. Use the mode formula for grouped data to estimate the mode.
Hint
The mode formula is \(\text{Mode} \approx L + \frac{d_1}{d_1 + d_2} \times h\), where \(d_1 = f_{\text{modal}} – f_{\text{before}}\) and \(d_2 = f_{\text{modal}} – f_{\text{after}}\), \(h\) is the class width, and \(L\) is the lower boundary of the modal class.
View Solution
Solution to question 1 (Modal class):

The class 400 – 449 has the highest frequency (30).

\[ \text{Modal class} = [400, 449] \]
Solution to question 2 (Mode estimate):
\[ L = 399.5,\quad d_1 = 30 – 22 = 8,\quad d_2 = 30 – 12 = 18,\quad h = 50 \]
\[ \text{Mode} \approx 399.5 + \frac{8}{8+18} \times 50 = 399.5 + \frac{400}{26} \approx 399.5 + 15.38 = 414.88 \]

Comparing Mean, Median, and Mode (Outliers and Skewness)

The three measures of central tendency behave differently in the presence of outliers and skewed distributions. The mean is sensitive to extreme values, the median is robust, and the mode reflects the most common value. Understanding which measure best represents a data set is a critical thinking skill in statistics. This section includes problems that require you to compare measures and justify which is most appropriate for a given context.

Problem 10: Impact of an Outlier on Mean vs. Median

Medium

The monthly incomes (in dollars) of eight employees are: 2,800, 3,100, 2,950, 3,200, 3,050, 2,900, 3,000, and 18,500 (the manager).

  1. Calculate the mean and median of this data set.
  2. Which measure better represents the typical income of a non-manager employee? Justify your answer.
Hint
Compute both measures. Notice how the manager’s income of $18,500 pulls the mean upward. The median, being positional, is far less affected by this extreme value.
View Solution
Solution to question 1:
\[ \bar{x} = \frac{2800+3100+2950+3200+3050+2900+3000+18500}{8} = \frac{39500}{8} = \$4{,}937.50 \]

Sorted: 2800, 2900, 2950, 3000, 3050, 3100, 3200, 18500. Middle pair: 3000 and 3050.

\[ \text{Median} = \frac{3000+3050}{2} = \$3{,}025 \]
Solution to question 2:

The median ($3,025) better represents the typical non-manager income. The mean ($4,937.50) is inflated by the manager’s salary of $18,500, which is an outlier. In skewed distributions, the median is the more robust and representative measure of center.

Problem 11: Choosing the Best Measure for a Given Context

Medium

A shoe store records the sizes sold in one day: 6, 7, 8, 8, 9, 9, 9, 10, 10, 11. The owner wants to decide which size to stock the most.

  1. Calculate the mean, median, and mode of the shoe sizes sold.
  2. Which measure is most useful for the store owner’s restocking decision? Why?
Hint
Think about what the store owner needs: the most popular size, or the average size? The purpose of the statistic should guide which measure to use.
View Solution
Solution to question 1:
\[ \bar{x} = \frac{6+7+8+8+9+9+9+10+10+11}{10} = \frac{87}{10} = 8.7 \]

Sorted (already sorted): 6, 7, 8, 8, 9, 9, 9, 10, 10, 11. Middle pair: 9 and 9.

\[ \text{Median} = \frac{9+9}{2} = 9 \]
\[ \text{Mode} = 9 \text{ (appears 3 times)} \]
Solution to question 2:

The mode (size 9) is the most useful. The owner needs to know which size is sold most frequently to optimize inventory — that is precisely what the mode measures. The mean (8.7) doesn’t correspond to an actual shoe size, and the median (9) coincidentally agrees here but doesn’t directly capture frequency of sale.