In probability theory and statistics, the Bernoulli distribution, named after Swiss scientist Jacob Bernoulli, is the probability distribution of a random variable which takes value 1 with success probability p and value 0 with failure probability q=1-p.
Some problems in probability involve observing whether a specified event occurs. Noted as a “success” or a “failure”
If X is a random variable with this distribution, we have:
X | 0 | 1 |
---|---|---|
p(x) | 1-p | p |
The probability mass funtion f of this distribution is as follows: