01

Covariance and correlation

The joint PMF of X and Y is given by the table:

YX0123
1115115215115
211011015110
31301300110

Compute:

(a) E[X+Y] (b) E[(XY)2] (c) Cov[X,Y] (d) ρ[X,Y]

02

Covariance etc. from independent densities

Suppose X and Y are independent variables with the following densities:

fX(x)={13ex/3x>00 otherwise fY(y)={18ey/8y>00 otherwise 

Compute:

(a) P[X>Y] (b) E[XY] (c) Cov[X,Y] (d) ρ[X,Y]

03

Plumber completion time

A plumber is coming to fix the sink. He will arrive between 2:00 and 4:00 with uniform distribution in that range.

Sink fixes take an average of 45 minutes with completion times following an exponential distribution.

When do you expect the plumber to finish the job?

What is the variance for the finish time?

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?

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.

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.)

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.)