Bayes’ Theorem Questions

Bayes’ theorem questions with solutions are given here for students to practice and understand how to apply Bayes’ theorem as a special case for conditional probability. These questions are specifically designed as per the CBSE class 12 syllabus. Every year, a good weightage question is asked based on Bayes’ theorem; practicising these questions will help in the preparations for the board exams.

Famous mathematician Thomas Bayes gave this theorem to solve the problem of finding reverse probability by using conditional probability.

The theorem is stated as follows:

If E1, E2, E3, …, En are non-empty events which form a partition of the sample space S, that is, E1, E2, E3, …, En are pairwise disjoint and E1 U E2 U E3 U …U En = S. If A is any event of non-zero probability that occurs with some Ei; (i = 1, 2, 3, …,n), then

\(\begin{array}{l}P(E_{i}|A)=\frac{P(A|E_{i}).P(E_{i})}{\sum_{i=1}^{n}P(A|E_{i}).P(E_{i})};\:\:i=1,2,3,…,n.\end{array} \)

Bayes’ theorem for two events is given as:

Bayes Theorem

To learn more about Bayes’ Theorem, click here.

Bayes’ Theorem Questions With Solutions

To get a better understanding of Bayes’ theorem, let us apply it by solving a few questions.

Question 1:

Three persons A, B and C have applied for a job in a private company. The chance of their selections is in the ratio 1 : 2 : 4. The probabilities that A, B and C can introduce changes to improve the profits of the company are 0.8, 0.5 and 0.3, respectively. If the change does not take place, find the probability that it is due to the appointment of C.

Solution:

Let E1: person A get selected

E2: person B get selected

E3: person C get selected

A: Changes introduced but profit not happened

Now, P(E1) = 1/(1+2+4) = 1/7

P(E2) = 2/7 and P(E3) = 4/7

P(A|E1) = P(Profit not happened by the changes introduces by A) = 1 – P(Profit happened by the changes introduces by A) = 1 – 0.8 = 0.2

P(A|E2) = P(Profit not happened by the changes introduces by B) = 1 – P(Profit happened by the changes introduces by B) = 1 – 0.5 = 0.5

P(A|E3) = P(Profit not happened by the changes introduces by C) = 1 – P(Profit happened by the changes introduces by C) = 1 – 0.3 = 0.7

We have to find the probability of not happening profit due to selection of C

\(\begin{array}{l}P(E_{3}|A)=\frac{P(A|E_{3})P(E_{3})}{P(A|E_{1})P(E_{1})+P(A|E_{2})P(E_{2})+P(A|E_{3})P(E_{3})}\end{array} \)

\(\begin{array}{l}P(E_{3}|A)=\frac{0.7\times \frac{4}{7}}{0.2\times \frac{1}{7}+0.5\times \frac{2}{7}+0.7\times \frac{4}{7}}\end{array} \)

= 7/10.

∴ the required probability is 0.7.

Question 2:

A bag contains 4 balls. Two balls are drawn at random without replacement and are found to be blue. What is the probability that all balls in the bag are blue?

Solution:

Let E1 = Bag contains two blue balls

E2 = Bag contains three blue balls

E3 = Bag contains four blue balls

A = event of getting two white balls

P(E1) = P(E2) = P(E3) = ⅓

P(A|E1) = 2C2/4C2 = ⅙

P(A|E2) = 3C2/4C2 = ½

P(A|E3) = 4C2/4C2 = 1

\(\begin{array}{l}P(E_{3}|A)=\frac{P(A|E_{3})P(E_{3})}{P(A|E_{1})P(E_{1})+P(A|E_{2})P(E_{2})+P(A|E_{3})P(E_{3})}\end{array} \)

= [⅓ × 1]/[⅓ × ⅙ + ⅓ × ½ + ⅓ × 1]

= ⅗.

Check your answers with Bayes’ theorem calculator.

Question 3:

In a neighbourhood, 90% children were falling sick due flu and 10% due to measles and no other disease. The probability of observing rashes for measles is 0.95 and for flu is 0.08. If a child develops rashes, find the child’s probability of having flu.

Solution:

Let,

F: children with flu

M: children with measles

R: children showing the symptom of rash

P(F) = 90% = 0.9

P(M) = 10% = 0.1

P(R|F) = 0.08

P(R|M) = 0.95

\(\begin{array}{l}P(F|R)=\frac{P(R|F)P(F)}{P(R|M)P(M)+P(R|F)P(F)}\end{array} \)

