BY: Statistics Fundamentals Team
Reviewed By: Minsa A (Senior Statistics Editor)

Probability Tree Diagram Maker

Build interactive probability tree diagrams for multi-stage experiments and conditional probability problems. Enter branch labels and probabilities — the tool draws the full tree, calculates all joint probabilities along every path, verifies probabilities sum to 1, and produces a Bayes' theorem table for two-stage trees.

Probability Tree Diagram Maker

Joint probability P(A ∩ B) = P(A) × P(B|A) Rule all paths sum to 1
Bayes' Theorem P(A|B) = P(B|A)·P(A) / P(B)

Generate a 2-stage tree first, then this tab shows the full Bayes' theorem calculation — prior probabilities, likelihoods, joint probabilities, marginal P(B), and posterior P(A|B) for every combination.

Generate a 2-stage tree to see Bayes' theorem applied
Templates Click any card to load & generate instantly

Probability Tree Examples

Click any example to load it into the builder above

View:

What Is a Probability Tree Diagram?

A probability tree diagram is a visual tool that maps out all possible outcomes of a multi-stage experiment, showing each outcome as a branch with its associated probability. Starting from a single root, branches split at each stage to show every possible outcome. The probability of any complete sequence of outcomes (a path through the tree) is found by multiplying the branch probabilities along that path — this is the multiplication rule of probability.

Tree diagrams are especially powerful for conditional probability problems, where the probability of a second-stage outcome depends on what happened in the first stage. They provide a systematic way to enumerate all possibilities, ensuring no outcomes are missed and that probabilities are correctly applied at each decision point.

The Multiplication Rule (Along Branches)

For any path through the tree: Multiply all the branch probabilities along that path to get the joint probability of that sequence of outcomes. For a two-stage tree, P(A ∩ B) = P(A) × P(B|A), where P(B|A) is the conditional probability of B given that A occurred at the first stage.
The sum rule: All joint probabilities at the end of the tree (all complete paths) must sum to exactly 1. This is a built-in check — if the sum is not 1, at least one set of branch probabilities is incorrect. Each node's outgoing branches must also sum to 1.

Bayes' Theorem from a Tree Diagram

A two-stage probability tree naturally implements Bayes' theorem. After building the tree, you can "reverse" the conditioning: given that a second-stage outcome B occurred, what is the probability that it came from first-stage branch A? The answer is P(A|B) = P(A ∩ B) / P(B), where P(B) = Σ P(Aᵢ ∩ B) is found by summing all paths that end in B. This is the Law of Total Probability combined with Bayes' theorem.

Classic Applications

ApplicationStage 1Stage 2Key question
Medical diagnosisDisease / No diseaseTest positive / negativeP(disease | positive test) — Bayes' theorem
Quality controlMachine A / B / CDefective / Non-defectiveP(machine A | defective item) — source tracing
Coin/die experimentsFirst flip/rollSecond flip/rollP(HH), P(at least one H)
Weather forecastingForecast: Rain / No rainActual: Rain / No rainP(forecast correct | actual rain)
GeneticsParent 1 alleleParent 2 alleleP(offspring genotype)

Related Topics

Sources & further reading:

Frequently Asked Questions

Start at the root (left side). At each node, the outgoing branches show possible outcomes labeled with their probabilities — which must sum to 1. Follow any path from root to end node, multiplying all branch probabilities along the way, to get the joint probability of that sequence. The list of all end-node joint probabilities gives the complete probability distribution of the experiment.

At every level: (1) the branches leaving each node must sum to 1 — they represent all possible outcomes given that you reached that node; and (2) all the end-node joint probabilities must sum to 1 — they cover the entire sample space. If either check fails, at least one branch probability is wrong. This tool automatically validates both conditions and warns you if they're violated.

In a two-stage tree, the first stage gives prior probabilities P(A), and the second stage gives likelihoods P(B|A). Multiplying gives joint probabilities P(A ∩ B). Summing all paths to outcome B gives P(B) — the marginal probability. Dividing any joint probability by P(B) gives the posterior P(A|B) = P(A ∩ B)/P(B). This is Bayes' theorem applied visually. The Bayes' table in the results shows all these values automatically.

For independent events, the second-stage branch probabilities are the same regardless of which first-stage branch was taken — for example, two coin flips always have P(H) = P(T) = 0.5 at every node. For dependent (conditional) events, the second-stage probabilities differ depending on the first-stage outcome — for example, drawing two balls without replacement: the second draw probabilities depend on what was drawn first.

Find all paths whose outcome includes A or B (or both), then sum their joint probabilities. For example, to find P(at least one Head in two flips), sum the joint probabilities of HH, HT, and TH paths: 0.25 + 0.25 + 0.25 = 0.75. This works because the paths are mutually exclusive events — they can't happen simultaneously — so probabilities add directly.