Covariance of Continuous Random Vectors

Covariance of continuous random vectors describes how two continuously measured quantities vary together around their own means. In economics, the quantities might be household income and consumption, or production time and delivery time. You calculate their average centered co-movement using a joint density. This is a population quantity determined by the probability model, rather than an estimate calculated from a particular sample.

The centered-product definition

The covariance of XX and YY is the expected product of their deviations from their respective means. Write μX=E[X]\mu_X=E[X] and μY=E[Y]\mu_Y=E[Y]. If their joint density is fX,Y(x,y)f_{X,Y}(x,y), then


Cov⁡(X,Y)=E[(X−μX)(Y−μY)]=∬S(x−μX)(y−μY)fX,Y(x,y) dx dy.\operatorname{Cov}(X,Y) =E[(X-\mu_X)(Y-\mu_Y)] =\iint_S (x-\mu_X)(y-\mu_Y)f_{X,Y}(x,y)\,dx\,dy.


Here, the support SS tells you where to integrate. Assume the variables have finite second moments, so that the expectations needed here exist.


Centering is essential: a large positive value of xyxy does not necessarily represent positive co-movement. You must compare each value with its own mean. If both deviations have the same sign, their product is positive. If their signs differ, their product is negative.


Centered coordinate axes divide observations into regions with positive or negative deviation products.



Calculating with a cross-moment

The cross-moment E[XY]E[XY] is the expected uncentered product of the two variables. Expanding the centered product gives a convenient calculation formula:


Cov⁡(X,Y)=E[XY−μXY−μYX+μXμY]=E[XY]−μXμY.\begin{aligned} \operatorname{Cov}(X,Y) &=E[XY-\mu_XY-\mu_YX+\mu_X\mu_Y]\\ &=E[XY]-\mu_X\mu_Y. \end{aligned}


For a continuous pair, obtain the three required quantities from the same joint density:


μX=∬SxfX,Y(x,y) dx dy,μY=∬SyfX,Y(x,y) dx dy,E[XY]=∬SxyfX,Y(x,y) dx dy.\begin{aligned} \mu_X&=\iint_S x f_{X,Y}(x,y)\,dx\,dy,\\ \mu_Y&=\iint_S y f_{X,Y}(x,y)\,dx\,dy,\\ E[XY]&=\iint_S xy f_{X,Y}(x,y)\,dx\,dy. \end{aligned}


First identify the support and write valid integration limits. Then calculate the means and cross-moment separately. Finally, subtract the product of the means from the cross-moment. Keep fractions or sufficient precision until the final subtraction: covariance can be small because two similar quantities nearly cancel.


When the support is not rectangular, an inner limit may depend on the outer variable. Use the actual feasible region throughout; integrating over an enclosing rectangle assigns probability to combinations that the model excludes.



Interpreting the result

The sign describes the balance of centered products, rather than a rule followed by every possible observation.


Covariance

Interpretation

Positive

Same-signed deviations outweigh opposite-signed deviations on average.

Negative

Opposite-signed deviations outweigh same-signed deviations on average.

Zero

Positive and negative contributions cancel, or the centered product is zero with probability one.


Covariance has the product of the variables' units. For two times measured in hours, its unit is h2; for a time and a monetary amount, its unit is hours multiplied by the monetary unit. Its magnitude therefore depends on measurement units and has no universal cutoff for a strong relationship.


Zero covariance does not establish independence. A nonlinear relationship may remain even when the centered products average to zero. Similarly, a nonzero covariance describes association; it does not, by itself, establish that changing one variable causes the other to change.


What to remember

  • Center each variable around its own mean.
  • Calculate E[XY]−E[X]E[Y]E[XY]-E[X]E[Y] using the correct support.
  • Report the sign and product units.
  • Treat zero covariance as a statement about centered co-movement, not proof of independence.

Example: Two delays in a delivery service

A delivery service models preparation delay XX and travel delay YY, expressed numerically in hours, using the joint density


fX,Y(x,y)=x+y,0<x<1,0<y<1,f_{X,Y}(x,y)=x+y,\qquad 0<x<1,\quad 0<y<1,


