Probability Distributions › The Binomial Distribution
Machine Learning from ScratchAll chapters Probability Distributions › The Binomial DistributionOne section · Sections in this chapter5 / 13 ↓
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
Many practical problems involve counting successes in a fixed number of independent trials, each with the same probability of success. The binomial distribution provides the exact probability model for such scenarios, making it essential for analyzing binary outcomes and discrete event counts.
The probability mass function for the binomial distribution is:
Where:
- : The number of successes
- : The number of trials
- : The specific number of successes (0, 1, 2, ..., n)
- : The probability of success on each trial
- : The binomial coefficient
The binomial distribution applies whenever we can frame a problem as repeated independent Bernoulli trials: experiments with exactly two possible outcomes. Quality control scenarios offer clear examples: if a manufacturing process produces defective items with probability , the number of defects in a batch of items follows a binomial distribution. Similarly, in A/B testing for web applications, the number of users who click a button out of visitors follows a binomial distribution if we assume independence between user actions.
Understanding the binomial distribution enables practitioners to calculate precise probabilities for discrete outcomes. For instance, if a website's conversion rate is 5%, we can determine the probability that exactly 3 out of 20 visitors make a purchase, or the probability that at least 2 visitors convert. These calculations inform decision-making about sample sizes, detection of anomalies, and assessment of whether observed conversion rates differ significantly from historical baselines.
Example: Binomial Distribution Visualization
