4.7Covariance and Variance of Sums of Random Variables 125
then the total number of heads is equal to
∑^10j= 1IjHence, from Theorem 4.7.4,
Var
∑^10j= 1Ij
=∑^10j= 1Var(Ij)Now, sinceIjis an indicator random variable for an event having probability^12 , it follows
from Example 4.6b that
Var(Ij)=^12(
1 −^12)
=^14and thus
Var
∑^10j= 1Ij
=^10
4■The covariance of two random variables is important as an indicator of the relationship
between them. For instance, consider the situation whereXandYare indicator variables
for whether or not the eventsAandBoccur. That is, for eventsAandB, define
X={
1ifAoccurs
0 otherwise, Y={
1ifBoccurs
0 otherwiseand note that
XY={
1ifX=1,Y= 1
0 otherwiseThus,
Cov(X,Y)=E[XY]−E[X]E[Y]
=P{X=1,Y= 1 }−P{X= 1 }P{Y= 1 }From this we see that
Cov(X,Y)> 0 ⇔P{X=1,Y= 1 }>P{X= 1 }P{Y= 1 }