Loading…

Partitioned Event Tree Builder

Math Probability • Conditional Probability and Events

View all topics

Partitioned Event Probability Calculator – Total Law with Trees (Free)

Build a partition tree and compute total probability using: \(P(B)=\sum_i P(B\mid A_i)P(A_i)\).

Tip: Press Play after calculating to animate probability flowing through the branches and the sum building up. Drag to pan, wheel to zoom the tree.

Partition input

Accepted expressions: 1e-3, pi, e, sqrt(2), sin(), cos(), tan(), ln(), log(), abs(). Use * for multiplication.

Verification settings
In a true partition, \(A_i\) are mutually exclusive and exhaustive, so \(\sum_i P(A_i)=P(\Omega)\).
Output & animation
The animation fills branch “pipes” and bars in the same order as the total-probability sum.
Ready
Interactive partition tree — branches + path contributions

Left: root \(\to A_i\) with \(P(A_i)\). Right: \(A_i \to B\) with \(P(B\mid A_i)\). Leaf paths show \(P(A_i\cap B)=P(A_i)P(B\mid A_i)\). Drag to pan, wheel to zoom.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

What is a partition in probability?

A partition {Aᵢ} is a set of mutually exclusive and exhaustive events whose union is Ω. In a finite partition, ΣP(Aᵢ)=P(Ω).

Why does P(B)=ΣP(B|Aᵢ)P(Aᵢ) work?

Because the events Aᵢ split the sample space into disjoint cases; the pieces Aᵢ∩B are disjoint and their union equals B, so probabilities add.

What does normalization do?

Normalization rescales the P(Aᵢ) values so they sum exactly to P(Ω). It is useful for unscaled weights, but it changes the original inputs.

Can this handle infinite partitions?

This calculator targets finite partitions. In advanced probability, the same idea extends to countably infinite partitions (σ-additivity) and to continuous cases (integrals).