Questions on Baye's Theorem
Bayes' Theorem
Definition, Formula and 10 University-Level Solved Problems
Definition of Bayes' Theorem
Bayes' theorem is used to calculate the probability of an event after new information or evidence has become available.
Let A and B be two events such that
Then Bayes' theorem is
Here:
- P(A | B) = posterior probability
- P(B | A) = likelihood
- P(A) = prior probability
- P(B) = probability of the evidence
General Form
If A1, A2, ..., An form a partition of the sample space, then
A factory has two machines M1 and M2. Machine M1 produces 60% of the items and M2 produces 40%. Their defective rates are 2% and 5%, respectively. An item selected randomly is found to be defective. Find the probability that it was produced by M2.
Show Detailed Solution
Let D denote the event that an item is defective.
First calculate the total probability of a defective item.
Now apply Bayes' theorem:
A disease affects 1% of a population. A diagnostic test has 95% sensitivity and a 4% false-positive rate. If a person tests positive, find the probability that the person actually has the disease.
Show Detailed Solution
Let D denote disease and + denote a positive test.
The total probability of a positive test is
Now apply Bayes' theorem.
There are three urns:
U1: 2 red and 3 blue balls
U2: 4 red and 1 blue ball
U3: 3 red and 3 blue balls
An urn is selected randomly and one ball is drawn. If the ball is red, find the probability that it came from U2.
Show Detailed Solution
Since the urn is selected randomly,
The conditional probabilities of drawing red are
Using the total probability theorem,
By Bayes' theorem,
At a university, 55% of students are undergraduate and 45% are postgraduate. Among undergraduate students, 70% pass an examination, whereas 85% of postgraduate students pass. If a randomly selected student has passed, find the probability that the student is postgraduate.
Show Detailed Solution
Let U denote undergraduate, G postgraduate, and P passing.
The total probability of passing is
Now,
Plants A, B and C produce 30%, 45% and 25% of a company's total products. Their defective rates are 1%, 2% and 4%, respectively. A product is found to be defective. Find the probability that it came from plant C.
Show Detailed Solution
Total probability of defect:
By Bayes' theorem,
Suppose 20% of incoming emails are spam. A particular word occurs in 70% of spam emails but only 10% of non-spam emails. If an email contains the word, find the probability that it is spam.
Show Detailed Solution
Let S denote spam and W denote occurrence of the word.
Total probability that the word appears:
Therefore,
An insurance company classifies 30% of its drivers as high-risk and 70% as low-risk. The annual accident probabilities are 20% and 5%, respectively. If a driver has an accident, find the probability that the driver belongs to the high-risk group.
Show Detailed Solution
Total probability of accident:
Then
A box contains three coins. Coin C1 is fair, coin C2 shows heads with probability 0.75, and coin C3 shows heads with probability 0.90. A coin is selected randomly and tossed once. If the result is a head, find the probability that C3 was selected.
Show Detailed Solution
Total probability of obtaining a head:
Then
Type A sensors constitute 70% of a monitoring system and type B sensors constitute 30%. Type A gives a false alarm with probability 0.03, while type B gives a false alarm with probability 0.08. A false alarm occurs. Find the probability that it came from a type B sensor.
Show Detailed Solution
Total probability of false alarm:
Using Bayes' theorem,
A disease affects 5% of a population. A test has 90% sensitivity and 95% specificity. A person receives a positive result. Find the probability that the person actually has the disease.
Show Detailed Solution
The sensitivity is
The specificity is
Therefore the false-positive probability is
Also,
Total probability of a positive result:
Using Bayes' theorem,
Important Bayes' Theorem Formulas
1. Conditional Probability
2. Bayes' Theorem
3. Total Probability Theorem
4. General Bayes' Formula
5. Bayesian Interpretation
Try each problem independently and then click Show Detailed Solution to verify your answer.
Comments
Post a Comment