Probability Topics

# 18 Contingency Tables and Probability Trees

### Contingency Tables

A contingency table provides a way of portraying data that can facilitate calculating probabilities. The table helps in determining conditional probabilities quite easily. The table displays sample values in relation to two different variables that may be dependent or contingent on one another. Later on, we will use contingency tables again, but in another manner.

Suppose a study of speeding violations and drivers who use cell phones produced the following fictional data:

Speeding violation in the last year | No speeding violation in the last year | Total | |
---|---|---|---|

Uses cell phone while driving | 25 | 280 | 305 |

Does not use cell phone while driving | 45 | 405 | 450 |

Total | 70 | 685 | 755 |

The total number of people in the sample is 755. The row totals are 305 and 450. The column totals are 70 and 685. Notice that 305 + 450 = 755 and 70 + 685 = 755.

Calculate the following probabilities using the table.

a. Find *P*(Driver is a cell phone user).

a.

b. Find *P*(Driver had no violation in the last year).

b.

c. Find *P*(Driver had no violation in the last year was a cell phone user).

c.

d. Find *P*(Driver is a cell phone user driver had no violation in the last year).

d.

e. Find *P*(Driver is a cell phone user driver had a violation in the last year).

e. (The sample space is reduced to the number of drivers who had a violation.)

f. Find *P*(Driver had no violation last year driver was not a cell phone user)

f. (The sample space is reduced to the number of drivers who were not cell phone users.)

(Figure) shows the number of athletes who stretch before exercising and how many had injuries within the past year.

Injury in last year | No injury in last year | Total | |
---|---|---|---|

Stretches | 55 | 295 | 350 |

Does not stretch | 231 | 219 | 450 |

Total | 286 | 514 | 800 |

- What is
*P*(athlete stretches before exercising)? - What is
*P*(athlete stretches before exercisingno injury in the last year)?

*P*(athlete stretches before exercising) = = 0.4375*P*(athlete stretches before exercisingno injury in the last year) = = 0.5739

(Figure) shows a random sample of 100 hikers and the areas of hiking they prefer.

Sex | The coastline | Near lakes and streams | On mountain peaks | Total |
---|---|---|---|---|

Female | 18 | 16 | ___ | 45 |

Male | ___ | ___ | 14 | 55 |

Total | ___ | 41 | ___ | ___ |

a. Complete the table.

a.

Sex | The coastline | Near lakes and streams | On mountain peaks | Total |
---|---|---|---|---|

Female | 18 | 16 | 11 |
45 |

Male | 16 |
25 |
14 | 55 |

Total | 34 |
41 | 25 |
100 |

b. Are the events “being female” and “preferring the coastline” independent events?

Let *F* = being female and let *C* = preferring the coastline.

- Find .
- Find
*P*(*F*)*P*(*C*)

Are these two numbers the same? If they are, then *F* and *C* are independent. If they are not, then *F* and *C* are not independent.

b.

- = 0.18
*P*(*F*)*P*(*C*) = = (0.45)(0.34) = 0.153

≠ *P*(*F*)*P*(*C*), so the events *F* and *C* are not independent.

c. Find the probability that a person is male given that the person prefers hiking near lakes and streams. Let *M* = being male, and let *L* = prefers hiking near lakes and streams.

- What word tells you this is a conditional?
- Fill in the blanks and calculate the probability:
*P*(______) = ___. - Is the sample space for this problem all 100 hikers? If not, what is it?

c.

- The word ‘given’ tells you that this is a conditional.
*P*(*M**L*) =- No, the sample space for this problem is the 41 hikers who prefer lakes and streams.

d. Find the probability that a person is female or prefers hiking on mountain peaks. Let *F* = being female, and let *P* = prefers mountain peaks.

- Find
*P*(*F*). - Find
*P*(*P*). - Find .
- Find .

d.

*P*(*F*) =*P*(*P*) =- =
- = + – =

(Figure) shows a random sample of 200 cyclists and the routes they prefer. Let *M* = males and *H* = hilly path.

Gender | Lake path | Hilly path | Wooded path | Total |
---|---|---|---|---|

Female | 45 | 38 | 27 | 110 |

Male | 26 | 52 | 12 | 90 |

