Probability with Two-Way Tables: Union of Events

Probability & Statistics 9th-10th Grade
Problem

The table below shows the number of survey subjects who have received and not received a speeding ticket in the last year, and the color of their car.

Speeding TicketNo Speeding TicketTotal
Red Car19438457
Not Red Car41143184
Total60581641

If one person is randomly selected from the group, what is the probability that this person drives a red car or got a speeding ticket?

Probability = ?

What This Problem Teaches

  • How to apply the inclusion-exclusion principle to find P(A or B)
  • Reading and interpreting two-way frequency tables for probability calculations
  • Understanding why you subtract the intersection to avoid double-counting
  • Using the complement strategy as an alternative solution method
  • Converting between counts and probabilities in real-world contexts

Visualizing the Data

Let's create a visual representation to understand the relationships between the events:

The table below shows the number of survey subjects who have received and not received a speeding ticket in the last...

This Venn diagram shows how the 641 people are distributed across the four possible categories. Notice that 19 people appear in both circles—they drive red cars and got tickets.

Solution: Method 1 — The Inclusion-Exclusion Approach

Step 1 — Identify the events and their counts

From the table, we need:

  • People with red cars: 457
  • People with speeding tickets: 60
  • People with both red cars and tickets: 19
  • Total people surveyed: 641

Step 2 — Apply the inclusion-exclusion principle

For "A or B" events, we use: P(A or B) = P(A) + P(B) - P(A and B)

P(red car or ticket) = P(red car) + P(ticket) - P(red car and ticket)

Step 3 — Convert counts to probabilities

Divide each count by the total sample size:

  • P(red car) = 457/641
  • P(ticket) = 60/641
  • P(both) = 19/641

Step 4 — Perform the calculation

P(red car or ticket) = 457/641 + 60/641 - 19/641 = (457 + 60 - 19)/641 = 498/641

Step 5 — Simplify if possible

To check if this fraction can be simplified, we need the GCD of 498 and 641. Since 641 is prime, and 498 = 2 × 3 × 83, these numbers share no common factors. The fraction 498/641 is already in lowest terms.

Solution: Method 2 — The Complement Strategy

Step 1 — Identify the complement

Instead of finding P(red car or ticket), we'll find P(NOT red car AND NOT ticket), then subtract from 1.

Step 2 — Find people with neither characteristic

From the table, people who drive non-red cars AND have no ticket: 143 people

Step 3 — Calculate the complement probability

P(neither) = 143/641

Step 4 — Use the complement rule

P(red car or ticket) = 1 - P(neither) = 1 - 143/641 = 641/641 - 143/641 = 498/641

This confirms our first method's answer!

Probability = 498/641 ≈ 0.777 or about 77.7%

Verification

Let's verify our answer using a direct count approach:

People who drive red cars OR got tickets include:

  • Red car drivers with tickets: 19
  • Red car drivers without tickets: 438
  • Non-red car drivers with tickets: 41

Total: 19 + 438 + 41 = 498 people

Probability: 498/641

As a decimal: 498 ÷ 641 ≈ 0.7769 or about 77.7% ✓

Watch Out For These

✗ Adding without subtracting the overlap

Incorrect: P(red or ticket) = 457/641 + 60/641 = 517/641

This counts the 19 people who have both characteristics twice. You must subtract the intersection to avoid double-counting.

✗ Using "and" instead of "or"

Incorrect: P(red and ticket) = 19/641

The problem asks for "red car OR got a ticket," not "red car AND got a ticket." These are completely different questions with different answers.

✗ Reading the table incorrectly

Incorrect: Using 438 as the total number of red car drivers

The number 438 represents red car drivers who did NOT get tickets. The total number of red car drivers is 457 (which includes the 19 who did get tickets).

✗ Forgetting the total sample size

Incorrect: P(red or ticket) = 498

Probability must be between 0 and 1. You need to divide the favorable outcomes (498) by the total sample size (641) to get a proper probability.

Does This Seem Reasonable?

Our answer of about 77.7% makes intuitive sense. Here's why:

  • Red car drivers alone make up 457/641 ≈ 71.3% of the sample
  • Ticket recipients add another 60/641 ≈ 9.4%
  • But there's overlap of 19/641 ≈ 3.0% that we must subtract
  • Net result: 71.3% + 9.4% - 3.0% = 77.7%

The majority of people (71.3%) already drive red cars, so adding the ticket holders only increases this to about 78%. The small overlap prevents it from reaching the naive sum of 81%.

The Pattern Behind This

This problem demonstrates the fundamental inclusion-exclusion principle for the union of two events:

P(A ∪ B) = P(A) + P(B) - P(A ∩ B)

In words: "The probability of A or B equals the probability of A plus the probability of B minus the probability of both A and B."

This principle extends to any two-way table problem where you need to find the probability of belonging to at least one category. The key insight is that simple addition double-counts the intersection, so you must subtract it once to get the correct total.

When to use each method:

  • Use inclusion-exclusion when the individual probabilities are easy to identify
  • Use the complement when the "neither" category is easy to spot and calculate
  • Both methods should always yield the same answer—use one to check the other

Real Applications

