A variable X takes values 0,0,2,6,12,20,…,n(n−1) with frequencies (0n),(1n),(2n),(3n),…,(nn), respectively. If the mean of this data is 60, then its median is:
Solutions · 1
Official solution
Here xr=r(r−1), fr=(rn), for r=0,1,…,n.
\[\bar{X} = \frac{\sum_{r=0}^{n}\binom{n}{r}r(r-1)}{\sum_{r=0}^{n}\binom{n}{r}} = 60\]
Using standard identities ∑(rn)=2n and ∑r(r−1)(rn)=n(n−1)2n−2:
\[\bar{X} = \frac{n(n-1)2^{n-2}}{2^n} = \frac{n(n-1)}{4} = 60 \implies n(n-1)=240 \implies n^2-n-240=0\]
\[(n-16)(n+15)=0 \implies n=16\]
Total frequency N=∑r=016(r16)=216=65536, so 2N=32768.
Using symmetry, (016)+⋯+(716)=21(216−(816))=265536−12870=26333.
Cumulative frequency up to r=8: 26333+12870=39203>32768, and up to r=7 it's 26333<32768. So the median corresponds to r=8:
X=8(8−1)=56