Bayesian network diagram Five variables: Burglary, Earthquake, Alarm, JohnCalls, MaryCalls: connected by directed edges. Drag nodes to rearrange. Tab through to access each variable.

Drag nodes to rearrange. Edges flow parent → child. Green = clamped TRUE, red = clamped FALSE.

Evidence: click T / F / ? per variable

Quick scenarios:

Posterior: P(variable = TRUE | evidence)

🔗 d-separation checker (are X and Y independent given evidence?)

Pick two variables and click "Check". The algorithm runs Bayes-Ball on the DAG using the current evidence as the conditioning set. Two variables are independent (d-separated) when no active path connects them.

(select X and Y, then click Check)
✨ Featured comparison
Featured comparison

Turn evidence on one shared effect into a competition between causes. This is the fastest way to see explaining away.

Set evidence on the effect node, then compare what happens when one cause is also observed.

🧭 Visual explanation

Live state to watch
No state captured yet. Run or adjust the applet first.
Misread to avoid

📚 Lesson tour (5 steps)
Step 1/5: -

-

📝 Worksheet (3 questions)

Q1. Burglary network. Click "John & Mary both call". Note P(Burglary). Now click "Both call + earthquake". P(Burglary) goes:

Q2. Switch to Sprinkler network. Set Wet=T. Now ALSO set Rain=T. P(Sprinkler=T) is:

Q3. Burglary network, "Both call" evidence. Switch inference method from Exact to Gibbs sampling with 5000 samples. The posterior for P(Burglary) compared to Exact is:

🧪 Student response packet

Set evidence, compare posteriors, then explain how conditional dependence and explaining away changed the inference.

State snapshot appears here.
♿ Text and keyboard support

Text and keyboard support

Keyboard path

  • Use Tab and Shift+Tab to move through controls.
  • Use Enter or Space on buttons, and arrow keys on sliders or select controls.
  • The visual region is focusable and described by the state summary below.

Text state summary

Reduced motion and non-visual support

Reduced-motion settings are honored where possible. The current state is also available as text, so the main result does not depend only on color, animation, or spatial position.

Accessibility note: this layer gives a text equivalent for the applet state. It does not replace a full human screen-reader audit.