Skip to content
Kudos AI

Approximate Inference by Sampling

Draw events from the network, count them, and see why rejection sampling wastes almost everything, how likelihood weighting keeps every sample, and what Gibbs sampling does instead.

IntermediateModule 330 min · 120 XP
A thousand sampled events streaming through the sprinkler network, seven hundred of them fading out as rejected, then the same evidence kept fixed while weights accumulate instead.

This is a premium lesson

Sign in and enrol to read the full lesson, run the code, take the quiz, and earn XP toward the path badge.