Notes on Lesson 10: Variance and standard deviation (Maths 12 Ket noi tri thuc)
Lesson summary
Given grouped data with groups having corresponding frequencies , where , and sample size .
Each term containing is the square of the difference between the representative value of the th group and the mean.
Grouped data only tells how many data values are in each group, not each individual value.
This content is not yet available in English. It is shown below in the original Vietnamese.
- Tính phương sai, độ lệch chuẩn của mẫu số liệu ghép nhóm và giải thích ý nghĩa.
- Dùng số đặc trưng để so sánh mức độ rủi ro, ổn định trong thực tiễn.
Two classes take the same test, and both have a mean score of 7. But in one class everyone scores around 6, 7, 8, while in the other class someone scores 10 and someone scores 4. The means are the same, but the "closeness" is very different. This lesson helps you measure that spread with variance and standard deviation for grouped data, then use them to compare stability or risk in real life.
Key ideas: what do you need to know?
Representative value and mean of grouped data
Given grouped data with groups having corresponding frequencies , where , and sample size .
- The representative value of group is , that is, the midpoint of the two endpoints of the group.
- The mean of the grouped data is
- Example: group has representative value .
In plain words: Grouped data only tells how many data values are in each group, not each individual value. So you borrow one representative for the whole group: the middle point of the group. The narrower the group, the closer the representative is to the true values. The mean is found by multiplying each representative by its frequency, then dividing by the sample size, just like computing a weighted average. This is the first step, because variance needs the mean to measure how far the values are from it.
Phrase by phrase
- Representative value
- The midpoint of the two endpoints of the group, used in place of every value in the group.Example: Group has representative value .
- Mean
- The average that takes into account the frequency of each group.Example: .
- sample size
- The sum of the frequencies of the groups, which is the number of data values.Example: Frequencies 1, 3, 8, 5, 3 give .
Common mistakesForgetting to divide by the sample size when computing the variance, only adding the terms and stopping there.
TipThe class representative is the midpoint: take the average of the two endpoints, not an endpoint.
Variance of grouped data
The variance of grouped data, denoted , is calculated by the formula where is the representative value, is the class frequency of the th group, is the sample size and is the mean.
- An equivalent shortcut formula:
- Each term containing is the square of the difference between the representative value of the th group and the mean.
- Note: people also use the following quantity to measure the spread of grouped data:
- Extension, not given in the book: Variance is always non-negative; if and only if every representative value of the groups with positive frequency equals .
In plain words: Variance is the average of the squares of the distances from each representative to the mean. Picture it this way: the mean is a landmark, and each group stands some distance from it; square it so that distances to the left and to the right are both positive, then average by frequency. Groups far from the landmark contribute more, so a large variance means the data is "spread out". The second formula is handier for calculating by hand, since you only square each representative once.
Phrase by phrase
- Variance
- A measure of how spread out the sample is around the mean, with units that are the square of the unit of measurement.Example: If is measured in cm, its unit is cm.
- The square of the distance from a group's representative to the mean.Example: , give .
- Variance is always non-negative
- Since it is an average of squares, it cannot be negative.Example: Getting is certainly a mistake.
Common mistakesIgnoring frequency, adding the squares of the representatives of each class exactly once, so a class with many data points does not contribute properly.
TipCompute the variance using so that each representative is squared only once, which is less prone to sign errors.
TipQuick check: the variance must be non-negative; if you get a negative number, you made a mistake in the subtraction step.
Standard deviation of grouped data
The standard deviation of grouped data, denoted , is the principal square root of the variance:
- The standard deviation has the same unit of measurement as the original data, so it is easier to read than the variance.
- Example: if then .
- To calculate , first calculate and then take the square root; there is no other separate formula.
In plain words: Variance squares the distances, so its unit gets "distorted": measured in cm, the variance comes out in cm, which is hard to picture. Taking the square root brings it back to the original unit, like measuring the actual average deviation. That is why, when reporting to others, people usually give the standard deviation: "the measurements are off by about 1.05 cm" sounds clearer than "variance 1.1025". These two numbers always go together, growing and shrinking together.
Phrase by phrase
- Standard deviation
- The square root of the variance, in the same unit as the data.Example: .
- principal square root
- The root is non-negative, so .Example: , do not take .
- same unit of measurement as the original data
- If profit is measured in millions of dong, then is also in millions of dong.Example: million dong.
Meaning of variance and standard deviation
- The variance and standard deviation of grouped data are approximations of the variance and standard deviation of the original data sample.
- They are used to measure the spread of the grouped data around the mean of that data sample.
- The larger the variance and standard deviation, the more spread out the data sample, meaning the values are farther apart and farther from the mean; the smaller they are, the more the values cluster around the mean.
- Because they are approximations, results computed from the grouped table may differ slightly from results computed on the original data.
In plain words: Two classes both have a mean score of 7, but the class with a student scoring 10 and a student scoring 4 has a large variance, while the class with only 6, 7, 8 has a small variance. So variance does not say "good or bad", it says "even or uneven". Remember one sentence: the mean tells you the middle position, variance and standard deviation tell you whether the data cluster or spread out around that middle position. Because grouped data has lost the detail of each individual value, the numbers you compute are only approximations, so do not be surprised if they differ a little from the original data.
Phrase by phrase
- approximately
- Close, not exactly correct, because each group has been replaced by its representative value.Example: Computing on the grouped table gives , computing on the original data may give 1.03.
- measure the spread
- Tells whether the data cluster or spread out around the mean.Example: small: the values are close together.
- the larger it is, the more spread out the data sample
- Compare two samples: the one with the larger is more uneven.Example: so is more spread out than .
Common mistakesTaking the left endpoint or the right endpoint of the class as the representative value, while the representative must be the midpoint of the two endpoints.
Common mistakesSaying a large variance means higher or better scores; variance only tells the spread, not whether values are high or low.
Use variance and standard deviation to measure risk and stability
In finance, there are many ways to measure the risk of an investment option. One of these ways is to use the standard deviation of the profit obtained from the investment option. The larger the standard deviation, the riskier the investment option.
- Remark: we should not use variance or standard deviation to compare the risk of two investment options when the mean profits of these two options are very different.
- Further reading (the Em co biet section of the book): to compare the spread of two data samples when the units of measurement are different or the means are very different, people use the coefficient of variation .
When comparing two grouped data samples with the same unit of measurement and equal or close means:
- The option with the larger standard deviation has results that fluctuate more, so it is riskier (for investment) or less stable (for measurement, production).
- The option with the smaller standard deviation gives more stable, more reliable results.
- The conclusion must be based on the computed data, state clearly the comparison of of the two samples, and only then draw the remark.
In plain words: Two people both earn an average profit of 0.35 million dong, but person sometimes loses a lot and sometimes earns big, while person earns steadily. Who is "riskier"? Person , because the results fluctuate strongly, and it is precisely the large standard deviation that reflects this. The same goes for measuring devices: two devices give the same average power, but the one with the smaller standard deviation has readings that jump less and is more reliable. Remember: to compare stability, look at , small means clustered, large means spread out.
Phrase by phrase
- riskier
- Results fluctuate strongly, may lose a lot, hard to predict.Example: The field with is riskier than the field with .
- more stable
- The results are close together, changing little between times.Example: The device with is more stable than the device with .
- same unit of measurement
- Only compare standard deviations directly when the two samples have the same unit.Example: Both measured in cm, you can compare; cm with kg, you cannot.
Common mistakesComparing the standard deviation of two samples with different units of measurement or with means that differ greatly (the book notes that the standard deviation should not be used then), or concluding that one is riskier just because its mean is greater.
TipTo compare stability or risk, compare the standard deviation when the two samples share the same unit: a small means clustered and stable; a large means spread out and risky.
Worked examples
Example 1
Given grouped data on the height (unit: cm) of 20 students:
Group : 2; : 5; : 8; : 4; : 1.
a) Find the representative value of each group and the mean.
b) Compute the variance and standard deviation.
Show the solution to example 1
Step 1: The representative value is the midpoint of each group: ; ; ; ; .
Step 2: Sample size .
Mean: .
Why: Multiply each representative value by its frequency, then divide by the sample size, exactly the formula for the mean of grouped data.
Step 3: Compute the weighted sum of the squares of the representative values: .
Step 4: .
Step 5: .
Result: cm; ; cm.
Example 2
A shop records the number of minutes customers have to wait (unit: minute) over 25 turns:
: 4; : 9; : 7; : 3; : 2.
Compute the variance and standard deviation of this grouped data.
Show the solution to example 2
Step 1: Representative value: ; ; ; ; . Sample size .
Step 2: .
Step 3: Sum of squares of representative values: .
Step 4: .
Why: Use the formula for convenience, squaring the representative value only once.
Step 5: .
Result: minutes; ; minutes.
Common mistakesSubtracting instead of subtracting in the formula .
Example 3
Two machines and both pack tea boxes, with masses (unit: gram) given in the table:
Machine : : 3; : 12; : 5.
Machine : : 6; : 6; : 8.
Which machine packs more consistently?
Show the solution to example 3
Step 1: Both samples have representative values ; ; and sample size .
Step 2: Machine : .
Machine : .
Step 3: Machine : , so .
Step 4: Machine : , so .
Why: The two machines have the same mean, so comparing consistency means comparing standard deviation; the machine with the smaller has box masses closer together.
Step 5: .
Result: Machine packs more consistently than machine .
Example 4
Profit (unit: million dong) of 20 investors in two sectors:
Sector : : 2; : 3; : 7; : 5; : 3.
Sector : : 1; : 3; : 10; : 4; : 2.
Investing in which sector is riskier?
Show the solution to example 4
Step 1: Representative value: ; ; ; ; . Both samples have .
Step 2: Sector : .
Step 3: , so .
Step 4: Sector : .
Step 5: , so .
Why: The two sectors have approximately equal mean profit, so consider the standard deviation; the sector with the larger has profit fluctuating more, that is, it is riskier.
Step 6: .
Result: Sector is riskier than sector .
Example 5
Two devices measure the power (unit: watt) of a fan, each device measures 20 times:
Device 1: : 1; : 3; : 8; : 5; : 3.
Device 2: : 3; : 4; : 6; : 5; : 2.
Which device gives more consistent measurements?
Show the solution to example 5
Step 1: Representative value: ; ; ; ; . Both samples have .
Step 2: Device 1: .
Step 3: , so .
Step 4: Device 2: .
Step 5: , so .
Why: Both devices measure the same fan, so the unit is the same, watt, and the standard deviations can be compared directly; a smaller means the measurements are closer together.
Step 6: .
Result: Device 1 gives more consistent measurements.
Example 6
A class has 30 students, and the Math test scores (scale of 10) are grouped as follows:
: 2; : 5; : 9; : 8; : 4; : 2.
a) Calculate the mean, variance, standard deviation.
b) If one more student with 9,5 points is added to the group , does the standard deviation increase or decrease? Explain using its meaning.
Show the solution to example 6
Step 1: Representative value: ; ; ; ; ; . Sample size .
Step 2: .
Step 3: Weighted sum of squared representative values: .
Step 4: , so .
Step 5: Adding one student with points means adding one value far above the mean. Since is about away from the old mean, greater than , the spread increases.
Why: The standard deviation measures how far values spread around the mean; adding one outstandingly high score stretches the distance, making the spread increase.
Step 6: Check again: , , , so .
Result: a) ; ; . b) The standard deviation increases, which fits the meaning of spread.
Terms
- Representative value
- The midpoint of the two endpoints of a grouped class, used in place of the values in that class.Example: The class has representative .
- Mean of grouped data
- The average of the representative values, weighted by frequency.Example: .
- Variance
- The frequency-weighted average of the squared distances from each class representative value to the mean, denoted .Example: .
- Standard deviation
- The principal square root of the variance, denoted .Example: .
- Degree of spread
- How much the data differ and spread out around the mean.Example: A large means strong spread.
- Class frequency
- The number of data points falling in that class, denoted .Example: The class has frequency 8.
- Sample size
- The total number of data points, equal to the sum of the frequencies, denoted .Example: .
- Risk level
- The unpredictable fluctuation of results, reflected by a large standard deviation.Example: An investment with a large carries high risk.
- Approximately
- The approximation obtained by replacing a class with its representative value.Example: The variance computed from a grouped table is an approximation of the variance of the original sample.
Practise this lesson with instant marking and saved progress in the study app. Suggested plan: Class lessons plan, Maths 12.
Practice
Answer each question, then press Check. If you get stuck, open the hints under the question one step at a time.
This content is not yet available in English. It is shown below in the original Vietnamese.
Kiểm tra khối lượng của 30 bao xi măng (đơn vị: kg) được chọn ngẫu nhiên trước khi xuất xưởng cho kết quả như sau:
49,5 51,1 50,8 50,2 48,7 49,6 51,3 51,4 50,1 50,5
48,9 49,3 50,7 48,8 49,8 48,8 51,2 50,4 50,0 51,2
51,4 48,7 51,2 50,6 50,9 49,2 50,7 51,1 48,6 49,6.
a) Thay mỗi dấu "?" bằng số thích hợp để hoàn thiện mẫu số liệu ghép nhóm sau:
Nhóm số liệu: [48,5; 49), [49; 49,5), [49,5; 50), [50; 50,5), [50,5; 51), [51; 51,5)
Số bao xi măng: ?, ?, ?, ?, ?, ?
b) Tính phương sai và độ lệch chuẩn của mẫu số liệu gốc và mẫu số liệu ghép nhóm. Giá trị nào là giá trị chính xác? Giá trị nào là giá trị xấp xỉ?
| Nhóm số liệu | [48,5; 49) | [49; 49,5) | [49,5; 50) | [50; 50,5) | [50,5; 51) | [51; 51,5) |
|---|---|---|---|---|---|---|
| Số bao xi măng | ? | ? | ? | ? | ? | ? |
Do this question in your notebook and show every step. When you finish, press the button below to compare with the mark scheme.
Asking the teacher while practising is for children who have a profile. It is free to turn on: Parent sign-in.
More practice questions for you
Additional exercises
- Tính phương sai và độ lệch chuẩn của mẫu số liệu ghép nhóm (Advanced applying)
- So sánh độ phân tán, độ ổn định của hai mẫu bằng độ lệch chuẩn (Advanced applying)
Challenge yourself
- Tính phương sai và độ lệch chuẩn của mẫu số liệu ghép nhóm (Applying)
- Hiểu khi nào dùng được phương sai, độ lệch chuẩn để so sánh (Understanding)
- So sánh độ phân tán, độ ổn định của hai mẫu bằng độ lệch chuẩn (Applying)
Ask a parent to sign in and create your profile to unlock more. It's free. Sign in