Compute exact binomial probabilities, cumulative distribution, mean, variance, and standard deviation. Visualize the probability mass function for any number of trials n and success probability p.
The binomial distribution models the number of successes in a fixed number of independent Bernoulli trials, each with the same success probability p. It is one of the most fundamental discrete probability distributions, with applications ranging from quality assurance to medical trials and finance. The probability of obtaining exactly k successes in n trials is given by:
Where \(\binom{n}{k}\) is the binomial coefficient. The cumulative distribution function (CDF) gives \(P(X \le k) = \sum_{i=0}^{k} \binom{n}{i} p^i (1-p)^{n-i}\). This calculator computes both PMF and CDF instantly, plots the full distribution, and provides essential summary statistics.
Key properties:
The binomial distribution traces its origins to Jacob Bernoulli’s Ars Conjectandi (1713), where he established the Law of Large Numbers for Bernoulli trials. Later, Abraham de Moivre approximated binomial probabilities using the normal distribution (central limit theorem precursor). Today, it remains a cornerstone of statistical inference and is used everywhere from election forecasting to machine learning (binary classification metrics).
Our calculator uses high-precision arithmetic with automatic symmetry handling: when p > 0.5, it computes the distribution of failures (with q = 1-p) and maps back, ensuring perfect stability even for p extremely close to 1. Probabilities are computed via recurrence: \(P(X=0) = (1-p^*)^n\) and \(P(X=k+1) = P(X=k) \cdot \frac{p^*}{1-p^*} \cdot \frac{n-k}{k+1}\) where \(p^* = \min(p, 1-p)\). This method eliminates underflow for all n ≤ 200.
A new drug shows a 70% success rate in preliminary studies. In a phase-II trial with n=30 patients, what is the probability that at least 20 patients recover? Using the binomial calculator with n=30, p=0.7, compute P(X ≥ 20) = 1 – P(X ≤ 19). Our CDF functionality delivers the cumulative probability instantly, helping researchers assess the likelihood of meeting efficacy thresholds.