EZEZ CGL

Formulas › Quant › Statistics

Statistics

About 0.01 questions a shift · 1 past questions · 4 formulas and methods

Mean of grouped data

Mean, median & mode · seen in 1 past questions
xˉ=ΣfixiΣfi\bar x=\frac{\Sigma f_ix_i}{\Sigma f_i}
SHORTCUT
Assumed mean: xˉ=A+Σfi(xi−A)Σfi\bar x = A + \frac{\Sigma f_i(x_i - A)}{\Sigma f_i}; symmetric frequencies give xˉ\bar x = the middle value.
USE WHEN
  • Σfi>0\Sigma f_i > 0
Why it works, and common traps
  1. Value xix_i occurs fif_i times, so it adds fixif_ix_i to the total.
  2. The total of all observations is Σfixi\Sigma f_ix_i; their count is Σfi\Sigma f_i.
  3. Mean = total ÷\div count =ΣfixiΣfi= \frac{\Sigma f_ix_i}{\Sigma f_i}.
  • Trap: Averaging the ages 1..5 without weights, or averaging the frequencies (210/5 = 42).
  • Trap: Dividing Σfx\Sigma fx by the number of classes (5) instead of Σf\Sigma f (210).
  • Trap: Reading a bar's height (70) as the mode; the mode is the age under it (3).

Median

Mean, median & mode · not yet seen in papers
sorted data: middle value (n+12)th; even n: mean of the two middle values\text{sorted data: middle value } \left(\tfrac{n+1}2\right)^{\text{th}};\ \text{even } n: \text{ mean of the two middle values}
Why it works, and common traps
  1. Sort the nn values in order.
  2. Odd nn: the n+12\frac{n+1}{2}th value has n−12\frac{n-1}{2} values on each side.
  3. Even nn: the n2\frac n2th and (n2+1)(\frac n2+1)th values share the middle; take their mean.
  • Trap: Taking the middle of the unsorted list: for 7, 1, 3 it gives 1; the median is 3.
  • Trap: For even nn, picking the n2\frac n2th value alone instead of the mean of the two middle values.
  • Trap: Using n2\frac n2 as the position for odd nn: for 9 values the median is the 5th, not the 4.5th.

Mode and the empirical relation

Mean, median & mode · seen in 1 past questions
mode=most frequent value; mode=3 median−2 mean (symmetric: all equal)\text{mode}=\text{most frequent value};\ \text{mode}=3\,\text{median}-2\,\text{mean}\ (\text{symmetric: all equal})
SHORTCUT
Use 3 median −- 2 mean only when the question says 'empirical relation' or gives two of the three.
USE WHEN
  • 3 median−2 mean is an estimate for moderately skewed data, exact when the distribution is symmetric and unimodal3\,\text{median}-2\,\text{mean} \text{ is an estimate for moderately skewed data, exact when the distribution is symmetric and unimodal}
Why it works, and common traps
  1. The mode is read directly: the value with the largest frequency.
  2. For a symmetric single-peaked distribution, the peak, the middle value and the balance point coincide: mode = median = mean.
  3. Karl Pearson's observation for mildly skewed data: the median lies about a third of the way from the mean to the mode, so mode ≈\approx 3 median −- 2 mean.
  • Trap: Giving the highest frequency (70) as the mode instead of the value (age 3).
  • Trap: Writing mode = 3 mean −- 2 median: the 3 goes with the median.
  • Trap: Treating 3 median −- 2 mean as exact for any data: for 1,1,1,1,1,2,2,2,10 it gives −53-\frac53, but the mode is 1.

Range and standard deviation

Mean, median & mode · not yet seen in papers
range=max⁡−min⁡; σ=Σ(xi−xˉ)2n\text{range}=\max-\min;\ \sigma=\sqrt{\frac{\Sigma(x_i-\bar x)^2}{n}}
SHORTCUT
σ2=x2‾−xˉ2\sigma^2 = \overline{x^2} - \bar x^2; adding a constant changes neither range nor σ\sigma, multiplying by kk multiplies both by ∣k∣|k|.
Why it works, and common traps
  1. Range uses only the two extreme values.
  2. xi−xˉx_i - \bar x measures how far each value is from the mean; squaring stops ++ and −- cancelling.
  3. Average the squares over nn (variance) and take the square root to return to the original units.
  4. Expanding: Σ(xi−xˉ)2n=Σxi2n−xˉ2\frac{\Sigma(x_i-\bar x)^2}{n} = \frac{\Sigma x_i^2}{n} - \bar x^2.
  • Trap: Dividing by n−1n-1: that is the sample formula, not the σ\sigma above.
  • Trap: Forgetting the square root and giving the variance as σ\sigma.
  • Trap: Changing σ\sigma when a constant is added to every value; only scaling changes it.