Chapter 13
Statistics
Two batsmen score the same average, 53 runs, yet one swings from 0 to 117 while the other stays between 46 and 60. An average tells where data are centred, but not how far they stray. This chapter measures that spread: the range, the mean deviation about the mean and the median, and above all the variance and the standard deviation, for lists, frequency tables and classes, with shortcuts for large numbers and the rules for scaled, shifted and corrected data.
- Why a measure of central tendency is not enough, and what a measure of dispersion adds
- The range, and why it sees only the two extreme observations
- Deviations, why they always add up to 0 about the mean, and the mean deviation about the mean and the median
- Mean deviations for lists, discrete frequency tables and classes, with the step-deviation shortcut and the median formula
- The limitations of mean deviation, and why the median gives the smallest total distance
- The variance and the standard deviation, from the book's sets A and B to formulas (1), (2) and (3)
- The shortcut method, x̄ = A + hȳ and σₓ = hσᵧ, for large values
- How the variance changes when every observation is shifted or scaled, and how to correct for a wrong observation
- Every exercise of the chapter solved in full, with the key's rounding slips named
StartBefore you start: twelve ideas you already know
This chapter is about statistics: making sense of a heap of numbers. Most of the tools it needs come from Class 10, Chapter 13, and a few from Class 9. Each one is refreshed below with a small example. Read them once now; they come back on almost every page.
1. Data and observations (Class 10, Chapter 13)
Data are numbers collected for a purpose. Each single number is an observation. Example: the runs a batter scores in ten matches are ten observations.
2. The mean and the sigma sign (Class 10, Chapter 13)
The mean of n observations is their sum divided by n. The Greek capital letter Σ (read "sigma") means "add up". So the mean, written x̄ (read "x bar"), is Σx/n. Example: the mean of 4, 6 and 8 is 18/3 = 6.
3. The median (Class 10, Chapter 13)
Arrange the observations in order. The median is the middle one. Example: 2, 4, 5, 7, 9 has median 5. With an even number of observations, it is the mean of the two middle ones: 1, 3, 6, 8 has median (3 + 6)/2 = 4.5.
4. The mode (Class 10, Chapter 13)
The mode is the value that occurs most often. Example: in 2, 3, 3, 5, 3, 7 the mode is 3, which occurs three times.
5. Frequency tables (Class 10, Chapter 13)
When values repeat, we write each value once with its frequency f, the number of times it occurs. The total frequency is N = Σf, and the mean is Σfx/N. Example: the value 1 four times, 2 six times and 3 ten times has mean (4 + 12 + 30)/20 = 46/20 = 2.3.
6. Classes and class marks (Class 10, Chapter 13)
Large data are grouped into classes such as 10-20 (from 10 up to, but not including, 20). The class mark, or mid-point, is the average of the two limits: (10 + 20)/2 = 15. The class width here is 20 − 10 = 10.
7. The assumed-mean and step-deviation methods (Class 10, Chapter 13)
To shorten the arithmetic, pick an assumed mean a near the middle and use u = (x − a)/h, where h is the class width. Then the mean is a + h × Σfu/N. Example: mid-points 15, 25, 35 with frequencies 2, 3, 5; with a = 25 and h = 10, u is −1, 0, 1 and Σfu = 3, so the mean is 25 + 10 × 3/10 = 28. Directly: 280/10 = 28.
8. Cumulative frequency (Class 10, Chapter 13)
The cumulative frequency of a class is the running total of the frequencies up to and including it. Example: frequencies 2, 3, 5 give cumulative frequencies 2, 5, 10.
9. The median of grouped data (Class 10, Chapter 13)
The median class is the class whose cumulative frequency first reaches N/2. Then the median is l + [(N/2 − C)/f] × h, where l is the lower limit of the median class, f its frequency, h its width and C the cumulative frequency before it. Example: for the classes 0-10, 10-20, 20-30, 30-40 with frequencies 1, 1, 3, 5, N/2 = 5, the median class is 20-30 (cumulative 2, then 5), and the median is 20 + [(5 − 2)/3] × 10 = 30.
10. Absolute value (Class 9, Chapter 1)
The absolute value |x| is the distance of x from 0 on the number line, so it is never negative. Example: |−3| = 3. Also |x − a| is the distance between x and a: |2 − 7| = 5.
11. Square roots (Class 9, Chapter 3)
√33 is the positive number whose square is 33. It is not a whole number: 5.74² = 32.95 and 5.75² = 33.0625, so √33 ≈ 5.74. Standard deviations are square roots, so this skill is used in every example of section 13.5.
12. Rounding (Class 9, Chapter 3)
To round to two decimal places, look at the third decimal: 5 or more rounds up, less than 5 leaves the second as it is. Example: 58/11 = 5.2727... rounds to 5.27, and 149/30 = 4.9666... rounds to 4.97.
Words you will meet
| Word | Meaning |
|---|---|
| Dispersion | how spread out, or scattered, the data are |
| Measure of dispersion | one number that tells the spread |
| Range | the largest observation minus the smallest |
| Deviation | an observation minus a central value |
| Mean deviation | the average distance of the observations from a central value |
| Variance | the average of the squared deviations from the mean |
| Standard deviation | the square root of the variance |
By the end of this chapter you will be able to
- explain why an average alone cannot describe data, and what a measure of dispersion adds;
- find the range of data and say what it misses;
- find the mean deviation about the mean and about the median, for lists, frequency tables and classes;
- use the step-deviation shortcut, and the median formula for grouped data;
- find the variance and standard deviation of lists, frequency tables and classes, by three formulas;
- use the shortcut σₓ = hσᵧ, and see how the variance changes when every observation is shifted or scaled;
- correct a mean and a standard deviation found with a wrong observation.
13.1Introduction: the centre is not the whole story
A thought to begin with
The chapter opens with a line by the statisticians A. L. Bowley and A. L. Boddington: "Statistics may be rightly called the science of averages and their estimates." This chapter adds the other half of the story: how far the data stray from their average.
What we already have
Statistics deals with data collected for a purpose. We analyse and interpret the data to make decisions. In earlier classes we drew data as graphs and tables, and we found one value to represent them all: a measure of central tendency. The mean, the median and the mode are the three measures of central tendency. Each gives a rough idea of where the data are centred.
But that is not enough. We also need to know how the data are scattered: whether they bunch closely round the centre or spread far from it. The book shows why with two batsmen.
Two batsmen
Here are the runs scored by two batsmen in their last ten matches.
| Batsman | Runs in the last ten matches |
|---|---|
| A | 30, 91, 0, 64, 42, 80, 30, 5, 117, 71 |
| B | 53, 46, 48, 50, 53, 53, 58, 60, 57, 52 |
First the means. Each list adds up to 530, so each mean is 530/10 = 53. Recall the formula: the mean x̄ of n observations x₁, x₂, ..., xₙ is
Read it as "x bar equals one over n times the sum, from i equals 1 to n, of x i".
The small i below Σ is a counter: it runs through 1, 2, ..., n, picking out each observation in turn.
Now the medians. Arranged in order, A's scores are 0, 5, 30, 30, 42, 64, 71, 80, 91, 117 and B's are 46, 48, 50, 52, 53, 53, 53, 57, 58, 60. With n = 10 (even), the median is the mean of the 5th and 6th observations. For A: (42 + 64)/2 = 53. For B: (53 + 53)/2 = 53.
The book's rule for the median: arrange the data in order; if n is odd, the median is the ((n + 1)/2)th observation; if n is even, it is the mean of the (n/2)th and the (n/2 + 1)th observations.
| Batsman A | Batsman B | |
|---|---|---|
| Mean | 53 | 53 |
| Median | 53 | 53 |
Can we say the two batsmen performed the same? No. A's scores vary from 0 (the lowest) to 117 (the highest). B's lie between 46 and 60. The book plots each set as dots on a number line:
B's dots are close to each other and cluster round the mean and median, 53. A's dots are scattered: spread out over the whole line. A captain picking a steady player would choose B; a captain who needs one big score might gamble on A. Either way, the averages alone cannot tell them apart.
Spread matters far beyond cricket. A medicine factory needs every tablet to hold almost the same dose, not just the right average. A farmer in Punjab cares whether the monsoon rain comes evenly or in floods and droughts, even when the yearly total is normal. A teacher wants to know whether a class average of 60 means everyone near 60 or half near 90 and half near 30. In each case, one number for the centre is not enough.
The measures of central tendency are not enough to describe data. Variability, how much the data vary, must be studied too. Just as the mean is one number for the centre, we want one number for the variability: a measure of dispersion. This chapter studies the main measures of dispersion and how to find them for ungrouped and grouped data. Example: for batsman A the scores spread over 117 runs; for B over just 14.
Examples of every kind
Worked example 1
Direct: find the mean and the median of 5, 5, 5, 5, 5 and of 1, 3, 5, 7, 9. Are the two sets alike?
What we know: Mean = sum ÷ number; the median is the middle value in order.
What we need: Two means, two medians, and a comparison.
The plan: Compute each, then look at the spread.
- Both sets add up to 25, so both means are 25/5 = 5.
- Both are already in order, and the middle (3rd) value of each is 5.
- But the first set never moves from 5, while the second runs from 1 to 9.
Same mean (5) and same median (5), yet the sets differ completely in spread.
Check: The first set has no variability at all; every observation equals the centre. The second spreads 8 units, from 1 to 9.
Worked example 2
Story: the waiting times, in minutes, for a bus at a stop in Bengaluru on five mornings are 10, 10, 11, 9, 10 on route 1 and 2, 18, 5, 15, 10 on route 2. Which route is more dependable?
What we know: A dependable route has waiting times close to its usual value.
What we need: A comparison of the two routes.
The plan: Find each mean, then compare how far the times stray from it.
- Route 1: total 50, mean 10. Route 2: total 50, mean 10.
- Both medians are 10 as well.
- Route 1's times stay within 9 to 11; route 2's swing from 2 to 18.
Route 1: the same average wait, but far less variation.
Check: Spread from lowest to highest: 11 − 9 = 2 minutes for route 1, 18 − 2 = 16 minutes for route 2.
Worked example 3
Picture: in Figs 13.1 and 13.2, which set of dots is more spread out, and how can you tell without any calculation?
What we know: Fig 13.1 shows batsman A's scores and Fig 13.2 batsman B's.
What we need: Which is more spread out.
The plan: Compare how far the dots lie from one another and from 53.
- In Fig 13.2 the dots crowd together between 46 and 60.
- In Fig 13.1 they stretch from 0 to 117.
- Dots that stretch further from their centre show more dispersion.
Batsman A's dots (Fig 13.1) are far more spread out.
Check: A dot plot shows the spread at a glance; a measure of dispersion puts that glance into one number.
Worked example 4
Reverse: a student's marks in four tests are 55, 62, 58 and 61. What must the fifth mark be for the mean of all five to be 60?
What we know: Mean × number = total.
What we need: The fifth mark.
The plan: Find the total needed, then subtract the four marks.
- Needed total: 60 × 5 = 300.
- The four marks add up to 55 + 62 + 58 + 61 = 236.
- Fifth mark: 300 − 236 = 64.
64.
Check: (55 + 62 + 58 + 61 + 64)/5 = 300/5 = 60. Working backwards from a mean is used again in the Miscellaneous Exercise, together with the variance.
Worked example 5
Exam: give two sets of three observations, each with mean 25, such that one is much more spread out than the other.
What we know: Many sets share a mean; their spreads can differ.
What we need: Two sets.
The plan: Keep the middle value at 25 and move the outer ones symmetrically.
- Set 1: 22, 25, 28 (sum 75, mean 25).
- Set 2: 10, 25, 40 (sum 75, mean 25).
- Set 1 stays within 3 of the mean; set 2 strays 15 either side.
For example 22, 25, 28 and 10, 25, 40.
Check: Both have mean 25 and median 25. The question can never be settled by the mean, which is why a separate measure of spread is needed.
Common mistake: equal averages, equal data
Two sets with the same mean, or the same median, need not be alike at all. Always ask how far the observations stray from the centre.
When you are stuck: comparing two sets of data
Find the centre first: the mean (sum ÷ number) and the median (the middle value in order).
Then look at the spread: the lowest and highest values, or a dot plot.
Same centre, different spread? Then the sets differ in variability, which this chapter measures.
Your turn
The daily sales, in rupees, of two tea stalls on three days are 4800, 5000, 5200 and 2000, 5000, 8000. Compare their means and their spreads.Tap to reveal
- Both totals are 15,000, so both means are ₹5000.
- The first stall stays within ₹200 of the mean; the second strays by ₹3000 either side.
Same mean, ₹5000; the second stall's sales are far more spread out.
Check: Spreads: 5200 − 4800 = 400 and 8000 − 2000 = 6000.
In one line
An average tells where data are centred, but not how scattered they are; a measure of dispersion is the one number that tells the spread.
13.2, 13.3Measures of dispersion, and the range
Why we need it
Section 13.1 ended with a wish: one number for the spread of data, as the mean is one number for their centre. The book now lists the candidates, and studies the simplest one at once.
The measures of dispersion
The dispersion, or scatter, of data is measured from the observations and from the measure of central tendency used. The book names four measures of dispersion:
| Measure | What it uses | Studied in this chapter? |
|---|---|---|
| Range | only the largest and the smallest observation | yes, section 13.3 |
| Quartile deviation | the two quartiles, which mark off the middle half of the ordered data | no |
| Mean deviation | the distance of every observation from a central value | yes, section 13.4 |
| Standard deviation | the squares of the deviations of every observation from the mean | yes, section 13.5 |
The quartile deviation is half the gap between the upper and lower quartiles; the book only names it. All the others are worked out in full below.
13.3 The range
In the example of the two batsmen, we already had some idea of the variability from the lowest and highest scores of each. To turn that into one number, subtract: the largest value minus the smallest.
The range of a series is the maximum value minus the minimum value. Example: for batsman A, range = 117 − 0 = 117; for batsman B, range = 60 − 46 = 14.
Read it as "the range equals the largest observation minus the smallest".
It is one number, the width of the stretch of the number line that the data cover.
Range of A > range of B: A's scores are scattered, while B's are close to each other. This agrees with the dot plots of Figs 13.1 and 13.2.
What the range misses
The range gives a rough idea of the variability, but it looks at only two observations: the two extremes. It says nothing about how the data spread round the centre. Look at these two sets, each with mean 50 and range 98:
| Set | Observations | Range | Distances from the mean 50, added |
|---|---|---|---|
| U | 1, 50, 50, 50, 99 | 98 | 49 + 0 + 0 + 0 + 49 = 98 |
| V | 1, 1, 50, 99, 99 | 98 | 49 + 49 + 0 + 49 + 49 = 196 |
Same range, but V's observations stray twice as far from the centre in total. So we need a measure that depends on the difference, or deviation, of every value from a central value. The two important ones are the mean deviation (section 13.4) and the standard deviation (section 13.5).
Examples of every kind
Worked example 6
Direct: find the range of 12, 7, 19, 3, 15.
What we know: Range = maximum − minimum.
What we need: The range.
The plan: Pick out the largest and smallest values.
- Maximum: 19. Minimum: 3.
- Range: 19 − 3 = 16.
16.
Check: Every observation lies between 3 and 19, a stretch of 16 on the number line. Ordering the data first (3, 7, 12, 15, 19) makes the extremes easy to spot.
Worked example 7
Story: the maximum temperatures in Leh on seven days in January are −2, 1, −4, 0, 3, −1 and −3 °C. Find the range.
What we know: Range = maximum − minimum; negative numbers need care.
What we need: The range in °C.
The plan: Find the extremes, then subtract.
- Maximum: 3 °C. Minimum: −4 °C.
- Range: 3 − (−4) = 3 + 4 = 7 °C.
7 °C.
Check: On a thermometer, going from −4 up to 0 is 4 degrees, and from 0 up to 3 is 3 more: 7 in all. A slip to avoid: 3 − 4 = −1, which forgets the minus sign of −4.
Worked example 8
Picture: read the ranges of the two batsmen from Figs 13.1 and 13.2.
What we know: The range is the width of the stretch the dots cover.
What we need: Two ranges.
The plan: Find the leftmost and rightmost dots.
- Fig 13.1: from 0 to 117, so the range is 117.
- Fig 13.2: from 46 to 60, so the range is 14.
117 for batsman A and 14 for batsman B.
Check: The two numbers agree with the lists: A's lowest score is 0 and highest 117; B's are 46 and 60.
Worked example 9
Reverse: five observations have range 20, and the smallest is 7. What is the largest?
What we know: Range = largest − smallest.
What we need: The largest.
The plan: Add the range to the smallest.
- Largest − 7 = 20.
- Largest = 27.
27.
Check: 27 − 7 = 20. The other three observations can be anything between 7 and 27: the range does not fix them.
Worked example 10
Exam: the sets 40, 41, 42, ..., 50 and 40, 45, 45, ..., 45, 50 (eleven observations each, nine of the second equal to 45) have the same range. Is their spread the same?
What we know: The range uses only the two extremes.
What we need: A comparison of the spreads.
The plan: Compare the ranges, then the middle observations.
- Both ranges are 50 − 40 = 10.
- In the first set the observations are spread evenly across the whole stretch.
- In the second, nine of the eleven sit exactly at the centre 45.
No: the ranges are equal, but the second set is far less spread out.
Check: This is the weakness of the range: one very high and one very low observation decide it, whatever the rest do.
A path that fails: "equal ranges, so equal spread". The range is blind to everything between the extremes.
Common mistakes
Giving the range as a pair, "from 0 to 117". The range is one number, the difference 117.
Subtracting negative numbers carelessly: the range of −4 and 3 is 3 − (−4) = 7, not −1.
When you are stuck: the range
Order the data (or just scan them) to find the largest and smallest values.
Subtract: largest minus smallest, with brackets round a negative number.
Remember its blind spot: two data sets with the same range can still differ in spread.
Your turn
Find the range of the heights 150, 162, 148, 171 and 155 cm.Tap to reveal
- Maximum 171, minimum 148.
- 171 − 148 = 23.
23 cm.
Check: The range has the same unit as the data.
Find the range of 6.5, 7.25, 5.75 and 8.Tap to reveal
- Maximum 8, minimum 5.75.
- 8 − 5.75 = 2.25.
2.25.
Check: Writing 8 as 8.00 makes the subtraction easy to line up.
In one line
The range, maximum minus minimum, is the simplest measure of dispersion, but it sees only the two extremes; the mean and standard deviations use every observation.
13.4Mean deviation: the average distance from the centre
Why we need it
The range looks at only two observations. A better measure of spread should use every observation, and measure how far each one is from the centre. That is the idea of the mean deviation.
Deviations
The deviation of an observation x from a fixed value a is the difference x − a. It is positive when x is above a and negative when x is below a. Example: the deviations of 2, 5, 8 from a = 4 are −2, 1 and 4.
To measure the spread of the values of x round a central value a, a natural first try is the mean of the deviations from a. To find that mean we must first add up the deviations. But a measure of central tendency always lies between the smallest and the largest observation. So some deviations are negative and some positive, and in the sum they cancel. The sum may even vanish.
The deviations from the mean always add up to 0
The book states something stronger: the sum of the deviations from the mean x̄ is exactly 0, whatever the data. Here is why.
- The sum of the deviations is (x₁ − x̄) + (x₂ − x̄) + ... + (xₙ − x̄).
- Collect the terms: (x₁ + x₂ + ... + xₙ) − n x̄, since x̄ is subtracted n times.
- But x̄ = (x₁ + x₂ + ... + xₙ)/n, so x₁ + x₂ + ... + xₙ = n x̄.
- So the sum of the deviations is n x̄ − n x̄ = 0.
Read it as "the sum, from i equals 1 to n, of x i minus x bar, is zero". Example: the data 6, 7, 10, 12, 13, 4, 8, 12 have mean 9, and their deviations −3, −2, 1, 3, 4, −5, −1, 3 add up to 0.
So the mean of the deviations about the mean is (sum of deviations) ÷ (number of observations) = 0/n = 0, for every set of data. It cannot tell a spread-out set from a tight one, so it is of no use as a measure of dispersion. A picture helps: the mean is the balance point of the data, like the pivot of a see-saw in a park, with the deviations on one side exactly balancing those on the other.
You may wonder
Why not just take the largest distance from the centre? Because, like the range, it depends on one observation only: a single unusual value would decide it, whatever the others do. A good measure of spread should listen to every observation.
Distances instead of deviations
What we really want is the distance of each value from the centre, and a distance is never negative. Recall that the absolute value of the difference of two numbers is the distance between them on the number line: |x − a| is the distance between x and a. So we take the mean of the absolute values of the deviations. That mean is the mean deviation.
The mean deviation about a central value a is the mean of the absolute values of the deviations of the observations from a. It is written M.D.(a), read "M D about a". Example: for 2, 5, 8 about their mean 5, the absolute deviations are 3, 0, 3, so M.D.(5) = 6/3 = 2.
Read it as "M D about a equals one over n times the sum of the absolute values of x i minus a".
Drop the minus signs of the deviations, add them up, and divide by how many there are.
Our drawing shows the idea for the eight observations above. Each bar is one distance from the mean 9: 5, 3, 2, 1, 1, 3, 3 and 4. Their total is 22, and their average 22/8 = 2.75 is the mean deviation about the mean. (The book works this out as Example 1 in the next section.)
Remark (from the book)
A mean deviation can be found about any measure of central tendency. The mean deviation about the mean and the mean deviation about the median are the ones commonly used in statistical studies. On this page, M stands for the median, as in the book.
Examples of every kind
Worked example 11
Direct: find the deviations of 2, 5 and 8 from their mean, and the mean deviation about the mean.
What we know: The mean is (2 + 5 + 8)/3 = 5.
What we need: The deviations and M.D.(x̄).
The plan: Subtract the mean, check the sum, then average the absolute values.
- Deviations: 2 − 5 = −3, 5 − 5 = 0, 8 − 5 = 3.
- They add up to 0, as they must.
- Absolute values: 3, 0, 3; their sum is 6.
- M.D.(x̄) = 6/3 = 2.
Deviations −3, 0, 3; mean deviation 2.
Check: On the number line, 2 and 8 are each 3 from 5, and 5 is 0 from itself: the average distance is (3 + 0 + 3)/3 = 2.
Worked example 12
Story: five friends in Chennai get pocket money of ₹40, ₹50, ₹60, ₹70 and ₹80 a week. Find the mean deviation of their pocket money about the mean.
What we know: The mean is 300/5 = ₹60.
What we need: M.D.(x̄) in rupees.
The plan: Deviations, absolute values, average.
- Deviations from 60: −20, −10, 0, 10, 20 (sum 0).
- Absolute values: 20, 10, 0, 10, 20; their sum is 60.
- M.D.(x̄) = 60/5 = 12.
₹12.
Check: On average, a friend's pocket money is ₹12 away from the mean of ₹60. The mean deviation has the same unit as the data.
Worked example 13
Picture: in our drawing, add up the bars and find the mean deviation about the mean 9.
What we know: The bars are the distances 5, 3, 2, 1, 1, 3, 3, 4 of the eight observations from 9.
What we need: Their total and their average.
The plan: Add, then divide by 8.
- 5 + 3 + 2 + 1 + 1 + 3 + 3 + 4 = 22.
- 22 ÷ 8 = 2.75.
The bars total 22, and the mean deviation is 2.75.
Check: Bars to the left of the mean (5, 3, 2, 1) total 11, and bars to the right (1, 3, 3, 4) also total 11: the balance that makes the signed deviations add up to 0.
Worked example 14
Reverse: the deviations of four observations from 10 are −2, 3, −4 and d. If 10 is their mean, find d.
What we know: The deviations from the mean add up to 0.
What we need: d.
The plan: Set the sum to 0.
- −2 + 3 + (−4) + d = 0.
- −3 + d = 0, so d = 3.
d = 3.
Check: The observations are 8, 13, 6 and 13, with sum 40 and mean 10, as required.
Worked example 15
Exam: for the data 3, 8, 10, show that the deviations from the mean add up to 0, and find the mean deviation about the mean.
What we know: The mean is 21/3 = 7.
What we need: A check of the sum, and M.D.(x̄).
The plan: Deviations, their sum, then the absolute values.
- Deviations: −4, 1, 3; sum −4 + 1 + 3 = 0.
- Absolute values: 4, 1, 3; sum 8.
- M.D.(x̄) = 8/3 ≈ 2.67.
The deviations add up to 0, and the mean deviation is 8/3 ≈ 2.67.
Check: Rounded to two decimal places, 8/3 = 2.666... is 2.67, since the third decimal, 6, is 5 or more.
A path that fails: averaging the signed deviations, (−4 + 1 + 3)/3 = 0, and calling the spread 0. Only the absolute values measure distance.
Common mistakes
Forgetting the absolute values: the signed deviations from the mean always average to 0.
Writing |x − a| as |x| − |a|: |3 − 7| = 4, but |3| − |7| = −4.
Dividing by the wrong number: the mean deviation divides by the number of observations, not by the number of distinct values.
When you are stuck: a mean deviation
Find the centre a first: the mean or the median, as the question asks.
Subtract a from each observation, then drop the signs.
Average the distances: add them and divide by the number of observations.
Check with the signed deviations: about the mean they must add up to 0.
Your turn
Find the mean deviation about the mean of 4, 6, 8, 10, 12.Tap to reveal
- Mean 40/5 = 8; deviations −4, −2, 0, 2, 4.
- Absolute values add up to 12, and 12/5 = 2.4.
2.4.
Check: The signed deviations add up to 0, as they must about the mean.
In one line
Deviations from the mean always add up to 0, so the mean deviation averages their absolute values: M.D.(a) = Σ|xᵢ − a|/n, the average distance from the centre a.
13.4.1Mean deviation for ungrouped data
Why we need it
Section 13.4 defined the mean deviation. Now we compute it, first for ungrouped data: observations listed one by one, with no frequency table. The book sets out four steps that work for the mean and for the median alike.
The four steps (from the book)
Let the n observations be x₁, x₂, x₃, ..., xₙ.
- Step 1. Calculate the measure of central tendency about which the mean deviation is wanted. Call it a.
- Step 2. Find the deviation of each xᵢ from a: x₁ − a, x₂ − a, ..., xₙ − a.
- Step 3. Find the absolute values of the deviations, |x₁ − a|, |x₂ − a|, ..., |xₙ − a|: drop the minus sign where there is one.
- Step 4. Find the mean of these absolute values. It is the mean deviation about a.
Read it as "M D about x bar equals one over n times the sum of the absolute values of x i minus x bar".
Use it when the question says "about the mean".
Read it as "M D about M equals one over n times the sum of the absolute values of x i minus M".
Here M is the median; the book uses M for the median throughout the chapter.
The book's examples
Example 1 (from the book)
Find the mean deviation about the mean for the data 6, 7, 10, 12, 13, 4, 8, 12.
What we know: The four steps; n = 8.
What we need: M.D.(x̄).
The plan: Mean, deviations, absolute values, their mean.
- Step 1: x̄ = (6 + 7 + 10 + 12 + 13 + 4 + 8 + 12)/8 = 72/8 = 9.
- Step 2: the deviations xᵢ − x̄ are 6 − 9, 7 − 9, 10 − 9, 12 − 9, 13 − 9, 4 − 9, 8 − 9, 12 − 9, that is, −3, −2, 1, 3, 4, −5, −1, 3.
- Step 3: the absolute values are 3, 2, 1, 3, 4, 5, 1, 3.
- Step 4: M.D.(x̄) = (3 + 2 + 1 + 3 + 4 + 5 + 1 + 3)/8 = 22/8 = 2.75.
2.75.
Check: The signed deviations in Step 2 add up to 0, as they must about the mean. Our drawing in section 13.4 shows these eight distances as bars.
The same work fits neatly in a table, one row per observation:
| xᵢ | xᵢ − 9 | |xᵢ − 9| |
|---|---|---|
| 6 | −3 | 3 |
| 7 | −2 | 2 |
| 10 | 1 | 1 |
| 12 | 3 | 3 |
| 13 | 4 | 4 |
| 4 | −5 | 5 |
| 8 | −1 | 1 |
| 12 | 3 | 3 |
| Total 72 | 0 | 22 |
Note (from the book)
Instead of writing out the four steps every time, we can carry on the calculation step by step without naming the steps, as the next examples do.
Example 2 (from the book)
Find the mean deviation about the mean for the data 12, 3, 18, 17, 4, 9, 17, 19, 20, 15, 8, 17, 2, 3, 16, 11, 3, 1, 0, 5.
What we know: There are n = 20 observations.
What we need: M.D.(x̄).
The plan: Find the mean, then the absolute deviations, then their mean.
- The observations add up to 200, so x̄ = 200/20 = 10.
- The absolute deviations |xᵢ − 10| are 2, 7, 8, 7, 6, 1, 7, 9, 10, 5, 2, 7, 8, 7, 6, 1, 7, 9, 10, 5.
- Their sum is 124.
- M.D.(x̄) = 124/20 = 6.2.
6.2.
Check: The list of absolute deviations repeats after ten numbers, a coincidence of these data. Each observation's distance from 10 is between 1 and 10, and 6.2 lies in that range, as an average must.
Example 3 (from the book)
Find the mean deviation about the median for the data 3, 9, 5, 3, 12, 10, 18, 4, 7, 19, 21.
What we know: n = 11, which is odd, so the median is the ((11 + 1)/2)th = 6th observation in order.
What we need: M.D.(M).
The plan: Order the data, find the median, then the absolute deviations.
- In ascending order: 3, 3, 4, 5, 7, 9, 10, 12, 18, 19, 21.
- The 6th observation is 9, so M = 9.
- The absolute deviations |xᵢ − 9| are 6, 6, 5, 4, 2, 0, 1, 3, 9, 10, 12, with sum 58.
- M.D.(M) = 58/11 = 5.2727... ≈ 5.27.
5.27 (to two decimal places).
Check: Five observations lie below 9 and five above it, so 9 is the middle one. A slip to avoid: taking the middle of the unsorted list, which is 10.
Examples of every kind
Worked example 16
Direct: find the mean deviation about the median of 2, 9, 4, 7, 15.
What we know: n = 5 (odd): the median is the 3rd observation in order.
What we need: M.D.(M).
The plan: Order, median, absolute deviations, mean.
- In order: 2, 4, 7, 9, 15, so M = 7.
- Absolute deviations: 5, 3, 0, 2, 8; sum 18.
- M.D.(M) = 18/5 = 3.6.
3.6.
Check: The two observations below 7 are 5 and 3 away, and the two above are 2 and 8 away: 18 in all.
Worked example 17
Story: six students in a school in Pune score 15, 18, 12, 20, 17 and 14 out of 20 in a test. Find the mean deviation about the mean.
What we know: n = 6.
What we need: M.D.(x̄).
The plan: Mean, absolute deviations, mean of those.
- Sum 96, so x̄ = 96/6 = 16.
- Absolute deviations: 1, 2, 4, 4, 1, 2; sum 14.
- M.D.(x̄) = 14/6 = 2.33 (to two decimal places).
About 2.33 marks.
Check: On average a student's mark is about 2⅓ marks from the class mean of 16. The signed deviations −1, 2, −4, 4, 1, −2 add up to 0.
Worked example 18
Picture: five dots stand on a number line at 1, 3, 4, 8 and 14. Which dot is the median, and what is the mean deviation about it?
What we know: With five ordered dots, the median is the middle (3rd) dot.
What we need: M and M.D.(M).
The plan: Read the middle dot, then the distances to it.
- The middle dot is at 4, so M = 4.
- Distances from 4: 3, 1, 0, 4, 10; sum 18.
- M.D.(M) = 18/5 = 3.6.
The median is 4, and the mean deviation about it is 3.6.
Check: The far dot at 14 adds a distance of 10 on its own: a single far-off observation pulls the mean deviation up.
Worked example 19
Reverse: five observations have mean deviation 3 about their mean. Four of the absolute deviations are 2, 4, 1 and 5. Find the fifth.
What we know: Mean deviation × number of observations = sum of the absolute deviations.
What we need: The fifth absolute deviation.
The plan: Find the total, then subtract the four.
- Total: 3 × 5 = 15.
- The four add up to 2 + 4 + 1 + 5 = 12.
- Fifth: 15 − 12 = 3.
3.
Check: (2 + 4 + 1 + 5 + 3)/5 = 15/5 = 3.
Worked example 20
Exam: for the data 1, 2, 3, 4, 100, find the mean deviation about the mean and about the median. Which is smaller?
What we know: Mean = 110/5 = 22; median = 3 (the middle of the ordered data).
What we need: M.D.(x̄) and M.D.(M).
The plan: Compute both from their own centre.
- About 22: distances 21, 20, 19, 18, 78; sum 156; M.D.(x̄) = 156/5 = 31.2.
- About 3: distances 2, 1, 0, 1, 97; sum 101; M.D.(M) = 101/5 = 20.2.
31.2 about the mean and 20.2 about the median: the median gives the smaller one.
Check: This is no accident. The sum of the distances |xᵢ − a| is smallest when a is the median, so the mean deviation about the median is never more than about the mean. Section 13.4.3 comes back to this.
A path that fails: using the mean 22 in both parts. Each mean deviation must use its own centre.
Common mistakes
Finding the median of unsorted data: always arrange the observations in order first.
Dividing by the wrong number: n is the number of observations, including repeated ones.
Rounding too early: keep the exact sum (58) and divide once, 58/11 = 5.27.
When you are stuck: a mean deviation of ungrouped data
Which centre? Read the question: about the mean or about the median.
The median: order the data; take the middle one, or the mean of the middle two.
A table with columns x, x − a and |x − a| keeps the work tidy.
Divide the total of the last column by n.
Your turn
Find the mean deviation about the median of 10, 20, 30, 40.Tap to reveal
- n = 4 (even): M = (20 + 30)/2 = 25.
- Distances: 15, 5, 5, 15; sum 40; 40/4 = 10.
10.
Check: Here the mean is also 25, so the two mean deviations are equal.
Find the mean deviation about the median of 11, 13, 15, 17, 19, 21.Tap to reveal
- M = (15 + 17)/2 = 16.
- Distances: 5, 3, 1, 1, 3, 5; sum 18; 18/6 = 3.
3.
Check: With an even number of observations the median need not be one of them.
In one line
For ungrouped data: find the centre (mean or median), take each observation's distance from it, and average the distances.
13.4.2 (a)Mean deviation for a discrete frequency distribution
Why we need it
Real data repeat. A shop sells size 8 shoes again and again; many students get the same mark. Then the data come as a frequency table, and the formulas of section 13.4.1 must count each value as many times as it occurs.
The book notes that data can be grouped in two ways: (a) as a discrete frequency distribution, and (b) as a continuous frequency distribution. This section does (a); section 13.4.2 (b) does the second.
Let the data consist of n distinct values x₁, x₂, ..., xₙ occurring with frequencies f₁, f₂, ..., fₙ. Written as a table, with one row for the values and one for the frequencies, the data form a discrete frequency distribution. Example: x: 2, 5, 6 with f: 2, 8, 10 means the value 2 occurs twice, 5 eight times and 6 ten times.
(i) The mean deviation about the mean
First find the mean. Each value xᵢ occurs fᵢ times, so it adds xᵢfᵢ to the total:
Read it as "x bar equals the sum of x i times f i, divided by N, the sum of the frequencies".
Σxᵢfᵢ is the sum of the products of the observations with their frequencies.
Then find each absolute deviation |xᵢ − x̄|. A value that occurs fᵢ times contributes its distance fᵢ times, so the total distance is Σfᵢ|xᵢ − x̄|. Its mean is the mean deviation:
Read it as "M D about x bar equals one over N times the sum of f i times the absolute value of x i minus x bar".
Divide by N, the total number of observations, not by n, the number of different values.
(ii) The mean deviation about the median
To find the median of a discrete frequency distribution, arrange the values in ascending order and write the cumulative frequencies under them. The book then takes the value whose cumulative frequency is equal to or just greater than N/2: that value lies in the middle of the data, so it is the median. Finally:
Read it as "M D about M equals one over N times the sum of f i times the absolute value of x i minus M".
The same recipe as before, with the median M in place of the mean.
You may wonder
Is the book's short rule always right? It works whenever the middle observation (or the two middle observations) falls inside one value's row. The full rule is: for N odd, the median is the ((N + 1)/2)th observation; for N even, it is the mean of the (N/2)th and (N/2 + 1)th observations, each read from the cumulative frequencies. The two rules differ only when a cumulative frequency equals N/2 exactly and N is even. Example: x: 1, 2 with f: 2, 2. The 2nd observation is 1 and the 3rd is 2, so the median is 1.5, while the short rule picks 1.
The book's examples
Example 4 (from the book)
Find the mean deviation about the mean for the data x: 2, 5, 6, 8, 10, 12 with f: 2, 8, 10, 7, 8, 5.
What we know: A discrete frequency distribution; the formulas for x̄ and M.D.(x̄).
What we need: M.D.(x̄).
The plan: Make Table 13.1, adding the columns fᵢxᵢ, |xᵢ − x̄| and fᵢ|xᵢ − x̄| one at a time.
- N = Σfᵢ = 40 and Σfᵢxᵢ = 4 + 40 + 60 + 56 + 80 + 60 = 300.
- x̄ = (1/N)Σfᵢxᵢ = 300/40 = 7.5.
- The column |xᵢ − 7.5| is 5.5, 2.5, 1.5, 0.5, 2.5, 4.5; times the frequencies: 11, 20, 15, 3.5, 20, 22.5.
- Σfᵢ|xᵢ − x̄| = 92, so M.D.(x̄) = 92/40 = 2.3.
2.3.
Check: The mean 7.5 is not one of the values, which is fine: a mean need not be an observation. Every distance in the table is at most 5.5, and 2.3 sits sensibly among them.
| xᵢ | fᵢ | fᵢxᵢ | |xᵢ − x̄| | fᵢ|xᵢ − x̄| |
|---|---|---|---|---|
| 2 | 2 | 4 | 5.5 | 11 |
| 5 | 8 | 40 | 2.5 | 20 |
| 6 | 10 | 60 | 1.5 | 15 |
| 8 | 7 | 56 | 0.5 | 3.5 |
| 10 | 8 | 80 | 2.5 | 20 |
| 12 | 5 | 60 | 4.5 | 22.5 |
| Total | 40 | 300 | 92 |
This is the book's Table 13.1.
Example 5 (from the book)
Find the mean deviation about the median for the data x: 3, 6, 9, 12, 13, 15, 21, 22 with f: 3, 4, 5, 2, 4, 5, 4, 3.
What we know: The values are already in ascending order.
What we need: M.D.(M).
The plan: Add a row of cumulative frequencies (Table 13.2), find the median, then the weighted distances (Table 13.3).
- Cumulative frequencies: 3, 7, 12, 14, 18, 23, 27, 30, so N = 30, which is even.
- The median is the mean of the 15th and 16th observations. The cumulative frequency passes 14 at 12 and reaches 18 at 13, so both the 15th and 16th observations are 13.
- M = (13 + 13)/2 = 13.
- The absolute deviations |xᵢ − 13| are 10, 7, 4, 1, 0, 2, 8, 9; times the frequencies: 30, 28, 20, 2, 0, 10, 32, 27.
- Σfᵢ|xᵢ − M| = 149, so M.D.(M) = 149/30 = 4.966... ≈ 4.97.
4.97 (to two decimal places).
Check: Here the book's short rule agrees with the full rule: the first cumulative frequency at or beyond N/2 = 15 is 18, at the value 13.
| xᵢ | 3 | 6 | 9 | 12 | 13 | 15 | 21 | 22 |
|---|---|---|---|---|---|---|---|---|
| fᵢ | 3 | 4 | 5 | 2 | 4 | 5 | 4 | 3 |
| c.f. | 3 | 7 | 12 | 14 | 18 | 23 | 27 | 30 |
| |xᵢ − M| | 10 | 7 | 4 | 1 | 0 | 2 | 8 | 9 |
| fᵢ|xᵢ − M| | 30 | 28 | 20 | 2 | 0 | 10 | 32 | 27 |
The first two rows below the values are the book's Table 13.2; the last two are its Table 13.3.
Examples of every kind
Worked example 21
Direct: find the mean deviation about the mean for x: 1, 2, 3, 4 with f: 1, 3, 4, 2.
What we know: N = 10.
What we need: M.D.(x̄).
The plan: Mean, then the weighted distances.
- Σfx = 1 + 6 + 12 + 8 = 27, so x̄ = 27/10 = 2.7.
- |x − 2.7|: 1.7, 0.7, 0.3, 1.3; times f: 1.7, 2.1, 1.2, 2.6.
- Sum 7.6, so M.D.(x̄) = 7.6/10 = 0.76.
0.76.
Check: Dividing by the 4 distinct values instead of N = 10 would give 1.9, far too big.
Worked example 22
Story: a shoe shop in Kolkata sells sizes 6, 7, 8, 9 and 10 on a Saturday, in numbers 4, 10, 12, 8 and 6. Find the mean deviation of the sizes about the median.
What we know: N = 40, which is even.
What we need: M.D.(M).
The plan: Cumulative frequencies, the median, the weighted distances.
- Cumulative frequencies: 4, 14, 26, 34, 40.
- The 20th and 21st observations both lie in size 8 (cumulative 26), so M = 8.
- Σf|x − 8| = 4 × 2 + 10 × 1 + 12 × 0 + 8 × 1 + 6 × 2 = 38.
- M.D.(M) = 38/40 = 0.95.
0.95 of a size.
Check: A typical pair sold is within one size of size 8: useful to the shopkeeper when ordering stock.
Worked example 23
Picture: a dot plot has 3 dots above 4, 5 dots above 6 and 2 dots above 8. Find the mean deviation about the mean.
What we know: The stacks give the frequencies: x: 4, 6, 8 with f: 3, 5, 2.
What we need: M.D.(x̄).
The plan: Read the table off the picture, then compute.
- N = 10; Σfx = 12 + 30 + 16 = 58, so x̄ = 5.8.
- Distances: 1.8, 0.2, 2.2; times f: 5.4, 1.0, 4.4; sum 10.8.
- M.D.(x̄) = 10.8/10 = 1.08.
1.08.
Check: Each stack of dots is one row of a frequency table: the height is f, the position is x.
Worked example 24
Reverse: the data x: 2, 4, 6 have frequencies 1, k and 1, and their mean deviation about the mean is 0.5. Find k.
What we know: By symmetry the mean is 4 for every k: (2 + 4k + 6)/(k + 2) = 4.
What we need: k.
The plan: Write M.D.(x̄) in terms of k and solve.
- Σf|x − 4| = 1 × 2 + k × 0 + 1 × 2 = 4.
- M.D.(x̄) = 4/(k + 2) = 0.5.
- k + 2 = 8, so k = 6.
k = 6.
Check: With k = 6, N = 8 and M.D.(x̄) = 4/8 = 0.5. More observations at the centre make the average distance smaller.
Worked example 25
Exam: for x: 10, 20, 30, 40 with f: 2, 3, 3, 2, find the median and the mean deviation about it.
What we know: N = 10 (even); cumulative frequencies 2, 5, 8, 10.
What we need: M and M.D.(M).
The plan: Read the 5th and 6th observations, then compute.
- The 5th observation is 20 (cumulative 5) and the 6th is 30.
- M = (20 + 30)/2 = 25.
- Σf|x − 25| = 2 × 15 + 3 × 5 + 3 × 5 + 2 × 15 = 90.
- M.D.(M) = 90/10 = 9.
M = 25 and M.D.(M) = 9.
Check: The book's short rule would pick 20 here, since its cumulative frequency equals N/2 = 5. Yet about 20 the total distance is 20 + 0 + 30 + 40 = 90 too: every point from 20 to 30 gives the same total. So the mean deviation is right either way, but the median itself is 25.
A path that fails: forgetting the frequencies and using the four values alone: (15 + 5 + 5 + 15)/4 = 10.
Worked example 26
Exam: for the data of Example 4 (x: 2, 5, 6, 8, 10, 12 with f: 2, 8, 10, 7, 8, 5), find the median and the mean deviation about it, and compare with the mean deviation about the mean, 2.3.
What we know: N = 40 (even); cumulative frequencies 2, 10, 20, 27, 35, 40.
What we need: M, M.D.(M) and a comparison.
The plan: Read the 20th and 21st observations, then compute.
- The 20th observation is 6 (cumulative 20) and the 21st is 8, so M = (6 + 8)/2 = 7.
- Σf|x − 7| = 2 × 5 + 8 × 2 + 10 × 1 + 7 × 1 + 8 × 3 + 5 × 5 = 10 + 16 + 10 + 7 + 24 + 25 = 92.
- M.D.(M) = 92/40 = 2.3.
M = 7, and M.D.(M) = 2.3: the same as about the mean.
Check: The total distance is the same, 92, for every point from 6 to 8, and the mean 7.5 lies in that stretch too. That is why the two mean deviations agree here. The book's short rule would give M = 6 (cumulative frequency exactly N/2), the edge case named above.
Common mistakes
Forgetting to multiply each distance by its frequency.
Dividing by the number of distinct values instead of N = Σf.
Reading the median from the frequencies instead of the cumulative frequencies.
When you are stuck: a mean deviation from a frequency table
Columns: x, f, fx, then |x − a| and f|x − a|.
The mean: Σfx ÷ N. The median: add a c.f. row and find the middle observation.
Finish: the total of the last column ÷ N.
Your turn
Find the mean deviation about the mean for x: 0, 1, 2, 3 with f: 1, 4, 3, 2.Tap to reveal
- N = 10; Σfx = 0 + 4 + 6 + 6 = 16; x̄ = 1.6.
- f|x − 1.6|: 1 × 1.6 = 1.6, 4 × 0.6 = 2.4, 3 × 0.4 = 1.2, 2 × 1.4 = 2.8; sum 8.
- M.D.(x̄) = 8/10 = 0.8.
0.8.
Check: Writing each product out in full before adding avoids slips.
Find the mean deviation about the median for x: 5, 10, 15 with f: 1, 2, 1.Tap to reveal
- N = 4; the 2nd and 3rd observations are both 10, so M = 10.
- Σf|x − 10| = 5 + 0 + 5 = 10; 10/4 = 2.5.
2.5.
Check: The data are symmetric about 10, so the mean is 10 as well.
In one line
For a frequency table, each distance counts f times: M.D. = Σf|x − a|/N, with a the mean (Σfx/N) or the median (from the cumulative frequencies).
13.4.2 (b)Mean deviation for a continuous frequency distribution
Why we need it
Large data are grouped into classes, and then the separate observations are lost: we know only how many fall in each class. To find a mean deviation we need a single value for each class, and the book uses the same idea as for the mean.
A continuous frequency distribution is a series in which the data are classified into class intervals with no gaps between them, each with its frequency. Example: the marks of 100 students: 0-10: 12, 10-20: 18, 20-30: 27, 30-40: 20, 40-50: 17, 50-60: 6.
(i) The mean deviation about the mean
When we found the mean of a continuous frequency distribution in Class 10, we assumed that the frequency of each class is centred at its mid-point. We make the same assumption here: write the mid-point of each class, and then work exactly as for a discrete frequency distribution, with the mid-points as the values xᵢ.
Example 6 (from the book)
Find the mean deviation about the mean for the marks: 10-20: 2, 20-30: 3, 30-40: 8, 40-50: 14, 50-60: 8, 60-70: 3, 70-80: 2 (classes: marks obtained; frequencies: numbers of students).
What we know: Each class is represented by its mid-point: 15, 25, 35, 45, 55, 65, 75.
What we need: M.D.(x̄).
The plan: Make Table 13.4: the mid-points, fᵢxᵢ, |xᵢ − x̄| and fᵢ|xᵢ − x̄|.
- N = Σfᵢ = 40 and Σfᵢxᵢ = 30 + 75 + 280 + 630 + 440 + 195 + 150 = 1800.
- x̄ = (1/N)Σfᵢxᵢ = 1800/40 = 45.
- |xᵢ − 45| is 30, 20, 10, 0, 10, 20, 30; times the frequencies: 60, 60, 80, 0, 80, 60, 60.
- Σfᵢ|xᵢ − x̄| = 400, so M.D.(x̄) = 400/40 = 10.
10.
Check: The table is symmetric about the class 40-50, so a mean of 45, its mid-point, is just what we should expect.
| Marks | fᵢ | Mid-point xᵢ | fᵢxᵢ | |xᵢ − x̄| | fᵢ|xᵢ − x̄| |
|---|---|---|---|---|---|
| 10-20 | 2 | 15 | 30 | 30 | 60 |
| 20-30 | 3 | 25 | 75 | 20 | 60 |
| 30-40 | 8 | 35 | 280 | 10 | 80 |
| 40-50 | 14 | 45 | 630 | 0 | 0 |
| 50-60 | 8 | 55 | 440 | 10 | 80 |
| 60-70 | 3 | 65 | 195 | 20 | 60 |
| 70-80 | 2 | 75 | 150 | 30 | 60 |
| Total | 40 | 1800 | 400 |
This is the book's Table 13.4.
A shortcut for the mean: the step-deviation method
Multiplying large mid-points by their frequencies is tedious. Recall the step-deviation method from Class 10. Take an assumed mean a, a value in the middle of the data or close to it. Take the deviations of the mid-points from a. This is the same as moving the origin of the number line from 0 to a, as Fig 13.3 shows.
If all the deviations share a common factor, divide them by it. The results are the step-deviations. Dividing by the common factor is a change of scale on the number line, as Fig 13.4 shows.
The deviations and step-deviations make the numbers small, so the multiplications are short. Let the new variable be dᵢ = (xᵢ − a)/h, where a is the assumed mean and h is the common factor. Then:
Read it as "x bar equals a plus the sum of f i d i over N, times h".
Shift by a and shrink by h to make the arithmetic small; the formula shifts and stretches the answer back.
Why it works. From dᵢ = (xᵢ − a)/h, each mid-point is xᵢ = a + h dᵢ. So Σfᵢxᵢ = Σfᵢ(a + h dᵢ) = aN + hΣfᵢdᵢ. Dividing by N: x̄ = a + h × Σfᵢdᵢ/N. Section 13.5.4 uses the same move for the variance.
Example 6 again, by the step-deviation method (from the book)
Find the mean deviation about the mean for the data of Example 6, taking the assumed mean a = 45 and h = 10.
What we know: dᵢ = (xᵢ − 45)/10.
What we need: x̄, then M.D.(x̄).
The plan: Make Table 13.5 with the columns dᵢ and fᵢdᵢ.
- dᵢ is −3, −2, −1, 0, 1, 2, 3, and fᵢdᵢ is −6, −6, −8, 0, 8, 6, 6.
- Σfᵢdᵢ = 0, so x̄ = 45 + (0/40) × 10 = 45.
- From here the work is the same as before: Σfᵢ|xᵢ − x̄| = 400, and M.D.(x̄) = 400/40 = 10.
x̄ = 45 and M.D.(x̄) = 10, as before.
Check: The shortcut gives the same mean as the long way, with products like −3 × 2 in place of 15 × 2.
| Marks | fᵢ | xᵢ | dᵢ = (xᵢ − 45)/10 | fᵢdᵢ | |xᵢ − x̄| | fᵢ|xᵢ − x̄| |
|---|---|---|---|---|---|---|
| 10-20 | 2 | 15 | −3 | −6 | 30 | 60 |
| 20-30 | 3 | 25 | −2 | −6 | 20 | 60 |
| 30-40 | 8 | 35 | −1 | −8 | 10 | 80 |
| 40-50 | 14 | 45 | 0 | 0 | 0 | 0 |
| 50-60 | 8 | 55 | 1 | 8 | 10 | 80 |
| 60-70 | 3 | 65 | 2 | 6 | 20 | 60 |
| 70-80 | 2 | 75 | 3 | 6 | 30 | 60 |
| Total | 40 | 0 | 400 |
This is the book's Table 13.5.
Note (from the book)
The step-deviation method is applied to compute x̄ only. The rest of the procedure, the absolute deviations from x̄ and their weighted mean, is the same as before.
(ii) The mean deviation about the median
The process is the same as for the mean deviation about the mean; the only difference is that the median takes the place of the mean when the deviations are taken. So first we need the median of a continuous frequency distribution, which Class 10 taught.
Arrange the data in ascending order (the classes usually are already). The median class is the class whose cumulative frequency is equal to or just greater than N/2, where N is the sum of the frequencies. Then:
Read it as "the median equals l plus N by 2 minus C, over f, times h".
l, f and h are the lower limit, the frequency and the width of the median class; C is the cumulative frequency of the class just before it.
Why the formula looks like this. The median is the value with N/2 observations below it. Up to the start of the median class there are C observations, so N/2 − C more are needed from inside the class. The class holds f observations spread evenly over its width h, so we go the fraction (N/2 − C)/f of the way across it.
After finding the median M, take the absolute deviation |xᵢ − M| of the mid-point of each class, and then:
Read it as "M D about M equals one over N times the sum of f i times the absolute value of x i minus M".
xᵢ is the mid-point of the ith class.
Example 7 (from the book)
Calculate the mean deviation about the median for the classes 0-10, 10-20, 20-30, 30-40, 40-50, 50-60 with frequencies 6, 7, 15, 16, 4, 2.
What we know: The median formula; mid-points 5, 15, 25, 35, 45, 55.
What we need: M.D.(M).
The plan: Make Table 13.6: cumulative frequencies, mid-points, |xᵢ − M| and fᵢ|xᵢ − M|.
- Cumulative frequencies: 6, 13, 28, 44, 48, 50, so N = 50 and N/2 = 25.
- The 25th item lies in 20-30 (the cumulative frequency passes 13 and reaches 28 there), so 20-30 is the median class.
- l = 20, C = 13, f = 15, h = 10: Median = 20 + [(25 − 13)/15] × 10 = 20 + 8 = 28.
- |xᵢ − 28| is 23, 13, 3, 7, 17, 27; times the frequencies: 138, 91, 45, 112, 68, 54.
- Σfᵢ|xᵢ − M| = 508, so M.D.(M) = 508/50 = 10.16.
10.16.
Check: The median 28 lies inside the median class 20-30, as it must. 12/15 of the way across a class of width 10 is 8.
| Class | fᵢ | c.f. | Mid-point xᵢ | |xᵢ − M| | fᵢ|xᵢ − M| |
|---|---|---|---|---|---|
| 0-10 | 6 | 6 | 5 | 23 | 138 |
| 10-20 | 7 | 13 | 15 | 13 | 91 |
| 20-30 | 15 | 28 | 25 | 3 | 45 |
| 30-40 | 16 | 44 | 35 | 7 | 112 |
| 40-50 | 4 | 48 | 45 | 17 | 68 |
| 50-60 | 2 | 50 | 55 | 27 | 54 |
| Total | 50 | 508 |
This is the book's Table 13.6.
Examples of every kind
Worked example 27
Direct: find the mean deviation about the mean for the classes 0-4, 4-8, 8-12 with frequencies 2, 5, 3.
What we know: Mid-points 2, 6, 10; N = 10.
What we need: M.D.(x̄).
The plan: Mean from the mid-points, then the weighted distances.
- Σfx = 4 + 30 + 30 = 64, so x̄ = 6.4.
- |x − 6.4|: 4.4, 0.4, 3.6; times f: 8.8, 2.0, 10.8; sum 21.6.
- M.D.(x̄) = 21.6/10 = 2.16.
2.16.
Check: The class width is 4, and an average distance a little over half a class width is reasonable for data spread over three classes.
Worked example 28
Story: the daily wages at a building site in Hyderabad are grouped as ₹300-400: 5 workers, ₹400-500: 10, ₹500-600: 15, ₹600-700: 10. Find the mean wage by the step-deviation method, and the mean deviation about it.
What we know: Mid-points 350, 450, 550, 650; N = 40. Take a = 550 and h = 100.
What we need: x̄ and M.D.(x̄).
The plan: Step-deviations for the mean; then the distances.
- d = (x − 550)/100: −2, −1, 0, 1; fd: −10, −10, 0, 10; Σfd = −10.
- x̄ = 550 + (−10/40) × 100 = 550 − 25 = 525.
- |x − 525|: 175, 75, 25, 125; times f: 875, 750, 375, 1250; sum 3250.
- M.D.(x̄) = 3250/40 = 81.25.
Mean wage ₹525; mean deviation ₹81.25.
Check: Directly: Σfx = 1750 + 4500 + 8250 + 6500 = 21,000, and 21,000/40 = 525, the same mean.
Worked example 29
Picture: a histogram has bars over the classes 0-10, 10-20, 20-30 and 30-40 of heights 3, 6, 9 and 6. Find the mean deviation about the mean.
What we know: The heights are the frequencies; the mid-points are 5, 15, 25, 35; N = 24.
What we need: M.D.(x̄).
The plan: Read the table off the histogram, then compute.
- Σfx = 15 + 90 + 225 + 210 = 540, so x̄ = 540/24 = 22.5.
- |x − 22.5|: 17.5, 7.5, 2.5, 12.5; times f: 52.5, 45, 22.5, 75; sum 195.
- M.D.(x̄) = 195/24 = 8.125.
8.125.
Check: The tallest bar is over 20-30 and the mean 22.5 falls inside it, which matches the picture.
Worked example 30
Reverse: the classes 0-10, 10-20, 20-30, 30-40 have frequencies 5, x, 10, 5, and the median is 22. Find x, and then the mean deviation about the median.
What we know: A median of 22 lies in 20-30, so l = 20, f = 10, h = 10 and C = 5 + x. N = 20 + x.
What we need: x and M.D.(M).
The plan: Put the numbers into the median formula and solve.
- 22 = 20 + [((20 + x)/2 − (5 + x))/10] × 10, so 2 = 10 + x/2 − 5 − x = 5 − x/2.
- x/2 = 3, so x = 6, and N = 26.
- Check the median class: cumulative frequencies 5, 11, 21, 26, and N/2 = 13 is first reached in 20-30. Good.
- |mid-point − 22|: 17, 7, 3, 13; times f: 85, 42, 30, 65; sum 222. M.D.(M) = 222/26 ≈ 8.54.
x = 6, and the mean deviation about the median is about 8.54.
Check: With x = 6: median = 20 + [(13 − 11)/10] × 10 = 22, as given.
Worked example 31
Exam: find the mean deviation about the median for the classes 20-30, 30-40, 40-50, 50-60, 60-70 with frequencies 3, 5, 9, 5, 3.
What we know: N = 25, so N/2 = 12.5; cumulative frequencies 3, 8, 17, 22, 25.
What we need: M.D.(M).
The plan: Median class, median, then the distances from the mid-points 25, 35, 45, 55, 65.
- The median class is 40-50 (cumulative 17 is the first to reach 12.5): l = 40, C = 8, f = 9, h = 10.
- Median = 40 + [(12.5 − 8)/9] × 10 = 40 + 5 = 45.
- |x − 45|: 20, 10, 0, 10, 20; times f: 60, 50, 0, 50, 60; sum 220.
- M.D.(M) = 220/25 = 8.8.
8.8.
Check: The table is symmetric about 45, so the median and the mean are both 45, and the two mean deviations are equal.
A path that fails: taking the mid-point of the class with the largest frequency (45 here, by luck) as the median in general. That is a rough guess at the mode, not the median formula.
Common mistakes
Using the class limits instead of the mid-points in |xᵢ − M|.
Taking C as the cumulative frequency of the median class itself; C belongs to the class before it.
Forgetting to change the step-deviation mean back: x̄ = a + h × Σfd/N, not Σfd/N alone.
When you are stuck: a mean deviation from classes
Mid-points first: each class is represented by its mid-point.
The mean: directly, or by step-deviations with a in the middle and h the class width.
The median: cumulative frequencies, the median class, then l + [(N/2 − C)/f] × h.
Finish: Σf|x − a| ÷ N, with x the mid-points.
Your turn
Find the mean deviation about the mean for the classes 0-10, 10-20, 20-30 with frequencies 4, 2, 4.Tap to reveal
- Mid-points 5, 15, 25; Σfx = 20 + 30 + 100 = 150; x̄ = 15.
- Σf|x − 15| = 40 + 0 + 40 = 80; 80/10 = 8.
8.
Check: Eight of the ten observations sit in the outer classes, 10 away from the mean, and two at the mean: (8 × 10 + 2 × 0)/10 = 8.
Find the median of the classes 0-10, 10-20, 20-30 with frequencies 2, 6, 2, and the mean deviation about it.Tap to reveal
- N/2 = 5; the median class is 10-20 (cumulative 8): median = 10 + [(5 − 2)/6] × 10 = 15.
- Σf|x − 15| = 20 + 0 + 20 = 40; 40/10 = 4.
Median 15; mean deviation 4.
Check: With most observations in the middle class, the mean deviation is much smaller than in the previous question.
In one line
For classes, use the mid-points as the values: the mean (directly or by step-deviations) or the median (l + [(N/2 − C)/f] × h), then Σf|x − a| ÷ N.
Ex 13.1Exercise 13.1, Questions 1 to 6, solved in full
Every answer below agrees with the book's answer key. Questions 1 and 2 ask for the mean deviation about the mean, and Questions 3 and 4 about the median, of a list. Questions 5 and 6 ask for the mean deviation about the mean of a discrete frequency distribution.
1. Find the mean deviation about the mean for the data 4, 7, 8, 9, 10, 12, 13, 17.Tap to reveal
What we know: n = 8 observations; M.D.(x̄) = Σ|xᵢ − x̄|/n.
What we need: M.D.(x̄).
The plan: Mean, absolute deviations, their mean.
- Sum = 80, so x̄ = 80/8 = 10.
- |xᵢ − 10|: 6, 3, 2, 1, 0, 2, 3, 7.
- Their sum is 24.
- M.D.(x̄) = 24/8 = 3.
3.
Check: The signed deviations −6, −3, −2, −1, 0, 2, 3, 7 add up to 0, as they must about the mean. The four below the mean total 12, and so do the three above; the observation 10 sits at the mean.
2. Find the mean deviation about the mean for the data 38, 70, 48, 40, 42, 55, 63, 46, 54, 44.Tap to reveal
What we know: n = 10.
What we need: M.D.(x̄).
The plan: Mean, absolute deviations, their mean.
- Sum = 500, so x̄ = 50.
- |xᵢ − 50|: 12, 20, 2, 10, 8, 5, 13, 4, 4, 6.
- Their sum is 84.
- M.D.(x̄) = 84/10 = 8.4.
8.4.
Check: The observations above 50 (70, 55, 63, 54) are 20 + 5 + 13 + 4 = 42 away; those below are 12 + 2 + 10 + 8 + 4 + 6 = 42 away. Equal totals on both sides are the balance of the mean.
3. Find the mean deviation about the median for the data 13, 17, 16, 14, 11, 13, 10, 16, 11, 18, 12, 17.Tap to reveal
What we know: n = 12 (even): the median is the mean of the 6th and 7th observations in order.
What we need: M.D.(M).
The plan: Order the data, find M, then the absolute deviations.
- In order: 10, 11, 11, 12, 13, 13, 14, 16, 16, 17, 17, 18.
- The 6th is 13 and the 7th is 14, so M = (13 + 14)/2 = 13.5.
- |xᵢ − 13.5| for the ordered data: 3.5, 2.5, 2.5, 1.5, 0.5, 0.5, 0.5, 2.5, 2.5, 3.5, 3.5, 4.5; sum 28.
- M.D.(M) = 28/12 = 2.333... ≈ 2.33.
2.33 (to two decimal places).
Check: The six below the median total 3.5 + 2.5 + 2.5 + 1.5 + 0.5 + 0.5 = 11, and the six above total 0.5 + 2.5 + 2.5 + 3.5 + 3.5 + 4.5 = 17: about the median the totals need not balance.
4. Find the mean deviation about the median for the data 36, 72, 46, 42, 60, 45, 53, 46, 51, 49.Tap to reveal
What we know: n = 10 (even): the median is the mean of the 5th and 6th observations in order.
What we need: M.D.(M).
The plan: Order, median, distances.
- In order: 36, 42, 45, 46, 46, 49, 51, 53, 60, 72.
- M = (46 + 49)/2 = 47.5.
- |xᵢ − 47.5|: 11.5, 5.5, 2.5, 1.5, 1.5, 1.5, 3.5, 5.5, 12.5, 24.5; sum 70.
- M.D.(M) = 70/10 = 7.
7.
Check: The single large value 72 contributes 24.5 of the 70 on its own, about a third of the total.
5. Find the mean deviation about the mean for x: 5, 10, 15, 20, 25 with f: 7, 4, 6, 3, 5.Tap to reveal
What we know: A discrete frequency distribution; N = Σf = 25.
What we need: M.D.(x̄).
The plan: x̄ = Σfx/N, then Σf|x − x̄|/N.
- Σfx = 35 + 40 + 90 + 60 + 125 = 350, so x̄ = 350/25 = 14.
- |x − 14|: 9, 4, 1, 6, 11; times f: 63, 16, 6, 18, 55.
- Σf|x − 14| = 158.
- M.D.(x̄) = 158/25 = 6.32.
6.32.
Check: Dividing by the five distinct values instead of N = 25 would give 31.6, impossible for data that run only from 5 to 25.
6. Find the mean deviation about the mean for x: 10, 30, 50, 70, 90 with f: 4, 24, 28, 16, 8.Tap to reveal
What we know: N = 80.
What we need: M.D.(x̄).
The plan: The mean (here also by step-deviations), then the weighted distances.
- Σfx = 40 + 720 + 1400 + 1120 + 720 = 4000, so x̄ = 4000/80 = 50.
- |x − 50|: 40, 20, 0, 20, 40; times f: 160, 480, 0, 320, 320.
- Σf|x − 50| = 1280.
- M.D.(x̄) = 1280/80 = 16.
16.
Check: The mean 50 is one of the values, so its row adds nothing to the total distance.
Another way: Step-deviations with a = 50 and h = 20 give d = −2, −1, 0, 1, 2 and Σfd = −8 − 24 + 0 + 16 + 16 = 0, so x̄ = 50 + 0 = 50 at once.
When you are stuck: Exercise 13.1, Questions 1 to 6
About the mean: find x̄ first; the signed deviations must add up to 0.
About the median: order the data first; for an even count, average the middle two.
Frequency tables: multiply each distance by its frequency and divide by N = Σf.
In one line
Questions 1 to 6 use one recipe: find the centre, take the distances from it (counted f times in a table), and average them.
Ex 13.1Exercise 13.1, Questions 7 to 12, solved in full
Questions 7 and 8 ask for the mean deviation about the median of discrete frequency distributions; Questions 9 and 10 about the mean of continuous ones; Questions 11 and 12 about the median of continuous ones.
7. Find the mean deviation about the median for x: 5, 7, 9, 10, 12, 15 with f: 8, 6, 2, 2, 2, 6.Tap to reveal
What we know: N = 26 (even): the median is the mean of the 13th and 14th observations.
What we need: M.D.(M).
The plan: Cumulative frequencies, the median, then Σf|x − M|/N.
- Cumulative frequencies: 8, 14, 16, 18, 20, 26.
- The 9th to 14th observations are all 7, so the 13th and 14th are both 7, and M = 7.
- f|x − 7|: 16, 0, 4, 6, 10, 48; sum 84.
- M.D.(M) = 84/26 = 3.2307... ≈ 3.23.
3.23 (to two decimal places).
Check: The six observations at 15 are 8 away each and give 48 of the 84 on their own: the far end of a table weighs heavily.
8. Find the mean deviation about the median for x: 15, 21, 27, 30, 35 with f: 3, 5, 6, 7, 8.Tap to reveal
What we know: N = 29 (odd): the median is the ((29 + 1)/2)th = 15th observation.
What we need: M.D.(M).
The plan: Cumulative frequencies, the median, the weighted distances.
- Cumulative frequencies: 3, 8, 14, 21, 29.
- The 15th observation lies in the row of 30 (the cumulative frequency passes 14 and reaches 21 there), so M = 30.
- f|x − 30|: 45, 45, 18, 0, 40; sum 148.
- M.D.(M) = 148/29 = 5.1034... ≈ 5.1.
5.1 (to one decimal place, as in the key).
Check: 14 observations lie below 30 and 8 above it, with the 15th at 30 itself: so 30 is the middle one.
9. Find the mean deviation about the mean for the daily incomes, in rupees: 0-100: 4 persons, 100-200: 8, 200-300: 9, 300-400: 10, 400-500: 7, 500-600: 5, 600-700: 4, 700-800: 3.Tap to reveal
What we know: Mid-points 50, 150, ..., 750; N = 50. Step-deviations with a = 350 and h = 100.
What we need: M.D.(x̄).
The plan: The mean by step-deviations, then the weighted distances.
- d: −3, −2, −1, 0, 1, 2, 3, 4; fd: −12, −16, −9, 0, 7, 10, 12, 12; Σfd = 4.
- x̄ = 350 + (4/50) × 100 = 358.
- |x − 358|: 308, 208, 108, 8, 92, 192, 292, 392; times f: 1232, 1664, 972, 80, 644, 960, 1168, 1176.
- Σf|x − 358| = 7896, so M.D.(x̄) = 7896/50 = 157.92.
₹157.92.
Check: The mean ₹358 lies in the class 300-400, which has the most persons, and the mean deviation is a bit more than one and a half class widths, fitting incomes spread over eight classes.
10. Find the mean deviation about the mean for the heights, in cm: 95-105: 9 boys, 105-115: 13, 115-125: 26, 125-135: 30, 135-145: 12, 145-155: 10.Tap to reveal
What we know: Mid-points 100, 110, ..., 150; N = 100. Step-deviations with a = 130 and h = 10.
What we need: M.D.(x̄).
The plan: The mean, then the weighted distances.
- d: −3, −2, −1, 0, 1, 2; fd: −27, −26, −26, 0, 12, 20; Σfd = −47.
- x̄ = 130 + (−47/100) × 10 = 130 − 4.7 = 125.3.
- |x − 125.3|: 25.3, 15.3, 5.3, 4.7, 14.7, 24.7; times f: 227.7, 198.9, 137.8, 141, 176.4, 247.
- Σf|x − 125.3| = 1128.8, so M.D.(x̄) = 1128.8/100 = 11.288.
11.288 cm, which is 11.29 cm to two decimal places.
Check: The book's key prints 11.28: it cuts off the last digit instead of rounding. The exact value is 11.288.
11. Find the mean deviation about the median for the marks of girls: 0-10: 6, 10-20: 8, 20-30: 14, 30-40: 16, 40-50: 4, 50-60: 2.Tap to reveal
What we know: N = 50, so N/2 = 25.
What we need: M.D.(M).
The plan: Cumulative frequencies, the median class, the median formula, then the distances from the mid-points.
- Cumulative frequencies: 6, 14, 28, 44, 48, 50; the 25th observation is in 20-30, the median class.
- l = 20, C = 14, f = 14, h = 10: M = 20 + [(25 − 14)/14] × 10 = 20 + 110/14 = 195/7 ≈ 27.86.
- With mid-points 5, 15, 25, 35, 45, 55, f|x − M| ≈ 137.14, 102.86, 40.00, 114.29, 68.57, 54.29; the exact total is 3620/7 ≈ 517.14.
- M.D.(M) = 517.14/50 ≈ 10.34.
About 10.34.
Check: Keeping M as the fraction 195/7 until the end avoids rounding errors; rounding M to 27.86 too early changes the second decimal.
12. Calculate the mean deviation about the median age for 100 persons: 16-20: 5, 21-25: 6, 26-30: 12, 31-35: 14, 36-40: 26, 41-45: 12, 46-50: 16, 51-55: 9.Tap to reveal
What we know: The classes have gaps (20 to 21, and so on). The book's hint: subtract 0.5 from each lower limit and add 0.5 to each upper limit, giving 15.5-20.5, 20.5-25.5, ..., 50.5-55.5 (width 5).
What we need: M.D.(M).
The plan: Make the classes continuous, then find the median and the distances.
- Mid-points: 18, 23, 28, 33, 38, 43, 48, 53. Cumulative frequencies: 5, 11, 23, 37, 63, 75, 91, 100.
- N/2 = 50, so the median class is 35.5-40.5: l = 35.5, C = 37, f = 26, h = 5.
- M = 35.5 + [(50 − 37)/26] × 5 = 35.5 + 2.5 = 38.
- f|x − 38|: 100, 90, 120, 70, 0, 60, 160, 135; sum 735. M.D.(M) = 735/100 = 7.35.
7.35 years.
Check: The mid-points do not change when the classes are made continuous: (16 + 20)/2 = 18 = (15.5 + 20.5)/2. Only the limits l used in the median formula change.
A path that fails: using l = 36 for the median class 36-40 without the 0.5 correction. That gives a median of 38.5 and a wrong mean deviation.
When you are stuck: Exercise 13.1, Questions 7 to 12
Discrete tables: read the median from the cumulative frequencies.
Classes: use mid-points; step-deviations shorten the mean.
Gaps between classes: subtract 0.5 and add 0.5 before using the median formula.
Keep exact values (like 195/7) until the last step.
In one line
Questions 7 to 12 add frequencies and classes: count each distance f times, use mid-points for classes, and close any gaps between classes before finding the median.
13.4.3Limitations of mean deviation
Why we need it
The mean deviation is a fine first idea: it uses every observation and measures the average distance from the centre. But the book points out three weak spots. They explain why statisticians mostly use another measure, the standard deviation of section 13.5.
The three limitations (from the book)
- In a series where the variability is very high, the median is not a good representative of the data. So a mean deviation about such a median cannot be fully relied on.
- The sum of the distances from the mean (minus signs ignored) is more than the sum of the distances from the median. So the mean deviation about the mean is "not very scientific": it does not give the smallest total distance.
- The mean deviation is built from absolute values, and absolute values cannot be put through further algebra. This is the most serious limitation.
Each limitation is explained below in turn.
1. A median that represents nothing
Take the four observations 10, 20, 30 and 1000. The median is (20 + 30)/2 = 25 and the mean is 265. Neither number describes the data well: three observations are small and one is huge. A mean deviation about either centre mixes the tight group and the far-away value into one average, and hides what the data look like.
2. The median gives the smallest total distance
The book says the sum of the distances from the mean is more than the sum from the median. To be exact: it is never less, and it is usually more. The reason is a lovely fact: the total distance Σ|xᵢ − a| is smallest when a is the median.
Why. Picture yourself standing at a point a on the number line, with the observations as houses along a road. Take one step to the right. You move one step further from every house on your left, and one step nearer to every house on your right. If more houses are on your right, the total distance falls, so keep walking right. You should stop only where the houses on your two sides are equal in number: in the middle, at the median.
So the mean deviation about the mean can never be smaller than the mean deviation about the median. They are equal only in special cases, such as data that are symmetric about their centre.
3. Absolute values resist algebra
Algebra works smoothly with squares: (x − a)² can be expanded as x² − 2ax + a², and sums of such terms can be rearranged. An absolute value |x − a| has no such expansion; it changes its formula at x = a. Because of this, many questions about spread cannot be answered with mean deviations. For instance, the spread of two groups put together cannot be found from each group's size, mean and mean deviation. With squares it can, as the exam example below shows.
So we need another measure of dispersion, one built on squares instead of absolute values. The standard deviation is such a measure.
Examples
Worked example 32
Direct: for the data 1, 2, 3, 10, 15, find the total distance from the median and from the mean.
What we know: Median 3 (the middle of five ordered values); mean 31/5 = 6.2.
What we need: Σ|x − 3| and Σ|x − 6.2|.
The plan: Add the distances from each centre.
- From 3: 2 + 1 + 0 + 7 + 12 = 22.
- From 6.2: 5.2 + 4.2 + 3.2 + 3.8 + 8.8 = 25.2.
22 from the median and 25.2 from the mean: the median's total is smaller.
Check: So M.D.(M) = 22/5 = 4.4, less than M.D.(x̄) = 25.2/5 = 5.04.
Worked example 33
Story: five houses stand along a straight road in a village in Rajasthan, at 1, 2, 3, 10 and 15 km from the village well. Where should a bus stop be built on the road so that the total walking distance of the five families is as small as possible?
What we know: The total walking distance from a stop at a is Σ|xᵢ − a|.
What we need: The best a.
The plan: Use the fact above: the total is smallest at the median.
- The median of 1, 2, 3, 10, 15 is 3.
- Total walking from 3 km: 22 km.
- Try 2 km: 1 + 0 + 1 + 8 + 13 = 23. Try 4 km: 3 + 2 + 1 + 6 + 11 = 23. Both are worse.
At 3 km, the median house: a total of 22 km.
Check: At the mean, 6.2 km, the total would be 25.2 km. The two far houses pull the mean towards them, but they cannot pull the median.
Worked example 34
Picture: standing between two houses on the road, with two houses on your left and three on your right, should you step left or right to cut the total walking distance?
What we know: A step towards the side with more houses brings you nearer to more houses than it takes you away from.
What we need: The direction.
The plan: Count the houses on each side.
- A step right: 3 houses nearer, 2 further.
- The total falls by one step for each extra house on the right.
Step right, towards the side with more houses.
Check: Keep stepping until the counts on both sides are equal: that point is the median.
Worked example 35
Exam: group A is 0, 2, 2, 4 and group A′ is 1, 1, 3, 3; group B is 3, 3. Show that A and A′ have the same size, mean and mean deviation, but A with B and A′ with B have different mean deviations.
What we know: Mean deviations about the mean.
What we need: The two combined mean deviations.
The plan: Compute each group's summary, then each combined set.
- A and A′ both have 4 observations, mean 2 and mean deviation 1 (distances 2, 0, 0, 2 and 1, 1, 1, 1).
- Both combined sets have mean (8 + 6)/6 = 7/3.
- A with B: distances from 7/3 add up to (7 + 1 + 1 + 5 + 2 + 2)/3 = 6, so the mean deviation is 6/6 = 1.
- A′ with B: distances add up to (4 + 4 + 2 + 2 + 2 + 2)/3 = 16/3, so the mean deviation is (16/3)/6 = 8/9.
1 and 8/9: the same summaries of the parts give different mean deviations of the whole.
Check: Their variances do tell A and A′ apart: 2 for A and 1 for A′. With variances, the spread of a combined group can always be worked out from the parts, as section 13.5 and the Miscellaneous Examples show.
A path that fails: averaging the two groups' mean deviations to get the mean deviation of the whole. Mean deviations do not combine like that.
Common mistakes
Thinking the mean always gives the smallest total distance. It gives the smallest total of squared distances (section 13.5); the median gives the smallest total of plain distances.
Treating |x − a| like a bracket that can be expanded.
When you are stuck: the limits of mean deviation
Which centre makes Σ|x − a| smallest? The median.
Why move on? Absolute values block algebra; squares allow it.
Very uneven data (a few huge values): look at the data, not only at one summary number.
Your turn
For the data 2, 4, 9, compare the total distance from the median with the total distance from the mean.Tap to reveal
- Median 4: 2 + 0 + 5 = 7.
- Mean 5: 3 + 1 + 4 = 8.
7 from the median, 8 from the mean.
Check: The median's total is smaller, as the walking argument says.
In one line
Mean deviation has limits: the median may not represent the data, the mean's total distance is never the smallest, and absolute values block algebra; squares do not, which leads to the standard deviation.
13.5Variance: averaging the squares
Why we need it
The mean deviation used absolute values, so that the deviations would not cancel each other out. Absolute values work, but they block further algebra (section 13.4.3). The book now takes the other way out of the cancelling: it squares the deviations.
Squares of the deviations
A square is never negative: (−3)² = 9 and 3² = 9. So the squares of the deviations cannot cancel. Let x₁, x₂, ..., xₙ be n observations with mean x̄. Their sum of squares of deviations is
- If this sum is 0, then each xᵢ − x̄ is 0: every observation equals the mean, and there is no dispersion at all. Example: 7, 7, 7.
- If the sum is small, the observations are close to the mean: a low degree of dispersion.
- If the sum is large, there is a high degree of dispersion.
So is the sum of squares itself a good measure of spread? The book tests it with two sets of data.
Two sets with the same mean
Set A has the six observations 5, 15, 25, 35, 45, 55, with mean 30. Its sum of squares is
(5 − 30)² + (15 − 30)² + (25 − 30)² + (35 − 30)² + (45 − 30)² + (55 − 30)² = 625 + 225 + 25 + 25 + 225 + 625 = 1750.
Set B has the 31 observations 15, 16, 17, ..., 45, also with mean 30. Its deviations run from −15 up to 15, so its sum of squares is (−15)² + (−14)² + ... + (−1)² + 0² + 1² + ... + 14² + 15² = 2[1² + 2² + ... + 15²].
To add up the squares quickly, the book uses a formula: the sum of the squares of the first n natural numbers is n(n + 1)(2n + 1)/6. With n = 15: 2 × [15 × 16 × 31/6] = 5 × 16 × 31 = 2480.
Read it as "one squared plus two squared plus and so on up to n squared equals n times n plus 1 times 2n plus 1, over 6".
Check with n = 3: 1 + 4 + 9 = 14, and 3 × 4 × 7/6 = 14.
Why the formula is true. The book uses it without proof, so here is one. For any number k, (k + 1)³ − k³ = 3k² + 3k + 1 (expand (k + 1)³ = k³ + 3k² + 3k + 1). Write this for k = 1, 2, ..., n and add all n lines. On the left, almost everything cancels: 2³ − 1³ + 3³ − 2³ + ... + (n + 1)³ − n³ = (n + 1)³ − 1. On the right we get 3S + 3 × n(n + 1)/2 + n, where S is the sum of the squares. So 3S = (n + 1)³ − 1 − 3n(n + 1)/2 − n, which simplifies to n(n + 1)(2n + 1)/2. Dividing by 3 gives the formula.
You may wonder
Why squares, and not cubes or fourth powers? A cube keeps the sign, (−2)³ = −8, so cubes would cancel just as plain deviations do. Fourth powers would work, but they make far-off observations count enormously and their arithmetic is heavy. Squares are the simplest power that never goes negative, and they obey algebra smoothly. That is why the whole of later statistics is built on them.
The sum of squares misleads
Set A's sum of squares, 1750, is smaller than set B's, 2480. If the sum of squares were our measure, we would say set A is less spread out. But the opposite is true: set A's deviations run from −25 to 25, set B's only from −15 to 15, and the pictures agree. The sum grows just because set B has many more observations (31 against 6).
The cure is to take the mean of the squares: divide by the number of observations. For set A: 1750/6 = 291.67. For set B: 2480/31 = 80. Now set A shows more dispersion, matching the pictures.
The mean of the squares of the deviations from the mean is called the variance. It is written σ² (σ is the small Greek letter sigma; read σ² as "sigma squared"). Example: the variance of set A is 291.67 and of set B is 80.
Read it as "sigma squared equals one over n times the sum of the squares of x i minus x bar".
Square each deviation from the mean, add the squares, and divide by the number of observations.
Our drawing shows what a variance is. The data 2, 4, 9 have mean 5 and deviations −3, −1, 4. Each deviation, squared, is the area of a square: 9, 1 and 16, in all 26. The variance, 26/3 ≈ 8.67, is the average area. The side of a square of that average area, about 2.94, is the standard deviation of section 13.5.1.
Examples of every kind
Worked example 36
Direct: find the variance of 2, 4, 6, 8.
What we know: σ² = Σ(x − x̄)²/n.
What we need: σ².
The plan: Mean, squared deviations, their mean.
- x̄ = 20/4 = 5.
- Deviations −3, −1, 1, 3; squares 9, 1, 1, 9; sum 20.
- σ² = 20/4 = 5.
5.
Check: The squares are never negative, so the variance can only be 0 or more; it is 0 only when all the observations are equal.
Worked example 37
Story: the maximum temperatures in Chennai on five days are 30, 32, 31, 33 and 29 °C. Find their variance.
What we know: n = 5.
What we need: σ², with its unit.
The plan: Mean, squared deviations, mean of the squares.
- x̄ = 155/5 = 31 °C.
- Deviations −1, 1, 0, 2, −2; squares 1, 1, 0, 4, 4; sum 10.
- σ² = 10/5 = 2.
2 (°C)²: two square degrees.
Check: A variance is measured in the square of the data's unit, which is awkward to picture. Section 13.5.1 fixes this by taking the square root.
Worked example 38
Picture: in our drawing, read the areas of the three squares and find the variance of 2, 4, 9.
What we know: Each square's area is a squared deviation from the mean 5.
What we need: σ².
The plan: Add the areas and divide by 3.
- Areas: 9, 1 and 16; total 26.
- σ² = 26/3 ≈ 8.67.
About 8.67.
Check: The single big square, 16, from the far observation 9, is more than half the total: squaring makes far observations count heavily.
Worked example 39
Reverse: the observations 4, 8 and x have mean 6. Find x and the variance.
What we know: Mean × number = total.
What we need: x and σ².
The plan: Find x from the total, then the variance.
- Total 6 × 3 = 18, so x = 18 − 4 − 8 = 6.
- Deviations −2, 2, 0; squares 4, 4, 0; sum 8.
- σ² = 8/3 ≈ 2.67.
x = 6 and σ² = 8/3.
Check: The observation at the mean adds nothing to the sum of squares.
Worked example 40
Exam: set A is 10, 30 and set B is 11, 12, 13, ..., 29. Compare their spreads first by the sum of squares and then by the variance.
What we know: Both means are 20; set B has 19 observations.
What we need: Both measures for both sets.
The plan: Use the formula for the sum of the first n squares for set B.
- Set A: squares 100 + 100 = 200; variance 200/2 = 100.
- Set B: deviations −9 to 9, so the sum is 2[1² + ... + 9²] = 2 × 9 × 10 × 19/6 = 570; variance 570/19 = 30.
- By the sum, set B looks more spread out (570 > 200); by the variance, set A is (100 > 30).
The variance says set A is more spread out, which is right; the sum of squares wrongly says set B.
Check: Set A's two values are 10 from the mean; set B's values are at most 9 from it and mostly much less.
A path that fails: comparing sums of squares of sets with different numbers of observations, the mistake that sets A and B of the book expose.
Common mistakes
Squaring the observations instead of their deviations from the mean.
Forgetting the unit: a variance of marks is in square marks.
Dividing by n − 1: some calculators and later courses do this, but this book divides by n.
When you are stuck: a variance
Find the mean first, then each deviation x − x̄.
Square each deviation (a negative becomes positive).
Average the squares: add them and divide by n.
For long runs of whole numbers, use 1² + ... + n² = n(n + 1)(2n + 1)/6.
Your turn
Find the variance of 1, 2, 3, 4, 5.Tap to reveal
- Mean 3; deviations −2, −1, 0, 1, 2; squares 4, 1, 0, 1, 4; sum 10.
- σ² = 10/5 = 2.
2.
Check: Exercise 13.2, Question 2 gives a formula for the first n natural numbers; with n = 5 it must give 2.
In one line
Squares of the deviations never cancel; their sum grows with the number of observations, so we average them: the variance σ² = Σ(xᵢ − x̄)²/n.
13.5.1Standard deviation
Why we need it
The variance has one drawback: its unit. The observations xᵢ and their mean x̄ are in some unit, such as marks, metres or rupees. The variance adds up squares of differences, so it is in square marks, square metres or square rupees. A spread of "2 square degrees" is hard to picture.
The fix is to take the square root. The square root of a square unit is the plain unit again. So the proper measure of dispersion about the mean is the positive square root of the variance, called the standard deviation.
The standard deviation of a set of observations is the positive square root of their variance. It is written σ (read "sigma"). Example: a variance of 33 gives σ = √33 ≈ 5.74.
Read it as "sigma equals the square root of one over n times the sum of the squares of x i minus x bar".
Find the variance first, then its square root. The book calls this formula (1).
The standard deviation is always 0 or positive. It is 0 only when all the observations are equal, and it grows as the observations spread further from the mean. It has the same unit as the data, so it can be compared with the data directly.
Finding a square root by hand
Standard deviations need square roots, and a calculator is not always at hand. A simple method: guess, divide, and average.
Example: √33. Guess 6, since 6² = 36 is close to 33. Divide: 33 ÷ 6 = 5.5. The true root lies between 5.5 and 6, so average them: (5.5 + 6)/2 = 5.75. Repeat: 33 ÷ 5.75 ≈ 5.739, and the average of 5.739 and 5.75 is about 5.745. So √33 ≈ 5.74.
Example: √201. Guess 14, since 14² = 196. Divide: 201 ÷ 14 ≈ 14.357. Average: (14 + 14.357)/2 ≈ 14.18. So √201 ≈ 14.18, the value in Example 10.
Why it works: if your guess is too big, the quotient is too small, and the true root lies between them; their average is a better guess each time.
The book's example
Example 8 (from the book)
Find the variance of the data 6, 8, 10, 12, 14, 16, 18, 20, 22, 24.
What we know: n = 10. The book finds the mean by the step-deviation method, with the assumed mean 14 and the common factor 2.
What we need: The variance (and then the standard deviation).
The plan: Make Table 13.7: dᵢ = (xᵢ − 14)/2, the deviations from the mean, and their squares.
- dᵢ = −4, −3, −2, −1, 0, 1, 2, 3, 4, 5; Σdᵢ = 5.
- Mean x̄ = assumed mean + (Σdᵢ/n) × h = 14 + (5/10) × 2 = 15.
- Deviations from the mean: −9, −7, −5, −3, −1, 1, 3, 5, 7, 9; squares 81, 49, 25, 9, 1, 1, 9, 25, 49, 81.
- Σ(xᵢ − x̄)² = 330, so the variance σ² = 330/10 = 33.
- The standard deviation is σ = √33 ≈ 5.74.
Variance 33; standard deviation about 5.74.
Check: 5.74² = 32.95 and 5.75² = 33.06, so √33 lies between them, nearer 5.74. Directly, the sum of the data is 150 and 150/10 = 15, the same mean.
| xᵢ | dᵢ = (xᵢ − 14)/2 | xᵢ − x̄ | (xᵢ − x̄)² |
|---|---|---|---|
| 6 | −4 | −9 | 81 |
| 8 | −3 | −7 | 49 |
| 10 | −2 | −5 | 25 |
| 12 | −1 | −3 | 9 |
| 14 | 0 | −1 | 1 |
| 16 | 1 | 1 | 1 |
| 18 | 2 | 3 | 9 |
| 20 | 3 | 5 | 25 |
| 22 | 4 | 7 | 49 |
| 24 | 5 | 9 | 81 |
| 5 | 330 |
This is the book's Table 13.7.
Examples of every kind
Worked example 41
Direct: find the standard deviation of 2, 4, 6, 8.
What we know: The variance is 5 (found in section 13.5).
What we need: σ.
The plan: Take the square root.
- σ = √5.
- 2.24² = 5.0176 and 2.23² = 4.9729, so √5 ≈ 2.24.
About 2.24.
Check: Every observation is 1 or 3 from the mean 5, and σ ≈ 2.24 lies between those distances, as an average of that kind should.
Worked example 42
Story: the temperatures 30, 32, 31, 33, 29 °C in Chennai had variance 2 (°C)². Find their standard deviation.
What we know: σ = √variance.
What we need: σ in °C.
The plan: Square root.
- σ = √2 ≈ 1.41.
About 1.41 °C.
Check: The unit is back to °C: a typical day is about 1.4 degrees from the mean of 31 °C, which matches the data.
Worked example 43
Picture: in our drawing of squares (section 13.5), what is the standard deviation of 2, 4, 9?
What we know: The variance 26/3 ≈ 8.67 is the average area of the squares.
What we need: σ.
The plan: Find the side of a square with that area.
- σ = √(26/3) ≈ √8.67 ≈ 2.94.
- That is the side of the outlined average square.
About 2.94.
Check: The three sides are 3, 1 and 4; the average square's side, 2.94, lies between the smallest and the largest.
Worked example 44
Reverse: the three observations 10 − k, 10, 10 + k (with k > 0) have standard deviation √6. Find k.
What we know: The mean is 10, and the deviations are −k, 0, k.
What we need: k.
The plan: Write the variance in terms of k and solve.
- σ² = (k² + 0 + k²)/3 = 2k²/3.
- σ = √6, so σ² = 6: 2k²/3 = 6, k² = 9.
- k = 3 (k is positive).
k = 3: the observations are 7, 10, 13.
Check: Squared deviations 9, 0, 9; sum 18; variance 6; σ = √6.
Worked example 45
Exam: show that two observations p and q have standard deviation |q − p|/2. Use it for 12 and 20.
What we know: The mean of p and q is (p + q)/2.
What we need: A general formula, then a value.
The plan: Find the deviations, square, average, and take the root.
- Deviations: p − (p + q)/2 = (p − q)/2 and q − (p + q)/2 = (q − p)/2.
- Both squares equal (q − p)²/4, so the variance is [(q − p)²/4 + (q − p)²/4]/2 = (q − p)²/4.
- σ = √[(q − p)²/4] = |q − p|/2.
- For 12 and 20: σ = 8/2 = 4.
σ = |q − p|/2; for 12 and 20 it is 4.
Check: Each of 12 and 20 is exactly 4 from their mean 16: with two observations, the standard deviation is just that distance.
A path that fails: writing σ = (q − p)/2 without the bars. If q − p is negative, that gives a negative σ, which is impossible.
Common mistakes
Stopping at the variance when the question asks for the standard deviation, or the other way round.
Taking the square root of each squared deviation before adding: √9 + √1 + √16 = 8 is not √26.
Giving a negative standard deviation: σ is never negative.
When you are stuck: a standard deviation
Variance first: mean, deviations, squares, their mean.
Then the square root of the variance, and nothing else.
Estimate the root between two squares you know: 5.7² < 33 < 5.8².
Check the unit: σ has the same unit as the data.
Your turn
Find the variance and the standard deviation of 1, 3, 5, 7, 9.Tap to reveal
- Mean 5; deviations −4, −2, 0, 2, 4; squares 16, 4, 0, 4, 16; sum 40.
- σ² = 40/5 = 8 and σ = √8 ≈ 2.83.
Variance 8; standard deviation about 2.83.
Check: 2.83² ≈ 8.01, close to 8.
In one line
The standard deviation σ is the square root of the variance: it measures the spread about the mean in the data's own unit, and it is never negative.
13.5.2Standard deviation of a discrete frequency distribution
Why we need it
As with the mean deviation, data often come as a frequency table, each value xᵢ with its frequency fᵢ. Each value then contributes its squared deviation fᵢ times.
Let the discrete frequency distribution be x: x₁, x₂, x₃, ..., xₙ with f: f₁, f₂, f₃, ..., fₙ. Then:
Read it as "sigma equals the square root of one over N times the sum of f i times x i minus x bar, squared".
Without the square root, the same expression is the variance σ². The book calls this formula (2).
The work is a table with one row for each value, as for the mean deviation, but with squared deviations in place of absolute ones.
The book's example
Example 9 (from the book)
Find the variance and standard deviation for x: 4, 8, 11, 17, 20, 24, 32 with f: 3, 5, 9, 5, 4, 3, 1.
What we know: Formula (2); N = Σf = 30.
What we need: σ² and σ.
The plan: Make Table 13.8 with the columns fᵢxᵢ, xᵢ − x̄, (xᵢ − x̄)² and fᵢ(xᵢ − x̄)².
- Σfᵢxᵢ = 12 + 40 + 99 + 85 + 80 + 72 + 32 = 420, so x̄ = 420/30 = 14.
- xᵢ − 14: −10, −6, −3, 3, 6, 10, 18; squares 100, 36, 9, 9, 36, 100, 324.
- Times the frequencies: 300, 180, 81, 45, 144, 300, 324; sum 1374.
- Variance σ² = 1374/30 = 45.8.
- Standard deviation σ = √45.8 ≈ 6.77.
Variance 45.8; standard deviation about 6.77.
Check: 6.77² ≈ 45.83, close to 45.8. The single observation 32, 18 from the mean, adds 324 to the sum on its own: squares make far values count heavily.
| xᵢ | fᵢ | fᵢxᵢ | xᵢ − x̄ | (xᵢ − x̄)² | fᵢ(xᵢ − x̄)² |
|---|---|---|---|---|---|
| 4 | 3 | 12 | −10 | 100 | 300 |
| 8 | 5 | 40 | −6 | 36 | 180 |
| 11 | 9 | 99 | −3 | 9 | 81 |
| 17 | 5 | 85 | 3 | 9 | 45 |
| 20 | 4 | 80 | 6 | 36 | 144 |
| 24 | 3 | 72 | 10 | 100 | 300 |
| 32 | 1 | 32 | 18 | 324 | 324 |
| Total | 30 | 420 | 1374 |
This is the book's Table 13.8.
Examples of every kind
Worked example 46
Direct: find the standard deviation for x: 1, 2, 3 with f: 1, 2, 1.
What we know: N = 4.
What we need: σ.
The plan: Mean, weighted squared deviations, variance, root.
- x̄ = (1 + 4 + 3)/4 = 2.
- f(x − 2)²: 1, 0, 1; sum 2.
- σ² = 2/4 = 0.5, so σ = √0.5 ≈ 0.71.
About 0.71.
Check: Half the observations are at the mean and half are 1 away, so σ must be between 0 and 1.
Worked example 47
Story: in a housing society in Nagpur, the numbers of children in 26 families are: 0 children: 2 families, 1: 6, 2: 10, 3: 6, 4: 2. Find the standard deviation of the number of children.
What we know: N = 26.
What we need: σ.
The plan: Formula (2).
- Σfx = 0 + 6 + 20 + 18 + 8 = 52, so x̄ = 2.
- f(x − 2)²: 8, 6, 0, 6, 8; sum 28.
- σ² = 28/26 ≈ 1.077, so σ ≈ 1.04.
About 1.04 children.
Check: The table is symmetric about 2, so the mean is 2. Most families are within one child of the mean, matching σ ≈ 1.
Worked example 48
Picture: a dot plot has 1 dot above 2, 3 dots above 4 and 1 dot above 6. Find the variance and the standard deviation.
What we know: The stacks give x: 2, 4, 6 with f: 1, 3, 1.
What we need: σ² and σ.
The plan: Read the table, then formula (2).
- x̄ = (2 + 12 + 6)/5 = 4.
- f(x − 4)²: 4, 0, 4; sum 8.
- σ² = 8/5 = 1.6, so σ ≈ 1.26.
Variance 1.6; standard deviation about 1.26.
Check: Moving the three middle dots away from 4 would raise both numbers; piling more dots at 4 would lower them.
Worked example 49
Reverse: x: 5, 10, 15 have frequencies k, 6, k, and the variance is 10. Find k.
What we know: By symmetry the mean is 10 for every k; N = 2k + 6.
What we need: k.
The plan: Write the variance in terms of k and solve.
- Σf(x − 10)² = 25k + 0 + 25k = 50k.
- σ² = 50k/(2k + 6) = 10, so 50k = 20k + 60.
- 30k = 60, k = 2.
k = 2.
Check: With f: 2, 6, 2: N = 10 and Σf(x − 10)² = 100, so σ² = 10.
Worked example 50
Exam: two classes of 20 students each rate a film from 1 to 5 stars. Class A gives 1 to 5 stars with frequencies 2, 3, 10, 3, 2; class B with frequencies 6, 2, 4, 2, 6. Which class is more consistent in its ratings?
What we know: Both tables are symmetric about 3, so both means are 3.
What we need: Both standard deviations.
The plan: Formula (2) for each; the smaller σ is more consistent.
- Class A: f(x − 3)²: 8, 3, 0, 3, 8; sum 22; σ² = 22/20 = 1.1; σ ≈ 1.05.
- Class B: f(x − 3)²: 24, 2, 0, 2, 24; sum 52; σ² = 52/20 = 2.6; σ ≈ 1.61.
Class A (σ ≈ 1.05) is more consistent than class B (σ ≈ 1.61).
Check: Same mean rating, 3 stars, but class B's ratings pile up at the extremes 1 and 5.
A path that fails: comparing the means. Both are 3, so the means cannot tell the classes apart; only the spread can.
Common mistakes
Forgetting to multiply each squared deviation by its frequency.
Squaring fᵢ(xᵢ − x̄) instead of multiplying fᵢ by (xᵢ − x̄)²: the frequency is not squared.
Dividing by the number of distinct values instead of N.
When you are stuck: a standard deviation from a frequency table
Columns: x, f, fx, x − x̄, (x − x̄)², f(x − x̄)².
The mean is Σfx/N; the variance is the last column's total ÷ N.
Then the square root for σ.
Your turn
Find the variance and the standard deviation for x: 2, 3, 4 with f: 3, 4, 3.Tap to reveal
- N = 10; x̄ = (6 + 12 + 12)/10 = 3.
- f(x − 3)²: 3, 0, 3; sum 6; σ² = 0.6; σ ≈ 0.77.
Variance 0.6; standard deviation about 0.77.
Check: 0.77² ≈ 0.59, close to 0.6.
In one line
For a frequency table each squared deviation counts f times: σ² = Σf(x − x̄)²/N, and σ is its square root.
13.5.3Standard deviation of a continuous frequency distribution
Why we need it
For classes, the separate observations are unknown, so once more each class is replaced by its mid-point. The continuous frequency distribution then becomes a discrete one, and the method of section 13.5.2 applies unchanged.
If a frequency distribution has n classes, each with mid-point xᵢ and frequency fᵢ, the standard deviation is
Read it as "sigma equals the square root of one over N times the sum of f i times x i minus x bar, squared".
The same formula (2) as before, with xᵢ now the mid-points of the classes.
The book's example
Example 10 (from the book)
Calculate the mean, variance and standard deviation for the classes 30-40, 40-50, 50-60, 60-70, 70-80, 80-90, 90-100 with frequencies 3, 7, 12, 15, 8, 3, 2.
What we know: Mid-points 35, 45, ..., 95; N = 50.
What we need: x̄, σ² and σ.
The plan: Make Table 13.9 with fᵢxᵢ, (xᵢ − x̄)² and fᵢ(xᵢ − x̄)².
- Σfᵢxᵢ = 105 + 315 + 660 + 975 + 600 + 255 + 190 = 3100, so x̄ = 3100/50 = 62.
- (xᵢ − 62)²: 729, 289, 49, 9, 169, 529, 1089.
- Times the frequencies: 2187, 2023, 588, 135, 1352, 1587, 2178; sum 10,050.
- σ² = 10,050/50 = 201.
- σ = √201 ≈ 14.18.
Mean 62, variance 201, standard deviation about 14.18.
Check: 14.18² ≈ 201.07. The class 60-70 holds the mean and has the largest frequency, 15, and its squared deviation is only 9.
| Class | fᵢ | Mid-point xᵢ | fᵢxᵢ | (xᵢ − x̄)² | fᵢ(xᵢ − x̄)² |
|---|---|---|---|---|---|
| 30-40 | 3 | 35 | 105 | 729 | 2187 |
| 40-50 | 7 | 45 | 315 | 289 | 2023 |
| 50-60 | 12 | 55 | 660 | 49 | 588 |
| 60-70 | 15 | 65 | 975 | 9 | 135 |
| 70-80 | 8 | 75 | 600 | 169 | 1352 |
| 80-90 | 3 | 85 | 255 | 529 | 1587 |
| 90-100 | 2 | 95 | 190 | 1089 | 2178 |
| Total | 50 | 3100 | 10,050 |
This is the book's Table 13.9.
Another formula for the standard deviation
Squaring every deviation from the mean is slow when the mean is not a whole number. The book rearranges the variance into a form that needs only Σfᵢxᵢ and Σfᵢxᵢ², step by step:
- Start from σ² = (1/N)Σfᵢ(xᵢ − x̄)².
- Expand the square: (xᵢ − x̄)² = xᵢ² + x̄² − 2x̄xᵢ.
- So σ² = (1/N)[Σfᵢxᵢ² + x̄²Σfᵢ − 2x̄Σxᵢfᵢ], taking the constant x̄ outside each sum.
- But Σfᵢ = N, and Σxᵢfᵢ = Nx̄ (because x̄ = Σxᵢfᵢ/N).
- So σ² = (1/N)[Σfᵢxᵢ² + x̄²N − 2x̄ · Nx̄] = (1/N)Σfᵢxᵢ² + x̄² − 2x̄² = (1/N)Σfᵢxᵢ² − x̄².
- Put x̄ = Σfᵢxᵢ/N and bring everything over N²: σ² = (1/N²)[NΣfᵢxᵢ² − (Σfᵢxᵢ)²].
Taking the square root gives the book's formula (3):
Read it as "sigma equals one over N times the square root of N times the sum of f i x i squared, minus the square of the sum of f i x i".
In words, before the square root: the variance is the mean of the squares minus the square of the mean.
Memory aid
"The mean of the squares minus the square of the mean": σ² = (Σfx²)/N − x̄². The first is never smaller than the second, since a variance is never negative.
Check it on Example 10: Σfᵢxᵢ² for the mid-points is 2,02,250, and 2,02,250/50 − 62² = 4045 − 3844 = 201, the variance found above.
The book's second example
Example 11 (from the book)
Find the standard deviation for x: 3, 8, 13, 18, 23 with f: 7, 10, 15, 10, 6.
What we know: Formula (3) needs only N, Σfᵢxᵢ and Σfᵢxᵢ².
What we need: σ.
The plan: Make Table 13.10 with the columns fᵢxᵢ, xᵢ² and fᵢxᵢ².
- N = 48, Σfᵢxᵢ = 21 + 80 + 195 + 180 + 138 = 614, and Σfᵢxᵢ² = 63 + 640 + 2535 + 3240 + 3174 = 9652.
- NΣfᵢxᵢ² = 48 × 9652 = 4,63,296 and (Σfᵢxᵢ)² = 614² = 3,76,996.
- Their difference is 86,300, and √86,300 ≈ 293.77.
- σ = 293.77/48 ≈ 6.12.
About 6.12.
Check: The mean is 614/48 ≈ 12.79, near the middle value 13 with the largest frequency, and the data run from 3 to 23. A spread of about 6 either way fits. The book uses formula (3) on this discrete table: the formula holds for any frequency distribution.
| xᵢ | fᵢ | fᵢxᵢ | xᵢ² | fᵢxᵢ² |
|---|---|---|---|---|
| 3 | 7 | 21 | 9 | 63 |
| 8 | 10 | 80 | 64 | 640 |
| 13 | 15 | 195 | 169 | 2535 |
| 18 | 10 | 180 | 324 | 3240 |
| 23 | 6 | 138 | 529 | 3174 |
| Total | 48 | 614 | 9652 |
This is the book's Table 13.10.
Examples of every kind
Worked example 51
Direct: use formula (3) to find the standard deviation of x: 1, 2, 3, 4, each with frequency 1.
What we know: N = 4, Σfx = 10, Σfx² = 1 + 4 + 9 + 16 = 30.
What we need: σ.
The plan: Mean of the squares minus the square of the mean.
- σ² = 30/4 − (10/4)² = 7.5 − 6.25 = 1.25.
- σ = √1.25 ≈ 1.12.
About 1.12.
Check: The long way: mean 2.5, squared deviations 2.25, 0.25, 0.25, 2.25, sum 5, and 5/4 = 1.25. The same.
Worked example 52
Story: in a T20 innings at the Wankhede Stadium, Mumbai, the runs per over fall in the classes 0-4: 4 overs, 4-8: 8, 8-12: 6, 12-16: 2. Find the mean and the standard deviation of the runs per over.
What we know: Mid-points 2, 6, 10, 14; N = 20.
What we need: x̄ and σ.
The plan: Formula (3).
- Σfx = 8 + 48 + 60 + 28 = 144, so x̄ = 7.2 runs.
- Σfx² = 4 × 4 + 8 × 36 + 6 × 100 + 2 × 196 = 16 + 288 + 600 + 392 = 1296.
- σ² = 1296/20 − 7.2² = 64.8 − 51.84 = 12.96.
- σ = √12.96 = 3.6.
Mean 7.2 runs an over; standard deviation 3.6 runs.
Check: 3.6² = 12.96 exactly. Most overs fall within about 3.6 runs of 7.2, that is, between about 4 and 11 runs.
Worked example 53
Picture: a histogram has bars of heights 1, 2 and 1 over the classes 0-2, 2-4 and 4-6. Find the standard deviation.
What we know: Mid-points 1, 3, 5 with frequencies 1, 2, 1; N = 4.
What we need: σ.
The plan: Formula (3).
- Σfx = 1 + 6 + 5 = 12 and Σfx² = 1 + 18 + 25 = 44.
- σ² = 44/4 − (12/4)² = 11 − 9 = 2.
- σ = √2 ≈ 1.41.
About 1.41.
Check: The histogram is symmetric about 3, the mean; the outer bars are 2 from it and the middle one 0.
Worked example 54
Reverse: a frequency distribution has N = 10, Σfx = 50 and standard deviation 2. Find Σfx².
What we know: σ² = Σfx²/N − (Σfx/N)².
What we need: Σfx².
The plan: Put the numbers in and solve.
- 4 = Σfx²/10 − 5².
- Σfx²/10 = 29, so Σfx² = 290.
Σfx² = 290.
Check: Going backwards like this is how the Miscellaneous Examples correct a wrong observation: from σ and x̄ they recover Σx².
Worked example 55
Exam: check that formula (3) gives the same variance as formula (2) for the data of Example 9 (x: 4, 8, 11, 17, 20, 24, 32 with f: 3, 5, 9, 5, 4, 3, 1).
What we know: Example 9 found σ² = 45.8 with x̄ = 14 and N = 30.
What we need: Σfx², then σ² by the mean of the squares.
The plan: Compute the fx² column.
- fx²: 48, 320, 1089, 1445, 1600, 1728, 1024; sum 7254.
- σ² = 7254/30 − 14² = 241.8 − 196 = 45.8.
45.8 both ways.
Check: Formula (3) never needs the deviations, which helps most when the mean is not a whole number.
A path that fails: squaring the sum, (Σfx)² = 420², in place of Σfx². The two are different: the square of a sum is not the sum of the squares.
Common mistakes
Confusing Σfx² (multiply each f by x², then add) with (Σfx)² (add first, then square).
Forgetting to subtract x̄²: (Σfx²)/N alone is not the variance.
A negative variance means an arithmetic slip: recheck the columns.
When you are stuck: formula (3)
Three totals: N = Σf, Σfx and Σfx².
Variance = Σfx²/N − (Σfx/N)², or [NΣfx² − (Σfx)²]/N².
For classes, x is the mid-point of each class.
Your turn
Find the standard deviation for the classes 5-15, 15-25, 25-35 with frequencies 2, 6, 2, by formula (3).Tap to reveal
- Mid-points 10, 20, 30; N = 10; Σfx = 200; Σfx² = 200 + 2400 + 1800 = 4400.
- σ² = 4400/10 − 20² = 440 − 400 = 40, so σ = √40 ≈ 6.32.
About 6.32.
Check: The long way: Σf(x − 20)² = 200 + 0 + 200 = 400, and 400/10 = 40.
In one line
For classes use the mid-points; and any variance can be found as the mean of the squares minus the square of the mean: σ² = Σfx²/N − x̄².
13.5.4A shortcut for the variance and the standard deviation
Why we need it
When the values xᵢ, or the mid-points of the classes, are large, squaring them is tedious and slow. The step-deviation idea of section 13.4.2 works for the variance too: shift the origin to an assumed mean and shrink the scale, do the small sums, and change back at the end.
The new variable
Let the assumed mean be A, and let the scale be reduced to 1/h times, where h is the width of the class intervals. The step-deviations, or new values, are
Read it as "y i equals x i minus A, over h". Every xᵢ is then A plus h steps of size yᵢ.
What happens to the mean (from the book)
- We know that x̄ = Σfᵢxᵢ/N ... (2).
- Put xᵢ = A + hyᵢ from (1): x̄ = (1/N)Σfᵢ(A + hyᵢ) = (1/N)[AΣfᵢ + hΣfᵢyᵢ].
- Since Σfᵢ = N, this is x̄ = A + h × (Σfᵢyᵢ/N).
- Σfᵢyᵢ/N is the mean ȳ of the new values (read ȳ as "y bar"). So x̄ = A + hȳ ... (3).
What happens to the variance (from the book)
- The variance of x is σₓ² = (1/N)Σfᵢ(xᵢ − x̄)².
- Using (1) and (3): xᵢ − x̄ = (A + hyᵢ) − (A + hȳ) = h(yᵢ − ȳ). The assumed mean A cancels.
- So σₓ² = (1/N)Σfᵢh²(yᵢ − ȳ)² = h² × (1/N)Σfᵢ(yᵢ − ȳ)² = h² × the variance of y.
- That is, σₓ² = h²σᵧ², or σₓ = hσᵧ ... (4).
In words: shifting the data by A does not change the spread at all, and shrinking the scale by h shrinks the standard deviation by h. Figs 13.3 and 13.4 in section 13.4.2 show these two moves on the number line.
Finally, apply formula (3) of section 13.5.3 to the y values and multiply by h:
Read it as "sigma x equals h over N times the square root of N times the sum of f i y i squared, minus the square of the sum of f i y i".
The numbers under the root are small, because the yᵢ are small whole numbers such as −3 to 3.
The book's example
The book introduces this example as "let us solve Example 11 by the short-cut method", but the data are those of Example 10 (the classes 30-40 to 90-100), and so are the answers. It is Example 10 done the short way.
Example 12 (from the book)
Calculate the mean, variance and standard deviation for the classes 30-40, 40-50, 50-60, 60-70, 70-80, 80-90, 90-100 with frequencies 3, 7, 12, 15, 8, 3, 2, by the shortcut method.
What we know: A = 65, h = 10, N = 50.
What we need: x̄, σ² and σ.
The plan: Make Table 13.11 with yᵢ = (xᵢ − 65)/10, yᵢ², fᵢyᵢ and fᵢyᵢ².
- yᵢ: −3, −2, −1, 0, 1, 2, 3; fᵢyᵢ: −9, −14, −12, 0, 8, 6, 6; Σfᵢyᵢ = −15.
- fᵢyᵢ²: 27, 28, 12, 0, 8, 12, 18; Σfᵢyᵢ² = 105.
- x̄ = A + (Σfᵢyᵢ/N) × h = 65 + (−15/50) × 10 = 65 − 3 = 62.
- σ² = (h²/N²)[NΣfᵢyᵢ² − (Σfᵢyᵢ)²] = (100/2500)[50 × 105 − 225] = (1/25)(5250 − 225) = 201.
- σ = √201 ≈ 14.18.
Mean 62, variance 201, standard deviation about 14.18: the same as Example 10.
Check: The largest product here is 50 × 105 = 5250; the long way in Example 10 needed squares like 33² = 1089 for every class.
| Class | fᵢ | xᵢ | yᵢ = (xᵢ − 65)/10 | yᵢ² | fᵢyᵢ | fᵢyᵢ² |
|---|---|---|---|---|---|---|
| 30-40 | 3 | 35 | −3 | 9 | −9 | 27 |
| 40-50 | 7 | 45 | −2 | 4 | −14 | 28 |
| 50-60 | 12 | 55 | −1 | 1 | −12 | 12 |
| 60-70 | 15 | 65 | 0 | 0 | 0 | 0 |
| 70-80 | 8 | 75 | 1 | 1 | 8 | 8 |
| 80-90 | 3 | 85 | 2 | 4 | 6 | 12 |
| 90-100 | 2 | 95 | 3 | 9 | 6 | 18 |
| Total | 50 | −15 | 105 |
This is the book's Table 13.11.
Examples of every kind
Worked example 56
Direct: by the shortcut, find the mean and the standard deviation of x: 100, 110, 120, 130 with f: 2, 3, 3, 2.
What we know: A = 110, h = 10; N = 10.
What we need: x̄ and σ.
The plan: y = (x − 110)/10, then formulas (3) and (5).
- y: −1, 0, 1, 2; Σfy = −2 + 0 + 3 + 4 = 5; Σfy² = 2 + 0 + 3 + 8 = 13.
- x̄ = 110 + (5/10) × 10 = 115.
- σ² = (100/100)[10 × 13 − 25] = 105, so σ = √105 ≈ 10.25.
Mean 115; standard deviation about 10.25.
Check: Directly: the deviations from 115 are −15, −5, 5, 15, and Σf(x − 115)² = 450 + 75 + 75 + 450 = 1050, so σ² = 105.
Worked example 57
Story: the monthly electricity bills of 40 homes in Lucknow fall in the classes ₹500-700: 4 homes, ₹700-900: 10, ₹900-1100: 14, ₹1100-1300: 8, ₹1300-1500: 4. Find the mean bill and the standard deviation.
What we know: Mid-points 600, 800, 1000, 1200, 1400. Take A = 1000 and h = 200; N = 40.
What we need: x̄ and σ.
The plan: The shortcut.
- y: −2, −1, 0, 1, 2; Σfy = −8 − 10 + 0 + 8 + 8 = −2; Σfy² = 16 + 10 + 0 + 8 + 16 = 50.
- x̄ = 1000 + (−2/40) × 200 = 1000 − 10 = 990.
- σ² = (40,000/1600)[40 × 50 − 4] = 25 × 1996 = 49,900, so σ ≈ 223.38.
Mean bill ₹990; standard deviation about ₹223.38.
Check: The y values never go beyond 2, so every product is tiny, while the bills themselves run to four digits.
Worked example 58
Picture: the points 20, 30, 40 on a number line are shifted so that 30 sits at 0, and the scale is shrunk 10 times. What becomes of their standard deviation?
What we know: The new values are y = (x − 30)/10: −1, 0, 1.
What we need: σᵧ and σₓ.
The plan: Find σᵧ, then use σₓ = hσᵧ.
- σᵧ² = (1 + 0 + 1)/3 = 2/3, so σᵧ ≈ 0.82.
- σₓ = 10 × σᵧ ≈ 8.16.
The shift changes nothing; the shrinking divides σ by 10: σᵧ ≈ 0.82 and σₓ ≈ 8.16.
Check: Directly: deviations −10, 0, 10, σₓ² = 200/3, σₓ ≈ 8.16. The picture of the three points keeps its shape; only the ruler changes.
Worked example 59
Reverse: the step-deviations y = (x − 50)/5 of some data have mean 2 and standard deviation 3. Find the mean and standard deviation of x.
What we know: x̄ = A + hȳ and σₓ = hσᵧ, with A = 50 and h = 5.
What we need: x̄ and σₓ.
The plan: Use (3) and (4).
- x̄ = 50 + 5 × 2 = 60.
- σₓ = 5 × 3 = 15.
Mean 60; standard deviation 15.
Check: The shift A = 50 enters the mean but not the standard deviation.
Worked example 60
Exam: show with the data 2, 4, 6 that adding 100 to every observation leaves the variance unchanged, while multiplying every observation by 10 multiplies the variance by 100.
What we know: Formula (4): σₓ² = h²σᵧ².
What we need: Three variances.
The plan: Compute each.
- 2, 4, 6: mean 4, squared deviations 4, 0, 4, variance 8/3.
- 102, 104, 106: mean 104, the same squared deviations, variance 8/3.
- 20, 40, 60: mean 40, squared deviations 400, 0, 400, variance 800/3 = 100 × 8/3.
Variances 8/3, 8/3 and 800/3: a shift changes nothing, and multiplying by 10 multiplies the variance by 10² = 100.
Check: So the standard deviation is multiplied by 10: √(800/3) ≈ 16.33 = 10 × 1.633. The Miscellaneous Examples prove both facts in general.
A path that fails: thinking that multiplying the data by 10 multiplies the variance by 10. The variance is built from squares, so it is multiplied by 10².
Worked example 61
One table, three ways: find the variance of x: 10, 20, 30, 40, 50 with f: 1, 2, 4, 2, 1 by formula (2), by formula (3) and by the shortcut.
What we know: N = 10; the table is symmetric about 30.
What we need: σ² three times.
The plan: Use each formula in turn and compare.
- Formula (2): the mean is 30, and Σf(x − 30)² = 400 + 200 + 0 + 200 + 400 = 1200, so σ² = 1200/10 = 120.
- Formula (3): Σfx = 300 and Σfx² = 100 + 800 + 3600 + 3200 + 2500 = 10,200, so σ² = 10,200/10 − 30² = 1020 − 900 = 120.
- Shortcut with A = 30, h = 10: y = −2, −1, 0, 1, 2; Σfy = 0 and Σfy² = 4 + 2 + 0 + 2 + 4 = 12, so σ² = (100/100)[10 × 12 − 0] = 120.
σ² = 120 all three ways (σ ≈ 10.95).
Check: Formula (2) is quickest when the mean is a whole number; formula (3) when it is not; the shortcut when the values are large. Choosing well saves time, but the answer never changes.
Common mistakes
Forgetting to multiply by h at the end: σₓ = hσᵧ, not σᵧ.
Forgetting A in the mean (x̄ = A + hȳ) while wrongly adding it to the standard deviation, which A never changes.
Using h instead of h² for the variance: σₓ² = h²σᵧ².
When you are stuck: the shortcut method
Choose A near the middle (a mid-point with a large frequency) and h the class width.
Columns: y, y², fy, fy²; total Σfy and Σfy².
Mean: A + h × Σfy/N. Variance: (h²/N²)[NΣfy² − (Σfy)²].
Check: the mean must lie inside the data's range; the variance must not be negative.
Your turn
By the shortcut with A = 65 and h = 10, find the mean and the standard deviation for the mid-points 45, 55, 65, 75 with frequencies 1, 3, 4, 2.Tap to reveal
- y: −2, −1, 0, 1; fy: −2, −3, 0, 2, so Σfy = −3; fy²: 4, 3, 0, 2, so Σfy² = 9.
- x̄ = 65 + (−3/10) × 10 = 62; σ² = (100/100)[10 × 9 − 9] = 81, so σ = 9.
Mean 62; standard deviation 9.
Check: Directly: the deviations from 62 are −17, −7, 3, 13, and Σf(x − 62)² = 289 + 147 + 36 + 338 = 810, so σ² = 81.
In one line
With yᵢ = (xᵢ − A)/h: x̄ = A + hȳ and σₓ = hσᵧ; a shift never changes the spread, and a change of scale multiplies σ by h.
Ex 13.2Exercise 13.2, Questions 1 to 5, solved in full
Every answer below agrees with the book's answer key. In Questions 1 to 5 the task is to find the mean and the variance.
1. Find the mean and variance of 6, 7, 10, 12, 13, 4, 8, 12.Tap to reveal
What we know: n = 8; σ² = Σ(x − x̄)²/n.
What we need: x̄ and σ².
The plan: Mean, deviations, squares, their mean.
- Sum 72, so x̄ = 72/8 = 9.
- Deviations: −3, −2, 1, 3, 4, −5, −1, 3.
- Squares: 9, 4, 1, 9, 16, 25, 1, 9; sum 74.
- σ² = 74/8 = 9.25.
Mean 9; variance 9.25.
Check: These are the data of Example 1, whose mean deviation about the mean was 2.75. The standard deviation √9.25 ≈ 3.04 is a little larger than the mean deviation, as it always is (or equal).
2. Find the mean and variance of the first n natural numbers.Tap to reveal
What we know: 1 + 2 + ... + n = n(n + 1)/2 and 1² + 2² + ... + n² = n(n + 1)(2n + 1)/6.
What we need: x̄ and σ² in terms of n.
The plan: Use σ² = (mean of the squares) − (square of the mean).
- x̄ = [n(n + 1)/2]/n = (n + 1)/2.
- Mean of the squares: [n(n + 1)(2n + 1)/6]/n = (n + 1)(2n + 1)/6.
- σ² = (n + 1)(2n + 1)/6 − (n + 1)²/4 = (n + 1)[2(2n + 1) − 3(n + 1)]/12.
- The bracket is 4n + 2 − 3n − 3 = n − 1, so σ² = (n + 1)(n − 1)/12 = (n² − 1)/12.
Mean (n + 1)/2; variance (n² − 1)/12.
Check: With n = 5: mean 3 and variance (25 − 1)/12 = 2, the values found for 1, 2, 3, 4, 5 in section 13.5. With n = 1 the variance is 0: one number has no spread.
3. Find the mean and variance of the first 10 multiples of 3.Tap to reveal
What we know: The data are 3, 6, ..., 30, that is, 3 times 1, 2, ..., 10.
What we need: x̄ and σ².
The plan: Use Question 2 with n = 10, then the effect of multiplying by 3.
- For 1, 2, ..., 10: mean 11/2 = 5.5 and variance (100 − 1)/12 = 8.25.
- Multiplying every observation by 3 multiplies the mean by 3 and the variance by 3² = 9 (section 13.5.4).
- Mean 3 × 5.5 = 16.5; variance 9 × 8.25 = 74.25.
Mean 16.5; variance 74.25.
Check: The variance is multiplied by 9, not by 3: it is built from squares.
Another way: Directly: the deviations from 16.5 are ±1.5, ±4.5, ±7.5, ±10.5, ±13.5, whose squares add up to 2 × (2.25 + 20.25 + 56.25 + 110.25 + 182.25) = 742.5, and 742.5/10 = 74.25.
4. Find the mean and variance for x: 6, 10, 14, 18, 24, 28, 30 with f: 2, 4, 7, 12, 8, 4, 3.Tap to reveal
What we know: N = 40; formula (2).
What we need: x̄ and σ².
The plan: Σfx for the mean, then Σf(x − x̄)².
- Σfx = 12 + 40 + 98 + 216 + 192 + 112 + 90 = 760, so x̄ = 760/40 = 19.
- (x − 19)²: 169, 81, 25, 1, 25, 81, 121; times f: 338, 324, 175, 12, 200, 324, 363.
- Σf(x − 19)² = 1736, so σ² = 1736/40 = 43.4.
Mean 19; variance 43.4.
Check: The mean 19 lies between the values 18 and 24, near 18, which has the largest frequency, 12.
5. Find the mean and variance for x: 92, 93, 97, 98, 102, 104, 109 with f: 3, 2, 3, 2, 6, 3, 3.Tap to reveal
What we know: N = 22. The values cluster round 100, so take deviations from 100.
What we need: x̄ and σ².
The plan: The shortcut with A = 100 and h = 1.
- y = x − 100: −8, −7, −3, −2, 2, 4, 9; Σfy = −24 − 14 − 9 − 4 + 12 + 12 + 27 = 0, so x̄ = 100.
- fy²: 192, 98, 27, 8, 24, 48, 243; Σfy² = 640.
- σ² = 640/22 − 0² = 29.0909... ≈ 29.09.
Mean 100; variance about 29.09.
Check: Σfx = 2200 directly, and 2200/22 = 100. Working with the small deviations from 100 avoids squaring numbers like 109.
When you are stuck: Exercise 13.2, Questions 1 to 5
Lists: mean, deviations, squares, their mean.
Formulas in n: use the sums n(n + 1)/2 and n(n + 1)(2n + 1)/6.
Values near a round number: take deviations from it; the variance is unchanged by the shift.
In one line
Questions 1 to 5 find means and variances: directly, by the mean of the squares minus the square of the mean, or by a shift that leaves the variance unchanged.
Ex 13.2Exercise 13.2, Questions 6 to 10, solved in full
Questions 6 to 10 use the shortcut method of section 13.5.4: an assumed mean A near the middle, the step h, and the small numbers y = (x − A)/h.
6. Find the mean and standard deviation, using the shortcut method, for x: 60, 61, 62, 63, 64, 65, 66, 67, 68 with f: 2, 1, 12, 29, 25, 12, 10, 4, 5.Tap to reveal
What we know: N = 100. Take A = 64 and h = 1, so y = x − 64.
What we need: x̄ and σ.
The plan: Columns fy and fy², then formulas (3) and (5).
- y: −4 to 4; fy: −8, −3, −24, −29, 0, 12, 20, 12, 20; Σfy = 0.
- fy²: 32, 9, 48, 29, 0, 12, 40, 36, 80; Σfy² = 286.
- x̄ = 64 + (0/100) × 1 = 64.
- σ² = (1/100²)[100 × 286 − 0²] = 2.86, so σ = √2.86 ≈ 1.69.
Mean 64; standard deviation about 1.69.
Check: Most of the frequency (29 + 25 = 54) sits at 63 and 64, so a spread of under 2 either way is reasonable.
7. Find the mean and variance for the classes 0-30, 30-60, 60-90, 90-120, 120-150, 150-180, 180-210 with frequencies 2, 3, 5, 10, 3, 5, 2.Tap to reveal
What we know: Mid-points 15, 45, ..., 195; N = 30. Take A = 105 and h = 30.
What we need: x̄ and σ².
The plan: The shortcut.
- y: −3 to 3; fy: −6, −6, −5, 0, 3, 10, 6; Σfy = 2.
- fy²: 18, 12, 5, 0, 3, 20, 18; Σfy² = 76.
- x̄ = 105 + (2/30) × 30 = 107.
- σ² = (30²/30²)[30 × 76 − 2²] = 2280 − 4 = 2276.
Mean 107; variance 2276.
Check: The standard deviation is √2276 ≈ 47.7, about one and a half class widths, fitting classes that run from 0 to 210.
8. Find the mean and variance for the classes 0-10, 10-20, 20-30, 30-40, 40-50 with frequencies 5, 8, 15, 16, 6.Tap to reveal
What we know: Mid-points 5, 15, 25, 35, 45; N = 50. Take A = 25 and h = 10.
What we need: x̄ and σ².
The plan: The shortcut.
- y: −2, −1, 0, 1, 2; fy: −10, −8, 0, 16, 12; Σfy = 10.
- fy²: 20, 8, 0, 16, 24; Σfy² = 68.
- x̄ = 25 + (10/50) × 10 = 27.
- σ² = (100/2500)[50 × 68 − 100] = (1/25)(3300) = 132.
Mean 27; variance 132.
Check: σ = √132 ≈ 11.5, a little more than one class width, for data spread over five classes.
9. Find the mean, variance and standard deviation, using the shortcut method, for the heights of children: 70-75: 3, 75-80: 4, 80-85: 7, 85-90: 7, 90-95: 15, 95-100: 9, 100-105: 6, 105-110: 6, 110-115: 3 (heights in cm).Tap to reveal
What we know: Mid-points 72.5, 77.5, ..., 112.5; N = 60. Take A = 92.5 and h = 5.
What we need: x̄, σ² and σ.
The plan: The shortcut.
- y: −4 to 4; fy: −12, −12, −14, −7, 0, 9, 12, 18, 12; Σfy = 6.
- fy²: 48, 36, 28, 7, 0, 9, 24, 54, 48; Σfy² = 254.
- x̄ = 92.5 + (6/60) × 5 = 93.
- σ² = (25/3600)[60 × 254 − 36] = 25 × 15,204/3600 = 105.583... ≈ 105.58.
- σ = √105.583... ≈ 10.2754 ≈ 10.28.
Mean 93 cm; variance about 105.58; standard deviation about 10.28 cm.
Check: The book's key prints 10.27: it cuts off the digits after the second decimal place instead of rounding. The exact value is 10.2754..., which rounds to 10.28.
10. The diameters of circles (in mm) drawn in a design are: 33-36: 15 circles, 37-40: 17, 41-44: 21, 45-48: 22, 49-52: 25. Calculate the standard deviation and the mean diameter.Tap to reveal
What we know: The book's hint: make the classes continuous first, as 32.5-36.5, 36.5-40.5, 40.5-44.5, 44.5-48.5, 48.5-52.5. Mid-points 34.5, 38.5, 42.5, 46.5, 50.5; h = 4; N = 100.
What we need: σ and x̄.
The plan: The shortcut with A = 42.5.
- y: −2, −1, 0, 1, 2; fy: −30, −17, 0, 22, 50; Σfy = 25.
- fy²: 60, 17, 0, 22, 100; Σfy² = 199.
- x̄ = 42.5 + (25/100) × 4 = 43.5.
- σ² = (16/10,000)[100 × 199 − 625] = 16 × 19,275/10,000 = 30.84, so σ = √30.84 ≈ 5.55.
Standard deviation about 5.55 mm; mean diameter 43.5 mm.
Check: The mid-points are the same before and after the classes are made continuous: (33 + 36)/2 = 34.5 = (32.5 + 36.5)/2. Only the class width (4) matters for h.
When you are stuck: Exercise 13.2, Questions 6 to 10
Choose A at a middle mid-point and h equal to the gap between mid-points.
Totals: Σfy and Σfy²; then x̄ = A + hΣfy/N and σ² = (h²/N²)[NΣfy² − (Σfy)²].
Classes with gaps (like 33-36, 37-40): close the gaps with 0.5 on each side; h is then 4.
Round at the end, and round, do not cut off the digits.
In one line
The shortcut turns large mid-points into small step-deviations y; the mean shifts back by A and stretches by h, and the standard deviation only stretches by h.
MiscMiscellaneous examples
These four examples from the book look at how the variance behaves: when every observation is scaled or shifted, and when some observations are missing or wrong. They use one idea again and again: the mean and the variance together fix Σx and Σx², the sum of the observations and the sum of their squares.
The book's examples
Example 13 (from the book)
The variance of 20 observations is 5. If each observation is multiplied by 2, find the new variance of the resulting observations.
What we know: σ² = (1/n)Σ(xᵢ − x̄)² with n = 20, so 5 = (1/20)Σ(xᵢ − x̄)².
What we need: The new variance.
The plan: Call the new observations yᵢ = 2xᵢ, and compare the two sums of squares.
- From the given variance, Σ(xᵢ − x̄)² = 5 × 20 = 100.
- The new observations are yᵢ = 2xᵢ, so their mean is ȳ = (1/20)Σ2xᵢ = 2x̄.
- Each new deviation is yᵢ − ȳ = 2xᵢ − 2x̄ = 2(xᵢ − x̄), and its square is 4(xᵢ − x̄)².
- So Σ(yᵢ − ȳ)² = 4 × 100 = 400.
- The new variance is 400/20 = 20 = 2² × 5.
20.
Check: The book's Note: if each observation is multiplied by a constant k, the variance becomes k² times the original. Here k = 2 and 2² × 5 = 20.
Example 14 (from the book)
The mean of 5 observations is 4.4 and their variance is 8.24. If three of the observations are 1, 2 and 6, find the other two.
What we know: Let the other two be x and y; the series is 1, 2, 6, x, y.
What we need: x and y.
The plan: The mean gives x + y; the variance gives x² + y²; together they give x and y.
- Mean: 4.4 = (1 + 2 + 6 + x + y)/5, so 22 = 9 + x + y, and x + y = 13 ... (1).
- Variance: 8.24 = (1/5)[(3.4)² + (2.4)² + (1.6)² + x² + y² − 2 × 4.4(x + y) + 2 × (4.4)²]: the first three terms are the squared deviations of 1, 2 and 6 from 4.4, and the rest is (x − 4.4)² + (y − 4.4)² expanded.
- So 41.20 = 11.56 + 5.76 + 2.56 + x² + y² − 8.8 × 13 + 38.72, which gives x² + y² = 97 ... (2).
- From (1), (x + y)² = 169, that is, x² + y² + 2xy = 169 ... (3). From (2) and (3): 2xy = 72 ... (4).
- Subtract (4) from (2): x² + y² − 2xy = 25, that is, (x − y)² = 25, so x − y = ±5 ... (5).
- From (1) and (5): x = 9, y = 4 (when x − y = 5) or x = 4, y = 9 (when x − y = −5).
The other two observations are 4 and 9.
Check: The series 1, 2, 6, 4, 9 has sum 22 (mean 4.4) and squared deviations 11.56, 5.76, 2.56, 0.16, 21.16, with sum 41.2, so the variance is 41.2/5 = 8.24.
Another way: Use the mean of the squares: σ² = Σx²/n − x̄², so Σx² = 5(8.24 + 4.4²) = 5 × 27.6 = 138. The known squares are 1 + 4 + 36 = 41, so x² + y² = 97 at once, and the rest is the same.
Example 15 (from the book)
If each of the observations x₁, x₂, ..., xₙ is increased by a, where a is a negative or positive number, show that the variance remains unchanged.
What we know: Let x̄ be the mean; the variance is σ₁² = (1/n)Σ(xᵢ − x̄)².
What we need: A proof that the new variance equals σ₁².
The plan: Find the new mean, then the new deviations.
- The new observations are yᵢ = xᵢ + a ... (1).
- Their mean is ȳ = (1/n)Σ(xᵢ + a) = (1/n)Σxᵢ + na/n = x̄ + a ... (2).
- So each new deviation is yᵢ − ȳ = (xᵢ + a) − (x̄ + a) = xᵢ − x̄, using (1) and (2).
- The new variance is σ₂² = (1/n)Σ(yᵢ − ȳ)² = (1/n)Σ(xᵢ − x̄)² = σ₁².
The variance of the new observations is the same as that of the original ones.
Check: The book's Note: adding (or subtracting) a number to (or from) each observation of a group does not affect the variance. Shifting all the dots along the number line moves the centre with them, so no distance from the centre changes.
Example 16 (from the book)
The mean and standard deviation of 100 observations were calculated as 40 and 5.1 by a student who took 50 instead of 40 for one observation by mistake. What are the correct mean and standard deviation?
What we know: n = 100; incorrect x̄ = 40; incorrect σ = 5.1.
What we need: The correct x̄ and σ.
The plan: Recover the incorrect Σx and Σx², correct them, and recompute.
- From x̄ = Σx/n: incorrect Σx = 100 × 40 = 4000.
- Correct Σx = 4000 − 50 + 40 = 3990, so the correct mean is 3990/100 = 39.9.
- From σ² = Σx²/n − x̄²: 5.1² = 26.01 = (incorrect Σx²)/100 − 40², so incorrect Σx² = 100(26.01 + 1600) = 1,62,601.
- Correct Σx² = 1,62,601 − 50² + 40² = 1,62,601 − 2500 + 1600 = 1,61,701.
- Correct σ² = 1,61,701/100 − 39.9² = 1617.01 − 1592.01 = 25, so the correct σ = 5.
Correct mean 39.9; correct standard deviation 5.
Check: Replacing 50 by 40 lowers the sum by 10, so the mean drops by 10/100 = 0.1. The spread shrinks a little too, because the wrong value 50 lay far from the mean.
A path that fails: subtracting 10 from the standard deviation, or from the variance. Only the sums Σx and Σx² can be corrected directly; the mean and σ are then found again.
More examples
Worked example 62
Direct: observations x have standard deviation 2. What is the standard deviation of the observations 3x + 5?
What we know: Multiplying by 3 multiplies σ by 3 (Example 13); adding 5 changes nothing (Example 15).
What we need: The new σ.
The plan: Apply the two facts.
- Multiplying by 3: σ becomes 3 × 2 = 6 (the variance becomes 3² × 4 = 36).
- Adding 5: σ stays 6.
6.
Check: The mean, by contrast, does change with both: it becomes 3x̄ + 5.
Worked example 63
Story: a weighing machine at a ration shop in Patna reads 0.2 kg too heavy for every bag. How does this affect the mean and the standard deviation of the weights it records?
What we know: Every recorded weight is the true weight + 0.2.
What we need: The effect on x̄ and σ.
The plan: A shift moves the mean but not the spread.
- Mean: true mean + 0.2 kg.
- Standard deviation: unchanged, by Example 15.
The mean is 0.2 kg too high; the standard deviation is correct.
Check: For bags of 1.2, 1.5 and 0.9 kg, the readings 1.4, 1.7 and 1.1 kg have the same spread.
Worked example 64
Exam: the mean and standard deviation of 10 observations are 12 and 2. One observation, 15, was copied wrongly and should be 21. Find the correct mean and standard deviation.
What we know: n = 10.
What we need: The correct x̄ and σ.
The plan: Correct Σx and Σx², as in Example 16.
- Incorrect Σx = 120; correct Σx = 120 − 15 + 21 = 126; correct mean 12.6.
- Incorrect Σx² = 10(2² + 12²) = 1480; correct Σx² = 1480 − 225 + 441 = 1696.
- Correct σ² = 1696/10 − 12.6² = 169.6 − 158.76 = 10.84, so σ ≈ 3.29.
Correct mean 12.6; correct standard deviation about 3.29.
Check: The corrected value 21 lies further from the mean than 15 did, so the spread grows: σ rises from 2 to about 3.29.
When you are stuck: a miscellaneous example
Scaled data: × k multiplies the mean by k and the variance by k².
Shifted data: + a adds a to the mean and leaves the variance alone.
Missing or wrong observations: turn the mean and σ into Σx = n x̄ and Σx² = n(σ² + x̄²), correct them, and turn them back.
Your turn
The mean and variance of 4 observations are 5 and 2.5. Three of them are 3, 5 and 7. Find the fourth.Tap to reveal
- Σx = 20, so the fourth is 20 − 15 = 5.
- Check with the variance: squared deviations 4, 0, 4, 0; sum 8; 8/4 = 2, not 2.5.
No such fourth observation: the mean forces it to be 5, but then the variance is 2, not 2.5.
Check: A dead end: the mean alone fixes the missing value, so the variance can only confirm or contradict it. Here it contradicts, so the data are impossible.
In one line
Scaling by k multiplies the variance by k², shifting leaves it unchanged, and any missing or wrong observation is handled through Σx = n x̄ and Σx² = n(σ² + x̄²).
Misc ExMiscellaneous Exercise on Chapter 13, solved in full
Every answer below agrees with the book's answer key, except that where the key cuts off digits, the rounded value is given too. Each question turns the given mean and variance into Σx and Σx², the tool of the Miscellaneous Examples.
1. The mean and variance of eight observations are 9 and 9.25. If six of the observations are 6, 7, 10, 12, 12 and 13, find the remaining two.Tap to reveal
What we know: n = 8; Σx = n x̄ and Σx² = n(σ² + x̄²).
What we need: The two missing observations x and y.
The plan: Find x + y and x² + y², then x and y.
- Σx = 8 × 9 = 72; the six known add up to 60, so x + y = 12.
- Σx² = 8(9.25 + 81) = 722; the known squares add up to 36 + 49 + 100 + 144 + 144 + 169 = 642, so x² + y² = 80.
- (x + y)² = 144 = x² + y² + 2xy, so 2xy = 64.
- (x − y)² = x² + y² − 2xy = 16, so x − y = ±4. With x + y = 12: 8 and 4.
4 and 8.
Check: 6, 7, 10, 12, 12, 13, 4, 8 add up to 72 (mean 9), and their squared deviations 9, 4, 1, 9, 9, 16, 25, 1 add up to 74, so the variance is 74/8 = 9.25.
2. The mean and variance of 7 observations are 8 and 16. If five of the observations are 2, 4, 10, 12, 14, find the remaining two.Tap to reveal
What we know: n = 7.
What we need: The two missing observations.
The plan: As in Question 1.
- Σx = 7 × 8 = 56; the five known add up to 42, so x + y = 14.
- Σx² = 7(16 + 64) = 560; the known squares add up to 4 + 16 + 100 + 144 + 196 = 460, so x² + y² = 100.
- 2xy = 14² − 100 = 96, so (x − y)² = 100 − 96 = 4 and x − y = ±2.
- With x + y = 14: 8 and 6.
6 and 8.
Check: 2, 4, 10, 12, 14, 6, 8 add up to 56 (mean 8), and their squared deviations 36, 16, 4, 16, 36, 4, 0 add up to 112, so the variance is 112/7 = 16.
3. The mean and standard deviation of six observations are 8 and 4. If each observation is multiplied by 3, find the new mean and the new standard deviation.Tap to reveal
What we know: Multiplying every observation by k multiplies the mean by k and the variance by k² (Example 13), so the standard deviation by k (for k > 0).
What we need: The new x̄ and σ.
The plan: Apply the rule with k = 3.
- New mean: 3 × 8 = 24.
- New variance: 3² × 4² = 144, so the new standard deviation is √144 = 12 = 3 × 4.
New mean 24; new standard deviation 12.
Check: Every deviation from the mean is multiplied by 3, so every distance, and with them the standard deviation, is three times as large.
4. Given that x̄ is the mean and σ² is the variance of n observations x₁, x₂, ..., xₙ, prove that the mean and variance of the observations ax₁, ax₂, ax₃, ..., axₙ are ax̄ and a²σ², where a ≠ 0.Tap to reveal
What we know: x̄ = (1/n)Σxᵢ and σ² = (1/n)Σ(xᵢ − x̄)².
What we need: The mean and variance of yᵢ = axᵢ.
The plan: Work out each from its definition.
- Mean: ȳ = (1/n)Σaxᵢ = a × (1/n)Σxᵢ = ax̄.
- Each deviation: yᵢ − ȳ = axᵢ − ax̄ = a(xᵢ − x̄).
- Its square: a²(xᵢ − x̄)².
- Variance: (1/n)Σa²(xᵢ − x̄)² = a² × (1/n)Σ(xᵢ − x̄)² = a²σ².
The mean is ax̄ and the variance is a²σ², as required.
Check: With a = −1 the data are reflected in 0: the mean changes sign, but the variance, (−1)²σ² = σ², does not. A reflection does not change the spread.
5. The mean and standard deviation of 20 observations are found to be 10 and 2. On rechecking, it was found that an observation 8 was incorrect. Calculate the correct mean and standard deviation (i) if the wrong item is omitted; (ii) if it is replaced by 12.Tap to reveal
What we know: n = 20; Σx = 200 and Σx² = 20(2² + 10²) = 2080.
What we need: The corrected x̄ and σ in each case.
The plan: Correct Σx and Σx², then recompute.
- (i) Omit 8: n = 19, Σx = 192 and Σx² = 2080 − 64 = 2016.
- Mean = 192/19 ≈ 10.105 ≈ 10.1. Variance = 2016/19 − (192/19)² = (19 × 2016 − 192²)/361 = (38,304 − 36,864)/361 = 1440/361 ≈ 3.989, so σ ≈ 1.9972.
- (ii) Replace 8 by 12: n = 20, Σx = 204 and Σx² = 2016 + 144 = 2160.
- Mean = 204/20 = 10.2. Variance = 2160/20 − 10.2² = 108 − 104.04 = 3.96, so σ ≈ 1.98997.
(i) mean 10.1, standard deviation about 2.00 (1.997); (ii) mean 10.2, standard deviation about 1.99 (1.98997).
Check: The key prints 1.99 and 1.98: it cuts off the digits after the second decimal place instead of rounding. The exact values 1.9972... and 1.98997... round to 2.00 and 1.99.
6. The mean and standard deviation of a group of 100 observations were found to be 20 and 3. Later it was found that three observations were incorrect: they were recorded as 21, 21 and 18. Find the mean and standard deviation if the incorrect observations are omitted.Tap to reveal
What we know: n = 100; Σx = 2000 and Σx² = 100(3² + 20²) = 40,900.
What we need: The mean and σ of the remaining 97.
The plan: Remove the three from both sums, then recompute.
- Σx = 2000 − (21 + 21 + 18) = 1940, so the mean is 1940/97 = 20.
- Σx² = 40,900 − (441 + 441 + 324) = 40,900 − 1206 = 39,694.
- Variance = 39,694/97 − 20² ≈ 409.2165 − 400 = 9.2165.
- σ = √9.2165 ≈ 3.036.
Mean 20; standard deviation about 3.036.
Check: The three removed values average exactly 20, so the mean does not move. They were all close to the mean, so removing them leaves the others a little more spread out on average: σ rises slightly from 3 to 3.036.
When you are stuck: the Miscellaneous Exercise
Turn the summary into sums: Σx = n x̄ and Σx² = n(σ² + x̄²).
Missing values: x + y and x² + y² give 2xy and then (x − y)².
Wrong values: subtract the wrong one and add the right one in both sums; change n if a value is dropped.
Scaling: × a gives mean ax̄ and variance a²σ².
In one line
The Miscellaneous Exercise runs on two sums: from x̄ and σ recover Σx = n x̄ and Σx² = n(σ² + x̄²), change them as the question says, and turn them back into a mean and a standard deviation.
PracticeMixed practice
These problems mix the ideas of the whole chapter. Three of them have no answer of the kind first expected, and two show a path that fails; that is part of the practice. Try each one before you open it.
A. For some data, a student finds Σ(xᵢ − x̄)² = −20. Find the variance.Tap to reveal
What we know: Each (xᵢ − x̄)² is a square, so it is 0 or more.
The plan: Look at the given number before computing.
- A sum of squares can never be negative.
- So Σ(xᵢ − x̄)² = −20 is impossible: there is an arithmetic slip somewhere.
No variance can be found: the data as given are impossible (a dead end).
Check: A variance, and every sum of squared deviations, is 0 or more; it is 0 only when every observation equals the mean.
B. Which batsman is more consistent: A, with scores 50, 60, 40, 70, 30, or B, with 48, 52, 50, 49, 51?Tap to reveal
What we know: Consistency means a small spread; both means are 50.
The plan: Compare the standard deviations.
- A: squared deviations 0, 100, 100, 400, 400; sum 1000; variance 200; σ ≈ 14.14.
- B: squared deviations 4, 4, 0, 1, 1; sum 10; variance 2; σ ≈ 1.41.
Batsman B (σ ≈ 1.41) is far more consistent than A (σ ≈ 14.14).
Check: Same average, as with the book's two batsmen in section 13.1; the standard deviation tells them apart.
C. The observations 2, 4, x, y have mean 5 and variance 5. Find x and y.Tap to reveal
What we know: Σx = n x̄ and Σx² = n(σ² + x̄²), with n = 4.
The plan: Find x + y and x² + y².
- Σx = 20, so x + y = 14. Σx² = 4(5 + 25) = 120, so x² + y² = 120 − 4 − 16 = 100.
- 2xy = 196 − 100 = 96, so (x − y)² = 4 and x − y = ±2: the pair is 6 and 8.
6 and 8.
Check: 2, 4, 6, 8: mean 5, squared deviations 9, 1, 1, 9, variance 20/4 = 5.
D. The standard deviation of some data is 3. A student says the variance of the doubled data is 2 × 9 = 18. Is that right?Tap to reveal
What we know: Doubling multiplies the variance by 2², not by 2.
The plan: Apply the rule from the Miscellaneous Examples.
- The variance is 3² = 9.
- Doubled data: variance 2² × 9 = 36 (and σ = 6).
No: the variance of the doubled data is 36, not 18 (a path that fails).
Check: The variance is built from squares, so a factor 2 in every observation becomes a factor 4 in the variance.
E. A frequency table shows the cumulative frequencies 5, 3, 9. Find the median class.Tap to reveal
What we know: Cumulative frequencies are running totals of frequencies, which are never negative.
The plan: Check the column before using it.
- A running total can never go down, but here it falls from 5 to 3.
- So the column is wrong, and no median class can be read from it.
No median class: the cumulative frequencies are impossible (a dead end).
Check: Each cumulative frequency must be at least the one before it; the last equals N.
F. A student finds that the standard deviation of 4, 4, 4, 4 is 4. Correct the mistake.Tap to reveal
What we know: The mean is 4 and every deviation is 0.
The plan: Compute from the definition.
- Deviations 0, 0, 0, 0; squares 0; variance 0.
- σ = √0 = 0.
The standard deviation is 0, not 4 (a path that fails: confusing the size of the data with their spread).
Check: Equal observations have no spread at all, whatever their size.
G. For the data 2, 4, 9, compare the standard deviation with the mean deviation about the mean.Tap to reveal
What we know: Mean 5; absolute deviations 3, 1, 4; squared deviations 9, 1, 16.
The plan: Compute both.
- M.D.(x̄) = 8/3 ≈ 2.67.
- σ = √(26/3) ≈ 2.94.
σ ≈ 2.94 is larger than M.D.(x̄) ≈ 2.67.
Check: The standard deviation is never less than the mean deviation about the mean: squaring gives the far observations more weight.
H. Ten observations have mean 20 and variance 4, and ten more have mean 30 and variance 4. Find the variance of all twenty together.Tap to reveal
What we know: Σx = n x̄ and Σx² = n(σ² + x̄²) for each group.
The plan: Add the sums of the two groups, then recompute.
- Σx = 200 + 300 = 500, so the combined mean is 25.
- Σx² = 10(4 + 400) + 10(4 + 900) = 4040 + 9040 = 13,080.
- Variance = 13,080/20 − 25² = 654 − 625 = 29; σ ≈ 5.39.
Variance 29 (standard deviation about 5.39).
Check: Each group alone has variance 4, but together they spread over both centres, 20 and 30, so the variance is much larger. This is the algebra that mean deviations cannot do (section 13.4.3).
I. Story: the heights of five saplings in a nursery in Bengaluru are 150, 152, 151, 149 and 148 mm. Find the variance using deviations from 150.Tap to reveal
What we know: A shift does not change the variance.
The plan: Use y = x − 150.
- y: 0, 2, 1, −1, −2; Σy = 0, so the mean is 150 mm.
- Σy² = 0 + 4 + 1 + 1 + 4 = 10; variance 10/5 = 2.
2 square millimetres (σ ≈ 1.41 mm).
Check: Working with the small numbers y avoids squaring numbers like 152.
J. Can a set of data have mean deviation −3?Tap to reveal
What we know: A mean deviation is an average of distances, |x − a|.
The plan: Look at the sign.
- Every |x − a| is 0 or more, so their average is 0 or more.
No: a mean deviation is never negative (a dead end).
Check: The same holds for the range, the variance and the standard deviation: measures of spread are never negative.
When you are stuck: a mixed problem
Read the numbers first: a negative spread or a falling cumulative frequency means a slip, not an answer.
Same mean? Compare spreads with σ: the smaller σ is the more consistent.
Missing, wrong or combined data: work with Σx and Σx².
Scaling and shifting: × k multiplies σ by k; + a changes nothing.
In one line
Check that every spread is 0 or more, compare consistency with σ, and handle missing, wrong or combined data through Σx and Σx².
RecapSummary
The book's summary, point by point:
- Measures of dispersion: the range, the quartile deviation, the mean deviation, the variance and the standard deviation. Range = maximum value − minimum value.
- Mean deviation for ungrouped data: M.D.(x̄) = Σ|xᵢ − x̄|/n and M.D.(M) = Σ|xᵢ − M|/n.
- Mean deviation for grouped data: M.D.(x̄) = Σfᵢ|xᵢ − x̄|/N and M.D.(M) = Σfᵢ|xᵢ − M|/N, where N = Σfᵢ.
- Variance and standard deviation for ungrouped data: σ² = (1/n)Σ(xᵢ − x̄)², and σ is its square root.
- For a discrete frequency distribution: σ² = (1/N)Σfᵢ(xᵢ − x̄)², and σ is its square root.
- For a continuous frequency distribution: σ² = (1/N)Σfᵢ(xᵢ − x̄)², or σ = (1/N)√[NΣfᵢxᵢ² − (Σfᵢxᵢ)²], with the mid-points as xᵢ.
- The shortcut method: with yᵢ = (xᵢ − A)/h, σ² = (h²/N²)[NΣfᵢyᵢ² − (Σfᵢyᵢ)²] and σ = (h/N)√[NΣfᵢyᵢ² − (Σfᵢyᵢ)²].
The whole chapter on one page
| Tool | Formula | Example |
|---|---|---|
| Range | maximum − minimum | 3, 8, 1, 12: 11 |
| Mean deviation about a | 6, 7, 10, 12, 13, 4, 8, 12 about 9: 2.75 | |
| Mean deviation, grouped | Example 4: 2.3 | |
| Median of classes | Example 7: 28 | |
| Variance | 6, 8, ..., 24: 33 | |
| Standard deviation | √33 ≈ 5.74 | |
| Second formula | Example 11: 6.12 | |
| Shortcut | Example 12: 62 and 14.18 | |
| Scaling and shifting | kx: σ² × k²; x + a: σ² unchanged | variance 5, doubled: 20 |
| Sums from a summary | Σx = n x̄, Σx² = n(σ² + x̄²) | Example 16: 39.9 and 5 |
How to choose the measure
- A quick look? The range: easy, but it sees only the two extremes.
- An average distance that is easy to explain? The mean deviation; about the median it gives the smallest total distance.
- Further work: combining groups, correcting data, comparing consistency? The variance and the standard deviation, because squares obey algebra.
- Large numbers? The shortcut with an assumed mean and a step h.
Historical note
The word statistics comes from the Latin status, a political state, which suggests that statistics is as old as human civilisation. Perhaps the first census was held in Egypt in 3050 BCE. In India, about 2000 years ago, there was an efficient system of collecting administrative statistics, especially under Chandragupta Maurya (324 to 300 BCE). Kautilya's Arthashastra (around 300 BCE) mentions a system of collecting data on births and deaths. Abul Fazl's Ain-i-Akbari gives a detailed account of the administrative surveys of Akbar's reign.
Captain John Graunt of London (1620 to 1674) is known as the father of vital statistics, for his studies of births and deaths. Jacob Bernoulli (1654 to 1705) stated the Law of Large Numbers in his book Ars Conjectandi, published in 1713.
The theoretical development of statistics came from the mid-seventeenth century onwards, together with the theory of games and chance, that is, probability. Francis Galton (1822 to 1911; the book prints 1921), an Englishman, pioneered statistical methods in biometry. Karl Pearson (1857 to 1936) did much to develop statistics, with his chi-square test and the statistical laboratory he founded in England in 1911. Sir Ronald A. Fisher (1890 to 1962), known as the father of modern statistics, applied it to genetics, biometry, education, agriculture and other fields.
The whole chapter in one line
An average says where data are centred; the range, the mean deviation and above all the standard deviation say how far they spread, found for lists, frequency tables and classes, with a shortcut for large numbers.
WordsWords to know
| Word | Meaning |
|---|---|
| Statistics | the science of collecting, summarising and interpreting data |
| Measure of central tendency | one value for the centre of data: the mean, the median or the mode |
| Dispersion | how spread out, or scattered, data are |
| Measure of dispersion | one number for the spread of data |
| Range | the maximum value minus the minimum value |
| Quartile deviation | half the gap between the upper and lower quartiles |
| Deviation | an observation minus a central value: x − a |
| Mean deviation, M.D.(a) | the mean of the absolute deviations from a |
| Ungrouped data | observations listed one by one |
| Discrete frequency distribution | separate values, each with its frequency |
| Continuous frequency distribution | classes with no gaps, each with its frequency |
| Mid-point (class mark) | the value that stands for a class: the average of its limits |
| Median class | the class whose cumulative frequency first reaches N/2 |
| Assumed mean | a convenient value near the centre, used to shorten the arithmetic |
| Step-deviation | (x − A)/h: a deviation from the assumed mean, divided by a common factor |
| Sum of squares | Σ(xᵢ − x̄)², the total of the squared deviations |
| Variance, σ² | the mean of the squared deviations from the mean |
| Standard deviation, σ | the positive square root of the variance |
| Consistent | with a small spread: a small standard deviation |
CheckQuick self-check
Fifteen short questions on the whole chapter. Try each before you open it.
1. Find the range of 3, 8, 1, 12.Tap to reveal
- 12 − 1.
11.
2. What do the deviations from the mean always add up to?Tap to reveal
- Σ(x − x̄) = Σx − n x̄ = 0.
0.
3. Find the mean deviation about the mean of 1, 3, 5.Tap to reveal
- Mean 3; distances 2, 0, 2; 4/3.
4/3 ≈ 1.33.
4. Find the mean deviation about the median of 2, 3, 10.Tap to reveal
- Median 3; distances 1, 0, 7; 8/3.
8/3 ≈ 2.67.
5. About which centre is Σ|x − a| smallest?Tap to reveal
- Walk towards the side with more observations until the sides balance.
The median.
6. Find the variance of 4, 4, 4.Tap to reveal
- Every deviation is 0.
0.
7. Find the variance of 1, 2, 3.Tap to reveal
- Mean 2; squares 1, 0, 1; 2/3.
2/3.
8. The variance is 49. Find the standard deviation.Tap to reveal
- √49.
7.
9. Lengths are measured in cm. In what unit is their variance?Tap to reveal
- The variance adds squares of cm.
cm².
10. The variance of x is 9. Find the variance of x + 5.Tap to reveal
- A shift changes nothing.
9.
11. The variance of x is 2. Find the variance of 3x.Tap to reveal
- 3² × 2.
18.
12. The standard deviation of x is 1.5. Find that of 2x.Tap to reveal
- 2 × 1.5.
3.
13. Ten observations have mean 4 and variance 9. Find Σx².Tap to reveal
- n(σ² + x̄²) = 10(9 + 16).
250.
14. What is the mid-point of the class 20-30?Tap to reveal
- (20 + 30)/2.
25.
15. With y = (x − A)/h, write x̄ in terms of ȳ.Tap to reveal
- Each x is A + hy.
x̄ = A + hȳ.