Skip to content
Graphviz (DOT) templates

Math — Probability Tree

A two-stage tree of conditional outcomes.

Template previewGraphviz (DOT)
Rendering…

Make it your own.

digraph ProbTree {
  rankdir=LR;
  node [shape=box, style=rounded];
  Start -> A [label="P(A)"];
  Start -> "A'" [label="P(A')"];
  A -> "A then B" [label="P(B|A)"];
  A -> "A then B'" [label="P(B'|A)"];
  "A'" -> "A' then B" [label="P(B|A')"];
  "A'" -> "A' then B'" [label="P(B'|A')"];
}