In view of the coronavirus pandemic, we are making LIVE CLASSES and VIDEO CLASSES completely FREE to prevent interruption in studies
Maths > Probability > Baye’s Theorem
Probability

Baye’s Theorem

Suppose you have three bags full of red and black balls. From these bags, you can calculate the chance of drawing red balls or black balls. Also, you can calculate the probability of choosing a particular bag. Won’t it be more interesting to calculate the probability of drawing a specific ball when you know the condition that it is selected from a particular bag? This can be done by using Bayes theorem. Baye’s theorem uses the concept of conditional probability.

Suggested Videos

Play
Play
Arrow
Arrow
ArrowArrow
Introduction to Probability
Problems on Probability
Slider

 

Bayes Theorem

We are quite familiar with probability and its calculation. From one known probability we can go on calculating others. But can we use all the prior information to calculate or to measure the chance of some events happened in past? This is the posterior probability. Bayes theorem calculates the posterior probability of a new event using a prior probability of some events.

Bayes theorem

Bayes theorem, sometimes, also calculates the probability of some future events.

Browse more Topics under Probability

Theorem

If E1, E2, E3, … , En are mutually disjoint events with P(Ei) ≠ 0, (i = 1, 2, …, n), then for any arbitrary event A which is a subset of the union of events Ei such that P(A) > 0, we have

P(E| A) = [P(Ei).P(A | Ei)] ÷ [∑i P(Ei).P(A | Ei)] = [P(Ei).P(A | Ei)] ÷ P(A), E1, E2, E3, … , Erepresents the partition of the sample space S.

Proof

A is a subset of the union of Ei, i.e., A ⊂ ∪Ei,  we have, A = A ∩ (∪ Ei) = ∪ (A ∩ Ei). Also, (A ∩ Ei) subset Ei, (i = 1, 2, …, n) are mutually disjoint events as Ei’s are mutually disjoint. So,

P(A) = P[∪ (A ∩ Ei)] = ∑i P(A ∩ Ei) = ∑i P(Ei). P(A | Ei).

Also, P(A ∩ Ei) = P(A). P(E| A)

or, P(E| A) = P(A ∩ Ei) ⁄ P(A) = [P(Ei). P(A | Ei)] ÷ [∑i P(Ei). P(A | Ei)].

Example 1

Let us consider the situation where a child has three bags of fruits in which Bag 1 has 5 apples and 3 oranges, Bag 2 has 3 apples and 6 oranges and Bag 3 has 2 apples and 3 oranges. One fruit is drawn at random from one of the bags. It was an apple. Let us calculate the probability that the chosen fruit was apple and was drawn from Bag 3.

Here, we can calculate the probability of selecting the bags, P(E1) = P(E2) = P(E3) = 1⁄3. The probability of drawing out of apple from Bag 1, P(A | E1) = 5⁄8 , from Bag 2, P(A|E2) = 3⁄9 = 1⁄3, from Bag 3, P(A | E3) = 2⁄5.

We have to calculate the probability of drawing a fruit given that we have chosen the Bag 3. The probability of drawing a fruit from Bag 3 given that the chosen fruit is an apple is P(E3|A). The Bayes’ formula helps us to calculate the probability, which is

P(E3| A) = [P(E3). P(A | E3)] ÷ [P(E1)×P(A |E1) + P(E2)×P(A | E2) + P(E3)×P(A|E3)]

⇒ P(E3| A) 0= 1⁄3 × 2⁄5 ÷ [(1⁄3 × 5⁄8) + (1⁄3 × 3⁄9) + (1⁄3 × 2⁄5)] = (2⁄15) ÷ (163⁄360) = 48⁄163.

More Solved Examples for You

Problem: Let there be three boxes. The content of them are as follows:

  • Box I contains 1 black, 2 white, 3 red balls.
  • The Box II contains 1 black, 1 white, 2 red balls, and
  • Box III has 5 black, 4 white, 1 red balls.

One box is chosen at random and three balls are drawn from it. They all are of different colors. What is the probability that they come from boxes I, II or III?

Solution: Let A be the event of drawing three balls. E1, E2, E3 represent the events of selecting Box I, II and III respectively.

P(E1) = P(E2) = P(E3) = 1⁄3.

The probability of drawing three balls given that the Box I is selected, P(A|E1) = (1C1 × 2C1 × 3C1) ÷ 6C3 = 3⁄10.

P(A|E2) = (1 × 1 × 2) ÷ 4C3 = ½.
P(A|E3) = (5 × 4 × 1) ÷ 10 C3 = 1⁄6.
And P(E1)×P(A |E1) + P(E2)×P(A | E2) + P(E3)×P(A | E3) = 29⁄90.

We can calculate the probabilities by using Bayes theorem. So, the required probability,

P(E1 | A) = [P(E1 | A). P(A | E1)] ÷ [P(E1)×P(A |E1) + P(E2)×P(A | E2) + P(E3)×P(A|E3)] = (1⁄10) ÷ (29⁄90) = 9⁄29.

P(E2 | A) = [P(E2 | A). P(A | E2)] ÷ [P(E1)×P(A |E1) + P(E2)×P(A | E2) + P(E3)×P(A |E3)] = (1⁄6) ÷ (29⁄90) = 15⁄29.

P(E3 | A) = 1 − [P(E1 | A) + P(E2 | A) ] = 1 − [(9⁄29) +(15⁄29)] = 1 − 24⁄29 = 5⁄29.

Question. Explain what is meant by Bayes Theorem?

Answer. Bayes’ theorem refers to a mathematical formula that helps you in the determination of conditional probability. Furthermore, this theorem describes the probability of any event.

Question. How to read Bayes Theorem?

Answer.  To read the Bayes Theorem, consider an even A. If the event “A” takes place, then the probability of the event “B” is the probability of happening of event “A”  when the event “B” takes place times the probability of the event “B” occurring with no prior events all whose division takes place by the probability of the occurring of event “A” that has no prior events.

Question. What is the importance of Bayes Theorem?

Answer. Consider a situation where a person has tested positive for cancer. Now, the individual wants to find the chances of having cancer after testing positive. So, Bayes Theorem allows the individual to reverse this probability to get his answer.

Question. What is the difference between Bayes rule and Conditional Probability?

Answer. The conditional probability helps in finding the probability of any particular event such that the event has already taken place. In contrast, Bayes theorem or rule finds just the opposite.

 

Share with friends

Customize your course in 30 seconds

Which class are you in?
5th
6th
7th
8th
9th
10th
11th
12th
Get ready for all-new Live Classes!
Now learn Live with India's best teachers. Join courses with the best schedule and enjoy fun and interactive classes.
tutor
tutor
Ashhar Firdausi
IIT Roorkee
Biology
tutor
tutor
Dr. Nazma Shaik
VTU
Chemistry
tutor
tutor
Gaurav Tiwari
APJAKTU
Physics
Get Started

Leave a Reply

avatar
  Subscribe  
Notify of

Get Question Papers of Last 10 Years

Which class are you in?
No thanks.