Docsity

Stat 110 Strategic Practice 3, Fall 2011, Exams of Probability and Statistics

Toggle sidebar
bg1
Stat 110 Strategic Practice 3, Fall 2011
Prof. Joe Blitzstein (Department of Statistics, Harvard University)
1 Continuing with Conditioning
1. Consider the Monty Hall problem, except that Monty enjoys opening Door 2
more than he enjoys opening Door 3, and if he has a choice between opening
these two doors, he opens Door 2 with probability p,where1
2p1.
To recap: there are three doors, behind one of which there is a car (which you
want), and behind the other two of which there are goats (which you don’t
want). Initially, all possibilities are equally likely for where the car is. You
choose a door, which for concreteness we assume is Door 1. Monty Hall then
opens a door to reveal a goat, and o↵ers you the option of switching. Assume
that Monty Hall knows which door has the car, will always open a goat door
and o↵er the option of switching, and as above assume that if Monty Hall has a
choice between opening Door 2 and Door 3, he chooses Door 2 with probability
p(with 1
2p1).
(a) Find the unconditional probability that the strategy of always switching
succeeds (unconditional in the sense that we do not condition on which of Doors
2,3 Monty opens).
(b) Find the probability that the strategy of always switching succeeds, given
that Monty opens Door 2.
(c) Find the probability that the strategy of always switching succeeds, given
that Monty opens Door 3.
2. For ea ch st a teme nt bel ow, ei t her s h ow th at it is t r ue or gi ve a co u nt e rexa mple .
Throughout, X, Y, Z are discrete random variables.
(a) If Xand Yare independent and Yand Zare independent, then Xand Z
are independent.
(b) If Xand Yare independent, then they are conditionally independent given
Z.
(c) If Xand Yare conditionally independent given Z,thentheyareindepen-
dent.
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17

Partial preview of the text

Download Stat 110 Strategic Practice 3, Fall 2011 and more Exams Probability and Statistics in PDF only on Docsity!

Stat 110 Strategic Practice 3, Fall 2011

Prof. Joe Blitzstein (Department of Statistics, Harvard University)

1 Continuing with Conditioning

  1. Consider the Monty Hall problem, except that Monty enjoys opening Door 2 more than he enjoys opening Door 3, and if he has a choice between opening these two doors, he opens Door 2 with probability p, where 12  p  1. To recap: there are three doors, behind one of which there is a car (which you want), and behind the other two of which there are goats (which you don’t want). Initially, all possibilities are equally likely for where the car is. You choose a door, which for concreteness we assume is Door 1. Monty Hall then opens a door to reveal a goat, and o↵ers you the option of switching. Assume that Monty Hall knows which door has the car, will always open a goat door and o↵er the option of switching, and as above assume that if Monty Hall has a choice between opening Door 2 and Door 3, he chooses Door 2 with probability p (with 12  p  1).

(a) Find the unconditional probability that the strategy of always switching succeeds (unconditional in the sense that we do not condition on which of Doors 2,3 Monty opens).

(b) Find the probability that the strategy of always switching succeeds, given that Monty opens Door 2.

(c) Find the probability that the strategy of always switching succeeds, given that Monty opens Door 3.

  1. For each statement below, either show that it is true or give a counterexample. Throughout, X, Y, Z are discrete random variables.

(a) If X and Y are independent and Y and Z are independent, then X and Z are independent.

(b) If X and Y are independent, then they are conditionally independent given Z.

(c) If X and Y are conditionally independent given Z, then they are indepen- dent.

(d) If X and Y have the same distribution given Z, i.e., for all a and z, we have P (X = a|Z = z) = P (Y = a|Z = z), then X and Y have the same distribution.

2 Simpson’s Paradox

  1. (a) Is it possible to have events A, B, E such that P (A|E) < P (B|E) and P (A|E c^ ) < P (B|E c^ ), yet P (A) > P (B)? That is, A is less likely under B given that E is true, and also given that E is false, yet A is more likely than B if given no information about E. Show this is impossible (with a short proof) or find a counterexample (with a “story” interpreting A, B, E).

