Mean of a List

  • Mean =sumcount= \frac{\text{sum}}{\text{count}}, so the sum is the mean times the count.
  • Values in equal steps: mean =first+last2= \frac{\text{first} + \text{last}}{2}.
  • First nn natural numbers: n+12\frac{n + 1}{2}; first nn even: n+1n + 1; first nn odd: nn.
  • Squares of 1 to nn: (n+1)(2n+1)6\frac{(n + 1)(2n + 1)}{6}.
  • Working mean AA: xˉ=A+∑dn\bar{x} = A + \frac{\sum d}{n}, where d=x−Ad = x - A.
  • Deviations from the mean add up to 0.

For example: the mean of 6, 9, 12, …, 60 is 6+602=33\frac{6 + 60}{2} = 33.

When the Values Change

  • A wrong value corrected: the mean changes by correct value−wrong valuen\frac{\text{correct value} - \text{wrong value}}{n}.
  • A value added or removed: find the new total and divide by the new count.
  • Add kk to every value: the mean, median and mode go up by kk. Multiply by kk: they are multiplied by kk. So y=ax+by = ax + b gives yˉ=axˉ+b\bar{y} = a\bar{x} + b.

For example: 10 values have mean 18, but 27 was read as 72. The mean falls by 4510=4.5\frac{45}{10} = 4.5, to 13.5. Word problems on averages are in Chapter 5.

Weighted and Combined Mean

  • Weighted mean =∑wx∑w= \frac{\sum wx}{\sum w}.
  • Combined mean of groups =n1xˉ1+n2xˉ2+n3xˉ3n1+n2+n3= \frac{n_1\bar{x}_1 + n_2\bar{x}_2 + n_3\bar{x}_3}{n_1 + n_2 + n_3}.
  • It lies between the group means, nearer to the mean of the bigger group.
  • Two groups with combined mean MM: n1:n2=(xˉ2−M):(M−xˉ1)n_1 : n_2 = (\bar{x}_2 - M) : (M - \bar{x}_1).
  • The plain average of the group means works only for groups of equal size.

For example: 25 men with mean age 40 and 15 women with mean age 32: 1000+48040=37\frac{1000 + 480}{40} = 37 years, not 36.

Mean of a Frequency Table

  • Discrete table: xˉ=∑fx∑f\bar{x} = \frac{\sum fx}{\sum f}.
  • Grouped table: use class marks, x=lower limit+upper limit2x = \frac{\text{lower limit} + \text{upper limit}}{2}.
  • Assumed mean: xˉ=A+∑fd∑f\bar{x} = A + \frac{\sum fd}{\sum f}, with d=x−Ad = x - A.
  • Step deviation: u=x−Ahu = \frac{x - A}{h} and xˉ=A+h×∑fu∑f\bar{x} = A + h \times \frac{\sum fu}{\sum f}.
  • A missing frequency: use ∑f(x−xˉ)=0\sum f(x - \bar{x}) = 0, or put AA at the value whose frequency is missing.
  • The plain mean of the class marks, without the frequencies, is not the mean of the table.

Median of a List and a Discrete Table

  • Arrange the values in order first.
  • nn odd: the median is the n+12\frac{n + 1}{2}-th value. nn even: it is the mean of the n2\frac{n}{2}-th and the (n2+1)\left(\frac{n}{2} + 1\right)-th values.
  • Discrete table: write the cumulative frequencies and see where those positions fall.
  • The two middle values can fall in different rows; then the median is their mean.

For example: 9, 4, 15, 7, 12, 4 in order is 4, 4, 7, 9, 12, 15, so the median is 7+92=8\frac{7 + 9}{2} = 8.

Median of Grouped Data

Median=L+N2−cff×h\text{Median} = L + \frac{\frac{N}{2} - cf}{f} \times h

  • The median class is the first class whose cumulative frequency reaches N2\frac{N}{2}.
  • cfcf belongs to the class before the median class.
  • Inclusive classes (10-19, 20-29) first become 9.5-19.5, 19.5-29.5.
  • 'Less than' figures are already cumulative; 'more than' figures give class frequencies by subtraction.
  • The 'less than' and 'more than' ogives cross at the median, where each reaches N2\frac{N}{2}.

Less than and more than ogives crossing at the median

Quartiles

  • Lower quartile Q1Q_1: the n+14\frac{n + 1}{4}-th value in order.
  • Upper quartile Q3Q_3: the 3(n+1)4\frac{3(n + 1)}{4}-th value in order.
  • The median is the middle quartile, Q2Q_2.
  • Interquartile range =Q3−Q1= Q_3 - Q_1. It is the spread of the middle half of the data, so extreme values do not affect it.

