Due date: Sunday 3/22, 11:59pm

Covariance and correlation

01

04

Correlation between overlapping coin flip sequences

Suppose a coin is flipped 30 times.

Let X count the number of heads among the first 20 flips, and Y count the heads in the last 20.

Find ρ[X,Y].

Hint: Partition the flips into three groups of 10. Create three variables, counting heads, and express X and Y using these. What is the variance of a binomial distribution?

Link to original

02

05

Variance puzzle: indicators

Suppose A and B are events satisfying:

P[A]=0.5,P[B]=0.2,P[AB]=0.1

Let X count the number of these events that occur. (So the possible values are X=0,1,2.)

Find Var[X].

Hint: Try setting X=XA+XB.

Link to original

03

07

Covariance etc. from joint density

Suppose X and Y are random variables with the following joint density:

fX,Y(x,y)={32(x2+y2)x,y[0,1]0 otherwise 

Compute:

(a) E[X] (b) E[Y] (c) E[XY] (d) Var[X]

(e) Var[Y] (f) Cov[X,Y] (g) ρ[X,Y] (h) Are X and Y independent?

(It is worth thinking through which of these can be computed in multiple ways.)

Link to original

Optional challenge problem

The next problem is purely optional, but worthwhile for the stouthearted. The result is interesting and meaningful.

04

06

When ρ[X,Y]=1

Suppose ρ[X,Y]=1 for two random variables X and Y.

Prove that Y=aX+b, where a=σY/σX, and find the formula for b.

Hint: Study the derivation that 1ρ[X]1, and think about E[(X~Y~)2].

(Note: A similar result and argument holds for ρ[X,Y]=1.)

Link to original

Review

Independent random variables

05

02

Factorizing the density

Consider two joint density functions for X and Y:

f1(x,y)=6e2xe3yx,y>0,f2(x,y)=24xyx,y[0,1],x+y[0,1].

(Assume the densities are zero outside the given domain.)

Supposing f1 is the joint density, are X and Y independent? Why or why not?

Supposing f2 is the joint density, are X and Y independent? Why or why not?

Link to original