WordGPT

Binomial distribution, n = 40, p = 0.3

For X ~ Binomial(n = 40, p = 0.3) the mean is 12.000, the variance 8.400 and the standard deviation 2.898. The most likely number of successes is 12, with probability 0.1366.

00.050.10.150.23579111315171921kP(X = k)
P(X = k) for n = 40, p = 0.3; the orange bar is the most likely value, k = 12.

How to work it out

  1. 1

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

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

    P(X=12)=(4012) 0.312 0.728=0.1366P(X=12) = \binom{40}{12}\,0.3^{12}\,0.7^{28} = 0.1366
  4. 4

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

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

    Both np = 12.000 and n(1āˆ’p) = 28.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.3^{k}\,0.7^{40-k} \]
\[ X \sim \mathrm{Bin}(40,\ 0.3) \]
\[ P(X=k) = \binom{n}{k} p^{k} (1-p)^{n-k} \]
\[ P(X=12) = \binom{40}{12}\,0.3^{12}\,0.7^{28} = 0.1366 \]
\[ \mu = np = 12.000,\qquad \sigma = \sqrt{np(1-p)} = 2.898 \]

Binomial(40, 0.3) probabilities

kP(X = k)P(X ≤ k)P(X ≄ k)
30.00050.00060.9999
40.00200.00260.9994
50.00610.00860.9974
60.01510.02380.9914
70.03150.05530.9762
80.05570.11100.9447
90.08490.19590.8890
100.11280.30870.8041
110.13190.44060.6913
120.13660.57720.5594
130.12610.70320.4228
140.10420.80740.2968
150.07740.88490.1926
160.05180.93670.1151
170.03140.96800.0633
180.01720.98520.0320
190.00850.99370.0148
200.00380.99760.0063
210.00160.99910.0024
220.00060.99970.0009

Summary

QuantityValue
Mean np12.000
Variance np(1āˆ’p)8.400
Standard deviation2.898
Most likely value12
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.3?

μ = np = 12.000.

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

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

What is the probability of exactly 12 successes in 40 trials with p = 0.3?

0.1366.

What is the probability of at least one success?

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

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

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

Other n for the same p

Other p for the same n

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