Covariance Algebra for Economic Indicators

Covariance Algebra lets you track uncertainty when economic variables are shifted, rescaled, added or subtracted. Its starting point is covariance, the expected product of two variables' deviations from their means. You can use a few identities to analyze a profit measure or weighted economic indicator without rebuilding its entire probability distribution. Throughout, assume that the variables have finite second moments.

Start with centered deviations

For random variables XX and YY,


Cov⁡(X,Y)=E[(X−E[X])(Y−E[Y])].\operatorname{Cov}(X,Y)=E[(X-E[X])(Y-E[Y])].


Positive covariance indicates that deviations tend to have matching signs; negative covariance indicates that they tend to have opposite signs. Covariance is symmetric, and a variable's covariance with itself is its variance:


Cov⁡(X,Y)=Cov⁡(Y,X),Cov⁡(X,X)=Var⁡(X).\operatorname{Cov}(X,Y)=\operatorname{Cov}(Y,X), \qquad \operatorname{Cov}(X,X)=\operatorname{Var}(X).


A constant has no deviation from its own mean. Consequently, its covariance with any random variable is zero. For an affine transformation, centering removes the added constant:


(aX+b)−E[aX+b]=a(X−E[X]).(aX+b)-E[aX+b]=a(X-E[X]).


This is why a fixed payment changes the level of income but does not change its variance.

Expand covariance term by term

Covariance distributes across addition and allows constant multipliers to move outside:


Cov⁡(aX+b,cY+d)=acCov⁡(X,Y).\operatorname{Cov}(aX+b,cY+d)=ac\operatorname{Cov}(X,Y).


More generally, when both expressions contain both variables,


Cov⁡(aX+bY,cX+dY)=acVar⁡(X)+bdVar⁡(Y)+(ad+bc)Cov⁡(X,Y).\begin{aligned} \operatorname{Cov}(aX+bY,cX+dY) &=ac\operatorname{Var}(X)+bd\operatorname{Var}(Y)\\ &\quad +(ad+bc)\operatorname{Cov}(X,Y). \end{aligned}


To obtain this expression, pair each term in the first argument with each term in the second. Keep the coefficient signs attached to their terms. The same expansion applies to longer sums.



Covariance carries the product of the variables' units. If both variables are measured in dollars, their covariance has units of dollars squared. Rescaling either variable therefore changes the numerical covariance even when the underlying relationship is unchanged.

Obtain variance from covariance

Use Var⁡(Z)=Cov⁡(Z,Z)\operatorname{Var}(Z)=\operatorname{Cov}(Z,Z) to obtain the variance of a linear combination:


Var⁡(aX+bY+k)=a2Var⁡(X)+b2Var⁡(Y)+2abCov⁡(X,Y).\operatorname{Var}(aX+bY+k) =a^2\operatorname{Var}(X)+b^2\operatorname{Var}(Y) +2ab\operatorname{Cov}(X,Y).


The constant kk disappears. Each individual variance receives a squared coefficient, while the covariance receives the signed product 2ab2ab.


Example: Suppose two economic indicators have variances 44 and 99 and covariance 11, all in squared index points. The variance of their difference is 4+9−2(1)=114+9-2(1)=11 squared index points. Positive covariance reduces the variability of a difference because matching movements partially cancel.



For more than two variables, add every squared-coefficient variance and twice every distinct pair's coefficient product times its covariance. Do not discard these pairwise terms unless you know they are zero. Independence implies zero covariance under the stated moment assumptions, but zero covariance alone does not establish independence.

Separate units from linear association

Correlation is covariance divided by the product of the two standard deviations:


ρXY=Cov⁡(X,Y)σXσY.\rho_{XY}=\frac{\operatorname{Cov}(X,Y)}{\sigma_X\sigma_Y}.


It is unitless and lies between −1-1 and 11. This definition requires both standard deviations to be strictly positive. If either variable is constant, its correlation with the other is undefined.


Transformation of X, with Y unchanged

Variance of transformed X

Covariance with Y

Correlation with Y

X+bX+b

Var⁡(X)\operatorname{Var}(X)

Cov⁡(X,Y)\operatorname{Cov}(X,Y)

ρXY\rho_{XY}

aXaX, with a>0a>0

a2Var⁡(X)a^2\operatorname{Var}(X)

aCov⁡(X,Y)a\operatorname{Cov}(X,Y)

ρXY\rho_{XY}

aXaX, with a<0a<0

a2Var⁡(X)a^2\operatorname{Var}(X)

aCov⁡(X,Y)a\operatorname{Cov}(X,Y)

−ρXY-\rho_{XY}


For nonzero aa and cc, the general transformation rule is


Corr⁡(aX+b,cY+d)=ac∣ac∣ρXY.\operatorname{Corr}(aX+b,cY+d)=\frac{ac}{|ac|}\rho_{XY}.


Two schematic scatterplots show horizontal deviations reflected while vertical deviations remain unchanged.