and zero elsewhere. The density is normalized: its integral over this square is 1/2+1/2=11/2+1/2=1.


Use this model to investigate the covariance, the expected product of the delays' deviations from their means. Keep exact fractions until the final result.


a) Calculate the mean preparation delay and mean travel delay.


First integrate out the other delay. In these hour-based coordinates, the marginal densities are


fX(x)=∫01(x+y) dy=x+12,fY(y)=∫01(x+y) dx=y+12.\begin{aligned} f_X(x)&=\int_0^1(x+y)\,dy=x+\frac12,\\ f_Y(y)&=\int_0^1(x+y)\,dx=y+\frac12. \end{aligned}


For XX, multiplying its marginal density by xx produces x2+x/2x^2+x/2. The integral of x2x^2 from zero to one is ________, while the integral of x/2x/2 over the same interval is ________. Therefore,


E[X]=∫01(x2+x2)dx=13+14=712 h.E[X]=\int_0^1\left(x^2+\frac{x}{2}\right)dx =\frac13+\frac14=\frac7{12}\ \text{h}.


The corresponding calculation for YY is


E[Y]=∫01(y2+y2)dy=13+14=712 h.E[Y]=\int_0^1\left(y^2+\frac{y}{2}\right)dy =\frac13+\frac14=\frac7{12}\ \text{h}.


Both mean delays are 7/12 h≈0.583 h7/12\ \text{h}\approx0.583\ \text{h}.


b) Calculate the expected product E[XY]E[XY].


Multiply the density by xyxy before integrating. This weights each possible product by the joint probability model.


E[XY]=∫01∫01xy(x+y) dy dx=∫01(x22+x3)dx.\begin{aligned} E[XY] &=\int_0^1\int_0^1xy(x+y)\,dy\,dx\\ &=\int_0^1\left(\frac{x^2}{2}+\frac{x}{3}\right)dx. \end{aligned}


The integrated first contribution is ________, and the integrated second contribution is ________. Hence


E[XY]=16+16=13 h2.E[XY]=\frac16+\frac16=\frac13\ \text{h}^2.


The expected product is 1/3 h2≈0.333 h21/3\ \text{h}^2\approx0.333\ \text{h}^2. This is an uncentered product moment, so it is not yet the covariance.


c) Calculate the covariance and interpret its sign.


Use the product-moment formula, subtracting the product of the two means. That product is ________.


Cov⁡(X,Y)=E[XY]−E[X]E[Y]=13−712712=48144−49144=−1144 h2≈−0.00694 h2.\begin{aligned} \operatorname{Cov}(X,Y) &=E[XY]-E[X]E[Y]\\ &=\frac13-\frac7{12}\frac7{12}\\ &=\frac{48}{144}-\frac{49}{144}\\ &=-\frac1{144}\ \text{h}^2 \approx-0.00694\ \text{h}^2. \end{aligned}


The covariance is −0.00694 h2-0.00694\ \text{h}^2, to three significant figures. Opposite-signed deviations from the mean delays outweigh same-signed deviations on average. The positive value of E[XY]E[XY] does not imply positive covariance, because covariance centers both delays before assessing their co-movement.

A continuous model relates delivery waiting time XX, in minutes, to customer satisfaction YY, in points. Its population covariance is −1.8 min⋅points-1.8\ \text{min·points}. Which interpretation is justified?

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

A researcher models household spending and hours worked as a continuous random vector (X,Y)(X,Y). Assume both variables have finite variances. Complete the definition and its remaining condition.


Population correlation equals covariance divided by the of the two standard deviations. For this coefficient to be defined, both standard deviations must be strictly .

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

The utilization fractions XX and YY of two production lines have joint density


fX,Y(x,y)=45(1+xy),0<x<1,0<y<1,f_{X,Y}(x,y)=\frac45(1+xy),\qquad 0<x<1,\quad 0<y<1,


and zero elsewhere. You are given E[X]=E[Y]=8/15E[X]=E[Y]=8/15. Calculate their dimensionless covariance, to four 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

Extra Practice