E(XY) = 5, E(X) = E(Y) = 2
Cov = 5 − 4
1.
The covariance of two random variables is . It is positive when the variables tend to move together, negative when they move oppositely, and zero when they are independent (but not conversely).
This page is easier if you are comfortable with:
For the data , taken as equally likely: , , , so . For the joint pmf , : , , . The expectations are those of discrete expectation.
Linear relation: if and , then (linear transformations). , and covariance is bilinear. The covariance matrix collects all pairs. Scaling by the standard deviations gives the correlation coefficient, which lies between and 1.
Covariance enters the variance of a sum, (the variance of a sum), the regression slope (the regression line) and portfolio risk.
Covariance measures whether two quantities tend to rise and fall together.
The points rise together, so the covariance is positive.
These examples are worked by hand, step by step, so you can compare your own working.
Find for , (equally likely).
Find the covariance for , .
Find when and .
A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.
Cov = 5 − 4
1.
means 2 and 11/3
Pairs of deviations.
5/3 + 0 + 4/3
3.
3/3
1.
Cov(X, Y) = E(XY) − E(X)E(Y) = E[(X − μ_X)(Y − μ_Y)]. It is positive when the variables rise together and 0 for independent variables.
E(XY) = 5, E(X) = E(Y) = 2. Find Cov.
Find the mean of y = (2, 4, 5).
Σ(x − 2)(y − 11/3) for the data.
Divide by n = 3.
wrong ✗
E(XY) − E(X)E(Y) ✓
Subtract the product of means.
always ✗
not in general ✓
Only the converse holds.
mix ✗
state which ✓
Sample vs population.
unit-free ✗
product of units ✓
Not scale-free.
Try each one on paper, then open the answer. Use the solver above to see the full working.
3
1
0
3
3
0.5
Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.
Solve: …
E(XY) − E(X)E(Y).
The variables tend to rise together.
No.
Var X.
correlation coefficient.
variance of a sum.
More in Advanced statistics and stochastic processes and the formula sheets.