What to remember

  • Added constants disappear when you center a variable.
  • Covariance expands across both arguments; retain every coefficient sign.
  • Variance uses squared coefficients and signed cross terms.
  • Positive rescaling preserves correlation; reversing exactly one variable's sign reverses correlation.

Example: Revenue, Cost and Profit Risk

A small publisher's annual revenue RR and variable cost CC are random variables, both measured in thousands of dollars. Their population moments are


Var⁡(R)=100,Var⁡(C)=36,Cov⁡(R,C)=30,\operatorname{Var}(R)=100,\qquad \operatorname{Var}(C)=36,\qquad \operatorname{Cov}(R,C)=30,


all in squared thousand-dollar units. Annual fixed cost is exactly 1212 thousand dollars. The publisher's profit is the amount remaining after variable and fixed costs:


P=R−C−12.P=R-C-12.


Use Covariance Algebra to answer the three parts. Keep unrounded values until each final answer.


a) Find the variance of profit and its standard deviation. Give the standard deviation to two decimal places.


First, treat fixed cost as a constant. It changes expected profit but contributes no variance or covariance. Thus Var⁡(P)=Var⁡(R−C)\operatorname{Var}(P)=\operatorname{Var}(R-C).


Twice the revenue-cost covariance is ________ in squared thousand-dollar units. Apply the variance formula with coefficients 11 and −1-1:


Var⁡(P)=Var⁡(R)+Var⁡(C)−2Cov⁡(R,C)=100+36−2(30)=76 (thousand dollars)2.\begin{aligned} \operatorname{Var}(P) &=\operatorname{Var}(R)+\operatorname{Var}(C)-2\operatorname{Cov}(R,C)\\ &=100+36-2(30)\\ &=76\ \text{(thousand dollars)}^2. \end{aligned}


Take the square root to return to the original monetary unit:


σP=76=8.717797… thousand dollars.\sigma_P=\sqrt{76}=8.717797\ldots\ \text{thousand dollars}.


The profit variance is 7676 squared thousand-dollar units, and its standard deviation is 8.728.72 thousand dollars. Positive revenue-cost covariance reduces the variance of their difference because some revenue and cost movements offset each other in profit.


b) Find the covariance between profit and variable cost.


Expand the covariance across each term in the profit expression:


Cov⁡(P,C)=Cov⁡(R,C)−Cov⁡(C,C)−Cov⁡(12,C).\operatorname{Cov}(P,C) =\operatorname{Cov}(R,C)-\operatorname{Cov}(C,C)-\operatorname{Cov}(12,C).


The revenue-cost covariance is ________ and the cost-cost covariance is ________, both in squared thousand-dollar units. The latter equals the variance of cost. The constant-cost covariance is zero.


Cov⁡(P,C)=30−36−0=−6 (thousand dollars)2.\operatorname{Cov}(P,C)=30-36-0=-6\ \text{(thousand dollars)}^2.


The covariance is −6-6 squared thousand-dollar units. Although revenue and cost have positive covariance, the direct subtraction of cost makes the profit-cost covariance negative for these supplied moments.


c) Find the correlation between profit and variable cost, to three decimal places.


Use the covariance from part b and the standard deviations of profit and cost. Cost has standard deviation 36=6\sqrt{36}=6 thousand dollars.


The product of the standard deviations is approximately ________ squared thousand-dollar units. Use the unrounded product in the calculation:


Corr⁡(P,C)=Cov⁡(P,C)σPσC=−676(6)=−0.114708….\begin{aligned} \operatorname{Corr}(P,C) &=\frac{\operatorname{Cov}(P,C)}{\sigma_P\sigma_C}\\ &=\frac{-6}{\sqrt{76}(6)}\\ &=-0.114708\ldots. \end{aligned}


The correlation is −0.115-0.115. The monetary units cancel, and the negative sign agrees with the covariance. The result lies between −1-1 and 11, as a correlation should.

Two economic indices XX and YY have covariance 66 squared index points. An analyst constructs A=2X+10A=2X+10 and B=−3Y+7B=-3Y+7. What is Cov⁡(A,B)\operatorname{Cov}(A,B), in squared index points?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Annual returns XX and YY are expressed in percentage points. Their standard deviations are 44 and 55 percentage points, respectively, and their correlation is 0.300.30. A portfolio return is P=0.60X+0.40YP=0.60X+0.40Y. Calculate Var⁡(P)\operatorname{Var}(P) in squared percentage points, to two decimal places.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Two economic indicators XX and YY are measured in index points. Their population moments are Var⁡(X)=9\operatorname{Var}(X)=9, Var⁡(Y)=4\operatorname{Var}(Y)=4 and Cov⁡(X,Y)=−3\operatorname{Cov}(X,Y)=-3, all in squared index points. Complete the table with exact integers; every requested result also has units of squared index points.

QuantityValue
Var(2X - 1)
Cov(X + Y, Y)
Cov(X - Y, X + Y)

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Extra Practice