Total | 71 | 90 | 39 | 200 |

- Out of the males, what is the probability that the cyclist prefers a hilly path?
- Are the events “being male” and “preferring the hilly path” independent events?

*P*(*H**M*) = = 0.5778- For
*M*and*H*to be independent, show*P*(*H**M*) =*P*(*H*)*P*(*H**M*) = 0.5778,*P*(*H*) = = 0.45*P*(*H**M*) does not equal*P*(*H*) so*M*and*H*are NOT independent.

Muddy Mouse lives in a cage with three doors. If Muddy goes out the first door, the probability that he gets caught by Alissa the cat is and the probability he is not caught is . If he goes out the second door, the probability he gets caught by Alissa is and the probability he is not caught is . The probability that Alissa catches Muddy coming out of the third door is and the probability she does not catch Muddy is . It is equally likely that Muddy will choose any of the three doors so the probability of choosing each door is .

Caught or not | Door one | Door two | Door three | Total |
---|---|---|---|---|

Caught | ____ | |||

Not caught | ____ | |||

Total | ____ | ____ | ____ | 1 |

- The first entry is
- The entry is

Verify the remaining entries.

a. Complete the probability contingency table. Calculate the entries for the totals. Verify that the lower-right corner entry is 1.

a.

Caught or not | Door one | Door two | Door three | Total |
---|---|---|---|---|

Caught | ||||

Not caught | ||||

Total | 1 |

b. What is the probability that Alissa does not catch Muddy?

b.

c. What is the probability that Muddy chooses Door One Door Two given that Muddy is caught by Alissa?

c.

(Figure) contains the number of crimes per 100,000 inhabitants from 2008 to 2011 in the U.S.

Year | Robbery | Burglary | Rape | Vehicle | Total |
---|---|---|---|---|---|

2008 | 145.7 | 732.1 | 29.7 | 314.7 | |

2009 | 133.1 | 717.7 | 29.1 | 259.2 | |

2010 | 119.3 | 701 | 27.7 | 239.1 | |

2011 | 113.7 | 702.2 | 26.8 | 229.6 | |

Total |

TOTAL each column and each row. Total data = 4,520.7

- Find .
- Find .
- Find .
- Find
*P*(2011Rape). - Find
*P*(Vehicle2008).

a. 0.0294, b. 0.1551, c. 0.7165, d. 0.2365, e. 0.2575

(Figure) relates the weights and heights of a group of individuals participating in an observational study.

Weight/height | Tall | Medium | Short | Totals |
---|---|---|---|---|

Obese | 18 | 28 | 14 | |

Normal | 20 | 51 | 28 | |

Underweight | 12 | 25 | 9 | |

Totals |

- Find the total for each row and column
- Find the probability that a randomly chosen individual from this group is Tall.
- Find the probability that a randomly chosen individual from this group is Obese and Tall.
- Find the probability that a randomly chosen individual from this group is Tall given that the idividual is Obese.
- Find the probability that a randomly chosen individual from this group is Obese given that the individual is Tall.
- Find the probability a randomly chosen individual from this group is Tall and Underweight.
- Are the events Obese and Tall independent?

Weight/height | Tall | Medium | Short | Totals |
---|---|---|---|---|

Obese | 18 | 28 | 14 | 60 |

Normal | 20 | 51 | 28 | 99 |

Underweight | 12 | 25 | 9 | 46 |

Totals | 50 | 104 | 51 | 205 |

- Row Totals: 60, 99, 46. Column totals: 50, 104, 51.
*P*(Tall) = = 0.244- = = 0.088
*P*(TallObese) = = 0.3*P*(ObeseTall) = = 0.36- = = 0.0585
- No.
*P*(Tall) does not equal*P*(TallObese).

### Tree Diagrams

Sometimes, when the probability problems are complex, it can be helpful to graph the situation. Tree diagrams can be used to visualize and solve conditional probabilities.

#### Tree Diagrams

A tree diagram is a special type of graph used to determine the outcomes of an experiment. It consists of “branches” that are labeled with either frequencies or probabilities. Tree diagrams can make some probability problems easier to visualize and solve. The following example illustrates how to use a tree diagram.

