[Math] the appropriate probability distribution to model this situation

probability distributions

I want to model a random variable which represents the number of failures before success in a repeated Bernoulli trial. I will conduct only utmost N trails and I am guaranteed of one success (only one success possible) if N trials are conducted. What is the appropriate distribution? If N can go to infinity I think geometric distribution models the situation, but in my case N is finite and is known in advance.

EDIT

My situation is such that the random variable has the geometric distribution properties, in the sense that, the first trial is most likely to successful, the success rate decreasing as trials increases. But within N trials, I am sure of success.

Best Answer

Assuming I've understood your question correctly, the distribution should be uniform over the N trials.

What you want is $P(k-1$ failures before $1^{st}$ success $|$ only 1 success in $N$ trials$)$. This is the same as $P($success at k^{th} location $|$ 1 success and $N-1$ failures in $N$ trials$)$.

P(success at $k^{th}$ location $|$ 1 success and $N-1$ failures) = P(success at $k^{th}$ location AND 1 success and $N-1$ failures)/P(1 success and $N-1$ failures).

the numerator is $p(1-p)^{N-1}$. The denominator is $Np(1-p)^{N-1}$.

This intuitively makes sense because if you guarantee exactly one success in N trials, there are N possible locations where you can put the successful trial and they are all equally likely.

Related Question