Continuous Random Vector: Covariance and Correlation
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 X and Y is the expected product of their deviations from their respective means. Write μX=E[X] and μY=E[Y]. If their joint density is fX,Y(x,y), then
Here, the support S 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 xy 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.
Calculating with a cross-moment
The cross-moment E[XY] is the expected uncentered product of the two variables. Expanding the centered product gives a convenient calculation formula:
For a continuous pair, obtain the three required quantities from the same joint density:
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] 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 X and travel delay Y, expressed numerically in hours, using the joint density
and zero elsewhere. The density is normalized: its integral over this square is 1/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
For X, multiplying its marginal density by x produces x2+x/2. The integral of x2 from zero to one is ________, while the integral of x/2 over the same interval is ________. Therefore,
The corresponding calculation for Y is
Both mean delays are 7/12 h≈0.583 h.
b) Calculate the expected product E[XY].
Multiply the density by xy before integrating. This weights each possible product by the joint probability model.
The integrated first contribution is ________, and the integrated second contribution is ________. Hence
The expected product is 1/3 h2≈0.333 h2. 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 ________.
The covariance is −0.00694 h2, to three significant figures. Opposite-signed deviations from the mean delays outweigh same-signed deviations on average. The positive value of E[XY] does not imply positive covariance, because covariance centers both delays before assessing their co-movement.
A researcher models household spending and hours worked as a continuous random vector (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 .
The utilization fractions X and Y of two production lines have joint density
and zero elsewhere. You are given E[X]=E[Y]=8/15. Calculate their dimensionless covariance, to four decimal places.