WordGPT

Binomial distribution, n = 30, p = 0.4

For X ~ Binomial(n = 30, p = 0.4) the mean is 12.000, the variance 7.200 and the standard deviation 2.683. The most likely number of successes is 12, with probability 0.1474.

00.050.10.150.2468101214161820kP(X = k)
P(X = k) for n = 30, p = 0.4; the orange bar is the most likely value, k = 12.

How to work it out

  1. 1

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

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

    P(X=12)=(3012) 0.412 0.618=0.1474P(X=12) = \binom{30}{12}\,0.4^{12}\,0.6^{18} = 0.1474
  4. 4

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

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

    Both np = 12.000 and n(1āˆ’p) = 18.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{30}{k}\,0.4^{k}\,0.6^{30-k} \]
\[ X \sim \mathrm{Bin}(30,\ 0.4) \]
\[ P(X=k) = \binom{n}{k} p^{k} (1-p)^{n-k} \]
\[ P(X=12) = \binom{30}{12}\,0.4^{12}\,0.6^{18} = 0.1474 \]
\[ \mu = np = 12.000,\qquad \sigma = \sqrt{np(1-p)} = 2.683 \]

Binomial(30, 0.4) probabilities

kP(X = k)P(X ≤ k)P(X ≄ k)
40.00120.00150.9997
50.00410.00570.9985
60.01150.01720.9943
70.02630.04350.9828
80.05050.09400.9565
90.08230.17630.9060
100.11520.29150.8237
110.13960.43110.7085
120.14740.57850.5689
130.13600.71450.4215
140.11010.82460.2855
150.07830.90290.1754
160.04890.95190.0971
170.02690.97880.0481
180.01290.99170.0212
190.00540.99710.0083
200.00200.99910.0029
210.00060.99980.0009

Summary

QuantityValue
Mean np12.000
Variance np(1āˆ’p)7.200
Standard deviation2.683
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 = 30 and p = 0.4?

μ = np = 12.000.

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

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

What is the probability of exactly 12 successes in 30 trials with p = 0.4?

0.1474.

What is the probability of at least one success?

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

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

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

Other n for the same p

Other p for the same n

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