Statistics: Frequency Distributions, Graphs, Central Tendency, Dispersion, Correlation and Regression
2. Mean, median and mode, ungrouped and grouped
For ungrouped data the mean is the sum divided by the count, the median is the middle value of the sorted list (average of the middle two when the count is even) and the mode is the most frequent value. For grouped data use the class marks: mean = Σfx ÷ N. The median uses the class in which the cumulative frequency first reaches N/2: median = l + [(N/2 − cf) ÷ f] × h, where l is the lower limit of that class, cf the cumulative frequency before it, f its frequency and h its width. The mode uses the class with the highest frequency: mode = l + [(f₁ − f₀) ÷ (2f₁ − f₀ − f₂)] × h, with f₀ and f₂ the frequencies of the classes before and after.
| Class | Frequency f | Class mark x | fx | Cumulative f |
|---|---|---|---|---|
| 0–10 | 5 | 5 | 25 | 5 |
| 10–20 | 8 | 15 | 120 | 13 |
| 20–30 | 15 | 25 | 375 | 28 |
| 30–40 | 12 | 35 | 420 | 40 |
| 40–50 | 10 | 45 | 450 | 50 |
Here Σfx = 1,390, so the mean is 1,390 ÷ 50 = 27.8. N/2 = 25 first falls in the class 20–30 (cumulative 28), so the median is 20 + (25 − 13) ÷ 15 × 10 = 28. The modal class is 20–30 with f₁ = 15, f₀ = 8, f₂ = 12, so the mode is 20 + (15 − 8) ÷ (30 − 8 − 12) × 10 = 27. The empirical relation for a moderately skewed distribution, mode ≈ 3 median − 2 mean, gives 28.4, close to the computed 27. When the mean is above the median the distribution is skewed to the right.
For ungrouped data the mean is the sum divided by the count, the median is the middle value of the sorted list (average of the middle two when the count is even) and the mode is the most…
3. Measures of dispersion
An average hides how spread out the data is, and dispersion measures that. The range is the largest minus the smallest value. The mean deviation is the average of the absolute deviations from the mean (or median). The variance σ² is the average of the squared deviations, σ² = Σ(x − x̄)² ÷ n, and the standard deviation σ is its square root. For 2, 4, 6, 8, 10 the mean is 6, the deviations are −4, −2, 0, 2, 4, the mean deviation is 12 ÷ 5 = 2.4, the variance is 40 ÷ 5 = 8 and σ = √8 ≈ 2.83. The coefficient of variation = (σ ÷ mean) × 100% compares the spread of two series that have different units or averages: the smaller CV is the more consistent series.
| Change to every value | Mean | Standard deviation | Variance |
|---|---|---|---|
| Add a constant b | Rises by b | Unchanged | Unchanged |
| Multiply by a | Multiplied by a | Multiplied by |a| | Multiplied by a² |
| Both: y = ax + b | a·mean + b | |a|·σ | a²·σ² |
If a series has variance 9 and every value is multiplied by 2 and then 5 is added, the new variance is 4 × 9 = 36 and the new SD is 6. Adding 5 changes only the position of the data, not its spread. The mean, median and mode all move with an added constant, but only the range, SD and variance are unaffected by it.
An average hides how spread out the data is, and dispersion measures that. The range is the largest minus the smallest value. The mean deviation is the average of the absolute deviations…
4. Correlation and regression
Correlation measures the strength and direction of a linear relation between two variables. Karl Pearson's coefficient r = Σ(x − x̄)(y − ȳ) ÷ √[Σ(x − x̄)² Σ(y − ȳ)²] lies between −1 and +1: +1 is perfect positive, −1 perfect negative and 0 no linear relation. It does not change if both variables are shifted or scaled by positive constants, and it does not prove cause. For ranks, Spearman's coefficient is ρ = 1 − 6Σd² ÷ [n(n² − 1)], where d is the difference of ranks: with n = 5 and Σd² = 4, ρ = 1 − 24 ÷ 120 = 0.8.
Regression predicts one variable from the other. The line of y on x is y − ȳ = b_yx (x − x̄) with b_yx = r σ_y ÷ σ_x, and the line of x on y is x − x̄ = b_xy (y − ȳ) with b_xy = r σ_x ÷ σ_y. Both lines pass through the point of means (x̄, ȳ), and r² = b_yx × b_xy, so r has the same sign as both coefficients. Suppose r = 0.8, σ_x = 4, σ_y = 5, x̄ = 10 and ȳ = 20: then b_yx = 0.8 × 5 ÷ 4 = 1, b_xy = 0.8 × 4 ÷ 5 = 0.64, their product 0.64 = r², and the line y − 20 = 1 × (x − 10) predicts y = 25 when x = 15.
Correlation measures the strength and direction of a linear relation between two variables. Karl Pearson's coefficient r = Σ(x − x̄)(y − ȳ) ÷ √[Σ(x − x̄)² Σ(y − ȳ)²] lies between −1 and +1…
Five Recipes That Settle Most Statistics Questions
| Situation | Recipe | Check |
|---|---|---|
| Mean, median and mode of a moderately skewed distribution | Mode ≈ 3 × Median − 2 × Mean | For median 24 and mean 25: mode ≈ 72 − 50 = 22 |
| Two groups combined | Combined mean = (n₁m₁ + n₂m₂) / (n₁ + n₂); never average the two means directly | 20 with mean 60 and 30 with mean 70: (1200 + 2100) / 50 = 66 |
| Comparing the consistency of two series with different units or sizes | Coefficient of variation = (standard deviation / mean) × 100; the smaller one is more consistent | Mean 50 and standard deviation 10 give 20 percent |
| Variance of a short list | Variance = mean of squared deviations from the mean; or mean of squares minus square of mean | 2, 4, 6, 8, 10: mean 6, squared deviations 16, 4, 0, 4, 16, variance 8 |
| Two regression lines | The lines meet at (mean of x, mean of y); r² = b_yx × b_xy, and r takes the sign of the coefficients | b_yx = 0.9 and b_xy = 0.4 give r = √0.36 = 0.6 |
Recipes with a number to check each
Key takeaways
- Pie-chart angle = (part ÷ total) × 360°; a histogram has touching rectangles for continuous classes and a bar chart separate bars for categories.
- Grouped mean = Σfx ÷ N; median = l + [(N/2 − cf) ÷ f] × h; mode = l + [(f₁ − f₀) ÷ (2f₁ − f₀ − f₂)] × h; mode ≈ 3 median − 2 mean.
- Variance is the mean squared deviation and SD its root; adding a constant leaves SD unchanged, multiplying by a multiplies SD by |a| and variance by a².
- Pearson r lies between −1 and +1 and ignores origin and positive scale; Spearman ρ = 1 − 6Σd² ÷ [n(n² − 1)].
- Regression lines pass through (x̄, ȳ), b_yx = r σ_y ÷ σ_x, b_xy = r σ_x ÷ σ_y and r² = b_yx × b_xy.
- Mode ≈ 3 Median − 2 Mean for a moderately skewed distribution; combined mean uses n₁m₁ + n₂m₂ over n₁ + n₂, never a plain average of means.
- Regression lines meet at the two means; r² = b_yx b_xy. Adding a constant leaves the standard deviation unchanged; multiplying scales it.
Practice questions (24)
Attempt each one before opening the answer. Every explanation names the tempting wrong option as well as the right one, because that is where marks are lost.
The central angle of the sector for a part of 90 units in a pie chart of total 360 units is:
Show answer
Answer: A — 90°
The angle is (part ÷ total) × 360° = (90 ÷ 360) × 360° = 90°, which happens to equal the part because the total is 360. With a total of 720 the same 90 units would take only 45°, so always divide by the total first.The median of 3, 9, 4, 10, 7, 12 is:
Show answer
Answer: A — 8
Sort the numbers: 3, 4, 7, 9, 10, 12. With six values the median is the average of the third and fourth, (7 + 9) ÷ 2 = 8. Taking 7 or 9 alone ignores that the count is even.For a grouped distribution of N = 50 the median class is 20–30 with cumulative frequency 13 before it and class frequency 15. The median is:
Show answer
Answer: A — 28
Median = l + [(N/2 − cf) ÷ f] × h = 20 + [(25 − 13) ÷ 15] × 10 = 20 + 8 = 28. The midpoint 25 of the class is tempting but ignores where the 25th item actually falls within it.
Show the other 21 questions
For a modal class 20–30 with f₁ = 15, f₀ = 8 and f₂ = 12, the mode is:
Show answer
Answer: A — 27
Mode = l + [(f₁ − f₀) ÷ (2f₁ − f₀ − f₂)] × h = 20 + [(15 − 8) ÷ (30 − 8 − 12)] × 10 = 20 + 7 = 27. The class mark 25 is the crude estimate, and 23 swaps the neighbouring frequencies in the numerator.A series has variance 9. Every value is multiplied by 2 and then 5 is added. The standard deviation of the new series is:
Show answer
Answer: A — 6
The original SD is 3. Multiplying by 2 doubles it to 6, and adding 5 only shifts the data, so the SD stays 6. The value 36 is the new variance and 11 wrongly adds the constant to the SD.Ten observations have a mean of 12. One of them, 18, was misread as 9. The corrected mean is:
Show answer
Answer: A — 12.9
The wrong total is 10 × 12 = 120. The correction adds 18 − 9 = 9 to it, giving 129, so the mean is 12.9. Subtracting the difference gives 11.1, the wrong direction.For five paired ranks the sum of squared rank differences is Σd² = 4. Spearman's rank correlation coefficient is:
Show answer
Answer: A — 0.8
ρ = 1 − 6Σd² ÷ [n(n² − 1)] = 1 − 24 ÷ (5 × 24) = 1 − 0.2 = 0.8. The value 0.2 is only the subtracted fraction, and forgetting to subtract it from 1 is the common slip.For two variables r = 0.8, σ_x = 4 and σ_y = 5. The regression coefficient of y on x and of x on y are, respectively:
Show answer
Answer: A — 1 and 0.64
b_yx = r σ_y ÷ σ_x = 0.8 × 5 ÷ 4 = 1 and b_xy = r σ_x ÷ σ_y = 0.8 × 4 ÷ 5 = 0.64, and their product 0.64 = r². Swapping the two (0.64 and 1) is the standard trap, because the standard deviation in the numerator belongs to the dependent variable.For a moderately skewed distribution the median is 24 and the mean is 25. The approximate mode is:
Show answer
Answer: A — 22
Mode ≈ 3 × Median − 2 × Mean = 72 − 50 = 22. The empirical relation holds only for moderately skewed distributions.A class of 20 students has a mean mark of 60 and another class of 30 students has a mean of 70. The mean of all 50 students is:
Show answer
Answer: A — 66
Combined mean = (20 × 60 + 30 × 70) / 50 = 3300 / 50 = 66. The trap is to average 60 and 70 to get 65, ignoring the different class sizes.Series A has mean 50 and standard deviation 10. Its coefficient of variation is:
Show answer
Answer: A — 20 percent
Coefficient of variation = (10 / 50) × 100 = 20 percent. The smaller the coefficient, the more consistent the series.The variance of the numbers 2, 4, 6, 8, 10 is:
Show answer
Answer: A — 8
The mean is 6 and the squared deviations are 16, 4, 0, 4 and 16, which total 40. Dividing by 5 gives 8. The value 40 is the sum, not the variance.The two regression coefficients of a bivariate distribution are b_yx = 0.9 and b_xy = 0.4. The coefficient of correlation is:
Show answer
Answer: A — 0.6
r² = b_yx × b_xy = 0.36, so r = 0.6, taking the positive sign because both coefficients are positive. The value 0.65 comes from averaging the coefficients, which is wrong.The regression lines of a distribution are 3x + 2y = 26 and 6x + y = 31. The means of x and y are respectively:
Show answer
Answer: A — 4 and 7
The lines intersect at the point of means. From the second line y = 31 − 6x; substituting in the first gives 3x + 62 − 12x = 26, so x = 4 and y = 7. Check: 3(4) + 2(7) = 26.The standard deviation of the first five natural numbers 1, 2, 3, 4, 5 is:
Show answer
Answer: A — √2
The mean is 3 and the squared deviations are 4, 1, 0, 1, 4, which total 10; the variance is 2 and the standard deviation √2. Reporting 2 confuses variance with standard deviation.The algebraic sum of the deviations of a set of values from their arithmetic mean is:
Show answer
Answer: A — Zero
Positive and negative deviations cancel exactly about the mean, which is why spread is measured with squared or absolute deviations instead.The first quartile of a distribution is 12 and the third quartile is 20. The quartile deviation (semi-interquartile range) is:
Show answer
Answer: A — 4
Quartile deviation = (Q3 − Q1) / 2 = (20 − 12) / 2 = 4. The value 8 is the interquartile range itself.The arithmetic mean of 4, 8, 12, 16 and 20 is:
Show answer
Answer: D — 12
The sum 60 divided by 5 is 12. The 60 is the tempting sum.The mode of 2, 3, 3, 5, 5, 5, 7 is:
Show answer
Answer: A — 5
Five occurs most often, three times. The 4 is the tempting mean of the data.The variance of the data 2, 4, 6, 8 (population variance) is:
Show answer
Answer: B — 5
The mean is 5 and the squared deviations are 9, 1, 1, 9, summing to 20, so 20 ÷ 4 = 5. The 20 is the tempting unsummed total.For a grouped distribution of N = 60, the median class is 30–40, the cumulative frequency before it is 24 and its frequency is 12. The median is:
Show answer
Answer: C — 35
Median = 30 + (30 − 24)/12 × 10 = 35. The 30 is the tempting lower limit of the class.A series has mean 50 and standard deviation 5. Its coefficient of variation is:
Show answer
Answer: D — 10%
CV = (σ / mean) × 100 = 10%. The 0.1% is the tempting error of forgetting to multiply by 100.For two variables r = 0.6, σₓ = 5 and σᵧ = 10. The regression coefficient of x on y is:
Show answer
Answer: A — 0.3
b_xy = r σₓ/σᵧ = 0.6 × 5/10 = 0.3. The 1.2 is the tempting b_yx, the coefficient of y on x.The mean of 20 numbers is 15. If one number, 30, is replaced by 10, the new mean is:
Show answer
Answer: B — 14
The total falls from 300 to 280, so the mean is 14. The 13 is the tempting error of subtracting 20 from the mean.