Contingency Tables
A contingency table provides a structured method for displaying sample data involving two categorical variables that may be dependent or contingent upon one another. Contingency tables facilitate the calculation of simple, joint, and conditional probabilities by organizing raw counts into clear rows and columns with corresponding totals.
Structure and Basic Probability Calculations
Table Layout: Rows represent the outcomes of one variable, while columns represent the outcomes of a second variable. Row totals, column totals, and the overall grand total (N) are calculated along the margins.
Marginal Probability: The probability of a single event occurring, calculated using the row or column total divided by the total sample size N.
Joint Probability (AND): The probability that two events occur simultaneously, found at the intersection of a specific row and column divided by N.
Union Probability (OR): The probability that either event occurs, calculated using the addition rule:
P(A OR B)=P(A)+P(B)−P(A AND B)
P(A∣B)=P(B)P(A AND B)
Worked Examples and Exercises
Example 3.20: Speeding Violations and Cell Phone Use
A study examining speeding violations in the last year and cell phone usage while driving produced the following data:
Cell Phone Usage | Speeding Violation in Last Year | No Speeding Violation in 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 |
Sample Totals:
Total sample size: N=755
Row totals: 305 and 450 (305+450=755)
Column totals: 70 and 685 (70+685=755)
Calculations:
P(Cell Phone User)=755305
* **b. Find P(Driver had no violation in the last year)**:
P(No Violation)=755685
* **c. Find P(Driver had no violation in the last year AND was a cell phone user)**:
P(No Violation AND Cell Phone User)=755280
* **d. Find P(Driver is a cell phone user OR driver had no violation in the last year)**:
P(Cell Phone User OR No Violation)=755305+755685−755280=755710
* **e. Find P(Driver is a cell phone user GIVEN driver had a violation in the last year)**:
P(Cell Phone User∣Violation)=7025
* **f. Find P(Driver had no violation last year GIVEN driver was not a cell phone user)**:
P(No Violation∣Non-Cell Phone User)=450405
Try It 3.20: Athletic Stretching and Injury Rates
A study tracked athletes who stretch before exercising and whether they sustained injuries within the past year:
Stretching Status | Injury in Last Year | No Injury in Last Year | Total |
|---|
Stretches | 55 | 295 | 350 |
Does not stretch | 231 | 219 | 450 |
Total | 286 | 514 | 800 |
P(Stretches)=800350
* **b. Find P(Athlete stretches before exercising∣No injury in the last year)**:
P(Stretches∣No Injury)=514295
Example 3.21: Hiking Area Preference by Sex
A sample of 100 hikers produced preferences for hiking areas:
Sex | The Coastline | Near Lakes and Streams | On Mountain Peaks | Total |
|---|
Women (F) | 18 | 16 | 11 | 45 |
Men (M) | 23 | 18 | 14 | 55 |
Total | 41 | 34 | 25 | 100 |
Completing Table 3.5:
Women Mountain Peaks = 45−18−16=11
Men Coastline = 41−18=23
Men Total = 100−45=55
Men Lakes and Streams = 55−23−14=18
Lakes and Streams Total = 16+18=34
Mountain Peaks Total = 11+14=25
Testing Independence:
P(F AND C)=10018=0.18
P(F)=10045=0.45
P(C)=10041=0.41
P(F)P(C)=(0.45)(0.41)=0.1845
* Since P(F AND C)=P(F)P(C) (0.18=0.1845), the events "being a woman" and "preferring the coastline" are **not independent**.
P(M∣L)=3418
3. The sample space is restricted to the 34 hikers who prefer lakes and streams, not all 100 hikers.
P(F OR P)=P(F)+P(P)−P(F AND P)=10045+10025−10011=10059=0.59
Try It 3.21: Cyclist Route Preference by Age Group
A random sample of 200 cyclists was surveyed regarding route preferences:
Age Group | Lake Path | Hilly Path (H) | Wooded Path | Total |
|---|
Younger | 45 | 38 | 27 | 110 |
Older (O) | 26 | 52 | 12 | 90 |
Total | 71 | 90 | 39 | 200 |
P(H∣O)=9052
P(O AND H)=20052=0.26
P(O)P(H)=(20090)(20090)=(0.45)(0.45)=0.2025
Since 0.26=0.2025, the events are not independent.
Example 3.22: Muddy Mouse and Door Choice
Muddy Mouse lives in a cage with three doors. Door selection is equally likely (P(Door One)=P(Door Two)=P(Door Three)=31).
Door One: P(Caught∣Door One)=51, P(Not Caught∣Door One)=54
Door Two: P(Caught∣Door Two)=41, P(Not Caught∣Door Two)=43
Door Three: P(Caught∣Door Three)=21, P(Not Caught∣Door Three)=21
Probability Contingency Table (Table 3.8):
Caught or Not | Door One | Door Two | Door Three | Total |
|---|
Caught | (51)(31)=151 | (41)(31)=121 | (21)(31)=61 | 151+121+61=6019 |
Not Caught | (54)(31)=154 | (43)(31)=123 | (21)(31)=61 | 154+123+61=6041 |
Total | 151+154=31 | 121+123=31 | 61+61=31 | 6019+6041=1 |
P(Not Caught)=6041
* **c. Find P(Door One OR Door Two∣Caught)**:
P(Door One OR Door Two∣Caught)=P(Caught)P((Door One OR Door Two) AND Caught)=6019151+121=6019609=199
Try It 3.22: Car Selection (Mutually Exclusive Choice)
Anna must buy a new car and can afford only one. P(A)=0.25 and P(B)=0.65.
Because Anna can afford only one car, buying car A and buying car B are mutually exclusive (P(A AND B)=0).
P(A AND B)=0
P(A OR B)=P(A)+P(B)−P(A AND B)=0.25+0.65−0=0.90
Example 3.23: United States Crime Index Rates
Crimes per 100,000 inhabitants over four years (Table 3.10):
Year | Robbery | Burglary | Vandalism | Vehicle | Total |
|---|
1 | 145.7 | 732.1 | 29.7 | 314.7 | 1222.2 |
2 | 133.1 | 717.7 | 29.1 | 259.2 | 1139.1 |
3 | 119.3 | 701.0 | 27.7 | 239.1 | 1087.1 |
4 | 113.7 | 702.2 | 26.8 | 229.6 | 1072.3 |
Total | 511.8 | 2853.0 | 113.3 | 1042.6 | 4520.7 |
P(Year 2 AND Robbery)=4520.7133.1
* **b. Find P(Year 3 AND Burglary)**:
P(Year 3 AND Burglary)=4520.7701
* **c. Find P(Year 3 OR Burglary)**:
P(Year 3 OR Burglary)=4520.71087.1+4520.72853.0−4520.7701=4520.73239.1
* **d. Find P(Year 4∣Vandalism)**:
P(Year 4∣Vandalism)=113.326.8
* **e. Find P(Vehicle∣Year 1)**:
P(Vehicle∣Year 1)=1222.2314.7
Try It 3.23: Weight and Height Observational Study
Relationships between weight and height categories (Table 3.11):
Weight / Height | Tall | Medium | Short | Total |
|---|
Overweight | 18 | 28 | 14 | 60 |
Typical Weight Range | 20 | 51 | 28 | 99 |
Underweight | 12 | 25 | 9 | 46 |
Total | 50 | 104 | 51 | 205 |
Calculations:
a. Totals: Row totals are 60, 99, 46. Column totals are 50, 104, 51. Grand Total =205.
b. Find P(Tall):
P(Tall)=20550
* **c. Find P(Overweight AND Tall)**:
P(Overweight AND Tall)=20518
* **d. Find P(Tall∣Overweight)**:
P(Tall∣Overweight)=6018
* **e. Find P(Overweight∣Tall)**:
P(Overweight∣Tall)=5018
* **f. Find P(Tall AND Underweight)**:
P(Tall AND Underweight)=20512
* **g. Are Overweight and Tall independent?**
P(Overweight AND Tall)=20518≈0.0878
P(Overweight)P(Tall)=(20560)(20550)=420253000≈0.0714
Since 0.0878=0.0714, the events Overweight and Tall are not independent.
Tree Diagrams
A tree diagram is a structural graph used to model sequential outcomes of an experiment. It consists of branches labeled with frequencies or probabilities.
Sampling Methods
Sampling With Replacement: The selected item is returned to the population before the subsequent draw. The sample size and probabilities remain constant for each draw.
Sampling Without Replacement: The selected item is not returned. The sample size decreases and probabilities change for each subsequent draw.
Worked Examples and Exercises
Example 3.24: Sampling With Replacement (Urn with 11 Balls)
An urn contains 11 balls: 3 red (R) and 8 blue (B). Draw two balls, one at a time, with replacement.

