STAT 134 - Instructor: Adam Lucas Midterm Friday, March 8, 2019 SOLUTIONS Exam Information and Instructions: • You will have 45 minutes to take this exam. Closed book/notes/etc. No calculator or computer. • We will be using Gradescope to grade this exam. Write any work you want graded on the front of each page, in the space below each question. Additionally, write your SID number in the top right corner on every page. • Please use a dark pencil (mechanical or #2), and bring an eraser. If you use a pen and make mistakes, you might run out of space to write in your answer. • Provide calculations or brief reasoning in every answer. • Unless stated otherwise, you may leave answers as unsimplified numerical and al- gebraic expressions, and in terms of the Normal c.d.f. . Finite sums are fine, but simplify any infinite sums. • Do your own unaided work. Answer the questions on your own. The students around you have di↵erent exams. 1 Stat 134, Spring 2019 Midterm Solutions 1. (5 pts) a Suppose that there is a machine that gives out a random number Y between 0 and 80. You are also told that E[Y ] = 20. Now someone proposes you a game where you win if the number that shows up is strictly smaller than 40. Assume that you always play games when you have a chance of at least 12 of winning. Given the information you have, can you determine whether you should agree to play the game? b Suppose that there is a machine that gives out a random number X between 20 and 100. You are also told that E[X] = 40. Now someone proposes you a game where you win if the number that shows up is strictly smaller than 60. Assume that you always play games when you have a chance of at least 12 of winning. Given the information you have, can you determine whether you should agree to play the game? a Using Markov’s inequality we get P(Y 40) E[Y ] 40 = 20 40 = 1 2 . This implies that P(Y < 40) = 1 P(Y 40) 1 1 2 = 1 2 hence you should agree to play the game. b Substitute Y = X 20 into your conclusion from part a and you get P(X < 60) = P(X 20 < 40) = P(Y < 40) 1 2 hence you should agree to play the game 2 Stat 134, Spring 2019 Midterm Solutions 2. (5 pts) An airport bus drops o↵ 35 passengers at 7 stops. Each passenger is equally likely to get o↵ at any stop, and passengers act independently of one another. The bus makes a stop only if someone wants to get o↵. Find the probability that the bus drops o↵ passengers at every stop. Let Ai be the event that nobody gets o↵ at the ith stop. By De Morgan’s law, the desired probability is 1 P (A1 [ A2 [ · · · [ A7). The probability that nobody gets o↵ at n of the 7 stops is (7 n7 ) 35. By the inclusion-exclusion formula, P (A1 [ A2 [ · · · [ A7) = 7X i=1 P (Ai) X i
P (AiAj) + · · ·+ ( 1)7+1P (A1A2A3 . . . A7) = 7X n=1 ( 1)n+1 ✓ 7 n ◆ ( 7 n 7 )35 The final answer is 1 P (A1 [ A2 [ · · · [ A7) = 1 P7 n=1( 1)n+1