In an urn, there are 11 balls. Three balls are red (*R*) and eight balls are blue (*B*). Draw two balls, one at a time, **with replacement**. “With replacement” means that you put the first ball back in the urn before you select the second ball. The tree diagram using frequencies that show all the possible outcomes follows.

The first set of branches represents the first draw. The second set of branches represents the second draw. Each of the outcomes is distinct. In fact, we can list each red ball as *R*1, *R*2, and *R*3 and each blue ball as *B*1, *B*2, *B*3, *B*4, *B*5, *B*6, *B*7, and *B*8. Then the nine *RR* outcomes can be written as:

*R*1*R*1*R*1*R*2*R*1*R*3*R*2*R*1*R*2*R*2*R*2*R*3*R*3*R*1*R*3*R*2*R*3*R*3

The other outcomes are similar.

There are a total of 11 balls in the urn. Draw two balls, one at a time, with replacement. There are 11(11) = 121 outcomes, the size of the sample space.

a. List the 24 *BR* outcomes: *B*1*R*1, *B*1*R*2, *B*1*R*3, …

a. *B*1*R*1*B*1*R*2*B*1*R*3*B*2*R*1*B*2*R*2*B*2*R*3*B*3*R*1*B*3*R*2*B*3*R*3*B*4*R*1*B*4*R*2*B*4*R*3*B*5*R*1*B*5*R*2*B*5*R*3*B*6*R*1*B*6*R*2*B*6*R*3*B*7*R*1*B*7*R*2*B*7*R*3*B*8*R*1*B*8*R*2*B*8*R*3

b. Using the tree diagram, calculate *P*(*RR*).

b. *P*(*RR*) = =

c. Using the tree diagram, calculate .

c. = + =

d. Using the tree diagram, calculate .

d. = =

e. Using the tree diagram, calculate *P*(*R* on 2nd draw*B* on 1st draw).

e. *P*(*R* on 2nd draw*B* on 1st draw) = *P*(*R* on 2nd*B* on 1st) = =

This problem is a conditional one. The sample space has been reduced to those outcomes that already have a blue on the first draw. There are 24 + 64 = 88 possible outcomes (24 *BR* and 64 *BB*). Twenty-four of the 88 possible outcomes are *BR*. = .

f. Using the tree diagram, calculate *P*(*BB*).

f. *P*(*BB*) =

g. Using the tree diagram, calculate *P*(*B* on the 2nd draw*R* on the first draw).

g. *P*(*B* on 2nd draw*R* on 1st draw) =

There are 9 + 24 outcomes that have *R* on the first draw (9 *RR* and 24 *RB*). The sample space is then 9 + 24 = 33. 24 of the 33 outcomes have *B* on the second draw. The probability is then .

In a standard deck, there are 52 cards. 12 cards are face cards (event *F*) and 40 cards are not face cards (event *N*). Draw two cards, one at a time, with replacement. All possible outcomes are shown in the tree diagram as frequencies. Using the tree diagram, calculate *P*(*FF*).

Total number of outcomes is 144 + 480 + 480 + 1600 = 2,704.

*P*(*FF*) =

An urn has three red marbles and eight blue marbles in it. Draw two marbles, one at a time, this time without replacement, from the urn. **“Without replacement”** means that you do not put the first ball back before you select the second marble. Following is a tree diagram for this situation. The branches are labeled with probabilities instead of frequencies. The numbers at the ends of the branches are calculated by multiplying the numbers on the two corresponding branches, for example, .

If you draw a red on the first draw from the three red possibilities, there are two red marbles left to draw on the second draw. You do not put back or replace the first marble after you have drawn it. You draw **without replacement**, so that on the second draw there are ten marbles left in the urn.

Calculate the following probabilities using the tree diagram.

a. *P*(*RR*) = ________

a. *P*(*RR*) =

b. Fill in the blanks:

=

b. = + =

c. *P*(*R* on 2nd*B* on 1st) =

c. *P*(*R* on 2nd*B* on 1st) =

d. Fill in the blanks.

= (___)(___) =

d. = =

e. Find *P*(*BB*).

e. *P*(*BB*) =

f. Find *P*(*B* on 2nd*R* on 1st).

f. Using the tree diagram, *P*(*B* on 2nd*R* on 1st) = *P*(*R**B*) = .

