Mean, median, quartiles and mode of grouped data
Goals
- Find the mean of grouped data using the representative values of the classes.
- Identify the class containing the median or a quartile and compute these numbers by formula.
- Identify the modal class and find the mode of grouped data.
- Compare these numbers with values computed from the raw data and choose the right one to describe a sample.
Remember
- Mean: , where is the representative value and is the frequency of class .
- The th quartile: , where is the first class with ; the median is .
- Mode: , where is the class with the greatest frequency.
- These values are only estimates of the numbers computed from raw data, because we assume the data in each class are spread evenly.
- The mean is strongly affected by outliers; the median and quartiles are affected less.
Exercises
Exercise 1
The heights of students are grouped: has , has , has , has , has students. Estimate the mean height (to 1 decimal place).
Exercise 2
For the height table of the previous exercise, estimate the median, and (to 2 decimal places).
Exercise 3
For the height table of the previous exercises, estimate the mode (to 2 decimal places).
Exercise 4
Suppose the monthly water use (in ) of 50 households is grouped: [0, 5) has 4 households, [5, 10) has 16, [10, 15) has 18, [15, 20) has 9, [20, 25) has 3. Estimate the mean, median and mode (to 2 decimal places).
Exercise 5
The waiting times (in minutes) for a bus of 25 passengers are grouped: [0, 5) has 7, [5, 10) has 10, [10, 15) has 6, [15, 20) has 2 passengers. Estimate the median and Q_3 (to 2 decimal places). How should we interpret Q_3 in this situation?
Exercise 6
Take grouped data: [0, 10) has 5, [10, 20) has x, [20, 30) has 15, [30, 40) has 5. The estimated mean is 20. Find x.
Exercise 7
The daily takings (in millions of dong) of a shop over 30 days are grouped: [10, 15) has 4 days, [15, 20) has 9 days, [20, 25) has 10 days, [25, 30) has 5 days, [30, 35) has 2 days. Decide whether each statement is true or false.
a) Q_1 lies in the class [15, 20).
b) The median is M_e=21.
c) The estimated mean is \bar{x}\approx21.17.
d) The mode is M_o=22.5.
Exercise 8
A grouped data set of size 40 has cumulative frequency 12 for the class [10, 20), and the class [20, 30) has frequency 16. Estimate the median.
Exercise 9 Revision
Use the relative frequencies of the journey-time table of the previous lesson (15\%, 35\%, 30\%, 15\%, 5\%) and the representative values 5, 15, 25, 35, 45 to find the mean again by the formula \bar{x}=f_1c_1+\dots+f_kc_k.
Exercise 10 Challenge
Grouped data have k classes of the same width h, all with the same frequency. Prove that the estimated mean is the midpoint of the interval [a_1, a_{k+1}], where a_1 is the lower boundary of the first class and a_{k+1} the upper boundary of the last class.
Mini test
15 minutes, without looking back at the lesson. Part I: circle one letter; Part II: write T or F for each statement; Part III: write the answer in the box.
Part I. Multiple choice
Part II. True or false
| a) The estimated mean is 30. | T / F |
| b) The class containing Q_3 is [40, 60). | T / F |
| c) The median is M_e\approx33.3. | T / F |
| d) Q_1=20. | T / F |
Part III. Short answer
Score: ........ / 10
Hints (only when stuck)
What you need: \bar{x}=\dfrac{m_1c_1+\dots+m_kc_k}{n}.
Steps:
- Write the representative value of each class.
- Multiply by the frequencies, add, and divide by 40.
What you need: Q_r=a_p+\dfrac{\frac{rn}{4}-C_{p-1}}{m_p}\cdot h, where p is the first class with C_p\ge\dfrac{rn}{4}.
Steps:
- Find the cumulative frequencies: 4, 14, 28, 37, 40.
- Find the classes containing 10, 20, 30, then apply the formula.
What you need: M_o=u_j+\dfrac{m_j-m_{j-1}}{(m_j-m_{j-1})+(m_j-m_{j+1})}\cdot h.
Steps:
- Find the class with the greatest frequency and the two neighbouring frequencies.
- Substitute into the formula.
What you need: the three formulas of the lesson; the cumulative frequencies are 4, 20, 38, 47, 50.
Steps:
- Find \bar{x} using the representative values 2.5; 7.5; \dots.
- For the median, find the class containing \dfrac n2=25.
- The mode lies in the class with 18 households.
What you need: the cumulative frequencies are 7, 17, 23, 25; \dfrac n2=12.5 and \dfrac{3n}{4}=18.75.
Steps:
- Find the first class with C_p\ge12.5, then the first with C_p\ge18.75.
- Apply the formula.
What you need: n=25+x; the representative values are 5, 15, 25, 35.
Steps:
- Write \bar{x} in terms of x.
- Solve the equation \bar{x}=20.
What you need: the cumulative frequencies are 4, 13, 23, 28, 30; \dfrac n4=7.5, \dfrac n2=15.
Steps:
- a) Find the first class with C_p\ge7.5.
- b) Find M_e in the class [20, 25).
- c), d) Find \bar{x} and M_o.
What you need: \dfrac n2=20 lies in the class [20, 30) because 12<20\le12+16.
Steps:
- Identify a_p, C_{p-1}, m_p.
- Substitute into the formula for M_e.
What you need: f_i=\dfrac{m_i}{n}, so \dfrac{m_ic_i}{n}=f_ic_i; convert the percentages to decimals.
Steps:
- Write 0.15; 0.35; 0.30; 0.15; 0.05.
- Multiply by the representative values and add.
What you need: the representative values form an arithmetic progression with common difference h (previous lesson); the sum of the first k terms of an arithmetic progression is S_k=\dfrac{k(c_1+c_k)}{2}.
Steps:
- With equal frequencies m, n=km and \bar{x}=\dfrac{c_1+\dots+c_k}{k}.
- Use c_1=a_1+\dfrac h2 and c_k=a_{k+1}-\dfrac h2.
Self-check
| # | Did it alone | Needed a hint | Not yet |
|---|---|---|---|
| 1 | ☐ | ☐ | ☐ |
| 2 | ☐ | ☐ | ☐ |
| 3 | ☐ | ☐ | ☐ |
| 4 | ☐ | ☐ | ☐ |
| 5 | ☐ | ☐ | ☐ |
| 6 | ☐ | ☐ | ☐ |
| 7 | ☐ | ☐ | ☐ |
| 8 | ☐ | ☐ | ☐ |
| 9 | ☐ | ☐ | ☐ |
| 10 | ☐ | ☐ | ☐ |
Redo the ones you missed after: ☐ 1 day ☐ 3 days ☐ 7 days
Scan for step-by-step solutions