Covariance
Study guides: Exam P-1, Exam FAM, Exam MAS-I, Exam ACIA-CAPSTONE
The Covariance of two random variables X and Y is a measure of how they move together. With means \mu_X = E[X] and \mu_Y = E[Y], the covariance is
\text{Cov}(X, Y) = E\big[(X - \mu_X)(Y - \mu_Y)\big]
The covariance is positive when X and Y tend to lie on the same side of their means, and negative when they tend to lie on opposite sides. When X + Y is a constant, such as the numbers of successes and failures in n trials, \text{Cov}(X, Y) = -\text{Var}(X) and their correlation is -1. Expanding the product gives the form used to calculate it:
\text{Cov}(X, Y) = E[XY] - E[X]\,E[Y]
A policyholder's numbers of auto claims
Xand home claimsYin a year have the joint probabilities below. What is\text(X, Y)?
X\Y0 1 2 0 0.36 0.18 0.06 1 0.10 0.20 0.10
- The row totals give
E[X] = 0.40, and the column totals giveE[Y] = 0.70.- Only the cells
(1, 1)and(1, 2)have a nonzero productxy, soE[XY]is0.20 + 2(0.10) = 0.40.- Subtracting
E[X]\,E[Y] = 0.28gives\text{Cov}(X, Y) = 0.12.- The covariance is positive, so a policyholder with an auto claim tends to have more home claims.
Covariance of independent random variables
If X and Y are independent, then E[XY] = E[X]\,E[Y], so
\text{Cov}(X, Y) = 0
Random variables with covariance 0 are called uncorrelated. Uncorrelated random variables need not be independent.
Xis-1, 0 or 1 with equal probability, andY = X^2. AreXandYuncorrelated? Are they independent?
XY = X^3, which is-1, 0 or 1 with equal probability, soE[XY] = 0.E[X] = 0, so\text{Cov}(X, Y) = 0 - 0 = 0, andXandYare uncorrelated.Yis determined byX. For example,P(Y = 0 \mid X = 0) = 1, butP(Y = 0) = \frac{1}{3}.XandYare not independent.
Covariance of linear combinations
For constants a, b, c and d, the covariance of two linear functions is
\text{Cov}(aX + b,\ cY + d) = ac\,\text{Cov}(X, Y)
The covariance of a sum with a third random variable Z is
\begin{aligned} \text{Cov}(X + Y,\ Z) &= \text{Cov}(X, Z) \\ &\quad + \text{Cov}(Y, Z) \end{aligned}
The covariance of a random variable with itself is its variance, \text{Cov}(X, X) = \text{Var}(X).
A claim has a surgical part
Xand a hospital partY, with\text(X) = 4,\text(Y) = 9and\text(X, Y) = 1. A 20% surcharge applies to the hospital part. What is the covariance of the claim before the surcharge,X + Y, and after it,X + 1.2Y?
Split the covariance into one term for each pair of parts:
\begin{aligned} \text{Cov} &= \text{Cov}(X, X) \\ &\quad + 1.2\,\text{Cov}(X, Y) \\ &\quad + \text{Cov}(Y, X) \\ &\quad + 1.2\,\text{Cov}(Y, Y) \\ &= 4 + 1.2 + 1 + 10.8 \\ &= 17 \end{aligned}
- The covariance is 17.
Variance of a sum
The variance of a sum is the covariance of the sum with itself, which splits into
\begin{aligned} \text{Var}(X + Y) &= \text{Var}(X) + \text{Var}(Y) \\ &\quad + 2\,\text{Cov}(X, Y) \end{aligned}
Losses
XandYhave\text(X + Y) = 20and\text(X - Y) = 12. What is\text(X, Y)?
\text{Var}(X - Y)has the same two variances, with-2\,\text{Cov}(X, Y)in place of+2\,\text{Cov}(X, Y).- Subtracting the two variances leaves
4\,\text{Cov}(X, Y), which is20 - 12 = 8.\text{Cov}(X, Y) = 2.
Dropping the covariance term
\text{Var}(X + Y)is\text{Var}(X) + \text{Var}(Y)only when the covariance is 0. For the auto and home claims,\text{Var}(X) = 0.24and\text{Var}(Y) = 0.53, so the shortcut gives 0.77. With the covariance, the variance of the total is0.77 + 2(0.12) = 1.01.
Practice questions
- CAS Exam 9 Spring 2014, Question 4
- CAS Exam 9 Spring 2014, Question 5
- CAS Exam 9 Spring 2014, Question 22
- CAS Exam 9 Spring 2015, Question 1
- CAS Exam 9 Spring 2015, Question 2
- CAS Exam 9 Spring 2015, Question 3
- CAS Exam 9 Spring 2015, Question 4
- CAS Exam 9 Spring 2015, Question 5
- CAS Exam 9 Spring 2015, Question 27
- CAS Exam 9 Spring 2016, Question 5
- CAS Exam 9 Spring 2016, Question 29
- CAS Exam 9 Spring 2017, Question 3
- CAS Exam 9 Spring 2017, Question 6
- CAS Exam 9 Spring 2018, Question 1
- CAS Exam 9 Spring 2018, Question 20
- CAS Exam 9 Spring 2019, Question 1
- CAS Exam 9 Spring 2019, Question 2
- CAS Exam 9 Spring 2019, Question 4
- SOA Exam FAM Sample Question 4.12
- CAS Exam MAS-I Spring 2018, Question 43
- CAS Exam MAS-I Fall 2019, Question 41
- Exam MAS-I Practice Question 10
- Exam MAS-I Practice Question 13
- Exam MAS-I Practice Question 37
- Exam MAS-I Practice Question 38
- Exam MAS-I Practice Question 139
- SOA Exam P Sample Question 69
- SOA Exam P Sample Question 75
- SOA Exam P Sample Question 80
- SOA Exam P Sample Question 114
- SOA Exam P Sample Question 171
- SOA Exam P Sample Question 177
- SOA Exam P Sample Question 248
- SOA Exam P Sample Question 284
- SOA Exam P Sample Question 291
- SOA Exam P Sample Question 301
- SOA Exam P Sample Question 311
- Exam P Practice Question 902
- Exam P Practice Question 903
- Exam P Practice Question 910
- Exam P Practice Question 932
- Exam P Practice Question 937