# Coveriance

Covariance is a measure of how much one random variable depends on another. Typically, we think in terms of "if X gets larger, does Y also get larger or does Y get smaller?" The covariance will be negative for the latter and positive for the former. The value of the covariance is not particularly meaningful since it will be large or small depending on whether X and Y are large or small. Covariance is defined simply as:

If Xand Yare independent, then E(X* Y) = E(X) * E(Y), and COV(X,Y) = 0.

Table 2-7 provides a project situation of covariance involving the interaction of cost and schedule duration on a WBS work package. The example requires an estimate of cost given various schedule possibilities. Once these estimates are made, then an analysis can be done of the expected value and variance of each random variable, the cost variable, and schedule duration variable. These calculations provide all that is needed to calculate the covariance.

 Table 2-7-A Cost * Duration Calculations Work Package Duration, D Value Work Package Cost, \$C p(D * C) of a Joint Outcome Joint Outcome, D * C E(D * C) 2 months \$10 0.1 20 2 \$20 0.15 40 6 \$60 0.05 120 6 3 months \$10 0.2 30 6 \$20 0.3 60 18 \$60 0.08 180 14.4 4 months \$10 0.02 40 0.8 \$20 0.05 80 4 \$60 0.05 240 12 Totals: 1 69.2
 Table 2-7-B Cost Calculations Work Package Cost, \$C p(C) of a Cost Outcome, Given All Schedule Possibilities E(C), \$ s 2 Variance \$10 0.32 \$3.2 62.7 = 0.32(10 - 24)2 \$20 0.5 \$10 8 = 0.5(20 -24)2 \$60 0.18 \$10.8 233.2 = 0.18(60 - 24)2 1 \$24.00 s c2 = 304 s c2 = \$17.44 Table 2-7-C Duration Calculations Work Package Duration, D Value p(D) of a Schedule Outcome, Given All Cost Possibilities E(D), months s 2 Variance and Standard Deviation 2 months 0.3 0.6 0.2 = 0.3(2 -2.82)2 3 months 0.58 1.74 0.018 = 0.58(3 -2.82)2 4 months 0.12 0.48 0.17 = 0.12(4 -2.82)2 1 2.82 s d2 = 0.39 s D = 0.62 month COV(D,C) = E(DC) - E(D) * E(C) COV(D,C) = 69.2 - 2.82 * 24 = 1.52 Meaning: Because of the positive covariance, cost and schedule move in the same way; if one goes up, so does the other. r(DC) = COV(D,C)/(s d * s c) = 1.52/(0.62 * \$17.44) = 0.14 Meaning: Judging by a scale of -1 to +1, the "sensitivity" of cost to schedule is weak.

If the covariance of two random variables is not 0, then the variance of the sum of X and Y becomes:

The covariance of a sum becomes a governing equation for the project management problem of shared resources, particularly people. If the random variable X describes the availability need for a resource and Y for another resource, then the total variance of the availability need of the combined resources is given by the equation above. If resources are not substitutes for one another, then the covariance will be positive in many cases, thereby broadening the availability need (that is, increasing the variance) and lengthening the schedule accordingly. This broadening phenomenon is the underlying principle behind the lengthening of schedules when they are "resource leveled." [241 