0.400.600.800.200.300.70Start🌧️ Rain☀️ Sun🏡 Indoor🏃 Outdoor🏡 Indoor🏃 Outdoor

Path Probability Solver

Click any leaf node above or select a path below to inspect intermediate calculations and highlight the tree route.

Rain ∩ Indoor32.0%
Formula:P(Weather) × P(Activity | Weather)
= 0.40 × 0.80 = 0.320
Rain ∩ Outdoor8.0%
Formula:P(Weather) × P(Activity | Weather)
= 0.40 × 0.20 = 0.080
Sun ∩ Indoor18.0%
Formula:P(Weather) × P(Activity | Weather)
= 0.60 × 0.30 = 0.180
Sun ∩ Outdoor42.0%
Formula:P(Weather) × P(Activity | Weather)
= 0.60 × 0.70 = 0.420

Variable Adjuster

P(Rain) - Chance of Rain0.4
01
P(Indoor|Rain) - Prefers Indoor on Rainy Day0.8
01
P(Indoor|Sun) - Prefers Indoor on Sunny Day0.3
01

Auto-Sweep Engine

2x

Probability Trees Simulator

PROB

Probability trees represent sequences of independent or conditional events. Each fork is a branching decision, where the sum of probabilities of all branches from a single node must equal 1.0. To find the probability of a combined outcome, we multiply the values along its path: P(A ∩ B) = P(A) × P(B|A).

P(AB)=P(A)×P(BA)P(A \cap B) = P(A) \times P(B \mid A)

Whiteboard Solver Steps

Step 1

Stage 1: Marginal Probabilities

Visual Guide: - These are the probabilities of the initial weather events. They are mutually exclusive and sum to 1.01.0. Why this matters: - Every branches group from a single node represents all possible outcomes. Therefore, their sum must always equal 1.01.0 (100%100\% probability).

P(Rain)=0.40P(Sun)=1P(Rain)=0.60\begin{aligned}P(\text{Rain}) = 0.40 \\ P(\text{Sun}) = 1 - P(\text{Rain}) = 0.60\end{aligned}
Step 2

Stage 2: Conditional Probabilities

Concept: - **Conditional Probability (P(BA)P(B|A))**: The likelihood of event B occurring *given* that event A has already occurred. - Notice how your preference for indoor/outdoor activities shifts depending on whether it is raining or sunny. The probability tree visually forks to capture these dependencies.

P(IndoorRain)=0.80,P(OutdoorRain)=0.20P(IndoorSun)=0.30,P(OutdoorSun)=0.70\begin{aligned}P(\text{Indoor} \mid \text{Rain}) = 0.80, \quad P(\text{Outdoor} \mid \text{Rain}) = 0.20 \\ P(\text{Indoor} \mid \text{Sun}) = 0.30, \quad P(\text{Outdoor} \mid \text{Sun}) = 0.70\end{aligned}
Step 3

Compute Path Intersections (Multiplication Rule)

Concept: - To find the probability of a specific sequence of events (following a path from the root to a leaf), we multiply the probabilities along the branches: P(AB)=P(A)×P(BA)P(A \cap B) = P(A) \times P(B \mid A). Real-World Utility: - Used in medical diagnosis tree models to calculate the probability of having a disease given a positive test result. - Used in Machine Learning (Decision Trees) and game theory to assess risks and expected payouts under uncertain future events.

P(RainIndoor)=P(Rain)×P(IndoorRain)=0.40×0.80=0.3200P(RainOutdoor)=0.0800P(SunIndoor)=0.1800P(SunOutdoor)=0.4200\begin{aligned}P(\text{Rain} \cap \text{Indoor}) = P(\text{Rain}) \times P(\text{Indoor} \mid \text{Rain}) = 0.40 \times 0.80 = 0.3200 \\ P(\text{Rain} \cap \text{Outdoor}) = 0.0800 \\ P(\text{Sun} \cap \text{Indoor}) = 0.1800 \\ P(\text{Sun} \cap \text{Outdoor}) = 0.4200\end{aligned}