Solution
Build the cumulative frequency column in terms of p and q.
| Marks obtained | Number of students | Cumulative frequency |
|---|
| 20 – 30 | p | p |
| 30 – 40 | 15 | p+15 |
| 40 – 50 | 25 | p+40 |
| 50 – 60 | 20 | p+60 |
| 60 – 70 | q | p+q+60 |
| 70 – 80 | 8 | p+q+68 |
| 80 – 90 | 10 | p+q+78 |
Step 1 — use the total frequency.
The sum of all frequencies is 90, so:
p+q+78=90
p+q=12…(i)
Step 2 — use the given median.
N=90, so 2N=45. The median is 50, which lies in the class 50 – 60, so that is the median class:
l=50,f=20,h=10,cf=p+40
Apply the median formula:
Median=l+f2N−cf×h
50=50+2045−(p+40)×10
0=2045−(p+40)×10
45−(p+40)=0
p+40=45
p=5
Step 3 — find q.
Substitute p=5 into equation (i):
5+q=12
q=7
So p=5 and q=7.
Step 4 — find the mode.
With p=5 and q=7 the frequencies are 5, 15, 25, 20, 7, 8, 10. The largest is 25, so the modal class is 40 – 50:
l=40,f1=25,f0=15,f2=20,h=10
Mode=l+2f1−f0−f2f1−f0×h
=40+2(25)−15−2025−15×10
=40+1510×10
=40+15100
=40+6.67
=46.67
Hence p=5, q=7 and the mode of the data is 46.67.