The Bernoulli Distribution
The simplest possible random variable — a single coin flip with two outcomes — and the building block underneath binomial counts, logistic regression, and win/loss trade outcomes.
A Bernoulli random variable takes only two values, conventionally ("success") and ("failure"), with success probability and failure probability . It's the mathematical model for a single yes/no event: one coin flip, whether one specific trade is a winner, whether one specific option expires in-the-money.
Its mean is simply — the long-run average of a 0/1 variable is just the probability of getting a 1. Its variance is , which is largest when (maximum uncertainty about the outcome) and shrinks toward zero as approaches 0 or 1 (the outcome becomes near-certain either way).
Worked example: a strategy wins a given trade with probability . Its per-trade outcome has mean and variance , so a standard deviation of about — nearly as large as the mean itself, which is typical for Bernoulli outcomes near the middle of the range. Summing independent Bernoulli trials with the same gives a binomial random variable, the count of successes out of tries; this is exactly how a win-rate estimate over a backtest is built, one Bernoulli outcome per trade.
A Bernoulli variable is a single 0/1 outcome with mean and variance ; it's the atomic building block behind binomial counts, win-rate statistics, and the likelihood function used in logistic regression.
Related concepts
Practice in interviews
Further reading
- Wasserman, All of Statistics, ch. 2