(b) Is it possible to have events A, B, E such that P (A|B, E) < P (A|B c^ , E) and P (A|B, E c^ ) < P (A|B c^ , E c^ ), yet P (A|B) > P (A|B c^ )? That is, given that E is true, learning B is evidence against A, and similarly given that E is false; but given no information about E, learning that B is true is evidence in favor of A. Show this is impossible (with a short proof) or find a counterexample (with a “story” interpreting A, B, E).

  1. Consider the following conversation from an episode of The Simpsons:

Lisa: Dad, I think he’s an ivory dealer! His boots are ivory, his hat is ivory, and I’m pretty sure that check is ivory. Homer: Lisa, a guy who’s got lots of ivory is less likely to hurt Stampy than a guy whose ivory supplies are low.

Here Homer and Lisa are debating the question of whether or not the man (named Blackheart) is likely to hurt Stampy the Elephant if they sell Stampy to him. They clearly disagree about how to use their observations about Black- heart to learn about the probability (conditional on the evidence) that Black- heart will hurt Stampy.

(a) Define clear notation for the various events of interest here.

(b) Express Lisa’s and Homer’s arguments (Lisa’s is partly implicit) as condi- tional probability statements in terms of your notation from (a).

(c) Assume it is true that someone who has a lot of a commodity will have less desire to acquire more of the commodity. Explain what is wrong with Homer’s

Stat 110 Strategic Practice 3 Solutions, Fall 2011

Prof. Joe Blitzstein (Department of Statistics, Harvard University)

1 Continuing with Conditioning

  1. Consider the Monty Hall problem, except that Monty enjoys opening Door 2 more than he enjoys opening Door 3, and if he has a choice between opening these two doors, he opens Door 2 with probability p, where 12  p  1. To recap: there are three doors, behind one of which there is a car (which you want), and behind the other two of which there are goats (which you don’t want). Initially, all possibilities are equally likely for where the car is. You choose a door, which for concreteness we assume is Door 1. Monty Hall then opens a door to reveal a goat, and o↵ers you the option of switching. Assume that Monty Hall knows which door has the car, will always open a goat door and o↵er the option of switching, and as above assume that if Monty Hall has a choice between opening Door 2 and Door 3, he chooses Door 2 with probability p (with 12  p  1).

(a) Find the unconditional probability that the strategy of always switching succeeds (unconditional in the sense that we do not condition on which of Doors 2,3 Monty opens).

Let C (^) j be the event that the car is hidden behind door j and let W be the event that we win using the switching strategy. Using the law of total probability, we can find the unconditional probability of winning in the same way as in class:

P (W ) = P (W |C 1 )P (C 1 ) + P (W |C 2 )P (C 2 ) + P (W |C 3 )P (C 3 ) = 0 · 1 /3 + 1 · 1 /3 + 1 · 1 /3 = 2/ 3.

(b) Find the probability that the strategy of always switching succeeds, given that Monty opens Door 2.

A tree method works well here (delete the paths which are no longer relevant after the conditioning, and reweight the remaining values by dividing by their sum), or we can use Bayes’ rule and the law of total probability (as below).

Let Di be the event that Monty opens Door i. Note that we are looking for P (W |D 2 ), which is the same as P (C 3 |D 2 ) as we first choose Door 1 and then switch to Door 3. By Bayes’ rule and the law of total probability,

P (C 3 |D 2 ) =

P (D 2 |C 3 )P (C 3 )

P (D 2 )

P (D 2 |C 3 )P (C 3 )

P (D 2 |C 1 )P (C 1 ) + P (D 2 |C 2 )P (C 2 ) + P (D 2 |C 3 )P (C 3 )

p · 1 /3 + 0 · 1 /3 + 1 · 1 / 3

=

1 + p

(c) Find the probability that the strategy of always switching succeeds, given that Monty opens Door 3.

The structure of the problem is the same as part (b) (except for the condition that p 1 /2, which was no needed above). Imagine repainting doors 2 and 3, reversing which is called which. By part (b) with 1 p in place of p, P (C 2 |D 3 ) = (^) 1+(1^1 p) = (^2) ^1 p.

  1. For each statement below, either show that it is true or give a counterexample. Throughout, X, Y, Z are discrete random variables.

(a) If X and Y are independent and Y and Z are independent, then X and Z are independent.

False: for a simple example, take X = Z.

