I'm trying to calculate the probability of $k$ successes when the number of trials ($n$) increases by $6$ each time a success occurs (starting at $20$):
$$ P(X=k) = \ ? \qquad\text{where}\qquad p=.05, \quad n=20. $$
I can't just punch in $n=20+6k$ because that includes impossible scenarios like $X>0$ with no successes in the first $20$ trials. The run ends one you've reached the $(n+6k-k)$th loss.
Edit: Apologies for the lack of clarity. Hopefully these steps will help
- Begin run
- Perform $20$ trials
- Perform check to determine # of successes
- Perform $6$ additional trials for each success ($2$ successes = $12 $ add'l trials, totaling $32$ trials)
- Perform check to determine # of successes since previous check
- Perform $6$ additional trials for each success since previous check
- Repeat steps $5$ and $6$ until # of successes since previous check is $0$
- End run
See below for an attempted solution and tell me why it's wrong
$$\frac{20}{20 + 6k} \binom{20 + 6k}{k} \frac{19^{20+5k}}{20^{20+6k}}$$
Thank you to the person who pointed out the flaw in my first approach. After some thinking, I believe this functions.
Lets try to make all of our trials the same, so that this can be a random walk. Then, we set $X_i \thicksim Bin(2,0.05)$, which is a set of 2 trials. Therefore, no matter what, we want at least 5 $X_i$. Now, we want this to be a random walk that counts how many trials we get to until we hit 0 remaining. So, if we start at 20, and let $Y_i$ be the the $i^{th}$ step on our walk. Then, The p.m.f. of $Y_i$ would be: $$P_{Y_i} = \begin{cases} -2 & \text{if $X_i$ = 0} \\ 6 & \text{if $X_i$ = 1} \\ 12 & \text{if $X_i$ = 2} \end{cases}$$ IF we add all of the $Y_i$, we would find that it models the number of trials we have remaining. To find the $\mathbb{P}(X = k)$, we would want $$\mathbb{P}(\sum_{i=1}^{5+3k}Y_i+20 = 0)$$ Under the condition that our sum never crosses below $0$.