Example 1
Question: The weights (in kg) of 50 students of a class, measured correct to the nearest kilogram, are given in the following table. Find the median weight.
Weight (kg): 30–34, 35–39, 40–44, 45–49, 50–54, 55–59
Number of students: 4, 7, 12, 15, 8, 4
Solution: Since the class intervals are inclusive (discontinuous), we convert them to exclusive continuous intervals:
New class intervals: 29.5–34.5, 34.5–39.5, 39.5–44.5, 44.5–49.5, 49.5–54.5, 54.5–59.5
Frequencies and cumulative frequencies:
Class 29.5–34.5: frequency = 4, cumulative frequency = 4
Class 34.5–39.5: frequency = 7, cumulative frequency = 11
Class 39.5–44.5: frequency = 12, cumulative frequency = 23
Class 44.5–49.5: frequency = 15, cumulative frequency = 38
Class 49.5–54.5: frequency = 8, cumulative frequency = 46
Class 54.5–59.5: frequency = 4, cumulative frequency = 50
Total number of students: \( n = 50 \)
So \( \dfrac{n}{2} = 25 \)
The cumulative frequency just exceeding 25 is 38, which belongs to the class 44.5–49.5.
Therefore, the median class is 44.5–49.5.
Here: \( l = 44.5 \), \( cf = 23 \) (cumulative frequency before the median class), \( f = 15 \), \( h = 5 \)
Applying the median formula: \[ \text{Median} = l + \left(\frac{\frac{n}{2} - cf}{f}\right) \times h \]
Substituting the values: \[ \text{Median} = 44.5 + \left(\frac{25 - 23}{15}\right) \times 5 \] \[ \text{Median} = 44.5 + \frac{2}{15} \times 5 \] \[ \text{Median} = 44.5 + \frac{10}{15} \] \[ \text{Median} = 44.5 + 0.67 \] \[ \text{Median} = 45.17 \text{ kg (approx.)} \]
Answer: Median weight ≈ 45.17 kg
Example 2
Question: The ages (in years) of 60 patients admitted to a hospital ward, recorded correct to the nearest year, are given below. Find the median age.
Age (years): 20–24, 25–29, 30–34, 35–39, 40–44, 45–49, 50–54
Number of patients: 3, 8, 14, 16, 10, 6, 3
Solution: The class intervals are inclusive, so we convert them to exclusive continuous intervals:
New class intervals: 19.5–24.5, 24.5–29.5, 29.5–34.5, 34.5–39.5, 39.5–44.5, 44.5–49.5, 49.5–54.5
Frequencies and cumulative frequencies:
Class 19.5–24.5: frequency = 3, cumulative frequency = 3
Class 24.5–29.5: frequency = 8, cumulative frequency = 11
Class 29.5–34.5: frequency = 14, cumulative frequency = 25
Class 34.5–39.5: frequency = 16, cumulative frequency = 41
Class 39.5–44.5: frequency = 10, cumulative frequency = 51
Class 44.5–49.5: frequency = 6, cumulative frequency = 57
Class 49.5–54.5: frequency = 3, cumulative frequency = 60
Total number of patients: \( n = 60 \)
So \( \dfrac{n}{2} = 30 \)
The cumulative frequency just exceeding 30 is 41, which belongs to the class 34.5–39.5.
Therefore, the median class is 34.5–39.5.
Here: \( l = 34.5 \), \( cf = 25 \) (cumulative frequency before the median class), \( f = 16 \), \( h = 5 \)
Applying the median formula: \[ \text{Median} = l + \left(\frac{\frac{n}{2} - cf}{f}\right) \times h \]
Substituting the values: \[ \text{Median} = 34.5 + \left(\frac{30 - 25}{16}\right) \times 5 \] \[ \text{Median} = 34.5 + \frac{5}{16} \times 5 \] \[ \text{Median} = 34.5 + \frac{25}{16} \] \[ \text{Median} = 34.5 + 1.5625 \] \[ \text{Median} = 36.0625 \text{ years (approx.)} \]
Answer: Median age ≈ 36.06 years