WordGPT

Binomial distribution, n = 40, p = 0.8

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

00.050.10.150.2232527293133353739kP(X = k)
P(X = k) for n = 40, p = 0.8; the orange bar is the most likely value, k = 32.

How to work it out

  1. 1

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

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

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

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

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

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

Binomial(40, 0.8) probabilities

kP(X = k)P(X ≤ k)P(X ≄ k)
230.00070.00100.9997
240.00190.00290.9990
250.00500.00790.9971
260.01150.01940.9921
270.02380.04320.9806
280.04430.08750.9568
290.07330.16080.9125
300.10750.26820.8392
310.13860.40690.7318
320.15600.56290.5931
330.15130.71410.4371
340.12460.83870.2859
350.08540.92410.1613
360.04750.97150.0759
370.02050.99210.0285
380.00650.99850.0079
390.00130.99990.0015

Summary

QuantityValue
Mean np32.000
Variance np(1āˆ’p)6.400
Standard deviation2.530
Most likely value32
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.8?

μ = np = 32.000.

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

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

What is the probability of exactly 32 successes in 40 trials with p = 0.8?

0.1560.

What is the probability of at least one success?

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

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

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

Other n for the same p

Other p for the same n

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