When tutoring, I try to simplify concepts. I came up with these examples to explain the intention behind variance and covariance. Could you please help me find conceptual, pedagogical or mathematical errors I've overlooked? Any comments and improvements are appreciated. And if it's correct, please feel free to use it.
Variance
A psychologist monitors Jack and his Cat in their home and regularly notes their respective moods. Negative numbers indicate stress, positive numbers indicate happiness.
Jack
Mood | -20 π€¦ββοΈ | -15 πββοΈ | -10 πββοΈ | -5 π€·ββοΈ | 0 π€·ββοΈ | +5 π€·ββοΈ | +10 πββοΈ | +15 πββοΈ | +20 πββοΈ |
---|---|---|---|---|---|---|---|---|---|
Count | 3 | 3 | 1 | 1 | 2 | 1 | 2 | 1 | 4 |
Jack's Cat
Mood | -20 π | -15 πΏ | -10 πΏ | -5 π± | 0 π± | +5 π± | +10 πΊ | +15 πΊ | +20 π» |
---|---|---|---|---|---|---|---|---|---|
Count | 0 | 1 | 1 | 5 | 5 | 3 | 2 | 1 | 0 |
Variance is a measure for how much a value deviates from its arithmetic mean. Variance values large deviations much stronger than smaller ones.
The sample variance of Jack's mood is 238.24, while the cat's mood shows a sample variance of 55.88. From these numbers the psychologist can induce correctly, that the cat is overall a lot calmer than Jack.
Covariance
In a new measurement, the psychologist tries to determine, whether Jack and his cat influence each other in their moods. She makes three different measurements:
Jack get's a call from his boss π€¦ββοΈ, cat sleeps π±
Time (minutes) | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
---|---|---|---|---|---|---|---|---|
Jack's mood | +10 | -5 | -15 | -15 | -5 | 0 | -5 | -5 |
Cat's mood | 0 | -1 | +1 | 0 | 0 | 0 | 0 | 0 |
Covariance: -1.25
Jack comes home from work πββοΈ, just in time for feeding his Cat πΊ
Time (minutes) | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
---|---|---|---|---|---|---|---|---|
Jack's mood | -5 | +5 | +10 | +10 | +10 | +10 | +5 | +5 |
Cat's mood | -10 | +10 | +15 | +15 | +15 | +10 | +5 | 0 |
Covariance: 37.5
The cat intentionally anger's Jack πΊ by throwing a flower pot to the ground π€¦ββοΈ
Time (minutes) | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
---|---|---|---|---|---|---|---|---|
Jack's mood | +10 | +10 | +10 | -20 | -15 | -15 | -10 | -10 |
Cat's mood | 0 | +5 | +10 | +15 | +15 | +10 | +5 | +5 |
Covariance: -37.5
Covariance shows, whether two variables deviate together. In the first example only Jack is upset, the cat sleeps soundly. This makes for a covariance near zero, since the two moods don't really affect each other.
When Jack meets and feeds his cat, both get happier together. The positive covariance shows, that both variables deviate in the same direction from their respective means.
When the Cat angers Jack it get's happier while Jack grows quite unhappy at the same time. Here the covariance is negative, showing that the variables are connected but moving in opposite directions.