To solve this problem, we'll analyze the scenario step by step, using probability theory.
Part (a): Expected Number of Beers Before Joe Blows Up the Fire Zebra
Understanding the Process:
- Initial Beers: Joe starts by ordering and drinking 3 beers.
- Subsequent Beers: He then orders 2 beers at a time.
- Checking Condition: After the 3rd, 5th, 7th, 9th, 11th, ... beer (i.e., after every two additional beers starting from the 3rd), he checks if at least two of the last three beers are diluted.
- Stopping Condition: If the condition is met, he blows up the bar and stops drinking.
Defining Variables:
- Let ( p ) be the probability that any given beer is diluted.
- Let ( q ) be the probability that Joe blows up the bar during a check.
Calculating ( q ):
We need the probability that at least two of the last three beers are diluted.
The possible outcomes for the number of diluted beers among the last three are:
- Exactly 0 diluted: ( (1-p)^3 )
- Exactly 1 diluted: ( 3p(1-p)^2 )
- Exactly 2 diluted: ( 3p^2(1-p) )
- Exactly 3 diluted: ( p^3 )
So, the probability that at least two are diluted is:
[
q = P(\text{exactly 2 diluted}) + P(\text{exactly 3 diluted}) = 3p^2(1-p) + p^3
]
Simplify ( q ):
[
q = p^2(3(1-p) + p) = p^2(3 - 3p + p) = p^2(3 - 2p)
]
Expected Number of Checks Before Blowing Up the Bar:
Since at each check Joe has a probability ( q ) of blowing up the bar, the number of checks before this happens follows a geometric distribution with success probability ( q ).
[
E[\text{number of checks}] = \frac{1}{q}
]
Expected Total Number of Beers:
Joe always drinks the initial 3 beers. After each check (if he doesn't blow up the bar), he drinks 2 more beers before the next check. Therefore, the total number of beers he drinks is:
[
\text{Total beers} = 3 + 2 \times (\text{number of checks} - 1) = 2 \times \text{number of checks} + 1
]
So, the expected total number of beers is:
[
E[\text{Total beers}] = 2 \times E[\text{number of checks}] + 1 = 2 \left( \frac{1}{q} \right) + 1 = \frac{2}{p^2(3 - 2p)} + 1
]
Answer for Part (a):
[
E[\text{Total beers}] = 1 + \frac{2}{p^2(3 - 2p)}
]
Part (b): Probability Joe Blows Up the Adjacent Street
Joe blows up the entire adjacent street if all three of the last beers are diluted. We need to find the probability that this happens given that he blows up the bar (i.e., given that at least two of the last three beers are diluted).
Using Conditional Probability:
[
P(\text{all three diluted} \mid \text{at least two diluted}) = \frac{P(\text{all three diluted})}{P(\text{at least two diluted})}
]
Calculate ( P(\text{all three diluted}) ):
[
P(\text{all three diluted}) = p^3
]
We already have ( P(\text{at least two diluted}) = q = p^2(3 - 2p) ).
Compute the Conditional Probability:
[
P(\text{all three diluted} \mid \text{at least two diluted}) = \frac{p^3}{p^2(3 - 2p)} = \frac{p}{3 - 2p}
]
Answer for Part (b):
[
P(\text{blows up the street}) = \frac{p}{3 - 2p}
]
Final Answers:
(a) The expected number of beers Joe will drink before blowing up the Fire Zebra is:
[
E[\text{Total beers}] = 1 + \frac{2}{p^2(3 - 2p)}
]
(b) The probability that he blows up the entire adjacent street is:
[
P = \frac{p}{3 - 2p}
]
Answer:
Problem (a) Answer:
Expected number of beers = 1 plus 2 divided by [p² × (3 – 2p)]; that is,
E[beers] = 1 + 2⁄[p²(3 – 2p)]
Problem (b) Answer:
Probability he blows up the street = p divided by (3 – 2p); that is,
P = p⁄(3 – 2p)