(1) Define random variables for partitioning the 30 flips into groups of 10:

Let A be the number of heads in the first 10 flips.

Let B be the number of heads in the middle 10 flips.

Let C be the number of heads in the last 10 flips.

Clearly, A,B,CBin(10,12) and are independent. Note that X=A+B and Y=B+C.


(2) Compute E[X] and E[Y]:

E[X]=E[A+B]=E[A]+E[B]=5+5=10E[Y]=E[B+C]=E[B]+E[C]=5+5=10

(3) Compute E[XY]:

E[XY]=E[(A+B)(B+C)]E[AB]+E[AC]+E[BC]+E[B2]E[A]E[B]+E[A]E[C]+E[B]E[C]+E[B2]=75+E[B2]

(4) Compute E[B2]:

Since E[B]=5 and Var[B]=52, we have E[B2]=52+52=552.

Thus, E[XY]=2052.


(5) Compute Cov[X,Y]:

Cov[X,Y]=E[XY]E[X]E[Y]=20521010=52

(6) Compute ρ[X,Y]:

ρ[X,Y]=Cov[X,Y]Var[X]Var[Y]=525512