Sum of squared deviations and variance
离差平方和与方差
What are the sum of squared deviations and the variance?
A deviation is a value minus the mean; squaring and adding them gives the sum of squares; the variance averages that.
Sign in to read the whole lesson, with 1 interactive aid, 2 more worked examples, 22 exercises
Sign in / Sign upMastery goals
- Can explain what deviations and the sum of squared deviations are and calculate the sum of squared deviations
- Can calculate the variance of a data set as the mean of the squared deviations from the mean (dividing by n)
- Can compare the spread of two data sets by their variances and use a sample's variance to estimate a population's spread
In analysing data, besides central tendency, people often care about how much the data fluctuate; in statistics this is called the spread (dispersion) of the data. In this section we learn two common statistics that describe the spread of a data set: the sum of squares of deviations and the variance.
Problem An agricultural institute wants to choose a suitable rice variety for a region. When choosing, both the yield and how steady the yield is matter to the researchers. To learn about varieties A and B, they ran trials on plots each with the same natural conditions, and got the yield per hectare (in tonnes) of each plot, as in the table.
| Plot | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
|---|---|---|---|---|---|---|---|---|---|---|
| A | ||||||||||
| B |
From these data, which variety should the researchers choose?
The means of the two sets are (using the sample mean to estimate the population mean), which shows the two varieties have the same mean yield in the trial plots. So we can estimate that the mean yields of the two varieties in this region differ little.
To see how the yields spread over the plots, draw the two sets as lines.
Comparing the two lines, variety A's yields fluctuate more, with many far from the mean; variety B's fluctuate less and cluster near the mean. So by eye, variety B's yield is steadier. How can one number describe how much a data set fluctuates (its spread)?
The graph shows that the more spread out the data are, the farther each datum is from the mean, and the more bunched together they are, the closer each is to the mean. It also works the other way round: data far from the mean means the set is spread out, data close to it means the set is bunched. So to describe how spread out a data set is, we can start from how far each datum is from the mean.
In general, for data , , , with mean , we call () the deviation of from the mean .
Example 1
Two athletes practise archery, shooting arrows each; their scores (in points) are in the table.
| Athlete | Scores |
|---|---|
| A | |
| B |
Which athlete performs more steadily?
Solution: The means of the two athletes' scores are
Their variances are
Since , athlete B performs more steadily.
A variance can also be found with a calculator's statistics function; the keys vary by brand, so check the manual first. Generally you switch to statistics mode, key in the data , , , and press the variance key; the display shows .
Related points
All points in this topicCite this page: Sum of squared deviations and variance · KnowledgeTree (知识树), https://www.knowledgetree.world/en/kp/KP004279