Statistics, Data Science, Machine Learning.
Bernoulli distribution : The probability distribution function of Bernoulli distribution, where p is the probability of success (Image by author) If a success occurs, X=1. Then, P(X=1)= p¹ (1–p)⁰ = p If a failure occurs, X=0. Then, P(X=0) = p⁰ (1-p)¹ = 1-p Mean and Variance of Bernoulli