Biostatistics · Introductory

Tree and Venn Diagrams

Written by SignalsLab

Early edition: these lessons are being reviewed.

Content

Summary

Venn diagrams and tree diagrams are visual tools that translate abstract probability concepts into geometric representations. Venn diagrams illustrate set relationships like intersections and unions within a sample space, while tree diagrams map sequential outcomes and conditional probabilities.

Intuition

Think of a Venn diagram as a map of a city where the rectangle is the entire city (sample space) and circles are specific neighborhoods (events). The overlapping area shows where neighborhoods meet (intersection/AND), while the combined area shows all reachable neighborhoods (union/OR). Tree diagrams, on the other hand, are like a flowchart for a journey. Each branch represents a step in a sequence, and the probability of a specific path is found by multiplying the probabilities along that path, helping us track how earlier choices affect later possibilities.

Key equations

P(A∪B)=P(A)+P(B)−P(A∩B)
(1)

The Addition Rule for the probability of the union of two events, subtracting the intersection to avoid double-counting.

P(A|B)=P(A∩B)P(B)
(2)

The formula for conditional probability, measuring the likelihood of A given B has occurred.

P(A∩B)=P(A)⋅P(B|A)
(3)

The Multiplication Rule for the joint probability of two events.

P(A∩B)=P(A)⋅P(B)
(4)

The condition for independence, where the joint probability equals the product of individual probabilities.

Derivation

  1. Define the sample space S as the universal set and events A and B as subsets.
  2. Identify the intersection A ∩ B as outcomes common to both A and B (logical AND).
  3. Identify the union A ∪ B as outcomes in A, B, or both (logical OR).
  4. Apply the Addition Rule: Sum P(A) and P(B), then subtract P(A ∩ B) because the intersection is counted twice.
  5. For sequential events, construct a tree diagram with branches representing stages.
  6. Label branches with conditional probabilities P(B|A) for dependent events.
  7. Calculate path probability by multiplying branch probabilities along the sequence.
  8. Sum path probabilities for mutually exclusive outcomes to find total union probability.

Worked example

Problem

In a student population, 40% belong to a club (C) and 50% work part-time (PT). 5% belong to a club and work part-time. Calculate the probability that a student belongs to a club or works part-time.

  1. Identify P(C) = 0.40, P(PT) = 0.50, and P(C ∩ PT) = 0.05.
  2. Apply the Addition Rule: P(C ∪ PT) = P(C) + P(PT) - P(C ∩ PT).
  3. Substitute values: 0.40 + 0.50 - 0.05.
  4. Calculate the result: 0.85.

Answer 0.85

Common mistakes

  • Omitting the subtraction of the intersection in the Addition Rule, leading to double-counting.
  • Failing to update probabilities in tree diagrams when sampling without replacement.
  • Confusing intersection (AND) with union (OR) in Venn diagrams.
  • Assuming events are independent when they are actually dependent.

Animation

Animation coming soon

The animated version of this lesson is being prepared for the web. In the Signals AI app, lessons are drawn step by step.

Code

This is a text lesson: it has no animation code yet.

ccBYNC© 2026 SignalsLab. Lesson text shared as is under CC BY-NC 4.0.