Captain A and Captain B are at combat with each other on ships. Captain A has a 1/4 chance for him to hit Captain B with his cannon. If Captain A hits a shot, there is 1/2 chance that the ship will go down. If the ship doesn't go down, there is a 1/4 chance that the shot still did some damage. It takes 2 damaging shots for the ship to go down. Captain A only has 4 shots left in his cannon. If he takes down Captain B's ship before using all 4 shots, he will stop shooting, if not he will keep shooting until he runs out of shots.
What is the probability Captain A will sink Captain B's ship?
I have listed all the possible ways Captain A can win, obtained the probability of each scenario happening and added together to get 767/2048. But if I take the scenarios in which Captain A loses, obtain the probability of it happening, and subtract it from 1, I get 1319/2048. I was wondering which way is correct, and if my method of doing it is correct.
Calculations:
1 = hit 0 = miss
Scenarios in which he wins:
1 = 1/8
11 = 1/32 * 1/4= 1/128
101 = 1/32 * 3/4 * 1/4 = 3/512
1001 = 1/32 * 3/4 * 3/4 * 1/4 = 9/2048
01 = 3/4 * 1/8 = 3/32
011 = 3/4 * 1/32 * 1/4 = 3/512
0101 = 3/4 * 1/32 * 3/4 * 1/4 = 9/2048
001 = 3/4 * 3/4 * 1/4 = 9/128
0011 = 3/4 * 3/4 * 1/32 * 1/4 = 9/2048
0001 = 3/4 * 3/4 * 3/4 * 1/8 = 27/512
Final = 767/2048
Scenarios in which he loses:
0000 = 3/4 * 3/4 * 3/4 * 3/4 = 81/256
1000 = 1/32 * 3/4 * 3/4 * 3/4 = 27/2048
0100 = 3/4 * 1/32 * 3/4 * 3/4 = 27/2048
0010 = 3/4 * 3/4 * 1/32 * 3/4 = 27/2048
0001 = 3/4 * 3/4 * 3/4 * 1/32 = 27/2048
Final = 1 - 729/2048 = 1319/2048
Let $S_n^k$ be the event that shot $n$ does $k$ damage.
So the probabilities for $k=0,1,2$ are $\frac{13}{16}, \frac{1}{16},\frac{2}{16}$, with $k>0$ being $\frac{3}{16}$.
The winning events are then:
$S_1^2$
$S_1^1S_2^{>0}$
$S_1^1S_2^0S_3^{>0}$
$S_1^1S_2^0S_3^0S_4^{>0}$
$S_1^0S_2^2$
$S_1^0S_2^1S_3^{>0}$
$S_1^0S_2^1S_3^0S_4^{>0}$
$S_1^0S_2^0S_3^2$
$S_1^0S_2^0S_3^1S_4^{>0}$
$S_1^0S_2^0S_3^0S_4^2$
Each event can be determined solely by their $k$-sequences.
Placing these into Excel and doing the sums gives:
So the probabilty of sinking the ship is $\approx0.43$.