WordGPT

Binomial distribution, n = 20, p = 0.2

For X ~ Binomial(n = 20, p = 0.2) the mean is 4.000, the variance 3.200 and the standard deviation 1.789. The most likely number of successes is 4, with probability 0.2182.

00.0630.130.190.2501234567891011kP(X = k)
P(X = k) for n = 20, p = 0.2; the orange bar is the most likely value, k = 4.

How to work it out

  1. 1

    A binomial counts the successes in n = 20 independent trials, each with probability p = 0.2 of success.

    X∼Bin(20, 0.2)X \sim \mathrm{Bin}(20,\ 0.2)
  2. 2

    The probability of exactly k successes is the number of ways to choose them times the probability of one such sequence.

    P(X=k)=(nk)pk(1āˆ’p)nāˆ’kP(X=k) = \binom{n}{k} p^{k} (1-p)^{n-k}
  3. 3

    For example, the most common value k = 4 (the nearest whole number to the mean):

    P(X=4)=(204) 0.24 0.816=0.2182P(X=4) = \binom{20}{4}\,0.2^{4}\,0.8^{16} = 0.2182
  4. 4

    The mean and the standard deviation come straight from n and p.

    μ=np=4.000,σ=np(1āˆ’p)=1.789\mu = np = 4.000,\qquad \sigma = \sqrt{np(1-p)} = 1.789
  5. 5

    np or n(1āˆ’p) is below 5, so the normal approximation would be poor here; use the exact binomial probabilities.

LaTeX source of the formulas on this page
\[ P(X=k) = \binom{20}{k}\,0.2^{k}\,0.8^{20-k} \]
\[ X \sim \mathrm{Bin}(20,\ 0.2) \]
\[ P(X=k) = \binom{n}{k} p^{k} (1-p)^{n-k} \]
\[ P(X=4) = \binom{20}{4}\,0.2^{4}\,0.8^{16} = 0.2182 \]
\[ \mu = np = 4.000,\qquad \sigma = \sqrt{np(1-p)} = 1.789 \]

Binomial(20, 0.2) probabilities

kP(X = k)P(X ≤ k)P(X ≄ k)
00.01150.01151.0000
10.05760.06920.9885
20.13690.20610.9308
30.20540.41140.7939
40.21820.62960.5886
50.17460.80420.3704
60.10910.91330.1958
70.05450.96790.0867
80.02220.99000.0321
90.00740.99740.0100
100.00200.99940.0026
110.00050.99990.0006

Summary

QuantityValue
Mean np4.000
Variance np(1āˆ’p)3.200
Standard deviation1.789
Most likely value4
P(at least one success)0.9885
P(no success)0.0115
Normal approximation usableno

Questions

What is the mean of a binomial with n = 20 and p = 0.2?

μ = np = 4.000.

What is the standard deviation of Binomial(20, 0.2)?

σ = √(np(1āˆ’p)) = 1.789.

What is the probability of exactly 4 successes in 20 trials with p = 0.2?

0.2182.

What is the probability of at least one success?

1 āˆ’ (1 āˆ’ 0.2)^20 = 0.9885.

Can I use the normal approximation for n = 20, p = 0.2?

Not reliably: np = 4.000 and n(1āˆ’p) = 16.000, and one is below 5.

Other n for the same p

Other p for the same n

    Binomial distribution n = 20, p = 0.2: probabilities, mean and standard deviation | WordGPT