Read 3.2_-_Conditional_Probability_and_Independence.pdf text version

Ismor Fischer, 5/29/2012

3.2-1

3.2

Conditional Probability and Independent Events

Using population-based health studies to estimate probabilities relating potential risk factors to a particular disease, evaluate efficacy of medical diagnostic and screening tests, etc. Example: S A 0.03 B 0.12 0.04 Smoker Events: A = &quot;lung cancer&quot; B = &quot;smoker&quot; Disease Status Lung cancer (A) Yes (B) No (Bc) 0.12 No lung cancer (Ac) 0.04 0.16

0.81

0.03 0.15

0.81 0.85

0.84 1.00

Probabilities: Definition:

P(A) = 0.15

P(B) = 0.16

P(A B) = 0.12

Conditional Probability of Event A, given Event B (where P(B) 0) P(A | B) =

P( A B) P( B)

0.12 = 0.75 &gt;&gt; 0.15 = P(A). 0.16

= Comments: P(B | A) =

P( B A) 0.12 = = 0.80, so P(A | B) P(B | A) in general. P( A) 0.15

General formula can be rewritten: P(A B) = P(A | B) × P(B) IMPORTANT Example: P(Angel barks) = 0.1 P(Brutus barks) = 0.2 P(Angel barks | Brutus barks) = 0.3 Therefore... P(Angel and Brutus bark) = 0.06

Ismor Fischer, 5/29/2012

3.2-2

Example: Suppose that two balls are to be randomly drawn, one after another, from a container holding four red balls and two green balls. Under the scenario of sampling without replacement, calculate the probabilities of the events A = &quot;First ball is red&quot;, B = &quot;Second ball is red&quot;, and A B = &quot;First ball is red AND second ball is red&quot;. (As an exercise, list the 6 × 5 = 30 outcomes in the sample space of this experiment, and use &quot;brute force&quot; to solve this problem.)

R1

G1

R2

R3

R4

G2

This type of problem ­ known as an &quot;urn model&quot; ­ can be solved with the use of a tree diagram, where each branch of the &quot;tree&quot; represents a specific event, conditioned on a preceding event. The product of the probabilities of all such events along a particular sequence of branches is equal to the corresponding intersection probability, via the previous formula. In this example, we obtain the following values: 1st draw 2nd draw

P(B | A) = 3/5 P(A) = 4/6 P(B | A) = 2/5

c

P(A B) = 12/30

B

A

A

c

P(A B ) = 8/30

c

AB

A B

c

P(B | A ) = 4/5 P(A ) = 2/6 P(B | A ) = 1/5

c c c

c

P(Ac B) = 8/30

P(Ac Bc) = 2/30

We can calculate the probability P(B) by adding the two &quot;boxed&quot; values above, i.e., P(B) = P(A B) + P(Ac B) = 12/30 + 8/30 = 20/30, or P(B) = 2/3. This last formula ­ which can be written as P(B) = P(B | A) P(A) + P(B | Ac) P(Ac) ­ can be extended to more general situations, where it is known as the Law of Total Probability, and is a useful tool in Bayes' Theorem (next section).

Ismor Fischer, 5/29/2012

3.2-3

Suppose event C = &quot;coffee drinker.&quot; S A C 0.09 0.06 0.34 Coffee Drinker Disease Status Lung cancer (A) Yes (C) No (Cc) 0.06 No lung cancer (Ac) 0.34 0.40

0.51

0.09 0.15

0.51 0.85

0.60 1.00

Probabilities: Therefore,

P(A) = 0.15 P(A | C) =

P(C) = 0.40

P(A C) = 0.06

P(A C) 0.06 = = 0.15 = P(A) P(C) 0.40

i.e., the occurrence of event C gives no information about the probability of event A. Definition: Two events A and B are said to be statistically independent if either: (1)

(2)

P(A | B) = P(A), i.e., P(B | A) = P(B), or equivalently, P(A B) = P(A) × P(B).

Exercise: Prove that if events B and C are statistically independent, then so are each of the following: B and &quot;Not C&quot; &quot;Not B&quot; and C &quot;Not B&quot; and &quot;Not C&quot; Hint: Let P(B) = b, P(C) = c, and construct a 2 × 2 probability table. Summary A, B disjoint If either event occurs, then the other cannot occur: P ( A B ) = 0. A, B independent If either event occurs, this gives no information about the other: P ( A B= P ( A ) × P ( B ) . ) Example: A = &quot;Select a 2&quot; and B = &quot;Select a &quot; are not disjoint events, because

A B = {2} . However, P(A B) = 1/52 = 1/13 × 1/4 = P(A) × P(B); hence they are independent events. Can two disjoint events ever be independent? Why?

Ismor Fischer, 5/29/2012

3.2-4

A VERY IMPORTANT AND USEFUL FACT: It can be shown that for any event A, all of the elementary properties of &quot;probability&quot; P(A) covered in the notes, extend to &quot;conditional probability&quot; P (A | B ) , for any other event B. For example, since we know that P( A1 A2 )=

P( A1 ) + P( A2 ) - P( A1 A2 )

