Total Outcome Probabilities

Introduction

Welcome back to Tree Diagrams and Decisions! This is the fourth and final lesson of the course, and you are about to complete your tree-diagram toolkit. In the first three lessons, we built tree diagrams, assigned probabilities to every branch, and multiplied along individual paths to find the probability of a specific outcome sequence. That single-path skill is powerful, but most real-world questions are broader than "What is the chance of this exact sequence?" They sound more like "What is the overall chance the projector works?" or "What is the probability of drawing exactly one red marble?" In this lesson, we will learn how to combine multiple paths to find the total probability of a result.

When a Result Has More Than One Path

In the previous lesson, we computed all four path probabilities for the outdoor movie night example. Suppose someone now asks, "What is the overall probability that the projector works?" Two paths end with that result — Clear → Works and Cloudy → Works — so the answer does not live on a single path. It is spread across every path that ends with "Works."

This pattern comes up constantly. Questions phrased as "exactly one red marble," "at least one delay," or "the customer's issue gets resolved" rarely map to a single path. Instead, several different sequences of outcomes can all produce the same final result. To answer these questions, we need a way to combine the contributions of every qualifying path.

The Identify-Multiply-Add Process

Two-Stage Independent Example: Movie Night Revisited

Two-Stage Dependent Example: Mixed Marble Draw

Extending to Three Stages

Why Addition Works

Conclusion and Next Steps

In this lesson, we learned the identify-multiply-add process for finding the total probability of a result that spans more than one path in a tree diagram. The three steps are always the same: find every path that leads to the target result, multiply along each path, and add those path probabilities together. This works for independent and dependent stages alike, and it scales to trees of any size.

You now have the complete tree-diagram toolkit — building diagrams, labeling branches, computing single-path probabilities, and combining paths for total probabilities. The practice exercises ahead will challenge you with coin flips, commute delays, customer-support workflows, and subscription-box selections, each one a chance to sharpen the identify-multiply-add process until it becomes second nature.

Sign up

Join the 1M+ learners on CodeSignal

Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal