Binomial distribution calculator

Condition

Binomial distribution

The binomial distribution describes the number of successes X in n independent trials with constant success probability p. Each trial has two possible outcomes: success or failure. The probability of exactly i successes is given by the Bernoulli formula.

P(X=i)=Cni×pi×qn−i

Here n is the number of trials, i is the number of successes, p is the probability of success, q = 1 − p is the probability of failure, and C is the number of combinations of n objects taken i at a time.

To find the probability of a range of values, sum the probabilities of individual outcomes:

P(a≤X≤b)=∑i=abCni×pi×qn−i
Condition Values to sum
P(X < k) 0 to k − 1
P(X ≤ k) 0 to k
P(X = k) Only k
P(X ≥ k) k to n
P(X > k) k + 1 to n

A strict inequality excludes k, while a non-strict inequality includes it. If no values satisfy the condition, the probability is 0.

Calculation algorithm

  1. Identify n, p and k. Check that n ≥ 1, 0 ≤ k ≤ n and 0 ≤ p ≤ 1.
  2. Calculate the failure probability q = 1 − p.
  3. Choose the condition and identify the integer success counts that satisfy it.
  4. Calculate the probabilities using the Bernoulli formula and sum them over the selected values. For a single value, no summation is needed.