for any two events A1 and A2, it is also true that P( A1 A2 | B) P( A1 | B) + P( A2 | B) - P( A1 A2 | B) for any other event B. = As another example, since we know that P ( Ac ) = 1 - P (A ) , it therefore also follows that P ( Ac | B ) = 1 - P (A | B ) . Exercise: Prove these two statements. (Hint: Sketch a Venn diagram.) HOWEVER, there is one important exception! We know that if A and B are two independent events, then P( A B) =A) P( B) . But this does not P( extend to conditional probabilities! In particular, if C is any other event, then P( A B | C ) P( A | C ) P( B | C ) in general. The following example illustrates this, for three events A, B, and C: A B

.20

.20 .05 .05 .05

.20

.10

C

.15

Exercise: Confirm that P( A B) =A) P( B) , but P( A B | C ) P( A | C ) P( B | C ) . P( In other words, two events that may be independent in a general population, may not necessarily be independent in a particular subgroup of that population.

Ismor Fischer, 5/29/2012

3.2-5

More on Conditional Probability and Independent Events

Another example from epidemiology S = POPULATION

A = lung cancer

S = POPULATION

A = lung cancer

AB

AC

C = smoker B = obese

Suppose that, in a certain study population, we wish to investigate the prevalence of lung cancer (A), and its associations with obesity (B) and cigarette smoking (C), respectively. From the first of the two stylized Venn diagrams above, by comparing the scales drawn, observe that the proportion of the size of the intersection A B (green) relative to event B (blue + green), is about equal to the proportion of the size of event A (yellow + green) relative to the entire population S. That is, P( A) P( A B) = . P( S ) P( B) (As an exercise, verify this equality for the following probabilities: yellow = .09, green = .07, blue = .37, white = .47, to two decimals, before reading on.) In other words, the probability that a randomly chosen person from the obese subpopulation has lung cancer, is equal to the probability that a randomly chosen person from the general population has lung cancer (.16). This equation can be equivalently expressed as P(A | B) = P(A), since the left side is conditional probability by definition, and P(S) = 1 in the denominator of the right side. In this form, the equation clearly conveys the interpretation that knowledge of event B (obesity) yields no information about event A (lung cancer). In this example, lung cancer is equally probable (.16) among the obese as it is among the general population, so knowing that a person is obese is completely unrevealing with respect to having lung cancer. Events A and B that are related in this way are said to be independent. Note that they are not disjoint! In the second diagram however, the relative size of A C (orange) to C (red + orange), is larger than the relative size of A (yellow + orange) to the whole population S, so P(A | C) P(A), i.e., events A and C are dependent. Here, as is true in general, the probability of lung cancer is indeed influenced by whether a person is randomly selected from among the general population or the smoking subset, where it is much higher. Statistically, lung cancer would be a rare disease in the U.S., if not for cigarettes (although it is on the rise among nonsmokers).

Ismor Fischer, 5/29/2012

3.2-6

Application: &quot;Are Blood Antibodies Independent?&quot; An example of conditional probability in human genetics

(Adapted from Rick Chappell, Ph.D., UW Dept. of Biostatistics &amp; Medical Informatics) Background: The surfaces of human red blood cells (&quot;erythrocytes&quot;) are coated with antigens that are classified into four disjoint blood types: O, A, B, and AB. Each type is associated with blood serum antibodies for the other types, that is, · · · · Type O blood contains both A and B antibodies. (This makes Type O the &quot;universal donor&quot;, but capable of receiving only Type O.) Type A blood contains only B antibodies. Type B blood contains only A antibodies. Type AB blood contains neither A nor B antibodies. (This makes Type AB the &quot;universal recipient&quot;, but capable of donating only to Type AB.)

In addition, blood is also classified according to the presence (+) or absence (-) of Rh factor (found predominantly in rhesus monkeys, and to varying degree in human populations; they are important in obstetrics). Hence there are eight distinct blood groups corresponding to this joint classification system: O+, O-, A+, A-, B+, B-, AB+, AB-. According to the American Red Cross, the U.S. population has the following blood group relative frequencies:

Rh factor

+ - .077 .065 .017 .007 .166 Totals .461 .388 .111 .039 .999

Blood Types

O A B AB Totals

.384 .323 .094 .032 .833

From these values (and from the background information above), we can calculate the following probabilities: P (A antibodies) = P (Type O or B) = P (O) + P (B) = .461 + .111 = .572 P (B antibodies) = P (Type O or A) = P (O) + P (A) = .461 + .388 = .849

P (B antibodies and Rh+ ) = P (Type O+ or A+) = P (O+) + P (A+) = .384 + .323 = .707

Ismor Fischer, 5/29/2012

3.2-7

Using these calculations, we can answer the following. Question: Is having &quot;A antibodies&quot; independent of having &quot;B antibodies&quot;? Solution: We must check whether or not P(A and B antibodies) = P(A antibodies) × P(B antibodies), i.e., P(Type O) or .461 .486 .572 × .849

This indicates near independence of the two events; there does exist a slight dependence. The dependence would be much stronger if America were composed of two disjoint (i.e., non-interbreeding) groups: Type A (with B antibodies only) and Type B (with A antibodies only), and no Type O (with both A and B antibodies). Since this is evidently not the case, the implication is that either these traits evolved before humans spread out geographically, or they evolved later but the populations became mixed in America. Question: Is having &quot;B antibodies&quot; independent of &quot;Rh+&quot;? Solution: We must check whether or not P (B antibodies and Rh+) = P (B antibodies) × P (Rh+), that is, .707 = .849 × .833,

which is true, so we have exact independence of these events. These traits probably predate diversification in humans (and were not differentially selected for since).

Exercises: · Is having &quot;A antibodies&quot; independent of &quot;Rh+&quot;? · Find P (A antibodies | B antibodies) and P (B antibodies | A antibodies). Conclusions? · Is &quot;Blood Type&quot; independent of &quot;Rh factor&quot;? (Do a separate calculation for each blood type: O, A, B, AB, and each Rh factor: +, -.)

Information

7 pages

Find more like this

Report File (DMCA)

Our content is added by our users. We aim to remove reported files within 1 working day. Please use this link to notify us:

Report this file as copyright or inappropriate

95463