The Bernoulli distribution models a single trial with two possible outcomes — success or failure. It’s the building block for more complex distributions like the Binomial and is widely used in binary classification and yes/no decisions. ⚖️
p_{X}(x) =
\begin{cases}
p & \text{if } x = 1, \\
q = 1-p & \text{if } x = 0.
\end{cases}
The discrete random variable can take value 1 with probability p or value 0 with probability q = 1 - p
Not to be confused with the binomial distribution, since only one trial is being conducted.