(b) If X and Y are independent, then they are conditionally independent given Z.

False: this was discussed in class (the fire-popcorn example) in terms of events, for which we can let X, Y, Z be indicators.

(c) If X and Y are conditionally independent given Z, then they are indepen- dent.

False: this was discussed in class in terms of events (the chess opponent of unknown strength example); a coin with a random bias (as on HW 2) is another simple, useful example to keep in mind.

Is it possible that Dr. Hibbert is better than Dr. Nick at both heart transplants and bandaid removals, yet Dr. Nick has a higher success rate overall? Yes, this can happen if Dr. Nick performs mostly bandaid removals and Dr. Hibbert performs mostly heart transplants. That is, the better doctor may perform relatively more of the harder surgery, resulting in a lower success rate. To make up specific numbers, suppose that Dr. Hibbert performed 90 heart transplants, with 70 successful, and 10 bandaid removals, with all 10 success- ful. Dr. Nick performed 10 heart transplants, with 2 successful, and 90 bandaid removals, with 81 successful. Formally, our probability space consists of ran- domly choosing one of the 200 surgeries, uniformly. Note that each individual surgery is more likely to be successful given that it’s performed by Dr. Hibbert, but Dr. Hibbert’s overall success rate (80%) is lower than Dr. Nick’s (83%). There are many real-life examples of Simpson’s Paradox. For example, it is possible for one baseball player to have a higher batting average than another in each of two seasons, yet a lower batting average when the two seasons are aggregated. Simpson’s Paradox illustrates the importance of controlling for additional variables that interfere with the analysis (known as confounders).

  1. Consider the following conversation from an episode of The Simpsons:

Lisa: Dad, I think he’s an ivory dealer! His boots are ivory, his hat is ivory, and I’m pretty sure that check is ivory. Homer: Lisa, a guy who’s got lots of ivory is less likely to hurt Stampy than a guy whose ivory supplies are low.

Here Homer and Lisa are debating the question of whether or not the man (named Blackheart) is likely to hurt Stampy the Elephant if they sell Stampy to him. They clearly disagree about how to use their observations about Black- heart to learn about the probability (conditional on the evidence) that Black- heart will hurt Stampy.

(a) Define clear notation for the various events of interest here.

Let H be the event that the man will hurt Stampy, let L be the event that a man has lots of ivory, and let D be the event that the man is an ivory dealer.

(b) Express Lisa’s and Homer’s arguments (Lisa’s is partly implicit) as condi- tional probability statements in terms of your notation from (a).

Lisa observes that L is true. She suggests (reasonably) that this evidence makes D more likely, i.e., P (D|L) > P (D). Implicitly, she suggests that this makes it likely that the man will hurt Stampy, i.e.,

P (H|L) > P (H|L c^ ).

Homer argues that P (H|L) < P (H|L c^ ).

(c) Assume it is true that someone who has a lot of a commodity will have less desire to acquire more of the commodity. Explain what is wrong with Homer’s reasoning that the evidence about Blackheart makes it less likely that he will harm Stampy.

Homer does not realize that observing that Blackheart has so much ivory makes it much more likely that Blackheart is an ivory dealer, which in turn makes it more likely that the man will hurt Stampy. (This is an example of Simpson’s Paradox.) It may be true that, controlling for whether or not Blackheart is a dealer, having high ivory supplies makes it less likely that he will harm Stampy: P (H|L, D) < P (H|L c^ , D) and P (H|L, D c^ ) < P (H|L c^ , D c^ ). However, this does not imply that P (H|L) < P (H|L c^ ).

3 Gambler’s Ruin

  1. A gambler repeatedly plays a game where in each round, he wins a dollar with probability 1/3 and loses a dollar with probability 2/3. His strategy is “quit when he is ahead by $2,” though some suspect he is a gambling addict anyway. Suppose that he starts with a million dollars. Show that the probability that he’ll ever be ahead by $2 is less than 1/4.

This problem is a special case of the gambler’s ruin. Let A 1 be the event that he is successful on the first play and let W be the event that he is ever ahead by $2 before being ruined. Then by the law of total probability, we have

P (W ) = P (W |A 1 )P (A 1 ) + P (W |Ac 1 )P (A c 1 ).

