BAYES
BAYES
BAYES
THEOREM
DEVADHARSHINI B
01
What is Bayes’ Theorem?
Bayes theorem (also known as the Bayes Rule or Bayes Law) is used to determine the
conditional probability of event A when event B has already occurred.The general
statement of Bayes’ theorem is “The conditional probability of an event A, given the
occurrence of another event B, is equal to the product of the event of B, given A and
the probability of A divided by the probability of event B.” i.e.
where.,
P(A) and P(B) are the probabilities of events A and B
P(A|B) is the probability of event A when event B happens
P(B|A) is the probability of event B when A happens
02
Terms in formula
03
Posterior probability - updated probability
after the evidence is considered
Prior probability - the probability before the
evidence is considered
Likelihood - probability of the evidence, given
the belief is true
Marginal probability - probability of the
evidence, under any circumstance
SUM
The percentage of spam in the
04
whole e-mail is 30%. The
percentage of the word 'offer' that
occurs in spam e-mails is 80%. The
percentage of the word 'offer' that
occurs in the desired e-mails is
10%. Find the probability of spam
where the e-mail contains the
word 'offer' using Bayes theorem.
reallygreatsite.com
05
reallygreatsite.com
06
reallygreatsite.com
07
reallygreatsite.com
Amy has two bags. Bag I has 7 red and 4 blue balls and bag II has 5 red and 9 blue balls. Amy
draws a ball at random and it turns out to be red. Determine the probability that the ball was
from the bag I.
Assume A to be the event of drawing a red ball. We know that the probability of choosing a
bag for drawing a ball is 1/2, that is,
P(X) = P(Y) = 1/2
Let X and Y be the events that the ball is from the bag I and bag II, respectively. Since
there are 7 red balls out of a total of 11 balls in the bag I, therefore, P(drawing a red ball
from the bag I) = P(A|X) = 7/11
Similarly, P(drawing a red ball from bag II) = P(A|Y) = 5/14
08
To determine this we will use Bayes Theorem. Using Bayes theorem, we have the following:
09
complex methodologies, For example, The popular Bayesian
networks.
Used in classification problems and other probability-related
questions.
Bayesian inference, a particular approach to statistical inference.
In genetics, Bayes’ theorem can be used to calculate the probability
of an individual having a specific genotype.
Thank You