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 p(x1,…,xn)=∏ip(xi∣pa(xi)). 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

  1. Define it: nodes are random variables, directed edges are direct dependencies, and there are no directed cycles.
  2. Write the factorisation p(x)=∏ip(xi∣pa(xi)), where pa(xi) means the parents of xi in the graph. Each factor is stored as a conditional probability table (CPT).
  3. Example: Burglary B → Alarm A ← Earthquake E, with A → JohnCalls J and A → MaryCalls M. Then p(B,E,A,J,M)=p(B) p(E) p(A∣B,E) p(J∣A) p(M∣A).
  4. Count free parameters (all binary): 1+1+4+2+2=10, against 25−1=31 for the full joint. A binary node with k binary parents needs 2k numbers.
  5. Say what this buys: compact storage, independence assumptions you can read off the graph, and efficient inference.

Common mistakes

How long your answer should be

3–5 sentences plus the factorisation of one small example.

Last checked on 4 December 2026.

Read this

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?