Here, we observe that all 100 residents of a town have age equal and above 0. Since 90 residents of a town have age equal and above 10.
So, 100-90=10 residents lies in the interval 0-10 and so on. Continue in this manner, we get frequency of all class intervals. Now, we construct the frequency distribution table.
Class intervalNumber of persons(fi)Class marksui=xi−ahfiui0−10100−90=105−3−3010−1090−75=1515−2−3020−3075−50=2525−1−2530−4050−25=2535=a0040−5025−15=104511050−6015−5=105522060−705−0=55315N=∑fi=100∑fiui=−40
Here, (assumed mean) a=35
and (class width) h=10
By step deviation method,
Mean (¯x)=a+∑fiui∑fi×h=35+(−40)100×10=35−4=31
Hence, the required mean age is 31 years.