Probability - R successes before the kth failure

dkotschessaa
Messages
1,063
Reaction score
763

Homework Statement



In a sequence of independent trials with probability of success p, what is the probability that there are r successes before the k-th failure?

Homework Equations



Binomial distribution

f(x;n,p) = {{n}\choose{r}} p^{x} (1-p)^{n-r}

The Attempt at a Solution



I know that the answer is

{{k+r+1}\choose{r}} p^{r} (1-p)^{k}

This almost makes sense to me.

Since x = number of successes = r
and I know n represents the number of trials - but I'm not sure how this amounts to k+r+1.

and if n is k+r+1, then the exponent of (1-p), which is n-x, should be

(k+r+1) - r = k+1

But here it is just k.

why?

-Dave K
 
Physics news on Phys.org
dkotschessaa said:

Homework Statement



In a sequence of independent trials with probability of success p, what is the probability that there are r successes before the k-th failure?

Homework Equations



Binomial distribution

f(x;n,p) = {{n}\choose{r}} p^{x} (1-p)^{n-r}

The Attempt at a Solution



I know that the answer is

{{k+r+1}\choose{r}} p^{r} (1-p)^{k}

This almost makes sense to me.

Since x = number of successes = r
and I know n represents the number of trials - but I'm not sure how this amounts to k+r+1.

and if n is k+r+1, then the exponent of (1-p), which is n-x, should be

(k+r+1) - r = k+1

But here it is just k.

why?

-Dave K

The "answer" you give above is not quite correct. Look at it for the case of k = 1; it does not work properly in that case. (Note: your formula would be the probability of having r successes and 1 failure in (r+1) trials, but that would include all outcomes of the form FSS...S, SFSS...S, ... SS...SF, which is NOT what you want. You want the probability of the single point SSS...SF.)

The number of tosses X until the first failure is geometrically distributed with parameter 1-p; note that this count *includes* the failure itself, so the number *before* the first failure is Y = X-1 (which is in {0, 1, 2, ...}). After each failure the counting process starts again, so you want the distribution Zk = Y1 + Y2 + ... + Yk, where the Yi are iid copies of Y. You are asking for P{Zk = r}. You can get a closed-form formula for this using generating-function methods, or else by getting a recursion for P{Z(k-1)=s} and P{Y=t}. The answer will be almost what you wrote above, but with a slight difference.
 
Last edited:
Thanks. I suspected the answer was wrong, but it was what the professor gave us. He is giving us wrong answers, and sometimes even wrong questions. We are all baffled. We have a test tomorrow.

Thanks!
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top