Applied Probability by Paul E Pfeiffer - HTML preview

PLEASE NOTE: This is an HTML preview only and some elements such as links or page numbers may be incorrect.
Download the book in PDF, ePub, Kindle for a complete version.

Chapter 5Conditional Independence

5.1Conditional Independence*

The idea of stochastic (probabilistic) independence is explored in the unit Independence of Events. The concept is approached as lack of conditioning: P(A|B)=P(A). This is equivalent to the product rule P(AB)=P(A)P(B) . We consider an extension to conditional independence.

The concept

Examination of the independence concept reveals two important mathematical facts:

  • Independence of a class of non mutually exclusive events depends upon the probability measure, and not on the relationship between the events. Independence cannot be displayed on a Venn diagram, unless probabilities are indicated. For one probability measure a pair may be independent while for another probability measure the pair may not be independent.

  • Conditional probability is a probability measure, since it has the three defining properties and all those properties derived therefrom.

This raises the question: is there a useful conditional independence—i.e., independence with respect to a conditional probability measure? In this chapter we explore that question in a fruitful way.

Among the simple examples of “operational independence" in the unit on independence of events, which lead naturally to an assumption of “probabilistic independence” are the following:

  • If customers come into a well stocked shop at different times, each unaware of the choice made by the other, the the item purchased by one should not be affected by the choice made by the other.

  • If two students are taking exams in different courses, the grade one makes should not affect the grade made by the other.

Example 5.1Buying umbrellas and the weather

A department store has a nice stock of umbrellas. Two customers come into the store “independently.” Let A be the event the first buys an umbrella and B the event the second buys an umbrella. Normally, we should think the events _autogen-svg2png-0003.png form an independent pair. But consider the effect of weather on the purchases. Let C be the event the weather is rainy (i.e., is raining or threatening to rain). Now we should think _autogen-svg2png-0004.png and _autogen-svg2png-0005.png. The weather has a decided effect on the likelihood of buying an umbrella. But given the fact the weather is rainy (event C has occurred), it would seem reasonable that purchase of an umbrella by one should not affect the likelihood of such a purchase by the other. Thus, it may be reasonable to suppose

(5.1)
_autogen-svg2png-0006.png

An examination of the sixteen equivalent conditions for independence, with probability measure P replaced by probability measure PC, shows that we have independence of the pair _autogen-svg2png-0007.png with respect to the conditional probability measure PC(·)=P(·|C). Thus, P(AB|C)=P(A|C)P(B|C). For this example, we should also expect that _autogen-svg2png-0010.png, so that there is independence with respect to the conditional probability measure _autogen-svg2png-0011.png. Does this make the pair _autogen-svg2png-0012.png independent (with respect to the prior probability measure P)? Some numerical examples make it plain that only in the most unusual cases would the pair be independent. Without calculations, we can see why this should be so. If the first customer buys an umbrella, this indicates a higher than normal likelihood that the weather is rainy, in which case the second customer is likely to buy. The condition leads to P(B|A)>P(B). Consider the following numerical case. Suppose P(AB|C)=P(A|C)P(B|C) and _autogen-svg2png-0015.png and

(5.2)
_autogen-svg2png-0016.png

Then

(5.3)
_autogen-svg2png-0017.png
(5.4)
_autogen-svg2png-0018.png

As a result,

(5.5) P ( A ) P ( B ) = 0 . 0816 ≠ 0 . 1110 = P ( A B )

The product rule fails, so that the pair is not independent. An examination of the pattern of computation shows that independence would require very special probabilities which are not likely to be encountered.

Example 5.2Students and exams

Two students take exams in different courses, Under normal circumstances, one would suppose their performances form an independent pair. Let A be the event the first student makes grade 80 or better and B be the event the second has a grade of 80 or better. The exam is given on Monday morning. It is the fall semester. There is a probability 0.30 that there was a football game on Saturday, and both students are enthusiastic fans. Let C be the event of a game on the previous Saturday. Now it is reasonable to suppose

(5.6)
_autogen-svg2png-0020.png

If we know that there was a Saturday game, additional knowledge that B has occurred does not affect the lielihood that A occurs. Again, use of equivalent conditions shows that the situation may be expressed

(5.7)
_autogen-svg2png-0021.png

Under these conditions, we should suppose that _autogen-svg2png-0022.png and _autogen-svg2png-0023.png. If we knew that one did poorly on the exam, this would increase the likelihoood there was a Saturday game and hence increase the likelihood that the other did poorly. The failure to be independent arises from a common chance factor that affects both. Although their performances are “operationally” independent, they are not independent in the probability sense. As a numerical example, suppose

(5.8)
_autogen-svg2png-0024.png

Straightforward calculations show _autogen-svg2png-0025.png. Note that P(A|B)=0.8514>P(A) as would be expected.

Sixteen equivalent conditions

Using the facts on repeated conditioning and the equivalent conditions for independence, we may produce a similar table of equivalent conditions for conditional independence. In the hybrid notation we use for repeated conditioning, we write

(5.9)
_autogen-svg2png-0027.png

This translates into

(5.10)
_autogen-svg2png-0028.png

If it is known that C has occurred, then additional knowledge of the occurrence of B does not change the likelihood of A.

If we write the sixteen equivalent conditions for independence in terms of the conditional probability measure _autogen-svg2png-0029.png, then translate as above, we have the following equivalent conditions.

Table 5.1. Sixteen equivalent conditions
P ( A | B C ) = P ( A | C ) P ( B | A C ) = P ( B | C ) P ( A B | C ) = P ( A | C ) P ( B | C )
_autogen-svg2png-0033.png _autogen-svg2png-0034.png _autogen-svg2png-0035.png
_autogen-svg2png-0036.png _autogen-svg2png-0037.png _autogen-svg2png-0038.png
_autogen-svg2png-0039.png _autogen-svg2png-0040.png _autogen-svg2png-0041.png
Table 5.2.
_autogen-svg2png-0042.png _autogen-svg2png-0043.png _autogen-svg2png-0044.png _autogen-svg2png-0045.png

The patterns of conditioning in the examples above belong to this set. In a given problem, one or the other of these conditions may seem a reasonable assumption. As soon as one of these patterns is recognized, then all are equally valid assumptions. Because of its simplicity and symmetry, we take as the defining condition the product ruleP(AB|C)=P(A|C)P(B|C).

Definition. A pair of events {A,B} is said to be conditionally independent, givenC, designated _autogen-svg2png-0048.png iff the following product rule holds: P(AB|C)=P(A|C)P(B|C).

The equivalence of the four entries in the right hand column of the upper part of the table, establish

The replacement rule

If any of the pairs _autogen-svg2png-0050.png, or _autogen-svg2png-0051.png is conditionally independent, given C, then so are the others.

This may be expressed by saying that if a pair is conditionally independent, we may replace either or both by their complements and still have a conditionally independent pair.

To illustrate further the usefulness of this concept, we note some other common examples in which similar conditions hold: there is operational independence, but some chance factor which affects both.

  • Two contractors work quite independently on jobs in the same city. The operational independence suggests probabilistic independence. However, both jobs are outside and subject to delays due to bad weather. Suppose A is the event the first contracter completes his job on time and B is the event the second completes on time. If C is the event of “good” weather, then arguments similar to those in Examples 1 and 2 make it seem reasonable to suppose _autogen-svg2png-0053.png and _autogen-svg2png-0054.png. Remark. In formal probability theory, an event must be sharply defined: on any trial it occurs or it does not. The event of “good weather” is not so clearly defined. Did a trace of rain or thunder in the area constitute bad weather? Did rain delay on one day in a month long project constitute bad weather? Even with this ambiguity, the pattern of probabilistic analysis may be useful.

  • A patient goes to a doctor. A preliminary examination leads the doctor to think there is a thirty percent chance the patient has a certain disease. The doctor orders two independent tests for conditions that indicate the disease. Are results of these tests really independent? There is certainly operational independence—the tests may be done by different laboratories, neither aware of the testing by the others. Yet, if the tests are meaningful, they must both be affected by the actual condition of the patient. Suppose D is the event the patient has the disease, A is the event the first test is positive (indicates the conditions associated with the disease) and B is the event the second test is positive. Then it would seem reasonable to suppose _autogen-svg2png-0055.png and _autogen-svg2png-0056.png.

In the examples considered so far, it has been reasonable to assume conditional independence, given an event C, and conditional independence, given the complementary event. But there are cases in which the effect of the conditioning event is asymmetric. We consider several examples.

  • Two students are working on a term paper. They work quite separately. They both need to borrow a certain book from the library. Let C be the event the library has two copies available. If A is the event the first completes on time and B the event the second is successful, then it seems reasonable to assume _autogen-svg2png-0057.png. However, if only one book is available, then the two conditions would not be conditionally independent. In general _autogen-svg2png-0058.png, since if the first student completes on time, then he or she must have been successful in getting the book, to the detriment of the second.

  • If the two contractors of the example above both need material which may be in scarce supply, then successful completion would be conditionally independent, give an adequate supply, whereas they would not be conditionally independent, given a short supply.

  • Two students in the same course take an exam. If they prepared separately, the event of both getting good grades should be conditionally independent. If they study together, then the likelihoods of good grades would not be independent. With neither cheating or collaborating on the test itself, if one