A binomial probability counts the ways to get k successes and
multiplies by the probability of each success/failure pattern:
P(X=k)=C(n,k)·p^k·(1-p)^(n-k)
Example
Compute the combination factor and probability powers.
highlighted = computed this step
Step 1 — Parameters
List n, k, and p.
n=4k=2p=21
Step 2 — Combinations
Compute the combination factor.
C(4,2)=6
Step 3 — Power of p
Compute the power of p.
pk=(21)2=41
Step 4 — Power of one minus p
Compute the power of one minus p.
q=1−21=21qn−k=(21)2=41
Step 5 — Multiply factors
Multiply the binomial factors.
P(X=k)=6⋅41⋅41=83
binomial-probability
P(X=k)=C(n,k)·p^k·(1-p)^(n-k)