WordGPT

Binomial distribution, n = 5, p = 0.4

For X ~ Binomial(n = 5, p = 0.4) the mean is 2.000, the variance 1.200 and the standard deviation 1.095. The most likely number of successes is 2, with probability 0.3456.

00.130.250.380.5012345kP(X = k)
P(X = k) for n = 5, p = 0.4; the orange bar is the most likely value, k = 2.

How to work it out

  1. 1

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

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

    P(X=2)=(52) 0.42 0.63=0.3456P(X=2) = \binom{5}{2}\,0.4^{2}\,0.6^{3} = 0.3456
  4. 4

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

    μ=np=2.000,σ=np(1āˆ’p)=1.095\mu = np = 2.000,\qquad \sigma = \sqrt{np(1-p)} = 1.095
  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{5}{k}\,0.4^{k}\,0.6^{5-k} \]
\[ X \sim \mathrm{Bin}(5,\ 0.4) \]
\[ P(X=k) = \binom{n}{k} p^{k} (1-p)^{n-k} \]
\[ P(X=2) = \binom{5}{2}\,0.4^{2}\,0.6^{3} = 0.3456 \]
\[ \mu = np = 2.000,\qquad \sigma = \sqrt{np(1-p)} = 1.095 \]

Binomial(5, 0.4) probabilities

kP(X = k)P(X ≤ k)P(X ≄ k)
00.07780.07781.0000
10.25920.33700.9222
20.34560.68260.6630
30.23040.91300.3174
40.07680.98980.0870
50.01021.00000.0102

Summary

QuantityValue
Mean np2.000
Variance np(1āˆ’p)1.200
Standard deviation1.095
Most likely value2
P(at least one success)0.9222
P(no success)0.0778
Normal approximation usableno

Questions

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

μ = np = 2.000.

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

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

What is the probability of exactly 2 successes in 5 trials with p = 0.4?

0.3456.

What is the probability of at least one success?

1 āˆ’ (1 āˆ’ 0.4)^5 = 0.9222.

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

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

Other n for the same p

Other p for the same n

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