{{ tocSubheader }}
| {{ 'ml-lesson-number-slides' | message : article.intro.bblockCount }} |
| {{ 'ml-lesson-number-exercises' | message : article.intro.exerciseCount }} |
| {{ 'ml-lesson-time-estimation' | message }} |
If p is the probability of success and n is the number of trials needed to get a success, the probability of getting a success in n trials is given by the formula below.
P(X=n)=(1−p)n−1p
It should be noted that the probability of landing on heads after n coin flips is equal to the probability of landing on tails after n−1 consecutive coin flips, then landing on heads on the next flip.