A patient reports a fever. The doctor doesn't know the cause — but updates a hunch: flu just got more likely. Add a sneeze, and an allergy climbs the list while flu may drop. We do this constantly: take evidence, revise our beliefs about hidden causes.
Written down, this is a Bayesian network: a web of variables — diseases, symptoms, risk factors — wired by how they influence one another, each with the probabilities that connect them. Inference means asking, given some observed evidence, what's the updated (posterior) probability of the things we can't see?
For one or two variables it's just Bayes' rule. But real networks have hundreds of interlinked variables, and the honest way to compute an exact answer is to sum over every combination of the unknowns — a combinatorial explosion. That's why exact Bayesian inference is, formally, #P-hard — a class believed even harder than NP.
Comments
Loading comments...