Bernoulli Distribution
The Bernoulli distribution is the absolute simplest discrete probability distribution. It models a single trial or experiment that has exactly two possible outcomes.
These two outcomes are mathematically coded as:
- Success ()
- Failure ()
Core Concepts
If a random variable follows a Bernoulli distribution, we write this as:
Where is the probability of the "Success" outcome. Therefore, the probability of the "Failure" outcome is naturally (sometimes denoted as ).
Probability Mass Function (PMF)
The probability mass function is piecewise defined as:
This can be written compactly into a single elegant algebraic formula for :
Key Metrics
- Expected Value (Mean):
- Variance:
Real-World Examples
- Flipping a Coin: If we define "Heads" as success, a fair coin has .
- Quality Control: Testing a single lightbulb where success is "defective" () and failure is "working".
- Medical Testing: A patient either tests positive for a disease () or negative ().
Interactive Visualization
Below is an interactive graph. Notice how increasing the probability of success physically shifts the weight from the "Failure" bar directly over to the "Success" bar. Because there are only two outcomes, the sum of the two bars will always equal exactly .
Bernoulli Distribution
A single trial: success with probability p, failure with probability 1−p.
Test Your Knowledge
Example: Bernoulli Variance
A weighted coin has a 70% chance of landing heads (). Let be the Bernoulli random variable representing a single flip (1 for Heads, 0 for Tails). What is the Expected Value and Variance of ?
View Step-by-Step Solution
For a Bernoulli distribution:
Expected Value:
Variance: