# Conditional Probability and Independent Events

### From MM*Stat International

English |

Português |

Français |

Español |

Italiano |

Nederlands |

## Contents

## Conditional Probability

Let and be two events defined on the sample space . The conditional probability of given , is defined as The conditional probability assumes that has occurred and asks what is the probability that has occurred. By assuming that has occurred, we have defined a new sample space and a new probability measure .. If then we may write We may also define the conditional probability of given ::

## Multiplication Rule

By rearranging the definition of conditional probability we can extract a formula for the probability of both AND occurring: and, in analogous fashion, Generalisation for events :

## Independent Events

The notion underlying the concept of conditional probability is that a priori information cocerning the occurrence of events does in general influence probabilities of other events. (For example, if one knows that someone is a smoker, than one would assign a higher probability to that individual contracting lung cancer). In general, one would expect. The case has an important interpretation. If the probability of occurring remains the same, whether or not has occurred, we say that the two events are statistically (or stochastically) independent. (For example knowing whether an individual is tall or short does not affect one’s assessment of that individual developing lung cancer.) We define stochastic independence of two events and by the condition which implies that the followig conditions hold The multiplication condition defining stochastic independence of two events also holds for independent events: To establish statistical independence of events, one must ensure that the multiplication rule holds for any subset of the events. That is It is important not to confuse stochastic independence with mutual exclusivity. For example, if two events and with and , are mutually exclusive then , as and . In which case . A small example should clarify the difference between independence and mutual exclusivity (rowing Cambridge versus Oxford): click on the symbol of the loudspeaker.

## Two-Way Cross-Tabulation

In many applications the researcher is interested in associations between two categorical variables. The simplest case is if one observes two binary variables, i.e. there are two variables, each with two possible outcomes. For example, suppose that for a randomly selected individual we observe whether or not they smoke and whether or not they have emphysema. Let be the outcome that the individual smokes and be the outcome that they have emphysema. We can construct separate sample spaces and .for each of the two variables. Alternatively we can construct the sample space of ordered pairs: In tabulating data of this type, we would simply count the number of individuals corresponding to each of the four basic outcomes. No information is lost regarding the two variables individually because we can always obtain frequencies for both categories of either variable by summing over the two categories of the other variable. For example, to calculate the number of individuals who have emphysema, we add up all those who smoke and have emphysema (i.e., ) and all those who do not smoke and have emphysema (i.e., ). Relative frequencies for categories of of the individual variables are called marginal relative frequencies. Relative frequencies arising from bivariate categorical data are usually displayed by cross-tabulating the categories of the two variables. Marginal frequencies are included as sums of the columns/rows representing the categories of each of the variables. The resulting matrix is called an -contingency table, where and denote the number of categories observed for each variable. In our example with two categories for each variable, we have a -contingency table. We may summarize the probabilities associated with each basic outcome in a similar table:

Sum | |||
---|---|---|---|

Sum |

The structure of this table is particularly helpful in checking for independence between events. Recall that the joint probability of two independent events can be calculated as the product of the probabilities of the two individual events. In this case, we want to verify whether the joint probabilities in the main body of the table are equal to the products of the marginal probabilities. If they are not, then the events are not independent. For example, under independence, we would have If one replaces the probabilities in the above table with their sample frequencies, then independence implies that the estimated joint probabilities should be approximately equal to the products of the estimated marginal probabilities. Formal procedures for testing independence will be discussed later. Joint probabilities of two binary variables are arranged in the contingency table below. Are the variables represented by the events respectively (mutually) independent?

Sum | |||
---|---|---|---|

Sum |

For the multiplication condition of independence to be satisfied, the inner cells of the contingency table must equal the product of their corresponding marginal probabilities. This is true for all four cells:

Sum | |||
---|---|---|---|

Sum |

In this very special example with two binary variables it is, however, not necessary to verify the validity of the multiplication rule for each of the four cells. As we have already seen, stochastic independence of two events implies stochastic independence of the complementary. Consequently, if the multiplication condition holds for one of the four cells, it must hold for the other three. This is only true because the only two events to be considered for each variable are complements. A master and his apprentice produce hand-made screws. The following data were collected over the course of the year1998:

Total production: | 2000 screws |

Group 1 | 1400 screws |

(the master) | 1162 good screws |

238 faulty screws | |

Group 2 | 600 screws |

(the apprentice) | 378 good screws |

222 faulty screws |

What is the probability, that a randomly selected screw is not faulty given that it was produced by the master? In order to calculate this probability, we will use this notation: = {screw is good} = {screw produced by master} = {screw produced by apprentice} The situation is displayed on this Venn diagram:

We would like to calculate . This conditional probability is defined as . The event corresponds to selection of a good screw produced by the master. In order to calculate , we divide the number of screws with this property by the total number of screws: .
The probability can be calculated as a ratio of the number of screws produced by the master and total production: .
Thus we obtain:
**We want to show that:** For any pair of independent events and we have .
Assume that the events and are independent. Then we have

Similarly, we can show that .
**Next suppose that** **we want to show that this implies the multiplicative rule, i.e., that** and are independent**:**
Indeed stochastic independence can be defined equivalently in a number of ways.