Discrete distribution
Bernoulli distribution
What it describes
Bernoulli is the model for one trial with two outcomes: success or failure. Coding the result as 1 or 0 leaves the distribution determined by p, the success probability.
Its support is {0,1}. Mean is p and variance is p × [1-p], but the meaning of 1 depends on the event definition.
History and names
Jakob Bernoulli studied binary trials and the law of large numbers in Ars Conjectandi, published posthumously in 1713. The name honours two outcomes rather than one application.
How it connects to other distributions
A sum of independent Bernoulli trials with common p is Binomial. Geometric counts trials to the first success; Negative Binomial extends waiting to several successes.
Where it appears
- binary responses, quality checks, and presence/absence events
- classification models and indicator variables in regression
Fitting cautions
Do not confuse p with an observed percentage from one sample: the count is evidence about p, not identical to it.
The small mechanism behind larger models
A single Bernoulli observation looks modest, yet it is a statistical building block. Summing trials produces the Binomial distribution. Allowing the success probability to change with observed features leads to logistic regression. A sequence of indicators can also turn complex questions into counts: each indicator may record whether a machine failed, rain fell, or a person responded.
Coding deserves attention. Swapping zero and one replaces p with 1-p; the evidence is unchanged, but the parameter meaning and the sign of some effects change. A Bernoulli variable should not be confused with a measured probability either. The former takes only two values, while an uncertain probability lies on an interval and is often represented by a Beta distribution.
References
- Johnson, N. L., Kemp, A. W. & Kotz, S. (2005). Univariate Discrete Distributions, 3rd ed. Wiley.
- Bernoulli, J. (1713). Ars Conjectandi. Thurneysen.
- Feller, W. (1968). An Introduction to Probability Theory and Its Applications, Vol. 1, 3rd ed. Wiley.