Biostatistics · Intermediate

Binomial Distribution (Optional)

Written by SignalsLab

Early edition: these lessons are being reviewed.

Content

Summary

The binomial distribution models the count of successes in a fixed number of independent Bernoulli trials, denoted as X∼B(n,p). It requires a constant probability of success p and failure q=1−p, with outcomes restricted to integers from 0 to n. Key metrics include the mean μ=np and standard deviation σ=npq.

Intuition

Think of a binomial experiment as a series of yes-or-no questions asked repeatedly under identical conditions. The random variable X counts how many 'yes' answers (successes) you get. The term 'success' is just a label for the outcome you are tracking, not necessarily a good thing. Because you are counting whole events, X must be an integer. The distribution's shape depends on n and p; if p is 0.5, it is symmetric, but if p is near 0 or 1, it skews. We use the mean to predict the average outcome over many trials and the standard deviation to understand the typical spread or variability around that average.

Key equations

X∼B(n,p)
(1)

Notation indicating X follows a binomial distribution with n trials and success probability p.

q=1−p
(2)

Probability of failure, complementary to the probability of success.

P(X=x)=(nx)pxqn−x
(3)

Probability mass function for exactly x successes in n trials.

μ=np
(4)

Expected value or mean number of successes.

σ=npq
(5)

Standard deviation measuring the spread of the distribution.

Derivation

  1. Identify a sequence of n independent trials.
  2. Confirm each trial has exactly two outcomes: success (prob p) and failure (prob q=1-p).
  3. Define X as the total count of successes, which must be an integer between 0 and n.
  4. Calculate the mean as the product of trials and success probability: μ=np.
  5. Calculate the variance as npq, leading to standard deviation σ=npq.

Worked example

Problem

In a survey, 41% of adult workers have only a high school diploma. If you sample 20 workers, what is the expected number and standard deviation of such workers?

  1. Identify parameters: n = 20, p = 0.41.
  2. Calculate q: q = 1 - 0.41 = 0.59.
  3. Calculate mean: μ=20×0.41=8.2.
  4. Calculate standard deviation: σ=20×0.41×0.59=4.838≈2.20.

Answer Mean = 8.2, Standard Deviation approx 2.20

Common mistakes

  • Treating 'success' as a positive value judgment rather than the specific outcome being measured.
  • Assuming the probability of success changes between trials; binomial trials must have constant p.
  • Calculating probabilities for non-integer values of X, which is impossible for discrete counts.
  • Confusing the binomial coefficient nCx with simple multiplication n*x.

Animation

Animation coming soon

The animated version of this lesson is being prepared for the web. In the Signals AI app, lessons are drawn step by step.

Code

This is a text lesson: it has no animation code yet.

ccBYNC© 2026 SignalsLab. Lesson text shared as is under CC BY-NC 4.0.