\(\begin{array}{l}P(F|R)=\frac{0.08\times 0.9}{0.95\times 0.1+0.08\times 0.9}\end{array} \)

= 0.072/(0.095 + 0.072) = 0.072/0.167 ≈ 0.43

⇒ P(F|R) = 0.43

Question 4:

There are three identical cards except that both the sides of the first card is coloured red, both sides of the second card is coloured blue and for the third card one side is coloured red and the other side is blue. One card is randomly selected among these three cards and put down, visible side of the card is red. What is the probability that the other side is blue?

Solution:

Let RR: card with both side red

BB: card with both side blue

RB: card with one side red and other side blue

A: event that the visible side of the chosen card is red

P(RR) = ⅓ , P(BB) = ⅓ and P(RB) = ⅓

By the theorem of total probability, P(A) = P(A|RR).P(RR) + P(A|BB).P(BB) + P(A|RB).P(RB)

∴ P(A) = 1 × ⅓ + 0 × ⅓ + ½ × ⅓ = ½

Now,

\(\begin{array}{l}P(RB|A)=\frac{P(RB\cap A)}{P(A)}=\frac{P(A\cap RB)}{P(A)}=\frac{P(A|RB)P(RB)}{P(A)}\end{array} \)

= ½ × ⅓ ÷ ½ = ⅓ .

Question 5:

Three urns are there containing white and black balls; first urn has 3 white and 2 black balls, second urn has 2 white and 3 black balls and third urn has 4 white and 1 black balls. Without any biasing one urn is chosen from that one ball is chosen randomly which was white. What is probability that it came from the third urn?

Solution:

Let E1 = event that the ball is chosen from first urn

E2 = event that the ball is chosen from second urn

E3 = event that the ball is chosen from third urn

A = event that the chosen ball is white

Then, P(E1) = P(E2) = P(E3) = ⅓.

P(A|E1) = 3/5

P(A|E2) = ⅖

P(A|E3) = ⅘

\(\begin{array}{l}P(E_{3}|A)=\frac{P(A|E_{3})P(E_{3})}{P(A|E_{1})P(E_{1})+P(A|E_{2})P(E_{2})+P(A|E_{3})P(E_{3})}\end{array} \)

\(\begin{array}{l}= \frac{4/5 \times 1/3}{3/5 \times 1/3 + 2/5 \times 1/3 + 4/5 \times 1/3}\end{array} \)

= 4/9.

Question 6:

It is observed that 50% of mails are spam. There is a software that filters spam mail before reaching the inbox. It accuracy for detecting a spam mail is 99% and chances of tagging a non-spam mail as spam mail is 5%. If a certain mail is tagged as spam find the probability that it is not a spam mail.

Solution:

Let E1 = event of spam mail

E2 = event of non-spam mail

A = event of detecting a spam mail

Now, P(E1) = 0.5 and P(E2) = 0.5

P(A|E1) = 0.99 and P(A|E2) = 0.05

Then,

\(\begin{array}{l}P(E_{2}|A)=\frac{P(A|E_{2})P(E_{2})}{P(A|E_{1})P(E_{1})+P(A|E_{2})P(E_{2})}\end{array} \)

\(\begin{array}{l}=\frac{0.05 \times0.5}{0.99\times 0.5 + 0.05 \times0.5}=\frac{0.025}{0.520}\end{array} \)

= 5/104 ≈ 4.8%

Also Check:

Question 7:

An unbiased dice is rolled and for each number on the dice a bag is chosen:

Numbers on the Dice

Bag choosen

1

Bag A

2 or 3

Bag B

4 or 5 or 6

Bag C

Bag A contains 3 white ball and 2 black ball, bag B contains 3 white ball and 4 black ball and bag C contains 4 white ball and 5 black ball. Dice is rolled and bag is chosen, if a white ball is chosen find the probability that it is chosen from bag B.

Solution:

Let E1 = event of choosing bag A

E2 = event of choosing bag B

E3 = event of choosing bag C

A = event of choosing white ball

Then, P(E1) = ⅙, P(E2) = 2/6 = ⅔, P(E3) = 3/6 = ½

And P(A|E1) = ⅗, P(A|E2) = 3/7, P(A|E3) = 4/9

\(\begin{array}{l}P(E_{2}|A)=\frac{P(A|E_{2})P(E_{2})}{P(A|E_{1})P(E_{1})+P(A|E_{2})P(E_{2})+P(A|E_{3})P(E_{3})}\end{array} \)

\(\begin{array}{l}=\frac{3/7 \times 1/3}{3/5\times 1/6 + 3/7\times 1/3+4/9\times 1/2}= \frac{1/7}{1/10 + 1/7+2/9}\end{array} \)

