Conditional Probability Tree
Visualize a two-stage process and calculate joint probabilities using a tree structure.
Free theory articleVisualize a two-stage process and calculate joint probabilities using a tree structure.
Concept & interpretation
A two-stage tree describes whether A occurs, then whether B occurs on each first-stage branch. Write p = P(A), q = P(B|A), and r = P(B|¬A). These are chosen probabilities, not random observations. A complete path represents an intersection, so its probability is the product of the two branch probabilities. Different leaves are disjoint, which lets us add their probabilities.
Reproduce the prediction and change one assumption
Open the Conditional Probability Tree interactive. The three sliders have step 0.01. The path cards provide numerical witnesses alongside the tree, and on a phone the controls panel scrolls independently. Use these steps to distinguish a first-stage probability from a conditional probability.
- Set P(A) to 0.25, P(B|A) to 0.80, and P(B|¬A) to 0.20. Read the four path values 0.200, 0.050, 0.150, and 0.600, and check P(B) = 0.350.
- Change only P(A) to 0.50. Predict the leaves 0.400, 0.100, 0.100, and 0.400. P(B) becomes 0.500 because more probability now reaches the branch with the larger conditional B probability.
- Keep P(A) = 0.50 and P(B|¬A) = 0.20, then set P(B|A) to 0.40. The A leaves become 0.200 and 0.300; the other two stay 0.100 and 0.400. P(B) is 0.300. Set P(B|A) to 0.00 to obtain 0.000, 0.500, 0.100, and 0.400, with P(B) = 0.100.
- Set P(A) to 0.00. Both A leaves are zero regardless of the stored A-side setting; the explanation marks that transition as unused. Drag the tree or use arrow keys, then select Reset view or press Home. Navigation changes the view, not any probability.
For another check, set P(A) = 0.30 and both conditional sliders to 0.60. Then P(B) = 0.60, since each parent sends the same fraction to B. Here B is independent of A, but that special case is not a requirement of the tree model.