Let a (^) i be the probability that the gambler achieves a profit of $2 before being ruined, starting with a fortune of $i. For our setup, P (W ) = ai , P (W |A 1 ) = a (^) i+1 and P (W |Ac 1 ) = a (^) i 1. Therefore,

a (^) i = ai+1 /3 + 2a (^) i 1 / 3 ,

The PMF of the Bin(n, p) distribution is

P (X = k) =

n k

p k^ (1 p) nk^ ,

and therefore

P (X 4) =

p 4 q 3 +

p 5 q 2 +

p 6 q + p 7 ,

which looks di↵erent from the above but is actually identical as a function of p (as can be verified by simplifying both expressions as polynomials in p).

(b) Give a clear intuitive explanation of whether the answer to (a) depends on whether the teams always play 7 games (and whoever wins the majority wins the series), or the teams stop playing more games as soon as one team has won 4 games (as is actually the case in practice: once the match is decided, the two teams do not keep playing more games).

The answer to (a) does not depend on whether the teams play all seven games no matter what. Imagine telling the players to continue playing the games even after the match has been decided, just for fun: the outcome of the match won’t be a↵ected by this, and this also means that the probability that A wins the match won’t be a↵ected by assuming that the teams always play 7 games!

  1. A sequence of n independent experiments is performed. Each experiment is a success with probability p and a failure with probability q = 1 p. Show that conditional on the number of successes, all possibilities for the list of outcomes of the experiment are equally likely (of course, we only consider lists of outcomes where the number of successes is consistent with the information being conditioned on). Let X (^) j be 1 if the jth experiment is a success and 0 otherwise, and let X = X 1 + · · · + X (^) n be the total number of successes. Then for any k and any

a 1 ,... , a (^) n 2 { 0 , 1 } with a 1 + · · · + a (^) n = k,

P (X 1 = a 1 ,... , X (^) n = a (^) n |X = k) =

P (X 1 = a 1 ,... , X (^) n = a (^) n , X = k) P (X = k)

=

P (X 1 = a 1 ,... , X (^) n = a (^) n ) P (X = k)

=

p k^ q nk (^) n k

p k^ q nk

=

(^) n k

This does not depend on a 1 ,... , a (^) n. Thus, for n independent Bernoulli trials, given that there are exactly k successes, the

(^) n k

possible sequences consisting of k successes and n k failures are equally likely. Interestingly, the conditional probability above also does not depend on p (this leads to the notion of a sucient statistic, which is studied in Stat 111).

  1. Let X ⇠ Bin(n, p) and Y ⇠ Bin(m, p), independent of X.

(a) Show that X + Y ⇠ Bin(n + m, p), using a story proof.

Interpret X as the number of successes in n independent Bernoulli trials and Y as the number of successes in m more independent Bernoulli trials, where each trial has probability p of success. Then X + Y is the number of successes in the n + m trials, so X + Y ⇠ Bin(n + m, p). (b) Show that X Y is not Binomial.

A Binomial can’t be negative, but X Y is negative with positive probability.

(c) Find P (X = k|X + Y = j). How does this relate to the elk problem from HW 1?

By definition of conditional probability,

P (X = k|X + Y = j) =

P (X = k, X + Y = j) P (X + Y = j)

P (X = k)P (Y = j k) P (X + Y = j) since the event X = k is independent of the event Y = j k. This becomes (^) n k

p k^ (1 p) nk^

(^) m jk

p jk^ (1 p) m(jk) (^) m+n j

p j^ (1 p) m+nj^

n k

m j k

n + m j

Stat 110 Homework 3, Fall 2011

Prof. Joe Blitzstein (Department of Statistics, Harvard University)

  1. (a) Consider the following 7-door version of the Monty Hall problem. There are 7 doors, behind one of which there is a car (which you want), and behind the rest of which there are goats (which you don’t want). Initially, all possibilities are equally likely for where the car is. You choose a door. Monty Hall then opens 3 goat doors, and o↵ers you the option of switching to any of the remaining 3 doors. Assume that Monty Hall knows which door has the car, will always open 3 goat doors and o↵er the option of switching, and that Monty chooses with equal proba- bilities from all his choices of which goat doors to open. Should you switch? What is your probability of success if you switch to one of the remaining 3 doors?

