Forward Sampling

Learn the basics of forward sampling and how we can prepare the trained QBN.

In the previous chapter Bayesian Inference, we learned how to apply a variational method to learn a hidden variable. Variational methods approximate the distribution of a hidden variable analytically.

Sampling-based methods work differently. Instead of calculating the hidden distribution, they approximate it empirically. The principle is straightforward. These methods repeatedly select an instance and ...