3-3. Conditional Probability and Independent Events
条件概率和独立事件
1. Conditional Probability
The conditional probability of A given B, denoted P(A|B)P(A|B), is the probability that event A has occurred in a trial of a random experiment for which it is known that event B has definitely occurred. It may be computed by means of the following formula:
Rule for Conditional Probability
EXAMPLE 21. A fair die is rolled.
Find the probability that the number rolled is a five, given that it is odd.
Find the probability that the number rolled is odd, given that it is a five.
[ Solution ]
This is the introductory example, so we already know that the answer is 1/3. To use the formula in the definition to confirm this we must replace in the formula (the event whose likelihood we seek to estimate) by and replace (the event we know for certain has occurred) by :
Since
Since
Thus
This is the same problem, but with the roles of and reversed. Since we are given that the number that was rolled is five, which is odd, the probability in question must be 1. To apply the formula to this case we must now replace A (the event whose likelihood we seek to estimate) by and (the event we know for certain has occurred) by : Obviously . In part (a) we found that . Thus
Using Rstat Package :
cprt()
EXAMPLE 22. In a sample of 902 individuals under 40 who were or had previously been married, each person was classified according to gender and age at first marriage. The results are summarized in the following two-way classification table, where the meaning of the labels is:
: male
: female
: a teenager when first married
: in one’s twenties when first married
: in one’s thirties when first married
Total | ||||
43 | 293 | 114 | 450 | |
82 | 299 | 71 | 452 | |
Total | 125 | 592 | 185 | 902 |
The numbers in the first row mean that 43 people in the sample were men who were first married in their teens, 293 were men who were first married in their twenties, 114 men who were first married in their thirties, and a total of 450 people in the sample were men. Similarly for the numbers in the second row. The numbers in the last row mean that, irrespective of gender, 125 people in the sample were married in their teens, 592 in their twenties, 185 in their thirties, and that there were 902 people in the sample in all. Suppose that the proportions in the sample accurately reflect those in the population of all individuals in the population who are under 40 and who are or have previously been married. Suppose such a person is selected at random.
Find the probability that the individual selected was a teenager at first marriage.
Find the probability that the individual selected was a teenager at first marriage, given that the person is male.
[ Solution ]
It is natural to let also denote the event that the person selected was a teenager at first marriage and to let denote the event that the person selected is male.
According to the table the proportion of individuals in the sample who were in their teens at their first marriage is 125/902. This is the relative frequency of such people in the population, hence or about 14%.
Since it is known that the person selected is male, all the females may be removed from consideration, so that only the row in the table corresponding to men in the sample applies:
Total
43
293
114
450
The proportion of males in the sample who were in their teens at their first marriage is 43/450. This is the relative frequency of such people in the population of males, hence or about 10%.
EXAMPLE 23. Suppose that in an adult population the proportion of people who are both overweight and suffer hypertension is 0.09; the proportion of people who are not overweight but suffer hypertension is 0.11; the proportion of people who are overweight but do not suffer hypertension is 0.02; and the proportion of people who are neither overweight nor suffer hypertension is 0.78. An adult is randomly selected from this population.
Find the probability that the person selected suffers hypertension given that he is overweight.
Find the probability that the selected person suffers hypertension given that he is not overweight.
Compare the two probabilities just found to give an answer to the question as to whether overweight people tend to suffer from hypertension.
[ Solution ]
Let denote the event “the person selected suffers hypertension.” Let denote the event “the person selected is overweight.” The probability information given in the problem may be organized into the following contingency table:
|
| |
| 0.09 | 0.11 |
| 0.02 | 0.78 |
Using the formula in the definition of conditional probability,
Using the formula in the definition of conditional probability,
is over six times as large as , which indicates a much higher rate of hypertension among people who are overweight than among people who are not overweight. It might be interesting to note that a direct comparison of and does not answer the same question.
Example 24. In Example 20, Find the probabilities of .
[ Solution ]
2. Independent Events
Events A and B are independent if
If A and B are not independent then they are dependent.
EXAMPLE 25. A single fair die is rolled. Let and . Are and independent?
[ Solution ]
Sample Space .
In this example we can compute all three probabilities and Since the product is not the same number as the events A and B are not independent.
EXAMPLE 26. The two-way classification of married or previously married adults under 40 according to gender and age at first marriage in "Example 21" produced the table
Total | ||||
43 | 293 | 114 | 450 | |
82 | 299 | 71 | 452 | |
Total | 125 | 592 | 185 | 902 |
Determine whether or not the events F: “female” and E: “was a teenager at first marriage” are independent.
[ Solution ]
The table shows that in the sample of 902 such adults, 452 were female, 125 were teenagers at their first marriage, and 82 were females who were teenagers at their first marriage, so that
Since
is not the same as
we conclude that the two events are not independent.
EXAMPLE 27. Many diagnostic tests for detecting diseases do not test for the disease directly but for a chemical or biological product of the disease, hence are not perfectly reliable. The sensitivity of a test is the probability that the test will be positive when administered to a person who has the disease. The higher the sensitivity, the greater the detection rate and the lower the false negative rate.
Suppose the sensitivity of a diagnostic procedure to test whether a person has a particular disease is 92%. A person who actually has the disease is tested for it using this procedure by two independent laboratories.
What is the probability that both test results will be positive?
What is the probability that at least one of the two test results will be positive?
[ Solution ]
Let denote the event “the test by the first laboratory is positive” and let denote the event “the test by the second laboratory is positive.” Since and are independent,
Using the Additive Rule for Probability and the probability just computed,
EXAMPLE 28. The specificity of a diagnostic test for a disease is the probability that the test will be negative when administered to a person who does not have the disease. The higher the specificity, the lower the false positive rate.
Suppose the specificity of a diagnostic procedure to test whether a person has a particular disease is 89%.
A person who does not have the disease is tested for it using this procedure. What is the probability that the test result will be positive?
A person who does not have the disease is tested for it by two independent laboratories using this procedure. What is the probability that both test results will be positive?
[ Solution ]
Let denote the event “the test result is positive.” The complement of is that the test result is negative, and has probability the specificity of the test, 0.89. Thus
Let denote the event “the test by the first laboratory is positive” and let denote the event “the test by the second laboratory is positive.” Since and are independent, by part (a) of the example
EXAMPLE 29. The reliability of a system can be enhanced by redundancy, which means building two or more independent devices to do the same job, such as two independent braking systems in an automobile.
Suppose a particular species of trained dogs has a 90% chance of detecting contraband in airline luggage. If the luggage is checked three times by three different dogs independently of one another, what is the probability that contraband will be detected?
[ Solution ]
Let denote the event that the contraband is detected by the first dog, the event that it is detected by the second dog, and the event that it is detected by the third. Since each dog has a 90% of detecting the contraband, by the Probability Rule for Complements it has a 10% chance of failing. In symbols, and .
Let D denote the event that the contraband is detected. We seek P(D).P(D). It is easier to find P(Dc)P(Dc), because although there are several ways for the contraband to be detected, there is only one way for it to go undetected: all three dogs must fail. Thus and
But the events , , and are independent, which implies that their complements are independent, so
Using this number in the previous display we obtain
That is, although any one dog has only a 90% chance of detecting the contraband, three dogs working independently have a 99.9% chance of detecting it.
EXAMPLE 30. Five fair dice are rolled. Let {Sum is even} and { It includes 1 and 6 } . Are and independent?
3. Probabilities on Tree Diagrams
EXAMPLE 31. A jar contains 10 marbles, 7 black and 3 white. Two marbles are drawn without replacement, which means that the first one is not put back before the second one is drawn.
What is the probability that both marbles are black?
What is the probability that exactly one marble is black?
What is the probability that at least one marble is black?
[ Solution ]
Probabilities on Tree Diagrams
The probability of the event corresponding to any node on a tree is the product of the numbers on the unique path of branches that leads to that node from the start.
If an event corresponds to several final nodes, then its probability is obtained by adding the numbers next to those nodes.
条件概率(conditional probability)
独立事件 (概率论)
Last updated