Spring 2008 Test 2 Solution
Spring 2008 Test 2 Solution
Spring 2008 Test 2 Solution
Total
Write your solutions in this quiz packet, only solutions in the quiz packet will be graded. Question one, multiple choice questions, will receive no partial credit. Partial credit for question two and three will be awarded. You are allowed 2 two-sided 8.5 by 11 formula sheet plus a calculator. You have 120 minutes to complete the quiz. Be neat! You will not get credit if we cant read it. We will send out an email with more information on how to obtain your quiz before drop date. Good Luck!
Question 1
Multiple choice questions. CLEARLY circle the best answer for each question below. Each question is worth 4 points each, with no partial credit given. a. Let X1 , X2 , and X3 be independent random variables with the continuous uniform distribution over [0, 1]. Then P(X1 < X2 < X3 ) = (i) 1/6 (ii) 1/3 (iii) 1/2 (iv) 1/4 Solution: To understand the principle, rst consider a simpler problem with X1 and X2 as given above. Note that P(X1 < X2 ) + P(X2 < X1 ) + P(X1 = X2 ) = 1 since the corresponding events are disjoint and exaust all the possibilities. But P(X1 < X2 ) = P(X2 < X1 ) by symmetry. Furthermore, P(X1 = X2 ) = 0 since the random variables are continuous. Therefore, P(X1 < X2 ) = 1/2. Analogously, omitting the events with zero probability but making sure to exhaust all other possibilities, we have that P(X1 < X2 < X3 ) + P(X1 < X3 < X2 ) + P(X2 < X1 < X3 ) + P(X2 < X3 < X1 ) + P(X3 < X1 < X2 ) + P(X3 < X2 < X1 ) = 1. And, by symmetry, P(X1 < X2 < X3 ) = P(X1 < X3 < X2 ) = P(X2 < X1 < X3 ) = P(X2 < X3 < X1 ) = P(X3 < X1 < X2 ) = P(X3 < X2 < X1 ). Thus, P(X1 < X2 < X3 ) = 1/6. b. Let X and Y be two continuous random variables. Then (i) E[XY ] = E[X ]E[Y ] (ii) E[X 2 + Y 2 ] = E[X 2 ] + E[Y 2 ] (iii) fX +Y (x + y ) = fX (x)fY (y ) (iv) var(X + Y ) = var(X ) + var(Y ) Solution: Since X 2 and Y 2 are random variables, the result follows by the linearity of expecta tion. c. Suppose X is uniformly distributed over [0, 4] and Y is uniformly distributed over [0, 1]. Assume X and Y are independent. Let Z = X + Y . Then (i) fZ (4.5) = 0 (ii) fZ (4.5) = 1/8 (iii) fZ (4.5) = 1/4 (iv) fZ (4.5) = 1/2 Solution: Since X and Y are independent, the result follows by convolution: 4 1 1 fZ (4.5) = fX ()fY (4.5 ) d = d = . 8 3.5 4
Page 3 of 10
Page 4 of 10
1 100 Solution: Let S = 100 i=1 Yi where Yi is the random variable given by Yi = X1 /100. Since Yi are iid, the distribution of S is approximately normal with mean E[S ] and variance var(S ). 3 E(S ) Thus, P(S > 3) = 1 P(S 3) 1 . Now, var(S )
Therefore,
E[S ] = var(S ) = and
1 1
E[Xi ] + . . . + E[X100 ] = 8/3. 100 100 1 1 8 1 var(Xi ) + . . . + var(Xi ) = . 1002 1002 9 100
3 8 / 3 5 P(S > 3) 1 =1 .
8 1 2 9 100
Page 5 of 10
Question 2
Each Mac book has a lifetime that is exponentially distributed with parameter . The lifetime of Mac books are independent of each other. Suppose you have two Mac books, which you begin using at the same time. Dene T1 as the time of the rst laptop failure and T2 as the time of the second laptop failure. a. Compute fT1 (t1 ). Solution Let M1 be the life time of mac book 1 and M2 the lifetime of mac book 2, where M1 and M2 are iid exponential random variables with CDF FM (m) = 1 em . T1 , the time of the rst mac book failure, is the minimum of M1 and M2 . To derive the distribution of T1 , we rst nd the CDF FT1 (t), and then dierentiate to nd the PDF fT1 (t).
FT1 (t) = P (min(M1 , M2 ) < t) = 1 P (min(M1 , M2 ) t) = 1 P (M1 t)P (M2 t) = 1 (1 FM (t))2 = 1 e2t Dierentiating FT1 (t) with respect to t yields: fT1 (t) = 2e2t t0 t0
Page 6 of 10
c. Is X independent of T1 ? Give a mathematical justication for your answer. Solution Since we have shown in 2(c) that fX |T1 (x | t) does not depend on t, X and T1 are independent. d. Compute fT2 (t2 ) and E[T2 ]. Solution The time of the second laptop failure T2 is equal to T1 + X. Since X and T1 were shown to be independent in 2(b), we convolve the densities found in 2(a) and 2(b) to determine fT2 (t). fT2 (t) = =
0 t
fT1 ( )fX (t )d
2()2 e2 e(t ) d t t = 2e e d
0 0
= 2e
(1 et )
t0
1 2
3 2 .
An equivalent method for solving this problem is to note that T2 is the maximum of M1 and M2 , and deriving the distribution of T2 in our standard CDF to PDF method: FT2 (t) = P(max(M1 , M2 ) < t) = P(M2 t)P (M2 t) = FM (t)2 = 1 2et + e2t Dierentiating FT2 (t) with respect to t yields: fT2 (t) = 2et 2e2t which is equivalent to our solution by convolution above.
Finally, from the above density we obtain that E[T2 ] = solution.
2
t0
t0
1 2 3 2 ,
Page 7 of 10
Your friend, Charlie, loves Mac books so much he buys S new Mac books every day! On any given day S is equally likely to be 4 or 8, and all days are independent from each other. Let S100 be the number of Mac books Charlie buys over the next 100 days. f. (6 pts) Find the best approximation for P(S100 608). Express your nal answer in terms of (), the CDF of the standard normal. Solution Using the De Moivre - Laplace Approximation to the Binomial, and noting that the step size between values that S can take on is 4, 608 + 2 100 6 608) = 100 4 10 = 20 = (.5)
P (S100
Question 3
Saif is a well intentioned though slightly indecisive fellow. Every morning he ips a coin to decide where to go. If the coin is heads he drives to the mall, if it comes up tails he volunteers at the local shelter. Saifs coin is not necessarily fair, rather it possesses a probability of heads equal to q . We do not know q , but we do know it is well-modeled by a random variable Q where the density of Q is 2q for 0 q 1 fQ (q ) = 0 otherwise Assume conditioned on Q each coin ip is independent. Note parts a, b, c, and {d, e} may be answered independent of each other.
Page 8 of 10
0 1
1 3
In an attempt to promote virtuous behavior, Saifs father oers to pay him $4 every day he volunteers at the local shelter. Dene X as Saifs payout if he ips the coin every morning for the next 30 days. b. Find var(X ) Solution Let Yi be a Bernoulli random variable describing the outcome of a coin tossed on morning i. Then, Yi = 1 corresponds to the event that on morning i, Saif goes to the local shelter; Yi = 0 corresponds to the event that on morning i, Saif goes to the mall. Assuming that the coin lands heads with probability q , i.e. that Q = q , we have that P (Yi = 1) = q , and P (Yi = 0) = 1 q for i = 1, . . . , 30. Saifs payout for next 30 days is described by random variable X = 4(Y1 + Y2 + + Y30 ). var(X ) = 16 var(Y1 + Y2 + + Y30 ) = 16 var(E[Y1 + Y2 + + Y30 | Q]) + E[var(Y1 + Y2 + + Y30 | Q)] Now note that, conditioned on Q = q , Y1 , . . . , Y30 are independent. Thus, var(Y1 + Y2 + + Y30 | Q) = var(Y1 | Q) + . . . + var(Y30 | Q). So, var(X ) = 16 var(30Q) + 16 E[var(Y1 | Q) + . . . + var(Y30 | Q)] = 16 302 var(Q) + 16 30 E[Q(1 Q)] = 16 302 (E[Q2 ] (E[Q])2 ) + 16 30(E[Q] E[Q2 ]) = 16 302 (1/2 4/9) + 16 30(2/3 1/2) = 880 1 1 since E[Q] = 0 2q 2 dq = 2/3 and E[Q2 ] = 0 2q 3 dq = 1/2.
Page 9 of 10
fQ|B (q ) = = =
1
0
2q (1 q k ) 1 2/(k + 2)
While shopping at the mall, Saif gets a call from his sister Mais. They agree to meet at the Coco Cabana Court yard at exactly 1:30PM. Unfortunately Mais arrives Z minutes late, where Z is a continuous uniform random variable from zero to 10 minutes. Saif is furious that Mais has kept him waiting, and demands Mais pay him R dollars, where R = exp(Z + 2). e. Find Saifs expected payout, E[R]. Solution E[R] =
0
10
ez +2 f (z )dz
e2 10 z e dz 10 0 e12 e2 10
FR (r) = P(eZ +2 r) = P(Z + 2 ln(r)) ln(r)2 1 = dz 10 0 ln(r) 2 = e2 r e12 10 fR (r) = 1 10r e2 r e12
Page 10 of 10
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.