Professional Documents
Culture Documents
Summarized Notes GST 05222 6.0 Bayes' Theorem
Summarized Notes GST 05222 6.0 Bayes' Theorem
Summarized Notes GST 05222 6.0 Bayes' Theorem
0 BAYES’ THEOREM
Taking a case of one of the events B1, B2,……. Bn; say Br, and taking the
multiplication rule P(A∩Br) = P(Br) * P(A|Br) -------------(4)
P(Br|A) = P(A∩ Br)/P(A) ----------------------------------(5)
Note that:
(a) The numerator of (4) is the probability of reaching A via the rth path among
the n mutually exclusive and collectively exhaustive paths. The denominator
is the probability for the event A to occur (found by the sum of probabilities
of reaching A via ALL possible paths).
1
(b) The probabilities P(Bi) are called prior probabilities of the events B and in
practice it is difficult to determine these probabilities.
(c) The probability P(Br|A) is called the posterior probability of the event Br.
(d) Usually in such cases; one may have some approximation of the prior
probability P(Br), but when additional/new information comes into
knowledge; the prior probability is revised to the posterior probability
P(Br|A)
Example 6.1.2.3.1: During the beginning of the COVID-19 pandemic, a test that
was administered to an infected person for checking the COVID-19 infection,
would give a positive result with 0.92 probability. When the test was administered
to a person who was not infected, the test was giving a positive result with 0.04
probability. By then, the COVID-19 was known to have affected only 0.1% of the
entire population. If a randomly selected person gives a positive test, what is the
probability that the person is indeed infected?
▪ Let I be the event that a given person is infected by COVID-19 and P be the
event that a person gives a positive result when he/she is been tested.
▪ Given that P(P|I) = 0.92, P(P|I’) = 0.04 and P(I) = 0.001. Strongly
recommended to use a tree diagram to demonstrate the given information.
▪ Required to determine P(I|P)
▪ From the Bayes’ theorem,
P(I|P) = P(I∩P)/P(P) = P(I) * P(P|I)/P(P)
= P(I) * P(P|I)/{P(I) * P(P|I) + P(I’) * P(P|I’)}
= 0.001 * 0.92/{(0.001 * 0.92) + (0.999 * 0.04)}
= 0.0225
2
▪ Note that J, T, G and P are mutually exclusive and collectively exhaustive
events, which implies that they are partitioning the given sample space.
Strongly recommended to use a tree diagram to demonstrate the given
information.
▪ Further, given that P(C’|J) = 0.05, P(C’|T) = 0.1, P(C’|G) = 0.1 and P(C’|P)
= 0.05
▪ Required to determine P(J|C’)
▪ From the Bayes’ theorem,
P(J|C’) = P(J∩C’)/P(C’) = P(J) * P(C’|J) /P(C’)
= P(J) * P(C’|J) /{P(J) * P(C’|J) + P(T) * P(C’|T) + P(G) * P(C’|G) + P(P) *
P(C’|P)}
= 0.2 * 0.05/{(0.2 * 0.05) + (0.6 * 0.1) + (0.15 * 0.1) + (0.05 * 0.05)}
= 0.114