Data Science, Probability Theory, Statistics.
below Where X is the Bernoulli Random variable and we have two outcomes which are represented as zero and one. Let’s assume, A: event that outcome is success. P(A) = P(success) = p then the probability of success be P(X = 1) = p and similarly the probability of failure be P(X = 0) = 1- p because