WordGPT

Binomial distribution, n = 40, p = 0.2

For X ~ Binomial(n = 40, p = 0.2) the mean is 8.000, the variance 6.400 and the standard deviation 2.530. The most likely number of successes is 8, with probability 0.1560.

00.050.10.150.21357911131517kP(X = k)
P(X = k) for n = 40, p = 0.2; the orange bar is the most likely value, k = 8.

How to work it out

  1. 1

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

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

    P(X=8)=(408) 0.28 0.832=0.1560P(X=8) = \binom{40}{8}\,0.2^{8}\,0.8^{32} = 0.1560
  4. 4

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

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

    Both np = 8.000 and n(1āˆ’p) = 32.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{40}{k}\,0.2^{k}\,0.8^{40-k} \]
\[ X \sim \mathrm{Bin}(40,\ 0.2) \]
\[ P(X=k) = \binom{n}{k} p^{k} (1-p)^{n-k} \]
\[ P(X=8) = \binom{40}{8}\,0.2^{8}\,0.8^{32} = 0.1560 \]
\[ \mu = np = 8.000,\qquad \sigma = \sqrt{np(1-p)} = 2.530 \]

Binomial(40, 0.2) probabilities

kP(X = k)P(X ≤ k)P(X ≄ k)
10.00130.00150.9999
20.00650.00790.9985
30.02050.02850.9921
40.04750.07590.9715
50.08540.16130.9241
60.12460.28590.8387
70.15130.43710.7141
80.15600.59310.5629
90.13860.73180.4069
100.10750.83920.2682
110.07330.91250.1608
120.04430.95680.0875
130.02380.98060.0432
140.01150.99210.0194
150.00500.99710.0079
160.00190.99900.0029
170.00070.99970.0010

Summary

QuantityValue
Mean np8.000
Variance np(1āˆ’p)6.400
Standard deviation2.530
Most likely value8
P(at least one success)0.9999
P(no success)0.0001
Normal approximation usableyes

Questions

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

μ = np = 8.000.

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

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

What is the probability of exactly 8 successes in 40 trials with p = 0.2?

0.1560.

What is the probability of at least one success?

1 āˆ’ (1 āˆ’ 0.2)^40 = 0.9999.

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

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

Other n for the same p

Other p for the same n

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