The Bernoulli distribution is a discrete distribution with two possible outcomes, usually labelled \(S\) for “success” and \(F\) for “failure”, it applies equally well to any two dichotomous outcomes. It is a special case of the binomial distribution where a single trial is conducted (\(n=1\)).
The probability mass function is given by:
\[ f(x|p) = p^x (1-p)^{1-x} \]
where \(x \in \{0, 1\}\) and \(p\) is the probability of success.