Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Let Y be the number of trials required to observe r successes. List the outcome space for the variable Y and show that the probabilities for Y are giver by the formula P(Y=k)=(k-1)(p^2)(1-p)^(k-2).

Okay I know the outcome space is Y:={2,3,4,...}, the first two trials could be successes or you could never get two successes. The problem looks geometric but I dont undertand the extra (k-1)*p in front.

share|cite|improve this question
What if $r=3$...? How does this change the range of the random variable $Y$? – user21436 Apr 20 '12 at 3:41

Assuming independence of trials and that each trial has probability $p$ of success and also that $r=2$, as in the title:

$P[Y=k]$ is the probability that the second success occurred on the $k$'th trial. If the second success occurred on the $k$'th trial, then there was exactly one success in the first $k-1$ trials and the $k$'th trial was a success.

Now, there are $k-1$ ways to have exactly one success in the first $k-1$ trials (for example, one way is that the second trial was a success and the other $k-2$ trials were failures), each of which having probability $(1-p)^{k-2} p$. So the probability that exactly one success occurred in the first $k-1$ trials is

$$\tag{1}P( \textstyle{\text{exactly one success}\atop\text{ in the first }k-1\text{ trials} } )=(k-1)(1-p)^{k-2}p.$$

The probability of a success on the $k$'th trial is $$ \tag{2}P( \textstyle{\text{ success on the}\atop k\text{'th trial} } ) =p$$

The probability that the second success occurred on the $k$'th trial is the product of $(1)$ and $(2)$: $$P[Y=k]=\bigl(\,(k-1)(1-p)^{k-2} p\,\bigr)\cdot p= (k-1)p^2(1-p)^{k-2}.$$

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.