Correlation Coefficient
Study guides: Exam P-1, Exam ACIA-CAPSTONE
The Correlation Coefficient \rho(X, Y) of two random variables X and Y is a measure of the strength and direction of the linear relationship between them, on a scale from -1 to 1. It is the covariance divided by the product of the standard deviations:
\rho(X, Y) = \frac{\text{Cov}(X, Y)}{\sigma_X\,\sigma_Y}
\sigma_X = \sqrt{\text{Var}(X)}and\sigma_Y = \sqrt{\text{Var}(Y)}are the standard deviations.-1 \le \rho(X, Y) \le 1, with\rho = \pm 1exactly whenY = a + bXfor constantsaandb \ne 0.
Independent random variables have covariance 0, so their correlation coefficient is 0.
A policyholder's numbers of auto claims
Xand home claimsYin a year have\text(X) = 0.24,\text(Y) = 0.53and\text(X, Y) = 0.12. What is\rho(X, Y)?
- The standard deviations are
\sigma_X = \sqrt{0.24} = 0.490and\sigma_Y = \sqrt{0.53} = 0.728.\rho(X, Y) = \frac{0.12}{(0.490)(0.728)}, which is 0.336.- The two counts have a moderate positive linear relationship.
Covariance from the correlation coefficient
Solving the definition for the covariance gives
\text{Cov}(X, Y) = \rho(X, Y)\,\sigma_X\,\sigma_Y
Two losses have standard deviations 30 and 40 and correlation coefficient 0.25. What is the standard deviation of their total?
- The covariance is
(0.25)(30)(40) = 300.- By the variance of a sum, the variance of the total is
900 + 1{,}600 + 600, which is 3,100.- The standard deviation is
\sqrt{3{,}100} = 55.68.
Variances in the denominator The denominator is the product of the standard deviations, not of the variances. For the auto and home claims,
\frac{0.12}{(0.24)(0.53)} = 0.943, which overstates the relationship almost threefold.
Correlation of linear functions
For constants a, b, c and d with a and c not 0, changing the units or the origin of X or Y changes the correlation coefficient at most in sign:
\rho(aX + b,\ cY + d) = \pm\,\rho(X, Y)
- The sign is
+whenaandchave the same sign, and-when they differ.
Each auto claim costs 10 and each home claim costs 5. What is the correlation coefficient of the auto cost
10Xand the home cost5Y?
- The covariance becomes
(10)(5)(0.12) = 6.- The standard deviations become
10(0.490) = 4.90and5(0.728) = 3.64.\rho = \frac{6}{(4.90)(3.64)} = 0.336, the same as for the counts.
The sample correlation coefficient
For n observed pairs (x_i, y_i) with means \bar{x} and \bar{y}, the sample correlation coefficient is
r = \frac{\sum (x_i - \bar{x})(y_i - \bar{y})}{\sqrt{\sum (x_i - \bar{x})^2 \sum (y_i - \bar{y})^2}}
|r| is close to 1 only when the points lie close to a straight line. Points on a tight curve can still have r near 0.
The points
(-1, 1),(0, 0)and(1, 1)lie exactly ony = x^2. What is their sample correlation coefficient?
- The means are
\bar{x} = 0and\bar{y} = \frac{2}{3}.- The products of deviations are
(-1)(\frac{1}{3}),(0)(-\frac{2}{3})and(1)(\frac{1}{3}), which add to 0.r = 0, althoughyis determined byx.
Practice questions
- CAS Exam 7 Spring 2013, Question 17
- CAS Exam 7 Spring 2014, Question 4
- CAS Exam 7 Spring 2014, Question 21
- CAS Exam 7 Spring 2015, Question 5
- CAS Exam 7 Spring 2015, Question 23
- CAS Exam 7 Spring 2016, Question 6
- CAS Exam 9 Spring 2014, Question 5
- CAS Exam 9 Spring 2015, Question 1
- CAS Exam 9 Spring 2015, Question 4
- CAS Exam 9 Spring 2018, Question 13
- CAS Exam MAS-II Spring 2019, Question 33
- SOA Exam P Sample Question 248
- SOA Exam P Sample Question 284
- SOA Exam P Sample Question 291
- Exam P Practice Question 932
- Exam P Practice Question 937