P(RR)=1219
* **c. Find P(RB OR BR)**:
P(RB OR BR)=12124+24=12148
* **d. Find P(R on 1st AND B on 2nd)**:
P(RB)=12124
* **e. Find P(R on 2nd∣B on 1st)**:
P(R on 2nd∣B on 1st)=113
* **f. Find P(BB)**:
P(BB)=12164
* **g. Find P(B on 2nd∣R on 1st)**:
P(B on 2nd∣R on 1st)=118
Try It 3.24: Card Drawing With Replacement
A standard deck of 52 cards contains 12 face cards (F) and 40 non-face cards (N). Draw two cards with replacement.
P(FF)=(5212)(5212)=(133)(133)=1699
Example 3.25: Sampling Without Replacement (Urn with Marbles)
An urn contains 3 red marbles (R) and 8 blue marbles (B). Draw two marbles, one at a time, without replacement.
P(RB OR BR)=(113)(108)+(118)(103)=11024+11024=11048
* **c. Find P(R on 2nd∣B on 1st)**: 103
* **d. Find P(R on 1st AND B on 2nd)**:
P(RB)=(113)(108)=11024
* **e. Find P(BB)**: 11056
* **f. Find P(B on 2nd∣R on 1st)**: 108
Try It 3.25: Card Drawing Without Replacement
In a standard deck of 52 cards (12 face cards F, 40 non-face cards N), draw two cards without replacement.
P(FN OR NF)=(5212)(5140)+(5240)(5112)=2652480+2652480=2652960
P(N∣F)=5140
P(at most 1 face card)=1−P(FF)=1−(5212)(5111)=1−2652132=26522520
P(at least 1 face card)=1−P(NN)=1−(5240)(5139)=1−26521560=26521092
Example 3.26: Kitten Adoption (Humane Society)
A litter of kittens has 4 tabby kittens and 5 black kittens (9 total). A family selects two kittens randomly without replacement.
P(TT)=(94)(83)=7212
P(TB OR BT)=(94)(85)+(95)(84)=7220+7220=7240
P(T on 2nd∣B on 1st)=84
P(TT OR BB)=(94)(83)+(95)(84)=7212+7220=7232
Try It 3.26: Ball Selection Without Replacement
Four red balls and three yellow balls are in a box (7 total). Two balls are drawn without replacement.
P(one ball of each color)=P(RY OR YR)=(74)(63)+(73)(64)=4212+4212=4224=74
Venn Diagrams
A Venn diagram visually displays outcomes of an experiment using a rectangular box to represent the sample space S and circles/ovals inside to represent individual events.
Structure and Basic Concepts
Sample Space (S or X): Represented by the outer bounding box.
Events: Represented by circles or ovals inside the rectangle.
Intersection (A AND B): The overlapping region shared by circles A and B.
Union (A OR B): The total area covered by circle A, circle B, or their overlap.
Complement / Outside: The area within the rectangle but outside the circles.
Worked Examples and Exercises
Example 3.27: Integer Outcomes 1 through 12
An experiment has outcomes 1,2,3,…,12 with equal probability. Event A={1,2,3,4,5,6} and event B={6,7,8,9}.
A AND B={6}
A OR B={1,2,3,4,5,6,7,8,9}
Elements outside both circles: {10,11,12}
Try It 3.27: Color Outcomes
Sample space S={black,white,red,orange,yellow,green,blue,purple}. Event C={green,blue,purple} and event P={red,yellow,blue}.
C AND P={blue}
C OR P={green,blue,purple,red,yellow}
Elements outside both circles: {black,white,orange}
Example 3.28: Coin Flipping Sample Space
Flip two fair coins. Let A=tails on the first coin and B=tails on the second coin.
Sample Space X={HH,HT,TH,TT}
A={TT,TH}
B={TT,HT}
A AND B={TT}
A OR B={TH,TT,HT}
The outcome HH is in neither A nor B and sits in the region outside both circles.
Try It 3.28: Six-Sided Die Rolling
Roll a fair six-sided die. Sample space S={1,2,3,4,5,6}. Let A=prime number rolled={2,3,5} and B=odd number rolled={1,3,5}.
A AND B={3,5}
A OR B={1,2,3,5}
Elements outside both circles: {4,6}
Example 3.29: College Student Clubs and Part-Time Work
At a local college, 40% of students belong to a club (C), 50% work part time (PT), and 5% work part time and belong to a club (C AND PT).
P(C)=0.40
P(PT)=0.50
P(C AND PT)=0.05
Conditional Probability:
P(C∣PT)=P(PT)P(C AND PT)=0.500.05=0.1
P(C OR PT)=P(C)+P(PT)−P(C AND PT)=0.40+0.50−0.05=0.85
Try It 3.29: Factory Workers Second Job and Spouse Work
At a factory, 50% of workers work a second job (W), 25% have a spouse who works (S), and 5% work a second job and have a spouse who works (W AND S).
Circle W only: 50%−5%=45%
Circle S only: 25%−5%=20%
Intersection W AND S: 5%
Outside both circles: 100%−(45%+20%+5%)=30%
Example 3.30: Blood Types (Type O and Rh- Factor)
In African Americans, 4% have type O blood and negative Rh factor (Rh−), 5–10% have the Rh− factor, and 51% have type O blood.
Taking the average of 5% and 10%, use 7.5% for Rh−.
Let O=Type O blood and R=Rh− factor.
a. P(O)=0.51
b. P(R)=0.075
c. P(O AND R)=0.04
d. P(O OR R)=P(O)+P(R)−P(O AND R)=0.51+0.075−0.04=0.545
e. Overlapping Area Description: The overlapping area represents the percentage of African Americans who have both type O blood and the Rh− factor (4%
f. Outside Area Description: The area inside the rectangle but outside both shapes represents the percentage of African Americans who have neither type O blood nor the Rh− factor (1−0.545=0.455 or 45.5%
Try It 3.30: Bookstore Customer Purchases
In a bookstore, P(Novel)=0.6, P(Non-fiction)=0.4, and P(Both)=0.2.
P(Novel OR Non-fiction)=0.6+0.4−0.2=0.8
c. Overlapping Area Description: The overlapping area represents customers who buy both a novel and a non-fiction book (20%
d. Disjoint Event: Customers buying only compact disks are represented by a separate oval that does not overlap with books.
Stats Lab: Probability Topics
Learning Outcomes
Use theoretical and empirical methods to estimate probabilities.
Appraise the differences between theoretical and empirical estimates.
Demonstrate an understanding of long-term relative frequencies.
Experimental Procedure
Population Count: Count out 40 mixed-color M&Ms (approximately one small bag) and record quantities by color in Table 3.12 (Yellow Y, Green G, Blue BL, Brown B, Orange O, Red R).
Trial 1 (With Replacement): Place M&Ms in a cup. Pick two M&Ms one at a time, replacing the first M&M before picking the second. Record results in Table 3.14. Perform this process 12 times.
Trial 2 (Without Replacement): Pick two M&Ms one at a time without replacing the first M&M before picking the second. Record results in Table 3.14, then return both M&Ms to the cup. Perform this process 12 times.
Data Processing: Calculate empirical probabilities in Table 3.15 in unreduced fractional form.
Event Notation and Formulas
R1 = Red on first pick
R2 = Red on second pick
B1 = Brown on first pick
B2 = Brown on second pick
G2 = Green on second pick
doubles = Both picks are the same color
Probability Statement | Theoretical Formula (With Replacement) | Theoretical Formula (Without Replacement) |
|---|
P(2 reds) | (40Reds)(40Reds) | (40Reds)(39Reds−1) |
P(R1B2 OR B1R2) | (40Reds)(40Browns)+(40Browns)(40Reds) | (40Reds)(39Browns)+(40Browns)(39Reds) |
P(R1 AND G2) | (40Reds)(40Greens) | (40Reds)(39Greens) |
P(G2∣R1) | 40Greens | 39Greens |
P(no yellows) | (4040−Yellows)(4040−Yellows) | (4040−Yellows)(3939−Yellows) |
P(doubles) | ∑colors(40Count)2 | ∑colors(40Count)(39Count−1) |
P(no doubles) | 1−P(doubles) | 1−P(doubles) |
Discussion and Conceptual Questions
Difference Between Replacement Conditions: "With Replacement" and "Without Replacement" probabilities differ because sampling without replacement changes both the total population size (from 40 to 39) and the specific color composition available for the second draw.
Comparison of Probabilities: Converting P(no yellows) to decimal format rounded to four decimal places allows direct comparison between theoretical predictions and empirical experiment results.
Effect of Sample Size: Increasing the number of repeated trials (e.g., from 12 to 240) causes empirical probabilities to fluctuate and refine based on cumulative observed outcomes.
Law of Large Numbers: Increasing trial counts causes empirical probabilities to move closer to theoretical probabilities, as long-term relative frequencies stabilize toward theoretical values as n→∞.
Joint vs. Conditional Meaning: P(G1 AND R2) represents the joint probability of selecting green first AND red second out of the entire original sample space, whereas P(R1∣G2) represents the conditional probability that red was selected given that green occurred, evaluating outcomes over a restricted sample space.