M362K Final Exam Solutions

May 10, 2002


Problem 1. Final Exams

The final exam for a certain math class is graded pass/fail. A randomly chosen student from a probability class has a 40% chance of knowing the material well. If he knows the material well, he has an 80% chance of passing the final. If he doesn't know the material well, he has a 40% chance of passing the final anyway.

a) What is the probability of a randomly chosen student passing the final exam?

Let A be the event ``knows material'' and B be ``passes exam''.

tex2html_wrap_inline71

b) If a student passes, what is the probability that he knows the material?

tex2html_wrap_inline73

Problem 2. Hot Pickups

There are 123,850 pickup trucks in Austin. Of these, 2,477 are stolen. [OK, I'm making these numbers up.] Suppose that 100 randomly chosen pickups are checked by the police.

a) What is the probability that exactly 3 of the 100 chosen pickups are stolen. Give an EXACT answer, but do not evaluate it numerically.

This is hypergeometric:

displaymath75

b) Approximate this using the binomial distribution. What are n and p?

n=100, p=2,477/123,850=0.02, so the answer is tex2html_wrap_inline85 .

c) Approximate your answer to (b) using the Poisson distribution. What is tex2html_wrap_inline87 ?

tex2html_wrap_inline89 , so the answer is tex2html_wrap_inline91 .

Problem 3. Four Flushers

a) In poker, a ``four-flush'' is a hand with 4 cards of one suit, and one card of another suit. (This sort of hand isn't worth anything, and can be very frustrating). Find the probability of a (5-card) hand being a four-flush.

There are 4 ways to choose the main suit, tex2html_wrap_inline93 ways to choose the cards from that suit, 3 ways to choose the other suit and 13 ways to choose the card from that other suit. Dividing by the number of possible hands, we get

displaymath95

b) A ``three-flush'' is a hand with 3 cards of one suit, one of another suit and one of a third suit. (For instance, 3 spades, one heart and one club. A hand with 3 spades and 2 diamonds would not count.) Find the probability of a three-flush.

There are 4 ways to choose the main suit, tex2html_wrap_inline97 ways to choose the cards of that suit, tex2html_wrap_inline99 ways to choose the other two suits, and tex2html_wrap_inline101 ways to choose those last two cards.

displaymath103

Problem 4. Joint distributions (2 pages)

X and Y are continuous random variables with joint pdf

displaymath109

a) Let Z=X+Y Find the pdf of Z.

If z is between 0 and 2, then we integrate 1/2 from x=0 to x=z to get z/2. Otherwise we get nothing:

displaymath123

b) Find the pdf of X (that is, tex2html_wrap_inline127 ) and that of Y.

To get tex2html_wrap_inline131 integrate over y from y=0 to y=2-x, so
tex2html_wrap_inline139 . The computation for tex2html_wrap_inline141 is essentially the same: tex2html_wrap_inline143 .

c) Find the expectation and variance of X.

tex2html_wrap_inline147 .

tex2html_wrap_inline149 .

tex2html_wrap_inline151 .

d) Find the covariance Cov(X,Y).

tex2html_wrap_inline155 , so tex2html_wrap_inline157 .

Problem 5. Quidditch

A game of Quidditch lasts until a player catches the Golden Snitch, which can happen at any time. Meanwhile, both teams try to score goals. The scoring by the two teams is described by independent Poisson processes. The Gryffindor team scores an average of 2.4 goals per hour, while the Slytherin team scores an average of 2.0 goals per hour.

A certain match between Gryffindor and Slytherin lasts 20 hours.

a) What is the probability that Slytherin doesn't score in the first half hour?

Let S be the number of Slytherin goals. This is Poisson with tex2html_wrap_inline161 (2.0 per hour times half an hour), so tex2html_wrap_inline163 .

b) What is the probability that Gryffindor scores two or more goals in the first hour? Evaluate this answer numerically.

Let G be the number of Gryffindor goals. Here tex2html_wrap_inline167 , so tex2html_wrap_inline169

c) Using the normal approximation, estimate the probability that 100 or more goals (total) are scored in the entire match.

G+S is Poisson with tex2html_wrap_inline173 , hence roughly normal with tex2html_wrap_inline175 and tex2html_wrap_inline177tex2html_wrap_inline179 . But 99.5 is (99.5-88)/9.38 = 1.23 standard deviations above average, so this probability is tex2html_wrap_inline181 , or a little under 11%.

Extra Credit) What is the probability that Gryffindor scores more goals than Slytherin? Again, please give a numerical answer.

Since G is roughly normal with mean 48 and standard deviation tex2html_wrap_inline185 , and S is roughly normal with mean 40 and standard deviation tex2html_wrap_inline189 . G-S should be roughly normal with mean 8 and standard deviation tex2html_wrap_inline193tex2html_wrap_inline195 .

Problem 6. Change for a dollar

When I go grocery shopping, I pay a whole number of dollars, and get back some coins in change. Suppose that the value of these coins is uniformly distributed between 0 and 1 (dollars). [In reality, the change is a discrete random variable, with possible values of 0, 0.01, 0.02, up to 0.99. However, we'll approximate it by a continuous variable that ranges from 0 to 1.] I go shopping many times, and the change I get on the different days is denoted tex2html_wrap_inline197tex2html_wrap_inline199 , etc. You may assume that these variables are independent.

a) Let tex2html_wrap_inline201 . Find the pdf tex2html_wrap_inline203 for all values of y.

This is identical to an old homework problem. tex2html_wrap_inline207

b) Let tex2html_wrap_inline209 . Find the expectation and variance of S.

Since tex2html_wrap_inline197 has expectation 1/2 and variance 1/12, S has expectation 24 and variance 48/12 = 4. Note that the standard deviation of S is tex2html_wrap_inline221 .

c) Estimate the probability that S > 25.

S needs to be 1/2 standard deviation above average, so this probability is tex2html_wrap_inline227 . Note that the continuity correction does NOT apply here, since S is already continuous.

Problem 7. Parking

A typical Austin parking garage charges $1 for each hour you park, or portion thereof. That is, if you park for less than an hour, you pay $1, if you park for more than an hour but less than two hours you pay $2, and so on.

Let X be the number of hours that a randomly chosen car is in the garage. The distribution of X is exponential (that is, f(x) is of the form tex2html_wrap_inline237 for x>0) with a mean of 3 hours.

a) What is the probability that tex2html_wrap_inline241 ?

Since tex2html_wrap_inline243tex2html_wrap_inline245

b) What is the probability that a random car's driver will be charged $2?

This is the same as asking the probability that tex2html_wrap_inline247 , which by a calculation almost identical to that above is tex2html_wrap_inline249 .

c) Let Y be the cost of parking a car. Is this a continuous or discrete random variable? What are the possible values of Y? Find the pdf tex2html_wrap_inline203 .

Y is a discrete random variable that takes on the values 1, 2, 3, etc. tex2html_wrap_inline259 . This can also be written as tex2html_wrap_inline261 , where tex2html_wrap_inline263tex2html_wrap_inline265 .