For example: for 3, 5, 6, 8, 10, 11, 13 (n=7n = 7), Q1Q_1 is the 2nd value, 5, the median is 8, and Q3Q_3 is the 6th value, 11. The interquartile range is 11−5=611 - 5 = 6.

Mode

  • The mode is the value that occurs most often. A list can have one mode, two modes, or none when every value occurs once.
  • Discrete table: the value with the highest frequency.
  • Grouped data: Mode=L+f1−f02f1−f0−f2×h\text{Mode} = L + \frac{f_1 - f_0}{2f_1 - f_0 - f_2} \times h, with f1f_1 for the modal class and f0f_0, f2f_2 for the classes before and after it.
  • The mode leans towards the bigger neighbour; when f0=f2f_0 = f_2, it is the middle of the class.
  • If the modal class is the first class, f0=0f_0 = 0.

Empirical Relation and Choosing an Average

  • Mode=3 Median−2 Mean\text{Mode} = 3\,\text{Median} - 2\,\text{Mean} for moderately skewed data; also Mean−Mode=3(Mean−Median)\text{Mean} - \text{Mode} = 3(\text{Mean} - \text{Median}).
  • Symmetric data: mean, median and mode are equal.
  • A long tail of high values: Mode<Median<Mean\text{Mode} < \text{Median} < \text{Mean}. A long tail of low values: the order is reversed.
  • The mode suits the most common size (shoes, shirts); the median suits data with a few extreme values (incomes); the mean uses every value.

For example: mean 40 and median 38 give Mode=114−80=34\text{Mode} = 114 - 80 = 34.

Range and Mean Deviation

  • Range == largest value −- smallest value.
  • Coefficient of range =largest−smallestlargest+smallest= \frac{\text{largest} - \text{smallest}}{\text{largest} + \text{smallest}}.
  • Mean deviation about the mean =∑∣x−xˉ∣n= \frac{\sum \lvert x - \bar{x} \rvert}{n}. About the median, use the median in place of xˉ\bar{x}.
  • Mean deviation adds distances, so all the signs are dropped.

For example: for 4, 6, 9, 13, 18, the range is 14 and the coefficient of range is 1422≈0.64\frac{14}{22} \approx 0.64. The mean is 10, the distances from it are 6, 4, 1, 3, 8, and the mean deviation is 225=4.4\frac{22}{5} = 4.4.

Variance and Standard Deviation

  • σ2=∑(x−xˉ)2n=∑x2n−xˉ2\sigma^2 = \frac{\sum (x - \bar{x})^2}{n} = \frac{\sum x^2}{n} - \bar{x}^2, and σ=σ2\sigma = \sqrt{\sigma^2}.
  • Frequency table: σ2=∑fx2∑f−xˉ2\sigma^2 = \frac{\sum fx^2}{\sum f} - \bar{x}^2.
  • With u=x−Ahu = \frac{x - A}{h}: σ2=h2[∑fu2∑f−(∑fu∑f)2]\sigma^2 = h^2\left[\frac{\sum fu^2}{\sum f} - \left(\frac{\sum fu}{\sum f}\right)^2\right].
  • Two values aa and bb: σ=∣a−b∣2\sigma = \frac{\lvert a - b \rvert}{2}.
  • First nn natural numbers: σ2=n2−112\sigma^2 = \frac{n^2 - 1}{12}.
  • σ\sigma is never negative, and it is 0 only when all the values are equal.

Changes and the Coefficient of Variation

  • Adding or subtracting kk: the variance and the SD do not change.
  • Multiplying by kk: the SD is multiplied by ∣k∣\lvert k \rvert and the variance by k2k^2.
  • CV=σxˉ×100\text{CV} = \frac{\sigma}{\bar{x}} \times 100. The smaller CV belongs to the more consistent data.
  • SDs alone can be compared only when the means are equal.

For example: marks with SD 3, doubled and then raised by 5, have SD 6 and variance 36. Mean 50 with SD 5 (CV 10%) is more consistent than mean 30 with SD 4.5 (CV 15%).

Before the Exam

Mistakes to watch for:

  • the median of a list taken before sorting;
  • N+12\frac{N + 1}{2} used for grouped data;
  • the cf of the median class used in place of the class before;
  • f0f_0 and f2f_2 swapped, or hh left out;
  • 3 Mean−2 Median3\,\text{Mean} - 2\,\text{Median} written for the mode;
  • the variance given when the SD is asked;
  • the SD changed by adding a constant, or kk used for k2k^2;
  • inclusive classes not made continuous.

Chapter Test: 25 questions in 25 minutes; +3+3 right, −1-1 wrong.