Binomial VS Bernoulli Distribution!



Original Source Here

Binomial Distribution!

It is the collection of Bernoulli trials for the same event, i.e., it contains more than 1 Bernoulli event for the same scenario for which the Bernoulli trial is calculated.

Way to represent Binomial Distribution!

It can be represented using two things:

  1. The number of Bernoulli trials.
  2. Probability of an event in each trial.
Binomial Distribution representation! [Image by Author]

In the image above, “n” corresponds to the number of Bernoulli trials, & “p” corresponds to the probability of the event in each trial.

Probability Function to calculate Binomial Distribution!

When there is a requirement to calculate the likelihood of the occurrence of some event a specific number of times out of a fixed number of times, the formula listed below is used.

Probability Function for Binomial Distribution! [Image by Author]

In the above equation:

  • “n” is the total number of trials of an event.
  • “s” corresponds to the number of times an event should occur.
  • “p” is the probability that the event will occur.
  • “(1 — p)” is the probability that the event will not occur.
  • “C” term is for combinations.

Example of Binomial Distribution!

Considering the same example of the Bernoulli Distribution, let’s create Binomial Distribution from that example.

Considering 95% & 5% for passing & failing an exam for a student respectively. If we want to calculate the probability of a student to pass exactly 5 exams out of 5 exams in which it appeared, using the above probability formula it can be easily calculated.

According to the situation:
n = 5,
s = 5,
p = 0.95,
(1 — p) = 0.05

The number of ways to select 5 out of 5 is 1, so the first term of the formula becomes 1, now we have:

probability(student pass all 5 exams) = 1 * (0.95)^(5) * (0.05)(0)
=> 0.774

Therefore, there is approximately a 77.4 % chance, that the student passes all of the 5 exams.

AI/ML

Trending AI/ML Article Identified & Digested via Granola by Ramsey Elbasheer; a Machine-Driven RSS Bot



via WordPress https://ramseyelbasheer.wordpress.com/2020/12/31/binomial-vs-bernoulli-distribution/

Popular posts from this blog

The 2021 machine learning, AI, and data landscape

Fully Explained DBScan Clustering Algorithm with Python

Hierarchical clustering explained