Bayesian Networks: Representation and Manual Inference (Overview) — Beginner-Friendly Notes
1. What It Is
Bayesian network (Bayes net) = directed acyclic graph (DAG) that compactly represents a full joint distribution via conditional independencies.
- Nodes: random variables (e.g., ).
- Edges: direct dependence (parent → child).
- Tables: each node has CPT (conditional probability table) .
Instead of storing joint entries, store small CPTs — exploits independence.
2. Representation — Structure + Numbers
Example (classic Alarm net):
Burglary → Alarm ← Earthquake
↓
Call
- ,
- table (e.g., if both true, if none)
- table
Joint factorises:
— chain rule with independencies ( independent of given ).
3. Why This Helps AI
- Compact: n variables with ≤k parents need not .
- Intuitive: edges match causal story (cause → effect).
- Inference: compute by combining CPTs — e.g., .
4. Manual Inference (overview — concept, not full algorithm)
Two ways at small scale:
- Enumeration: sum over hidden variables: — exact but exponential.
- Variable elimination / message passing: exploit factorisation to push sums inside — still exponential worst-case but faster given sparsity.
Beginner trace: To get you read CPT directly. To get you marginalise .
5. Independence Reading (d-separation, briefly)
- Chain : with observed, independent of .
- Fork : with observed, independent of .
- Collider : with not observed, independent of ; observing makes them dependent (explaining away).
6. Limitations for Exam
- Building CPTs needs data/expert elicitation.
- Exact inference is NP-hard in general; large nets need approximate (sampling).
- Still the go-to for diagnosis, sensor fusion, risk assessment.
7. One-Line Summary
A Bayesian network represents the joint distribution as a DAG with CPTs , encoding conditional independencies for compact representation and inference of via factorised enumeration.
8. Quick Self-Check
- Write factorisation for .
- Why is independent of given ?