Bernoulli Distribution¶
A Bernoulli distribution is a distribution with two possible outcomes: the event happens or does not happen. A random variable \(\mathbf{X}\) in a Bernoulli distribution can take two values:
where 0 means the event does not happen, and 1 means the event does happen.
Thus,
where \(p\) indicates the probability of success (or occurrence of the event), and \(1 - p\) is the probability of failure (or non-occurrence).
Bernoulli \(\rightarrow\) Binomial¶
When we conduct \(n\) independent Bernoulli trials \((B_1, B_2, B_3, \dots, B_n)\), each with the same probability of success \(p\), the distribution of the sum of successes follows a Binomial Distribution.
Let \(\mathbf{X} =\) total number of successes \(= B_1 + B_2 + \dots + B_n\), where \(B_i \sim \text{Bernoulli}(p)\).
Then,
where \(n\) and \(p\) are the parameters representing the number of trials and the probability of success, respectively.