Bayesian Network (Interactive)

Build a simple Bayesian network in the browser: create nodes, set parent relationships, define conditional probability tables (CPTs), and run exact inference with evidence.

Nodes & structure

Inference

How to Use This Tool

Create nodes, wire parents, define CPTs, and add evidence to observe how probability flows through the graph. Hit Calculate to see the exact probability of your query conditioned on the evidence you set.

This demo is educational: keep networks small (5–6 variables) and treat the answers as illustrations of enumeration. For production-grade modeling, export the structure to a dedicated engine.

Methodology

The engine enumerates every assignment of the DAG, multiplying the CPT rows for each node and summing across hidden variables. We normalize by dividing the joint probability that matches the query and evidence by the total probability of the evidence alone.
Probability statements are shown with four decimal places and a percent summary so you can compare intuition with exact math.

Related Modeling Tools

Why Bayesian networks?

They let you mix expert knowledge (structure) with data (parameters) and still answer probabilistic queries. Use this page to experiment with small DAGs and understand conditional independence.

Formulas

Joint distribution breakdown:

P(X1, …, Xn) = ∏i=1n P(Xi | Parents(Xi))

The denominator normalizes P(Query, Evidence) by summing over Query = True/False given the same evidence.

Citations
Changelog
  • 0.1.0-draft — 2026-01-19: Initial audit spec draft generated from HTML extraction (review required).
  • Verify formulas match the calculator engine and convert any text-only formulas to LaTeX.
  • Confirm sources are authoritative and relevant to the calculator methodology.
Verified by Ugo Candido Last Updated: 2026-01-19 Version 0.1.0-draft
Version 1.5.0