If we are using probabilities, we can label the tree in the following general way.

*P*(*R**R*) here means*P*(*R*on 2nd*R*on 1st)*P*(*B**R*) here means*P*(*B*on 2nd*R*on 1st)*P*(*R**B*) here means*P*(*R*on 2nd*B*on 1st)*P*(*B**B*) here means*P*(*B*on 2nd*B*on 1st)

In a standard deck, there are 52 cards. Twelve cards are face cards (*F*) and 40 cards are not face cards (*N*). Draw two cards, one at a time, without replacement. The tree diagram is labeled with all possible probabilities.

- Find .
- Find
*P*(*N**F*). - Find
*P*(at most one face card).

Hint: “At most one face card” means zero or one face card. - Find
*P*(at least on face card).

Hint: “At least one face card” means one or two face cards.

- =
*P*(*N**F*) =*P*(at most one face card) = =*P*(at least one face card) = =

A litter of kittens available for adoption at the Humane Society has four tabby kittens and five black kittens. A family comes in and randomly selects two kittens (without replacement) for adoption.

- What is the probability that both kittens are tabby?
a. b. c. d.

- What is the probability that one kitten of each coloring is selected?
a. b. c. d.

- What is the probability that a tabby is chosen as the second kitten when a black kitten was chosen as the first?
- What is the probability of choosing two kittens of the same color?

a. c, b. d, c. , d.

Suppose there are four red balls and three yellow balls in a box. Two balls are drawn from the box without replacement. What is the probability that one ball of each coloring is selected?

+

### References

“Blood Types.” American Red Cross, 2013. Available online at http://www.redcrossblood.org/learn-about-blood/blood-types (accessed May 3, 2013).

Data from the National Center for Health Statistics, part of the United States Department of Health and Human Services.

Data from United States Senate. Available online at www.senate.gov (accessed May 2, 2013).

“Human Blood Types.” Unite Blood Services, 2011. Available online at http://www.unitedbloodservices.org/learnMore.aspx (accessed May 2, 2013).

Haiman, Christopher A., Daniel O. Stram, Lynn R. Wilkens, Malcom C. Pike, Laurence N. Kolonel, Brien E. Henderson, and Loīc Le Marchand. “Ethnic and Racial Differences in the Smoking-Related Risk of Lung Cancer.” The New England Journal of Medicine, 2013. Available online at http://www.nejm.org/doi/full/10.1056/NEJMoa033250 (accessed May 2, 2013).

Samuel, T. M. “Strange Facts about RH Negative Blood.” eHow Health, 2013. Available online at http://www.ehow.com/facts_5552003_strange-rh-negative-blood.html (accessed May 2, 2013).

“United States: Uniform Crime Report – State Statistics from 1960–2011.” The Disaster Center. Available online at http://www.disastercenter.com/crime/ (accessed May 2, 2013).

Data from Clara County Public H.D.

Data from the American Cancer Society.

Data from The Data and Story Library, 1996. Available online at http://lib.stat.cmu.edu/DASL/ (accessed May 2, 2013).

Data from the Federal Highway Administration, part of the United States Department of Transportation.

Data from the United States Census Bureau, part of the United States Department of Commerce.

Data from USA Today.

“Environment.” The World Bank, 2013. Available online at http://data.worldbank.org/topic/environment (accessed May 2, 2013).

“Search for Datasets.” Roper Center: Public Opinion Archives, University of Connecticut., 2013. Available online at https://ropercenter.cornell.edu/?s=Search+for+Datasets (accessed February 6, 2019).

### Chapter Review

There are several tools you can use to help organize and sort data when calculating probabilities. Contingency tables help display data and are particularly useful when calculating probabilites that have multiple dependent variables.

A tree diagram use branches to show the different outcomes of experiments and makes complex probability questions easy to visualize.

### Glossary

- Tree Diagram
- the useful visual representation of a sample space and events in the form of a “tree” with branches marked by possible outcomes together with associated probabilities (frequencies, relative frequencies)

- Contingency Table
- the method of displaying a frequency distribution as a table with rows and columns to show how two variables may be dependent (contingent) upon each other; the table provides an easy way to calculate conditional probabilities.