Statistics, Data Science, Machine Learning.
Distribution : The mean or expected value of Bernoulli distribution is given by : E(X) = ∑ x p(x) = 0. p⁰ (1-p)¹ + 1. p¹ (1-p)⁰ = p Again, the variance of Bernoulli distribution is given by : Var(X) = E[(x-µ)²] = E(x²)- [E(x)]² Here, E(x) = p. E(x²) = ∑ x² p(x) = 0². p⁰ (1-p)¹ + 1². p¹ (1-p)⁰ = p