← Back to the lesson

Probability & Statistics 1 (9709) · Measures of variation · Quick revision

Frequency models, percentiles and multi-step spread problems

Choose the correct model before calculating a spread or percentile.

Exact frequencies: weight both moments

N=∑f>0,T=∑fx,Q=∑fx2.N=\sum f>0,\quad T=\sum fx,\quad Q=\sum fx^2.μ=TN,V=QN−μ2,σ=V.\mu=\frac{T}{N},\qquad V=\frac{Q}{N}-\mu^2,\qquad\sigma=\sqrt{V}.

Frequencies count repetitions: use fx2fx^2, not (fx)2(fx)^2. Unknown frequencies must be non-negative integers.

Grouped moments: replace each class by its midpoint

Use m=L+U2m=\frac{L+U}{2} with weights ff:

μ^=∑fmN,V^=∑fm2N−μ^ 2.\widehat{\mu}=\frac{\sum fm}{N},\qquad\widehat{V}=\frac{\sum fm^2}{N}-\widehat{\mu}^{\,2}.

These are exact for the midpoint model and estimates of the raw summaries. Histogram area gives ff; density is not the moment weight. Class boundaries need not be observed extremes.

Percentiles: interpolate a cumulative count

Assume a continuous model uniform within each class. For target pNpN inside a positive-frequency class:

x^p=L+pN−Cf w.\widehat{x}_p=L+\frac{pN-C}{f}\,w.

Here LL is its lower boundary, CC the count below LL, ff its frequency and ww its width. For an upper count kk, use target N−kN-k. Subtract quartile values for IQR, not their ranks.

A flat cumulative segment can give an interval of cutoffs for a stated count. Do not divide by zero or invent a unique cutoff.

Reverse moments: retain every feasible branch

Build mean and variance equations from N,T,QN,T,Q; check all frequency roots in the original table. For two missing real observations, let S=a+bS=a+b and R=a2+b2R=a^2+b^2. Then

ab=S2−R2,a,b=S±2R−S22.ab=\frac{S^2-R}{2},\qquad a,b=\frac{S\pm\sqrt{2R-S^2}}{2}.

Real solutions require 2R≥S22R\ge S^2. Include both labelled assignments unless a stated order or context removes one.