If the median of the distribution given below is 28.5, then find the value of x and y.
Class intervalFrequency0−10510−20x20−302030−401540−50y50−605Total60
In this formula of median
Median =l+[n2−c.ff]×h
l = lower limit of the median lass
n = number of observations
c.f = cumulative frequency of the class preceding the median class
f = frequency of the median class
h = class size or width of the median class
n= 60 and hence n2=30
Median class is 20-30 with cumulative
frequency = 25 + x
lower limit of median class = 20, cf = 5 + x, f = 20 and h = 10
Median =l+[n2−cff]×h
⇒28.5=20+[30−5−x20]×10
⇒25−x2=8.5
⇒25−x=17
⇒x=25−17=8
Now from cumulative frequency, we can find the value of x+y as follows
60=5+20+15+5+x+y
or 45+x+y=60
or x+y=60−45=15
Hence, y=15−x=15−8=7
∴x=8 and y=7