1. Number of visitors in each class
Each frequency is the difference of two successive "less than" counts.
| Age (in years) | Class interval | Frequency (fi) | Cumulative frequency (cf) |
|---|
| Less than 10 | 0 – 10 | 3 | 3 |
| Less than 20 | 10 – 20 | 10 − 3 = 7 | 10 |
| Less than 30 | 20 – 30 | 22 − 10 = 12 | 22 |
| Less than 40 | 30 – 40 | 40 − 22 = 18 | 40 |
| Less than 50 | 40 – 50 | 54 − 40 = 14 | 54 |
| Less than 60 | 50 – 60 | 71 − 54 = 17 | 71 |
2. Median class and the class before it
N=71⟹2N=35.5
The first cumulative frequency greater than 35.5 is 40, so the median class is 30 – 40. The class before it is 20 – 30, whose frequency is 12.
3. Median age
l=30, cf=22, f=18, h=10:
Median=30+(1835.5−22)×10=30+18135=30+7.5=37.5 years
OR — Modal age
The highest frequency is 18, so the modal class is 30 – 40, with f1=18, f0=12, f2=14, h=10:
Mode=30+(2(18)−12−1418−12)×10=30+106×10=36 years