This type of "union probability" calculation appears frequently in:

  • Medical testing: Finding the probability that a patient has condition A or condition B when conditions sometimes co-occur
  • Marketing analysis: Calculating the reach of advertising campaigns that target overlapping demographics
  • Quality control: Determining the probability that a product fails for reason X or reason Y, where both failure modes can happen simultaneously

What If?

1
Change the Sample Composition
Suppose the survey had different results: 520 red car drivers (with 25 getting tickets), 180 non-red car drivers (with 35 getting tickets), for a total of 700 people surveyed. What is the probability that a randomly selected person drives a red car or got a speeding ticket?
Step 1 — Organize the data

Red car drivers: 520, Ticket recipients: 25 + 35 = 60, Both (red car AND ticket): 25, Total sample: 700

Step 2 — Apply inclusion-exclusion

P(red or ticket) = P(red) + P(ticket) - P(both) = 520/700 + 60/700 - 25/700

Step 3 — Calculate

(520 + 60 - 25)/700 = 555/700

Step 4 — Simplify

555/700 = 111/140 (dividing by 5)

Verification

As a decimal: 111/140 ≈ 0.793 or about 79.3%. ✓

Answer: 111/140 ≈ 0.793 or 79.3%

2
Conditional Probability Twist
Using the original data, suppose we know that a randomly selected person got a speeding ticket. What is the probability that this person drives a red car?
Step 1 — Identify the conditional probability

We want P(red car | got ticket), which means "probability of red car given that we know they got a ticket."

Step 2 — Use conditional probability formula

P(red | ticket) = P(red and ticket) / P(ticket)

Step 3 — Extract values from table

People with red cars AND tickets: 19, Total people with tickets: 60

Step 4 — Calculate

P(red | ticket) = 19/60

Verification

This makes sense: among the 60 ticket recipients, 19 drive red cars. 19/60 ≈ 0.317 or about 31.7%. ✓

Answer: 19/60 ≈ 0.317 or 31.7%

3
Three-Category Extension
Suppose we expand the car color data. Of the 641 people: 280 drive red cars, 200 drive blue cars, 161 drive other colors. Among red car drivers, 15 got tickets. Among blue car drivers, 25 got tickets. Among other color drivers, 20 got tickets. What is the probability that a randomly selected person drives a red car, drives a blue car, or got a speeding ticket?
Step 1 — Identify the events

A = drives red car (280 people), B = drives blue car (200 people), C = got ticket (15 + 25 + 20 = 60 people)

Step 2 — Note the overlaps

Red and ticket: 15, Blue and ticket: 25, Red and blue: 0 (mutually exclusive car colors)

Step 3 — Apply inclusion-exclusion for three events

P(A ∪ B ∪ C) = P(A) + P(B) + P(C) - P(A ∩ B) - P(A ∩ C) - P(B ∩ C) + P(A ∩ B ∩ C)

Step 4 — Calculate

280/641 + 200/641 + 60/641 - 0 - 15/641 - 25/641 + 0 = 500/641

Verification

Direct count: 280 red + 200 blue + 20 other-with-tickets = 500 people. ✓

Answer: 500/641 ≈ 0.780 or 78.0%

4
Reverse Engineering Challenge
A survey shows that P(red car or ticket) = 5/8. There are 800 total people, 400 drive red cars, and 30 people both drive red cars and got tickets. How many people got speeding tickets in total?
Step 1 — Convert probability to count

P(red or ticket) = 5/8, so the number of people = (5/8) × 800 = 500 people

Step 2 — Set up inclusion-exclusion equation

500 = 400 + T - 30, where T = total people with tickets

Step 3 — Solve for T

500 = 400 + T - 30
500 = 370 + T
T = 130

Step 4 — Verify

Check: P(red or ticket) = (400 + 130 - 30)/800 = 500/800 = 5/8

Final verification

This means 130 people got tickets, which is reasonable for a sample of 800 people.

Answer: 130 people got speeding tickets

Frequently Asked Questions

How do you find the probability of "or" events in a two-way table?+

Use the inclusion-exclusion principle: P(A or B) = P(A) + P(B) - P(A and B). Add the individual probabilities, then subtract the overlap to avoid double-counting. In this problem, P(red car) = 457/641, P(ticket) = 60/641, and P(both) = 19/641, giving us 457/641 + 60/641 - 19/641 = 498/641.

Why do you subtract the intersection in probability problems?+

Because simply adding P(A) + P(B) counts the overlap twice. When you count all red cars (457) and all ticket recipients (60), the 19 people who are both red car drivers AND got tickets appear in both counts. Subtracting P(A and B) removes this double-counting.

What's the complement approach to solving "or" probability problems?+

Find P(not A and not B) first, then subtract from 1. It's often easier to count what you don't want than what you do. In this example, people who don't drive red cars AND didn't get tickets are the 143 non-red, no-ticket drivers. So P(red or ticket) = 1 - 143/641 = 498/641.

NJ
Neven Jurkovic, PhD

Professor of Computer Science, Palo Alto College, Alamo Colleges District, San Antonio, TX

Developer of Algebrator

Contact

This solution was prepared with AI assistance and reviewed by Dr. Jurkovic for mathematical accuracy and pedagogical clarity.

2026-07-21