2016 Spring 600 Midtermtwosols
2016 Spring 600 Midtermtwosols
1. (20 points) Consider a sequence of independent tosses of a coin that is biased so that it
comes up heads with probability 2/3 and tails withPprobability 1/3. Let Xi be 1 if the ith
toss comes up heads and 0 otherwise. Write Sn = ni=1 Xi .
(b) Compute E[Sn ] and Var[Sn ] as functions of n. Answer: (2/3)n and (2/9)n
P5
Terms with i 6= j are zero, so this is i=1 Cov(Xi , Xi ) = 5Var(Xi ) = 10/9.
2. (20 points) Suppose that X and Y are the outcomes of independent fair die rolls. So
each takes a value in {1, 2, 3, 4, 5, 6}, with all values being equally likely. Write Z = X + Y .
(c) Compute E[Y |Z]. (That is, express the random variable E[Y |Z] as a function of the
random variable Z.) Answer: E[Y |Z] + E[X|Z] = E[Z|Z] = Z and by symmetry
E[Y |Z] = E[X|Z] so E[Y |Z] = Z/2. Alternative answer: check by hand that
given Z = k {2, 3, . . . , 12}, conditional law of Y is uniform on a set of consecutive
integers centered at k/2.
3. (20 points) Let X be a uniformly random variable on [0, 5]. Let Y be an independent
uniformly random variable on [0, 10]. Write Z = min{X, Y }.
(a) Compute the joint density function f (x, y) for X and Y . Answer: f (x, y) = 1/50 if
(x, y) [0, 5] [0, 10], and 0 otherwise.
(b) Compute P (Z > 0) and P (Z > 3) and P (Z > 5). Answer: P (Z > 0) = 1 and
P (Z > 3) = P (X > 3)P (Y > 3) = (2/5)(7/10) = 7/25 and P (Z > 5) = 0.
1
(c) Compute the cumulative distribution function FZ (a). Answer: For a [0, 5], have
(5a)(10a)
1 FZ (a) = P (X > a)P (Y > a) = ( 5a 10a
5 )( 10 ) = 50 . So
0
a<0
(5a)(10a)
FZ (a) = 1 50 a [0, 5] .
1 a>5
4. (20 points) Alices Pastry Shop is open from 7:00 a.m. until 10:00 p.m. Throughout
those 900 minutes, Alice has an extremely steady business: customers show up according
to a Poisson point process with parameter = 1, where time is measured in minutes.
(That is, the expected number of customers per minute is one.) Let N be the total
number of customers that arrive during the day.
(a) Compute the probability that there are exactly 3 customers during the first three
minutes. Answer: e(t) (t)k /k! = e3 33 /6 = (9/2)e3 .
(b) Write a probability density function for the time it takes from the store opening
until the arrival of the second customer. (Imagine that customers keep arriving after
closing, so that with probability one a second customer comes eventually. In other
words, dont worry about the 900 minute upper bound for this part of the problem.)
Answer: this is with parameters = 1 and = 2. Density function is
f (x) = xex /(2) = xex for x 0 (and zero if x < 0).
(c) Compute E[N ] and Var[N ]. Answer: E[N ] = = 900 and Var[N ] = = 900.
(d) Compute the probability that the entire day goes by without a single customer.
Answer: e900 . (Probability -exponential random variable exceeds T is eT .)
(b) Compute E[Y k ] as a function of n and k. You may assume that n and k are positive
integers. RAnswer: Recall that if X is exponential with parameter 1 we have
E[X k ] = 0 xk ex dx = k!. (This is one of the definitions of the factorial.) Note
that Y has same law as X/n, so E[Y k ] = E[(X/n)k ] = E[X k ]/nk = k!/nk .