| {{ 'ml-lesson-number-slides' | message : article.intro.bblockCount }} |
| {{ 'ml-lesson-number-exercises' | message : article.intro.exerciseCount }} |
| {{ 'ml-lesson-time-estimation' | message }} |
Here are a few recommended readings before getting started with this lesson.
Spam filters determine whether an email is spam by checking it for some words that appear more frequently in spam emails. The following set of information is known.
free.
free.
Jordan gets an email with the word free
in it.
Recall the formula for the conditional probability.
P(B∣A)=P(A)P(A and B), where P(A)=0
The intuition behind the formula can be visualized by using Venn diagrams. Consider a sample space S and the events A and B such that P(A)=0.
Assuming that event A has occurred, the sample space is reduced to A.
It means that the probability that event B can happen is reduced to the outcomes in the intersection of events A and B, or A∩B.
The possible outcomes are given by P(A) and the favorable outcomes by P(A∩B). Therefore, the conditional probability formula can be obtained using the Probability Formula.
P(B∣A)=P(A)P(A and B)
Dominika and her friends, 10 people in total, want to play basketball. They decide to form two teams randomly. To do so, each draws a card from a stack of 10 cards numbered from 1 to 10.
Since Dominika is on Team Red, the sample space is reduced to the outcomes in A.
There are five odd numbers in the new sample space and only one favorable outcome.
Therefore, using the Probability Formula, the probability that Dominika drew the number 1, given that the number drawn is odd, is found as follows.The applet shows the probabilities of two events in a Venn diagram. Calculate the conditional probabilities. If necessary, round the answer to two decimal places.
After reading an article about the famous wreck of the Titanic, Paulina concluded that the rescue procedures favored the wealthier first-class passengers. She then finds some data on the survival of the Titanic passengers.
Survived | Did Not Survive | Total | |
---|---|---|---|
First Class Passengers | 201 | 123 | 324 |
Second Class Passengers | 118 | 166 | 284 |
Third Class Passengers | 181 | 528 | 709 |
Total | 500 | 817 | 1317 |
Use this data to investigate the probabilities of surviving the wreck of the Titanic.
A: Passenger Survived | |
---|---|
B: First Class Passenger | |
C: Second Class Passenger | |
D: Third Class Passenger |
A: Passenger Survived | |
---|---|
B: First Class Passenger | Dependent, P(A∣B)=P(A) |
C: Second Class Passenger | Dependent, P(A∣C)=P(A) |
D: Third Class Passenger | Dependent, P(A∣D)=P(A) |
Fraction | Decimal | |
---|---|---|
P(A) | 1317500 | ≈0.380 |
P(A∣B) | 324201 | ≈0.620 |
P(A∣C) | 284118 | ≈0.415 |
P(A∣D) | 709181 | ≈0.255 |
Therefore, events B, C, and D each have an effect on event A, meaning that A is a dependent event. In simpler terms, a passenger's chance of surviving depended on what class they were traveling in.
A: Passenger Survived | |
---|---|
B: First Class Passenger | Dependent, P(A∣B)=P(A) |
C: Second Class Passenger | Dependent, P(A∣C)=P(A) |
D: Third Class Passenger | Dependent, P(A∣D)=P(A) |
The applet shows the frequency of each event in a table. Calculate the conditional probability asked in the applet. If necessary, round the answer to two decimal places.
Tadeo searches the Internet to check how effective Drug A is compared to Drug B. He finds a research paper about the drugs that gives the following information.
Help Tadeo answer the following questions.
Each of these outcomes will have two further outcomes — recovered R or not recovered NR. Therefore, two more branches will be drawn for each case.
Each branch should have a probability value on it. Notice that these probabilities are conditional probabilities.
Since there are only two possible outcomes after a certain medicine is received, these outcomes are complements of each other. Therefore, by the Complement Rule, the following equations can be written.P(A)=31, P(R and A)=0.07
Conditional Probability Formula | Substitute | Evaluate | Probability of the Complement | |
---|---|---|---|---|
P(R∣A) | P(A)P(R and A) | 310.07 | 0.21 | 1−0.21=0.79 |
P(R∣B) | P(B)P(R and B) | 310.11 | 0.33 | 1−0.33=0.67 |
P(R∣C) | P(C)P(R and C) | 310.05 | 0.15 | 1−0.15=0.85 |
Finally, the tree diagram can be completed.
Therefore, the conditional probability that a participant did not recover if they received Drug B is 0.67.
Like Venn diagrams and frequency tables, tree diagrams relate the probability of a conditional event to a subset of the event occurring. With this in mind, reconsider the example given at the beginning of the lesson. These three points about spam emails are known.
free.
free.
Jordan gets an email with the word free
in it.
free.
With the events and probabilities determined, a tree diagram can be drawn as shown.
free.The probability that this email is spam needs to be calculated.
free.The probability of either of these two paths occurring is the sum of the products of the probabilities on the paths.
Calculate quotient
Round to 2 decimal place(s)
freehas a 0.94 probability that it is a spam email.