WordGPT

Binomial distribution, n = 40, p = 0.4

For X ~ Binomial(n = 40, p = 0.4) the mean is 16.000, the variance 9.600 and the standard deviation 3.098. The most likely number of successes is 16, with probability 0.1279.

00.050.10.150.268101214161820222426kP(X = k)
P(X = k) for n = 40, p = 0.4; the orange bar is the most likely value, k = 16.

How to work it out

  1. 1

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

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

    P(X=16)=(4016) 0.416 0.624=0.1279P(X=16) = \binom{40}{16}\,0.4^{16}\,0.6^{24} = 0.1279
  4. 4

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

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

    Both np = 16.000 and n(1āˆ’p) = 24.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.4^{k}\,0.6^{40-k} \]
\[ X \sim \mathrm{Bin}(40,\ 0.4) \]
\[ P(X=k) = \binom{n}{k} p^{k} (1-p)^{n-k} \]
\[ P(X=16) = \binom{40}{16}\,0.4^{16}\,0.6^{24} = 0.1279 \]
\[ \mu = np = 16.000,\qquad \sigma = \sqrt{np(1-p)} = 3.098 \]

Binomial(40, 0.4) probabilities

kP(X = k)P(X ≤ k)P(X ≄ k)
60.00050.00060.9999
70.00150.00210.9994
80.00400.00610.9979
90.00950.01560.9939
100.01960.03520.9844
110.03570.07090.9648
120.05760.12850.9291
130.08270.21120.8715
140.10630.31740.7888
150.12280.44020.6826
160.12790.56810.5598
170.12040.68850.4319
180.10260.79110.3115
190.07920.87020.2089
200.05540.92560.1298
210.03520.96080.0744
220.02030.98110.0392
230.01060.99170.0189
240.00500.99660.0083
250.00210.99880.0034
260.00080.99960.0012

Summary

QuantityValue
Mean np16.000
Variance np(1āˆ’p)9.600
Standard deviation3.098
Most likely value16
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 = 40 and p = 0.4?

μ = np = 16.000.

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

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

What is the probability of exactly 16 successes in 40 trials with p = 0.4?

0.1279.

What is the probability of at least one success?

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

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

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

Other n for the same p

Other p for the same n

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