WordGPT

Binomial distribution, n = 20, p = 0.4

For X ~ Binomial(n = 20, p = 0.4) the mean is 8.000, the variance 4.800 and the standard deviation 2.191. The most likely number of successes is 8, with probability 0.1797.

00.050.10.150.2123456789101112131415kP(X = k)
P(X = k) for n = 20, p = 0.4; the orange bar is the most likely value, k = 8.

How to work it out

  1. 1

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

    X∼Bin(20, 0.4)X \sim \mathrm{Bin}(20,\ 0.4)
  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 = 8 (the nearest whole number to the mean):

    P(X=8)=(208) 0.48 0.612=0.1797P(X=8) = \binom{20}{8}\,0.4^{8}\,0.6^{12} = 0.1797
  4. 4

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

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

    Both np = 8.000 and n(1āˆ’p) = 12.000 are at least 5, so a normal curve with this mean and standard deviation approximates the distribution well.

LaTeX source of the formulas on this page
\[ P(X=k) = \binom{20}{k}\,0.4^{k}\,0.6^{20-k} \]
\[ X \sim \mathrm{Bin}(20,\ 0.4) \]
\[ P(X=k) = \binom{n}{k} p^{k} (1-p)^{n-k} \]
\[ P(X=8) = \binom{20}{8}\,0.4^{8}\,0.6^{12} = 0.1797 \]
\[ \mu = np = 8.000,\qquad \sigma = \sqrt{np(1-p)} = 2.191 \]

Binomial(20, 0.4) probabilities

kP(X = k)P(X ≤ k)P(X ≄ k)
10.00050.00051.0000
20.00310.00360.9995
30.01230.01600.9964
40.03500.05100.9840
50.07460.12560.9490
60.12440.25000.8744
70.16590.41590.7500
80.17970.59560.5841
90.15970.75530.4044
100.11710.87250.2447
110.07100.94350.1275
120.03550.97900.0565
130.01460.99350.0210
140.00490.99840.0065
150.00130.99970.0016

Summary

QuantityValue
Mean np8.000
Variance np(1āˆ’p)4.800
Standard deviation2.191
Most likely value8
P(at least one success)1.0000
P(no success)0.0000
Normal approximation usableyes

Questions

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

μ = np = 8.000.

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

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

What is the probability of exactly 8 successes in 20 trials with p = 0.4?

0.1797.

What is the probability of at least one success?

1 āˆ’ (1 āˆ’ 0.4)^20 = 1.0000.

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

Yes: np = 8.000 and n(1āˆ’p) = 12.000 are both at least 5.

Other n for the same p

Other p for the same n

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