WordGPT

Binomial distribution, n = 40, p = 0.5

For X ~ Binomial(n = 40, p = 0.5) the mean is 20.000, the variance 10.000 and the standard deviation 3.162. The most likely number of successes is 20, with probability 0.1254.

00.050.10.150.21012141618202224262830kP(X = k)
P(X = k) for n = 40, p = 0.5; the orange bar is the most likely value, k = 20.

How to work it out

  1. 1

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

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

    P(X=20)=(4020) 0.520 0.520=0.1254P(X=20) = \binom{40}{20}\,0.5^{20}\,0.5^{20} = 0.1254
  4. 4

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

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

    Both np = 20.000 and n(1āˆ’p) = 20.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.5^{k}\,0.5^{40-k} \]
\[ X \sim \mathrm{Bin}(40,\ 0.5) \]
\[ P(X=k) = \binom{n}{k} p^{k} (1-p)^{n-k} \]
\[ P(X=20) = \binom{40}{20}\,0.5^{20}\,0.5^{20} = 0.1254 \]
\[ \mu = np = 20.000,\qquad \sigma = \sqrt{np(1-p)} = 3.162 \]

Binomial(40, 0.5) probabilities

kP(X = k)P(X ≤ k)P(X ≄ k)
100.00080.00110.9997
110.00210.00320.9989
120.00510.00830.9968
130.01090.01920.9917
140.02110.04030.9808
150.03660.07690.9597
160.05720.13410.9231
170.08070.21480.8659
180.10310.31790.7852
190.11940.43730.6821
200.12540.56270.5627
210.11940.68210.4373
220.10310.78520.3179
230.08070.86590.2148
240.05720.92310.1341
250.03660.95970.0769
260.02110.98080.0403
270.01090.99170.0192
280.00510.99680.0083
290.00210.99890.0032
300.00080.99970.0011

Summary

QuantityValue
Mean np20.000
Variance np(1āˆ’p)10.000
Standard deviation3.162
Most likely value20
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.5?

μ = np = 20.000.

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

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

What is the probability of exactly 20 successes in 40 trials with p = 0.5?

0.1254.

What is the probability of at least one success?

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

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

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

Other n for the same p

Other p for the same n

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