Compute P(X ≤ k), P(X = k) and P(X ≥ k) for a binomial distribution B(n, p) — exact values, no approximation.
| Input | Result |
|---|---|
| n=20, p=0.3, k=5 | P(X≤5)=0.416371 · P(X=5)=0.178863 |
| n=10, p=0.5, k=7 | P(X≤7)=0.945313 |
| n=100, p=0.05, k=3 | P(X≤3)=0.257839 |
The count of successes in n independent yes/no trials with the same success probability p — coin flips, quality-control defect counts, free throws made out of attempts.
A common rule is np ≥ 5 and n(1−p) ≥ 5. This calculator always uses exact summation, so the answer stays correct even for small n or extreme p where the approximation fails.
Mean = np, variance = np(1−p). For B(20, 0.3) the mean is 6 and the standard deviation is √4.2 ≈ 2.05.