edited by
2,441 views

2 Answers

Best answer
2 votes
2 votes

Here the first line is 

P(B) = ∑j  P(B|Aj) P(Aj) ................................(1)

Now, we know that P(Ai | B) = P (A∩ B) / P(B)

So, P(B)= P (Ai ∩ B) / P(Ai | B) ........................(2)

Again, P (Ai ∩ B) = P (B ∩ Ai) = P (Ai) P (B | Ai ) ............... (3)

So, putting the value of P (Ai ∩ B) from (3) in (2)  we get 

P(B)= ( P (Ai) P (B | Ai ) ) / P(Ai | B)  ...........................(4)

Now, putting the value of P(B) from (4) in (1) we get

( P (Ai) P (B | Ai ) ) / P(Ai | B) = ∑j  P(B|Aj) P(Aj)

Hence P(Ai | B) =  ( P (Ai) P (B | Ai ) ) /∑j  P(B|Aj) P(Aj) (The second line of the question) 

selected by
1 votes
1 votes

Sreshta, I can give you an intuitive proof which will be very helpful in solving most of the Bayes theorem questions.

Take an example say we have two Events A1 and A2 and en Event B.B is independent of A1 and A2 and A1 and A2 are mutually exclusive.

Your Line 1 Says, to count how many ways My Event B can occur, you have to Sum up all the ways Event B can occur after event A occurs.

So, in this Case, P(B)=Sum of 1 and 2 shown in the figure above.

Your line 2 asks, what is the probability that Event Ai occurs when Event B has occurred.

For this, we can use basic definition of probability which says favourable ways/total ways.

The probability that Ai occurs when Event B has already occurred = $\frac{Probability  of happening of B when A_{i} occurs}{Probability in which all ways B can occur}$

so lets us focus on our example.

P(A1|B)=Probability of happening of A1 given B has already occurred is given by expressions.

= $\frac{1}{1+2}$

The numerator expresses happening of B after A1 has occurred.

The denominator expresses all in all how Event B can occur.

Related questions

4 votes
4 votes
3 answers
1
Sona Barman asked Jan 11, 2018
3,150 views
When we should use Total probability and Baye's Theorem? Explain with examples.