Probabilistic Graphical Models
A joint probability over many variables is too big to write down directly the moment you have more than a handful of them — a probabilistic graphical model draws the dependencies as a graph instead, so the joint distribution factors into small, manageable pieces.
Prerequisites: Bayesian Inference, Markov Chains
Ten binary variables — say, whether ten different sectors are "risk-on" or "risk-off" today — have a joint probability distribution with possible combinations, each needing its own probability. Fifty variables need — more numbers than could ever be estimated from any realistic amount of data, let alone stored. Almost none of that complexity is necessary in practice, because most variables don't directly depend on most other variables — energy sector sentiment doesn't need forty intermediate connections to explain oil prices, it depends on oil prices directly and on little else. A probabilistic graphical model writes down exactly which variables directly depend on which, as a graph, and uses that graph to factor the impossible full joint distribution into a handful of small, estimable pieces.
The analogy: an org chart instead of a full meeting transcript
Imagine trying to predict everyone's mood in a fifty-person company by writing down, for every possible combination of fifty individual moods, how likely that exact combination is — an absurd task. Now imagine instead drawing the org chart: each person's mood depends mainly on their direct manager's mood and their own immediate team's situation, not on the mood of someone in an unrelated department three floors away. The org chart doesn't capture every possible influence — it's a simplification — but it captures the influences that actually matter, and it turns an impossible fifty-variable joint prediction problem into fifty small, local ones: "given my manager's mood, what's my mood likely to be?" A graphical model is exactly this kind of org chart, built for probability distributions instead of moods.
The mechanism: factoring a joint distribution along a graph
A Bayesian network is a graphical model built on a directed graph with no cycles, where each variable's node points from its direct causes to itself. The joint probability of all variables factors as a product over each variable, conditioned only on its direct parents in the graph:
Here is the -th variable, is the set of nodes with an arrow pointing directly into in the graph (its direct causes, and nothing farther upstream), and means multiply across all variables. In words: the full joint probability breaks apart into small local factors, one per variable, each conditioned only on its direct parents rather than on every other variable in the system. If a variable has no parents at all, its factor is just its own unconditional probability. This factorization is not an approximation forced onto the data — it is exactly the true joint distribution whenever the graph correctly captures which variables directly influence which, because the graph structure literally encodes a set of conditional-independence assumptions: any two variables not directly connected are assumed conditionally independent given their parents.
The saving in numbers needed is dramatic. Ten binary variables with a naive joint table need independent numbers. The same ten variables, if each has at most 2 parents in a graphical model, need at most numbers (one small conditional table per variable) — a difference of more than 25×, and the gap widens explosively as the variable count grows.
Worked example 1: factoring a 3-variable joint
Take the graph oil price () → energy sentiment () → market risk appetite (), a simple chain. The full factorization is
Suppose , , and . The joint probability of all three specific outcomes together is
Only three small numbers were needed — , , — never a giant table over all joint combinations of , , and simultaneously, and this factored answer, , is exactly the same number a full joint table would have given for this specific combination, had one been built directly.
Worked example 2: reading off conditional independence
In the same chain graph, (market risk appetite) has only as a parent, not directly. This graph structure asserts is conditionally independent of given — once you know , learning 's value adds nothing further about . Check this with numbers: suppose (almost as high as the from ) and 's probability still only depends on : regardless of which value of produced that . Whether was high or low, once is known, has the same probability either way — exactly what the missing direct edge between and claims. If instead 's probability changed depending on 's value even after conditioning on , that would mean the graph is wrong — it's missing a real direct dependency that should have been drawn in as an edge.
A graph in a probabilistic graphical model isn't decoration — it's a precise, checkable claim about which variables directly depend on which. Every missing edge is a conditional independence assumption, and the joint distribution factors exactly along the graph whenever those assumptions hold.
What this means in practice
Graphical models underlie a huge range of applied probabilistic reasoning in finance: hidden Markov models for regime detection are a graphical model with a chain structure, Bayesian network credit risk models factor default probability through explicit causal chains (macro conditions → sector health → firm-level default), and Markov random fields extend the same factoring idea to undirected graphs where influence flows both ways rather than causally. The core payoff everywhere is the same: turning an intractable full joint distribution into a small set of local, estimable conditional distributions, tied together by a graph that can be inspected, questioned, and revised.
Drawing an edge between two variables is easy; the harder and more consequential mistake is omitting one that actually exists. A missing edge is a strong, silent claim of conditional independence, and if that claim is false — say, oil price genuinely has a direct effect on market risk appetite that doesn't route entirely through energy sentiment — the factored joint distribution will be systematically wrong even though every individual conditional probability in it was estimated correctly. Graph structure errors don't show up as visibly wrong numbers; they show up as a subtly biased joint distribution that looks plausible variable by variable.
Practice
- Extend the chain graph with a fourth variable, "credit spreads," as a second parent of "market risk appetite" alongside energy sentiment. Write out the new factorization of the full joint distribution.
- In the worked example, if actually differed depending on whether was high or low, what would that imply about the graph's correctness?
- A ten-variable system where every variable has at most 3 parents needs roughly how many small conditional-probability numbers, compared to a naive joint table over combinations? Use the same counting approach as the worked comparison above.
Related concepts
Practice in interviews
Further reading
- Koller & Friedman, Probabilistic Graphical Models (2009)
- Bishop, Pattern Recognition and Machine Learning, ch. 8