⇒ P(E2|A) = 90/293.

Question 8:

A insurance company has insured 4000 doctors, 8000 teachers and 12000 businessmen. The chances of a doctor, teacher and businessman dying before the age of 58 is 0.01, 0.03 and 0.05, respectively. If one of the insured people dies before 58, find the probability that he is a doctor.

Solution:

Let, E1 = event of a person being a doctor

E2 = event of a person being a teacher

E3 = event of a person being a businessman

A = event of death of an insured person

P(E1) = 4000/(4000+8000+12000) = ⅙

P(E2) = 8000/(4000+8000+12000) = ⅓

P(E3) = 12000/(4000+8000+12000) = ½

P(A|E1) = 0.01, P(A|E2) = 0.03 and P(A|E3) = 0.05

Therefore,

\(\begin{array}{l}P(E_{1}|A)=\frac{P(A|E_{1})P(E_{1})}{P(A|E_{1})P(E_{1})+P(A|E_{2})P(E_{2})+P(A|E_{3})P(E_{3})}\end{array} \)

\(\begin{array}{l}=\frac{0.01\times 1/6}{0.01\times 1/6+0.03\times 1/3+0.05\times 1/2}=\frac{0.01}{0.01+0.06+0.15}= \frac{1}{22}\end{array} \)

⇒ P(E1|A) = 1/22

Question 9:

A card is lost from a pack of 52 cards. From the remaining cards two are drawn randomly and found to be both clubs. Find the probability that the lost card is also a clubs.

Solution:

Let E1 = Lost card is a club

E2 = lost card is not a club

A = both drawn cards are clubs

P(E1) = 13/52 = ¼ P(E2) = 39/52 = ¾

P(A|E1) = P(drawing both club cards when the lost card is a club) = 12/51 × 11/50

P(A|E2) = P(drawing both club cards when the lost card is not a club) = 13/51 × 12/50

Now,

\(\begin{array}{l}P(E_{1}|A)=\frac{P(A|E_{1})P(E_{1})}{P(A|E_{1})P(E_{1})+P(A|E_{2})P(E_{2})}\end{array} \)

\(\begin{array}{l}=\frac{12/51 \times 11/50 \times 1/4}{12/51 \times 11/50 \times 1/4+13/51 \times 12/50 \times 3/4}=\frac{12\times 11}{12\times11+3\times 13\times 12}\end{array} \)

⇒ P(E1|A) = 11/50.

Question 10:

In shop A, 30 tin pure ghee and 40 tin adulterated ghee are kept for sale while in shop B, 50 tin pure ghee and 60 tin adulterated ghee are there. One tin of ghee is purchased from one of the shops randomly and it is found to be adulterated. Find the probability that it is purchased from shop B.

Solution:

Let E1 = event of choosing shop A

E2 = event of choosing shop B

A = event of purchasing adultrated tin of ghee

P(E1) = ½ and P(E2) = ½

P(A|E1) = P(purchasing adultrated ghee from shop A) = 40/70 = 4/7

P(A|E2) = P(purchasing adultrated ghee from shop B) = 60/110 = 6/11

Therefore,

\(\begin{array}{l}P(E_{2}|A)=\frac{P(A|E_{2})P(E_{2})}{P(A|E_{1})P(E_{1})+P(A|E_{2})P(E_{2})}\end{array} \)

\(\begin{array}{l}=\frac{6/11\times 1/2}{4/7 \times 1/2+6/11 \times 1/2}=\frac{21}{43}\end{array} \)

Related Articles

Differentiation Questions

Surface Area and Volume Questions

LCM Questions

Sequence and Series Questions

Practice Questions on Bayes’ Theorem

1. If A, B and C have chances of being selected as a manager at private firm is in the ratio 4:1:2. The chances of for them to introduce changes in marketing strategies are 0.3, 0.8 and 0.5, respectively. If a change has taken place, find the the probability that it is due to the selection of B.

2. A man speaks the truth 4 out of 5 times. He throws a die and reports that it is actually a six. Find the probability that it is actually a six.

3. A sack contains 4 balls. Two balls are drawn at random (without replacement) and are found to be red. What is the probability that all balls in the bag are red?

Learn about various mathematical concepts in a simple manner with detailed information, along with step by step solutions to all questions, only at BYJU’S. Download BYJU’S – The Learning App to get personalised videos.

Comments

Leave a Comment

Your Mobile number and Email id will not be published.

*

*