Option (D) is correct.
Explanation: In ascending order the data are 21,24,30,31,32, and n=5.
Since n is odd, the median is the (2n+1)th observation, that is, the 3rd observation. So M=30.
Σ∣xi−M∣=∣21−30∣+∣24−30∣+∣30−30∣+∣31−30∣+∣32−30∣
=9+6+0+1+2=18
M.D.(M)=518=3.6
Why the other options are wrong
- (A) 5.28: it would need Σ∣xi−M∣=26.4, but the true sum is 18.
- (B) 5.18: it would need a sum of 25.9; no correct step gives it.
- (C) 3.38: it would need a sum of 16.9, but with whole-number deviations the sum must be a whole number.