Binomial Calculator

The probability of a number of successes in independent trials, computed as you type.

The distribution

The number of successes X in n independent trials, each succeeding with probability p, follows the binomial distribution:

P(X = k) = \binom{n}{k}\, p^k (1-p)^{n-k}

Its mean is \mu = np and its variance \sigma^2 = np(1-p). Its mode is \lfloor (n+1)p \rfloor; when (n+1)p is a whole number, (n+1)p - 1 is a mode too, and the only one when p = 1.

Parameters

A whole number from 1 to 1000
Between 0 and 1

Range of successes

The probability of k₁ to k₂ successes, both included