Due date: Sunday 3/22, 11:59pm
Covariance and correlation
01
04
Link to originalCorrelation between overlapping coin flip sequences
Suppose a coin is flipped 30 times.
Let count the number of heads among the first 20 flips, and count the heads in the last 20.
Find .
Hint: Partition the flips into three groups of 10. Create three variables, counting heads, and express and using these. What is the variance of a binomial distribution?
Solution
Solutions - 5240-04
(1) Define random variables for partitioning the 30 flips into groups of 10:
Let be the number of heads in the first 10 flips.
Let be the number of heads in the middle 10 flips.
Let be the number of heads in the last 10 flips.
Clearly, and are independent. Note that and .
(2) Compute and :
(3) Compute :
(4) Compute :
Since and , we have .
Thus, .
(5) Compute :
(6) Compute :
Link to original
02
05
Link to originalVariance puzzle: indicators
Suppose and are events satisfying:
Let count the number of these events that occur. (So the possible values are .)
Find .
Hint: Try setting .
Solution
Solutions - 5240-05
(1) Define indicator variables and :
Let denote whether occurs and denote whether occurs. They are independent since and are independent (). Let .
(2) Compute :
Link to original
03
07
Link to originalCovariance etc. from joint density
Suppose and are random variables with the following joint density:
Compute:
(a) (b) (c) (d)
(e) (f) (g) (h) Are and independent?
(It is worth thinking through which of these can be computed in multiple ways.)
Solution
Solutions - 5240-07
(a)
(b)
By symmetry, :
(c)
(d)
(1) Compute :
(2) Compute :
(e)
(1) Compute :
By symmetry, .
(2) Compute :
(f)
(g)
(h)
Since , we can conclude that and are not independent.
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
Link to originalWhen
Suppose for two random variables and .
Prove that , where , and find the formula for .
Hint: Study the derivation that , and think about .
(Note: A similar result and argument holds for .)
Solution
Solutions - 5240-06
(1) Recall the formula for :
Therefore, if , then , and note that .
(2) Compute :
Thus, .
(3) Isolate in the above equation:
Thus, , where and .
Link to original
Review
Independent random variables
05
02
Link to originalFactorizing the density
Consider two joint density functions for and :
(Assume the densities are zero outside the given domain.)
Supposing is the joint density, are and independent? Why or why not?
Supposing is the joint density, are and independent? Why or why not?
Solution
Solutions - 5200-02
(1) Compute the marginal distribution of by integrating with respect to :
(2) Compute the marginal distribution of by integrating with respect to :
(3) Determine independence by multiplying the marginal PDFs:
Since the product of the marginal PDFs equals the joint PDF, and are independent.
(4) Compute the marginal distribution of by integrating with respect to :
(5) Compute the marginal distribution of by integrating with respect to :
(6) Determine independence by multiplying the marginal PDFs:
Therefore, and are not independent.
Link to original