The classes have gaps (20 to 21, 25 to 26, and so on). So, as the hint says, subtract 0.5 from each lower limit and add 0.5 to each upper limit. Then make a table with the cumulative frequency (c.f.) and the mid-point xi of each class.
| Age (class) | fi | c.f. | xi |
|---|
| 15.5 – 20.5 | 5 | 5 | 18 |
| 20.5 – 25.5 | 6 | 11 | 23 |
| 25.5 – 30.5 | 12 | 23 | 28 |
| 30.5 – 35.5 | 14 | 37 | 33 |
| 35.5 – 40.5 | 26 | 63 | 38 |
| 40.5 – 45.5 | 12 | 75 | 43 |
| 45.5 – 50.5 | 16 | 91 | 48 |
| 50.5 – 55.5 | 9 | 100 | 53 |
| Total | 100 | | |
Here N=100, so 2N=50. The first c.f. that is at least 50 is 63, so the median class is 35.5 – 40.5.
For the median class, l=35.5, C=37 (the c.f. of the class before it), f=26 and h=5.
Median=l+f2N−C×h
Median=35.5+2650−37×5=35.5+2.5=38
Now find the deviations of the mid-points from the median M=38.
| xi | fi | ∣xi−38∣ | fi∣xi−38∣ |
|---|
| 18 | 5 | 20 | 100 |
| 23 | 6 | 15 | 90 |
| 28 | 12 | 10 | 120 |
| 33 | 14 | 5 | 70 |
| 38 | 26 | 0 | 0 |
| 43 | 12 | 5 | 60 |
| 48 | 16 | 10 | 160 |
| 53 | 9 | 15 | 135 |
| Total | 100 | | 735 |
M.D.(M)=N1i=1∑8fi∣xi−M∣=100735=7.35
So, the mean deviation about the median age is 7.35 years.