← Iris

Network Sprinkler
Evidence None
Network:
Click a node to cycle: unknown → true → false → unknown. Drag nodes to rearrange.

How it works

Each node has a conditional probability table (CPT) that defines P(Node | Parents). When you set evidence (observe a node as true or false), the network performs exact inference by enumerating over all possible joint assignments. For each unobserved node, we compute the marginal probability by summing over all consistent assignments.

Conditional independence

In the sprinkler network, Sprinkler and Rain are conditionally independent given Cloudy. But they become dependent when you observe Wet Grass (explaining away). This is the essence of d-separation and Bayesian reasoning.

Key formula

P(A|B) = P(B|A) · P(A) / P(B) — Bayes' theorem