Artificial Intelligence

Why Bayesian Inference Gets Expensive

19:29

Plays from YouTube. Watch on YouTube

Why can a small Bayesian network require an enormous intermediate table?

Compute how elimination order changes exact factor size on a Boolean star graph: 32 possible rows with center-first versus four with leaves-first.

We start with factor scopes and elimination graphs, using precise definitions and original examples to establish the problem being solved.

From there, we work through fill edges, treewidth, min-fill and memory costs, following the actual operations rather than skipping from the input straight to the final answer.

Then we derive fill edges, induced width, min-degree and min-fill ordering, and distinguish a structural row count from measured runtime.

Finally, we connect the result to implementation. The big idea: intermediate factor width—not just network size—drives exact inference.

Explore more computer science and mathematics lessons from Closiq.