Bernoulli formula
The Bernoulli formula gives the probability of exactly k successes in n independent trials. Each trial has two possible outcomes: success or failure. The success probability is the same in every trial.
Here X is the number of successes; n is the number of trials; k is the required number of successes; p is the probability of success in one trial; q = 1 − p is the probability of failure. We have 0 ≤ k ≤ n and 0 ≤ p ≤ 1.
The binomial coefficient C counts the ways to choose k successful trials from n. It is calculated as follows (0! = 1):
The formula applies only to independent trials with a constant success probability. This calculator finds the probability of exactly k successes, not at least or at most k.
Calculation algorithm
- Identify n, k and p. Check that k does not exceed n and p is between 0 and 1.
- Calculate the failure probability q = 1 − p and the number of failures n − k.
- Calculate the number of combinations of n items taken k at a time.
- Substitute the values into the Bernoulli formula: multiply the coefficient by p to the power k and q to the power n − k to obtain the probability.