For θ[0,1]\theta\in[0,1], the Bernoulli distribution Bernoulli(θ)\operatorname{Bernoulli}(\theta) is the distribution on {0,1}\{0,1\} with

p(1)=θ,p(0)=1θ.p(1)=\theta,\qquad p(0)=1-\theta.
Interpretation

The value one denotes success and zero denotes failure. The indicator of an event of probability θ\theta has this distribution, including the deterministic cases θ=0\theta=0 and θ=1\theta=1.

Moments

If XX has this law, its is θ\theta and its is θ(1θ)\theta(1-\theta).