What is a Bayesian network, and why does it need far fewer parameters than the full joint distribution?
Probabilistic models, Bayesian networks
Level L1 Beginner. Length Short. Nature Th Theoretical.
What's being asked
Whether you know that a Bayesian network is a factorisation of a joint distribution, and what that factorisation buys.
Key idea
A Bayesian network is a directed acyclic graph whose joint distribution factorises as . Each variable is conditionally independent of its non-descendants given its parents, so you store one small table per node instead of one huge joint table.
Steps
- Define it: nodes are random variables, directed edges are direct dependencies, and there are no directed cycles.
- Write the factorisation , where means the parents of in the graph. Each factor is stored as a conditional probability table (CPT).
- Example: Burglary → Alarm ← Earthquake , with → JohnCalls and → MaryCalls . Then .
- Count free parameters (all binary): , against for the full joint. A binary node with binary parents needs numbers.
- Say what this buys: compact storage, independence assumptions you can read off the graph, and efficient inference.
Common mistakes
- Reading the arrows as causation. The graph encodes conditional independences; a causal reading needs extra assumptions.
- Counting numbers for a binary node; each CPT row sums to 1, so only are free.
- Saying nodes with no edge between them are always independent. and become dependent once the alarm is observed.
How long your answer should be
3–5 sentences plus the factorisation of one small example.
Last checked on 4 December 2026.
Read this
- Bishop, Pattern Recognition and Machine Learning, Section 8.1: Free PDF. Section 8.1, Bayesian Networks (pp. 360–372): the factorisation p(x) = Π p(x_k | pa_k), and in 8.1.3 the parameter count for discrete variables against the full joint.
- Stanford CS228 notes: Bayesian networks: Short, readable introduction based on Koller and Friedman: the factorisation, why it is compact, and the independencies the graph implies.
- NPTEL: Deep Learning, Part 2 (IIT Madras, Prof. Mitesh M. Khapra): Week 1: Can we represent the joint distribution more compactly, which shows how a Bayesian network factorises the joint and saves parameters.
Previous in Probabilistic models: What is a conjugate prior, and why is the Beta prior for a coin's heads probability easy to interpret as 'imaginary extra tosses'? What is the posterior for a Beta(1, 1) prior after 3 heads and 1 tail?
Next in Probabilistic models: What is a hidden Markov model? What are its hidden states and observations, and which three sets of probabilities define it?