# Properties of Covariance

## Contents

# 13.2. Properties of Covariance#

Let’s examine how covariance behaves. In the next two sections we will use our observations to calculate variances of sample sums.

Establishing properties of covariance involves simple observations and routine algebra. We have done some of it below, and we expect that you can fill in the rest.

Recall that the covariance of \(X\) and \(Y\) is

## 13.2.1. Constants Don’t Vary#

That title has a “duh” quality. But it’s still worth noting that for any constant \(c\),

## 13.2.2. Variance is a Covariance#

Covariance is an extension of the concept of variance, because

The variance of \(X\) is the covariance of \(X\) and itself.

## 13.2.3. Covariance is Symmetric#

Clearly \(Cov(Y, X) = Cov(X, Y)\). It follows that

This way of thinking about the variance of a sum will be useful later.

## 13.2.4. Covariance and Expected Products#

Covariance *is* an expected product: it is the expected product of deviations. It can also be written in terms of the expected product of \(X\) and \(Y\), as follows.

So covariance is the *mean of the product minus the product of the means*.

Set \(X = Y\) in this result to get the “computational” formula for the variance as the mean of the square minus the square of the mean.

This result simplifies proofs of facts about covariance, as you will see below. But as a computational tool, it is only useful when the distributions of \(X\) and \(Y\) are very simple – for example, when each has just a few possible values. In other calculations of covariance it is rarely a good idea to try to use this result. Rather, we will use the bilinearity property described at the end of this section.

Quick Check

Let \((X, Y)\) be one point picked at random from the four points \((0, 0)\), \((1, 0)\), \((0.5, 1)\), \((1.5, 1)\).

(a) Find \(E(XY)\).

(b) Find \(Cov(X, Y)\).

Answer

(a) \(0.5\)

(b) \(0.125\)

## 13.2.6. Addition Rule#

A routine application of the calculation of covariance using the expected product shows that for any random variables \(X\), \(Y\), and \(Z\),

Just write \(Cov(X+Y, Z) = E[(X+Y)Z] - E(X+Y)E(Z)\), expand both products, and collect terms.

Quick Check

Let \(X\) and \(Y\) be independent and suppose \(Var(X) = 10\). Find \(Cov(X, X+Y)\).

Answer

\(10\)

## 13.2.7. The Main Property: Bilinearity#

**This property is the key to calculating covariance.** First, easy algebra shows that for constants \(a\) and \(b\),

Put this together with the addition rule to get

You can see that covariance behaves like products. By induction,

That might look intimidating, but in fact this property greatly simplifies calculation. It says that you can expand covariance like the product of two sums. For example,

You can replace \(Cov(Y, Y)\) by \(Var(Y)\).

Quick Check

Let \(Var(X) = 4\), \(Var(Y) = 5\), and \(Cov(X, Y) = 3\). Find \(Cov(2X - Y + 7, X + 3Y - 10)\).

Answer

\(8\)