See Stanford's CS228 Course Notes for an explanation of forward sampling as a technique for sampling points from a probability distribution specified by a Bayesian network. See this tutorial for an overview of how to use the Forward Sampling simulation.


Bayesian Network

Add node

Enter the name of a single, new node to be added to the Bayesian Network. Note that you cannot add the name of a node that already exists in the Bayesian Network.

Remove node

Enter the name of a node currently in the Bayesian Network to be removed. Note that if any edges are adjacent to the given node, they too will be removed.

Add edge

Enter the names of two nodes currently in the Bayesian Network, and a directed edge will be added from the first to the second. Note that cycles are not allowed in Bayesian Networks, so edge additions that create cycles will be rejected.

Remove edge

Enter the names of two nodes currently in the Bayesian Network, and the directed edge between them will be removed from the Bayesian Network.

Set node values

Specify node values.

Add CPD

Enter the CPD

Generate Sample

Node values table

Node Values

CPD table

Node Parent Assignment Node value Probability