(b) Generalize the above to a Monty Hall problem where there are n 3 doors, of which Monty opens m goat doors, with 1  m  n 2.

  1. The odds of an event with probability p are defined to be (^1) pp , e.g., an event with

probability 3/4 is said to have odds of 3 to 1 in favor (or 1 to 3 against). We are interested in a hypothesis H (which we think of as a event), and we gather new data as evidence (expressed as an event D) to study the hypothesis. The prior probability of H is our probability for H being true before we gather the new data; the posterior probability of H is our probability for it after we gather the new data. The likelihood ratio is defined as (^) PP (^ (DD||HH c) (^) ).

(a) Show that Bayes’ rule can be expressed in terms of odds as follows: the posterior odds of a hypothesis H are the prior odds of H times the likelihood ratio.

(b) As in the example from class, suppose that a patient tests positive for a disease a✏icting 1% of the population. For a patient who has the disease, there is a 95% chance of testing positive (in medical statistics, this is called the sensitivity of the test); for a patient who doesn’t have the disease, there is a 95% chance of testing negative test (in medical statistics, this is called the specificity of the test). The patient gets a second, independent test done (with the same sensitivity and specificity), and again tests positive. Use the odds form of Bayes’ rule to find the probability that the patient has the disease, given the evidence, in two ways: in one step, conditioning on both test results simultaneously, and in two steps, first updating the probabilities based on the first test result, and then updating again based on the second test result.

  1. Is it possible to have events A 1 , A 2 , B, C with P (A 1 |B) > P (A 1 |C) and P (A 2 |B) > P (A 2 |C), yet P (A 1 [ A 2 |B) < P (A 1 [ A 2 |C)? If so, find an example (with a “story”

interpreting the events, as well as giving specific numbers); otherwise, show that it is impossible for this phenomenon to happen.

  1. Calvin and Hobbes play a match consisting of a series of games, where Calvin has probability p of winning each game (independently). They play with a “win by two” rule: the first player to win two games more than his opponent wins the match. Find the probability that Calvin wins the match (in terms of p), in two di↵erent ways:

(a) by conditioning, using the law of total probability.

(b) by interpreting the problem as a gambler’s ruin problem.

  1. A fair die is rolled repeatedly, and a running total is kept (which is, at each time, the total of all the rolls up until that time). Let p (^) n be the probability that the running total is ever exactly n (assume the die will always be rolled enough times so that the running total will eventually exceed n, but it may or may not ever equal n).

(a) Write down a recursive equation for p (^) n (relating p (^) n to earlier terms p (^) k in a simple way). Your equation should be true for all positive integers n, so give a definition of p 0 and p (^) k for k < 0 so that the recursive equation is true for small values of n.

(b) Find p 7.

(c) Give an intuitive explanation for the fact that p (^) n! 1 / 3 .5 = 2/7 as n! 1.

  1. Players A and B take turns in answering trivia questions, starting with player A answering the first question. Each time A answers a question, she has probability p (^1) of getting it right. Each time B plays, he has probability p 2 of getting it right.

(a) If A answers m questions, what is the PMF of the number of questions she gets right?

(b) If A answers m times and B answers n times, what is the PMF of the total number of questions they get right (you can leave your answer as a sum)? Describe exactly when/whether this is a Binomial distribution.

(c) Suppose that the first player to answer correctly wins the game (with no prede- termined maximum number of questions that can be asked). Find the probability that A wins the game.

  1. A message is sent over a noisy channel. The message is a sequence x 1 , x 2 ,... , x (^) n of n bits (x (^) i 2 { 0 , 1 }). Since the channel is noisy, there is a chance that any bit might be corrupted, resulting in an error (a 0 becomes a 1 or vice versa). Assume that the error events are independent. Let p be the probability that an individual

Stat 110 Homework 3 Solutions, Fall 2011

Prof. Joe Blitzstein (Department of Statistics, Harvard University)

  1. (a) Consider the following 7-door version of the Monty Hall problem. There are 7 doors, behind one of which there is a car (which you want), and behind the rest of which there are goats (which you don’t want). Initially, all possibilities are equally likely for where the car is. You choose a door. Monty Hall then opens 3 goat doors, and o↵ers you the option of switching to any of the remaining 3 doors. Assume that Monty Hall knows which door has the car, will always open 3 goat doors and o↵er the option of switching, and that Monty chooses with equal proba- bilities from all his choices of which goat doors to open. Should you switch? What is your probability of success if you switch to one of the remaining 3 doors?

Assume the doors are labeled such that you choose Door 1 (to simplify notation), and suppose first that you follow the “stick to your original choice” strategy. Let S be the event of success in getting the car, and let C (^) j be the event that the car is behind Door j. Conditioning on which door has the car, we have

P (S) = P (S|C 1 )P (C 1 ) + · · · + P (S|C 7 )P (C 7 ) = P (C 1 ) =

Let M (^) ijk be the event that Monty opens Doors i, j, k. Then

P (S) =

X

i,j,k

P (S|M (^) ijk )P (M (^) ijk )

(summed over all i, j, k with 2  i < j < k  7 .) By symmetry, this gives

P (S|M (^) ijk ) = P (S) =

for all i, j, k with 2  i < j < k  7. Thus, the conditional probability that the car is behind 1 of the remaining 3 doors is 6/7, which gives 2/7 for each. So you should switch, thus making your probability of success 2/7 rather than 1/7.

(b) Generalize the above to a Monty Hall problem where there are n 3 doors, of which Monty opens m goat doors, with 1  m  n 2.

By the same reasoning, the probability of success for “stick to your original choice” is (^) n^1 , both unconditionally and conditionally. Each of the n m 1 re- maining doors has conditional probability (^) (nnm^1 1)n of having the car. This value is

greater than (^1) n , so you should switch, thus obtaining probability (^) (nnm^1 1)n of success

(both conditionally and unconditionally).

  1. The odds of an event with probability p are defined to be (^1) pp , e.g., an event with

probability 3/4 is said to have odds of 3 to 1 in favor (or 1 to 3 against). We are interested in a hypothesis H (which we think of as a event), and we gather new data as evidence (expressed as an event D) to study the hypothesis. The prior probability of H is our probability for H being true before we gather the new data; the posterior probability of H is our probability for it after we gather the new data. The likelihood ratio is defined as (^) PP (^ (DD||HH c) (^) ).

(a) Show that Bayes’ rule can be expressed in terms of odds as follows: the posterior odds of a hypothesis H are the prior odds of H times the likelihood ratio.

We want to show that P (H|D) P (H c^ |D)

P (H)

P (H c^ )

P (D|H)

P (D|H c^ )

By Bayes’ rule, we have

P (H|D) = P (D|H)P (H)/P (D), P (H c^ |D) = P (D|H c^ )P (H c^ )/P (D).

Dividing the first of these by the second, we immediately obtain the desired equation, which is a useful alternative way to write Bayes’ rule.

(b) As in the example from class, suppose that a patient tests positive for a disease a✏icting 1% of the population. For a patient who has the disease, there is a 95% chance of testing positive (in medical statistics, this is called the sensitivity of the test); for a patient who doesn’t have the disease, there is a 95% chance of testing negative test (in medical statistics, this is called the specificity of the test). The patient gets a second, independent test done (with the same sensitivity and specificity), and again tests positive. Use the odds form of Bayes’ rule to find the probability that the patient has the disease, given the evidence, in two ways: in one step, conditioning on both test results simultaneously, and in two steps, first updating the probabilities based on the first test result, and then updating again based on the second test result.

To go from odds back to probability, we divide odds by (1 plus odds), since (^) 1+p/qp/q = p for q = 1 p. Let H be the event of having the disease. The prior odds are 99 to 1 against having the disease. The likelihood ratio based on one test result is 00 ..^9505. Now we can immediately carry out either the one update or the two update method.

One update method: The likelihood ratio based on both test results is 0.^95 2

  1. 05 2 since the tests are independent. So the posterior odds of the patient having the disease are

1 99

is by studying on your own and not attending lecture. Defining the events as A 1 : attend lecture; A 2 : understand material; B: take Good Class; C: take Other Class,

P (A 1 |B) = P (A 2 |B) = P (A 1 \ A 2 |B) = P (A 1 [ A 2 |B) = 0. 7 ,

P (A 1 |C) = P (A 2 |C) = 0. 4 , P (A 1 \ A 2 |C) = 0, P (A 1 [ A 2 |C) = 2 · 0 .4 = 0. 8.

  1. Calvin and Hobbes play a match consisting of a series of games, where Calvin has probability p of winning each game (independently). They play with a “win by two” rule: the first player to win two games more than his opponent wins the match. Find the probability that Calvin wins the match (in terms of p), in two di↵erent ways:

(a) by conditioning, using the law of total probability.

Let C be the event that Calvin wins the match, X ⇠ Bin(2, p) be how many of the first 2 games he wins, and q = 1 p. Then

P (C) = P (C|X = 0)q 2 + P (C|X = 1)(2pq) + P (C|X = 2)p 2 = 2pqP (C) + p 2 ,

so P (C) = p^

2 1 2 pq.^ This can also be written as^

p 2 p 2 +q 2 ,^ since^ p^ +^ q^ = 1.

Miracle check : Note that this should (and does) reduce to 1 for p = 1, 0 for p = 0, and 12 for p = 12. Also, it makes sense that the probability of Hobbes winning, which

is 1 P (C) = q^

2 p 2 +q 2 , can also be obtained by swapping^ p^ and^ q.

(b) by interpreting the problem as a gambler’s ruin problem.

The problem can be thought of as a gambler’s ruin where each player starts out with $2. So the probability that Calvin wins the match is

1 (q/p) 2 1 (q/p) 4

(p 2 q 2 )/p 2 (p 4 q 4 )/p 4

(p 2 q 2 )/p 2 (p 2 q 2 )(p 2 + q 2 )/p 4

p 2 p 2 + q 2

which agrees with the above.

  1. A fair die is rolled repeatedly, and a running total is kept (which is, at each time, the total of all the rolls up until that time). Let p (^) n be the probability that the running total is ever exactly n (assume the die will always be rolled enough times so that the running total will eventually exceed n, but it may or may not ever equal n).

(a) Write down a recursive equation for p (^) n (relating p (^) n to earlier terms p (^) k in a simple way). Your equation should be true for all positive integers n, so give a definition of p 0 and p (^) k for k < 0 so that the recursive equation is true for small values of n.

We will find something to condition on to reduce the case of interest to earlier, simpler cases. This is achieved by the useful strategy of first step anaysis. Let p (^) n be the probability that the running total is ever exactly n. Note that if, for example, the first throw is a 3, then the probability of reaching n exactly is p (^) n 3 since starting from that point, we need to get a total of n 3 exactly. So

p (^) n =

(p (^) n 1 + p (^) n 2 + p (^) n 3 + p (^) n 4 + p (^) n 5 + p (^) n 6 ),

where we define p 0 = 1 (which makes sense anyway since the running total is 0 before the first toss) and p (^) k = 0 for k < 0.

(b) Find p 7.

Using the recursive equation in (a), we have

p 1 =

, p 2 =

), p 3 =

p 4 =

) 3 , p 5 =

) 4 , p 6 =

Hence,

p 7 =

(p 1 + p 2 + p 3 + p 4 + p 5 + p 6 ) =

(c) Give an intuitive explanation for the fact that p (^) n! 1 / 3 .5 = 2/7 as n! 1.

An intuitive explanation is as follows. The average number thrown by the die is (total of dots)/6, which is 21/6 = 7/2, so that every throw adds on an average of 7/2. We can therefore expect to land on 2 out of every 7 numbers, and the probability of landing on any particular number is 2/7. This result can be proved as follows (a proof was not required):

p (^) n+1 + 2p (^) n+2 + 3p (^) n+3 + 4p (^) n+4 + 5p (^) n+5 + 6p (^) n+ =p (^) n+1 + 2p (^) n+2 + 3p (^) n+3 + 4p (^) n+4 + 5p (^) n+

  • p (^) n + p (^) n+1 + p (^) n+2 + p (^) n+3 + p (^) n+4 + p (^) n+ =p (^) n + 2p (^) n+1 + 3p (^) n+2 + 4p (^) n+3 + 5p (^) n+4 + 6p (^) n+ = · · · =p (^) 5 + 2p (^) 4 + 3p (^) 3 + 4p (^) 2 + 5p (^) 1 + 6p 0 = 6.