A brief note on Comparing and Combining Data . Read it before a test. Try each question at the end before you open its answer.
Comparing Coefficient of variation: CV = σ x ˉ × 100 % \text{CV} = \dfrac{\sigma}{\bar{x}} \times 100\% CV = x ˉ σ × 100% . The smaller CV is the more consistent data. Where to use it: data with a true zero, such as mass, length and time. Not for degrees Celsius. Change every value, y = a x + b y = a x + b y = a x + b : y ˉ = a x ˉ + b \bar{y} = a\bar{x} + b y ˉ = a x ˉ + b , σ y = ∣ a ∣ σ x \sigma_y = \lvert a \rvert\,\sigma_x σ y = ∣ a ∣ σ x , σ y 2 = a 2 σ x 2 \sigma_y^2 = a^2\sigma_x^2 σ y 2 = a 2 σ x 2 . Adding a number: moves the mean and the median, and leaves every spread unchanged. Combining Combined mean: x ˉ = n 1 x ˉ 1 + n 2 x ˉ 2 n 1 + n 2 \bar{x} = \dfrac{n_1\bar{x}_1 + n_2\bar{x}_2}{n_1 + n_2} x ˉ = n 1 + n 2 n 1 x ˉ 1 + n 2 x ˉ 2 . Combined variance: σ 2 = n 1 ( σ 1 2 + d 1 2 ) + n 2 ( σ 2 2 + d 2 2 ) n 1 + n 2 \sigma^2 = \dfrac{n_1\left(\sigma_1^2 + d_1^2\right) + n_2\left(\sigma_2^2 + d_2^2\right)}{n_1 + n_2} σ 2 = n 1 + n 2 n 1 ( σ 1 2 + d 1 2 ) + n 2 ( σ 2 2 + d 2 2 ) , with d i = x ˉ i − x ˉ d_i = \bar{x}_i - \bar{x} d i = x ˉ i − x ˉ . Never average the standard deviations. A wrong reading: change ∑ x \sum x ∑ x and ∑ x 2 \sum x^2 ∑ x 2 , then find the mean and the variance again. Quartiles and outliers Quartiles: Q 1 Q_1 Q 1 and Q 3 Q_3 Q 3 are the medians of the lower and the upper half. Leave the median out when n n n is odd. Interquartile range: IQR = Q 3 − Q 1 \text{IQR} = Q_3 - Q_1 IQR = Q 3 − Q 1 . It ignores extreme values. Five-number summary: minimum, Q 1 Q_1 Q 1 , median, Q 3 Q_3 Q 3 , maximum. The box plot draws it. Fences: Q 1 − 1.5 IQR Q_1 - 1.5\,\text{IQR} Q 1 − 1.5 IQR and Q 3 + 1.5 IQR Q_3 + 1.5\,\text{IQR} Q 3 + 1.5 IQR . A value outside them is an outlier. A worked example Class A has 30 30 30 students with mean 60 60 60 and standard deviation 8 8 8 . Class B has 20 20 20 students with mean 70 70 70 and standard deviation 6 6 6 .
The coefficients. CV A = 8 60 × 100 = 13.33 % \text{CV}_A = \dfrac{8}{60} \times 100 = 13.33\% CV A = 60 8 × 100 = 13.33% and CV B = 6 70 × 100 = 8.57 % \text{CV}_B = \dfrac{6}{70} \times 100 = 8.57\% CV B = 70 6 × 100 = 8.57% . Class B is more consistent. Both classes together, the mean. 30 × 60 + 20 × 70 50 = 64 \dfrac{30 \times 60 + 20 \times 70}{50} = 64 50 30 × 60 + 20 × 70 = 64 . The variance. d 1 = − 4 d_1 = -4 d 1 = − 4 and d 2 = 6 d_2 = 6 d 2 = 6 . So σ 2 = 30 ( 64 + 16 ) + 20 ( 36 + 36 ) 50 = 76.8 \sigma^2 = \dfrac{30\,(64 + 16) + 20\,(36 + 36)}{50} = 76.8 σ 2 = 50 30 ( 64 + 16 ) + 20 ( 36 + 36 ) = 76.8 . A change. If every mark of class A is doubled and 10 10 10 is added, the mean is 130 130 130 and the standard deviation is 16 16 16 . Practice with new numbers
A program to try The program prints the coefficient of variation of each class, the effect of a change, and the combined mean and variance of the worked example.
Run it. Do the values match the worked example?
1. Change the multiplier 2 in 2 * mean + 10 to -2. What happens to the new SD?
Mistakes to avoid Averaging the standard deviations of two groups. Adding a shift to the standard deviation. Forgetting the absolute value when the multiplier is negative. Keeping the median in both halves for an odd number of values. Forgetting that a wrong reading changes ∑ x 2 \sum x^2 ∑ x 2 . Check yourself Find the coefficient of variation when the mean is 50 50 50 and the standard deviation is 6 6 6 . Stuck? Show a hint Show the answerThe mean is 14 14 14 and the standard deviation is 5 5 5 . Every value becomes 3 x − 2 3x - 2 3 x − 2 . Find the new mean and standard deviation. Stuck? Show a hint Show the answerTen values have mean 8 8 8 and thirty values have mean 12 12 12 . Find the mean of all forty. Stuck? Show a hint Show the answerThe quartiles of a data set are 12 12 12 and 20 20 20 . Find the upper fence. Stuck? Show a hint Show the answerWhich of the mean, the median, the range and the standard deviation do not change when the same number is added to every value? Stuck? Show a hint Show the answerSources OpenStax, Introductory Statistics , Chapter 2, sections on the spread of the data, box plots and outliers. NCERT, Mathematics for Class XI, Chapter 13 (Statistics).