Mean and Median from a Frequency Table
On this page· 13 sections
Source & scope. Class 8 Mathematics (Ganita Prakash, Part 2), Chapter 12 Tales by Dots and Lines, Section 5.1. This article explains how to compute the mean and the median when values repeat and are listed with their frequencies. Previous: Median: The Middle Value of Sorted Data.
Source & scope. Class 8 Mathematics (Ganita Prakash, Part 2), Chapter 12 Tales by Dots and Lines, Section 5.1. This article explains how to compute the mean and the median when values repeat and are listed with their frequencies. Previous: Median: The Middle Value of Sorted Data.
When values repeat, a frequency table lists each value and how many times it occurs. The mean is : multiply each value by its frequency, add the products, and divide by the total number of observations. The median is found with a cumulative count: locate the middle position of the total number of observations and read off the value that covers it. Never average only the distinct values.
At a glance
- Frequency: the number of times a value occurs.
- Mean: .
- Median: use the cumulative frequency to find the value at the middle position.
- Warning: averaging the distinct values ignores frequencies and gives a wrong mean.
- Spreadsheets can compute mean and median with built-in functions.
Learning objectives
- Read a frequency table.
- Compute the mean using frequencies as weights.
- Build a cumulative frequency column.
- Find the median from the cumulative count.
- Avoid the error of averaging distinct values.
Prerequisite knowledge
The reader should know the mean as total divided by count, the median as the middle value of sorted data, and how to multiply and add whole numbers. The previous article covers the odd and even rules for the median.
Core explanation
Frequency tables
When many observations repeat, writing them all out is long. A frequency table lists each distinct value and its frequency , the number of times it occurs. The total number of observations is .
Mean with frequencies
The total of all values is found by multiplying each value by how often it occurs: Each value is weighted by its frequency, so a value that occurs often influences the mean more.
The mistake to avoid
Suppose the distinct values are . Adding them and dividing by gives . This treats every value as if it occurred once and ignores the frequencies, so it is not the mean of the data. The correct mean must use and .
Median with frequencies
Rather than writing every observation in order, build a cumulative count: for each value, the number of observations up to and including it. Let .
- If is odd, find the value covering position .
- If is even, find the values covering positions and and average them (often both lie in the same row).
The value whose cumulative range contains the required position is the median.
Using a spreadsheet
(Standard background.) Spreadsheets have built-in functions for the mean and the median, and can multiply columns and add them, which makes large frequency tables quick to handle.
Key terms
- Frequency — how many times a value occurs.
- Frequency table — a table of values and their frequencies.
- Weighted mean — a mean in which each value counts according to its frequency.
- Cumulative frequency — running total of frequencies up to a given value.
- Total frequency — the number of observations, .
Diagram / figure guidance
Draw a four-column table: "value ", "frequency ", "", "cumulative frequency". Colour the bottom totals of the and columns, and draw an arrow from the middle position (such as the th and th observations) into the cumulative column to show which row holds the median. A dot plot with stacked dots beside the table makes the frequencies visible.
Worked example
In a quiz, students scored as follows.
| Score | 2 | 3 | 4 | 5 | 6 |
|---|---|---|---|---|---|
| Frequency | 1 | 2 | 3 | 6 | 8 |
Mean. and The wrong shortcut ignores the frequencies.
Median. The cumulative counts are . With , the median is the average of the th and th observations. Both fall in the row with cumulative count (positions to ), whose score is . So the median is .
Common misconceptions
- "Average the distinct values." This ignores frequencies. Use .
- "Divide by the number of rows." Divide by , the number of observations.
- "The median is the middle row of the table." It is the value at the middle observation, found with cumulative counts.
- "The mean and median are always equal." Here they are and ; they differ in general.
- "Frequency is the same as the value." Frequency is how often the value occurs.
Exam application (JEE)
JEE statistics routinely presents data as a frequency table and asks for the mean, median or an unknown frequency. Compute and first, then check totals before dividing. For an unknown frequency , set up the mean equation and solve; the median problems use cumulative frequency to find the middle position. Always verify that the cumulative total equals and that the mean lies between the smallest and largest values.
Frequently asked questions
- What is the formula for the mean from a frequency table? .
- Why not just average the distinct values? It treats each value as occurring once and ignores how often each really occurs.
- How do I find the median from a frequency table? Build the cumulative frequency and find the value at the middle position of the observations.
- What is ? The total number of observations.
- Can a spreadsheet do this? Yes, built-in functions compute the mean and median quickly.
Practice questions (original practice questions)
- Values occur times respectively. The mean is:
- (a)
- (b)
- (c)
- (d)
- Answer: (b) — .
- For the same data (values with frequencies ), the median is:
- (a)
- (b)
- (c)
- (d)
- Answer: (b) — ; cumulative counts . The th value is and the th is , so the median is .
- For a frequency table with total frequency , the median is:
- (a) the th value
- (b) the th value
- (c) the average of the th and th values
- (d) the th value
- Answer: (c) — is even, so average the th and th values.
- The values and occur and times, and the mean is . The value of is:
- (a)
- (b)
- (c)
- (d)
- Answer: (b) — gives , so .
- The values occur times. The mean is:
- (a)
- (b)
- (c)
- (d)
- Answer: (c) — , not the unweighted .
Quick revision
- Frequency table: values with frequencies ; .
- Mean (weight each value by frequency).
- Never average only the distinct values (e.g. is wrong).
- Median: cumulative frequency, then the value at the middle position(s).
- Spreadsheet functions can compute both quickly.
Related articles
- Previous: Median: The Middle Value of Sorted Data
- Builds on: Averages and Ordering of Numbers
- See also: Dot Plots and Data Representation
- Related topics: How the Mean Changes: Adding Values, Constants and Multipliers, Interpreting Data and Infographics: Choosing and Reading Charts, Line Graphs: Plotting and Reading Change Over Time, Mean as a Balancing Point: Arithmetic Mean and Central Tendency, A Pinch of History: Squares, Cubes and Roots, Angle Sum of a Quadrilateral