Bernoulli Formula Calculator

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.

P(X=k)=Cnk×pk×qn−k

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):

Cnk=n!k!×(n−k)!

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

  1. Identify n, k and p. Check that k does not exceed n and p is between 0 and 1.
  2. Calculate the failure probability q = 1 − p and the number of failures n − k.
  3. Calculate the number of combinations of n items taken k at a time.
  4. 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.