Bernoulli Distribution
The fundamental building block of discrete probability, modeling a single trial with two outcomes.
The Bernoulli distribution is the simplest of all discrete distributions. It models a single event or trial that has only two possible outcomes: a "success" or a "failure".
Think of it as a single coin flip (Heads or Tails), a single trade (Win or Loss), or a single bond (Default or No Default). The entire distribution is described by a single parameter, , which is the probability of success.
Core Concepts
- If (success), the formula becomes .
- If (failure), the formula becomes .
The interactive chart above is a direct visualization of this PMF.
| Value of | CDF: | Explanation |
|---|---|---|
| The outcome cannot be less than 0. | ||
| The only possible value in this range is 0. | ||
| Includes both outcomes 0 and 1, so probability is . |
Key Derivations
Deriving the Expected Value (Mean)
The expected value is the sum of each outcome multiplied by its probability.
Step 1: Set up the Summation
The formula for the expected value of a discrete random variable is:
Step 2: Apply to the Bernoulli Case
For the Bernoulli distribution, our outcomes () are 0 (failure) and 1 (success).
Step 3: Final Result
This makes intuitive sense: if a trade has a 70% () chance of success, the expected outcome of a single trial is 0.7.
Deriving the Variance
We use the formula . We already know , so we first need to find .
Step 1: Find the Second Moment, E[X²]
We use the same summation logic, but with .
Step 2: Calculate the Variance
Now, we substitute everything back into the variance formula:
Notice that the variance is maximized when (a 50/50 coin flip has the highest uncertainty) and is 0 when or (the outcome is certain).