Skip to content

Probabilistic graphical model

A graphical model makes a joint distribution’s factorisation and independence assumptions explicit. Compare directed, undirected and factor graphs through an eight-state binary chain.

A probabilistic graphical model represents a joint probability distribution using a graph and local probability distributions or factors. Its structure makes assumptions about conditional independence explicit. For a quant modelling market, liquidity and execution flags together, those assumptions determine which information can change a forecast and how many probabilities must be estimated.

The graph alone is incomplete: it needs numerical distributions or factor functions. A sparse picture also makes a substantive modelling claim. Removing connections can save parameters by ruling out forms of dependence that a full joint table would permit.

Three ways to expose structure

RepresentationWhat the graph displaysWhat completes the probability model
Bayesian networkA directed acyclic graph with one node per random variableA conditional distribution for each variable given its parents
Markov random fieldUndirected connections between variable nodesNonnegative clique potentials and a finite, positive normalising constant
Factor graphVariable nodes connected to separate factor nodesA product of factors, normalised where necessary; each factor connects to every variable in its scope
A factor is simply a function of a subset of the variables. It need not itself sum to one. Conditional probability tables are a particular kind of factor, so a Bayesian network can also be expressed as a factor graph. A factor graph shows the chosen decomposition explicitly; an undirected variable graph can hide whether a clique uses one joint factor or several smaller ones. Poole and Mackworth's treatment develops this distinction.
The rules for reading independence depend on the representation. Directed graphs use d-separation, including special treatment of colliders. Undirected graphs use separation by the conditioning variables. A normalised clique factorisation implies those undirected separation statements; the converse from Markov independence to clique factorisation requires strict positivity in the usual Hammersley–Clifford theorem. A missing link is therefore interpreted through a model's factorisation and separation rules, rather than as “these variables never move together.” See CMU's undirected-model notes.

Eight states, five probabilities

Consider three synthetic binary flags for one trading day: market flag AA, liquidity flag BB and execution flag CC, with 1 denoting a flag. Stipulate the chain A→B→CA\to B\to C and factorisation

p(a,b,c)=p(a)p(b∣a)p(c∣b).p(a,b,c)=p(a)p(b\mid a)p(c\mid b).
Here pp denotes probability mass at the displayed values. Three binary variables have 23=82^3=8 joint states. An unrestricted joint table needs seven free probabilities, since its eight entries sum to one. The chain needs five: one for AA, two for BB given the possible values of AA, and two for CC given the possible values of BB. Each remaining binary probability is the complement of its row's specified probability. These counts assume unrestricted local Bernoulli tables, with no parameter tying.

Choose the following inputs:

Local probabilityValue
p(A=1)p(A=1)25%
p(B=1∣A=0)p(B=1\mid A=0)20%
p(B=1∣A=1)p(B=1\mid A=1)80%
p(C=1∣B=0)p(C=1\mid B=0)10%
p(C=1∣B=1)p(C=1\mid B=1)70%
All eight joint probabilities now follow from the factors. For example, the probability that all flags are one is 0.25(0.80)(0.70)=0.140.25(0.80)(0.70)=0.14, or 14%. This is the local-table storage principle described in Berkeley's Bayesian-network representation chapter.
Synthetic chain A to B to C has eight joint states and five free probabilities, versus seven unrestricted. Inputs are 25%, 20%, 80%, 10% and 70%. With B hidden, C has probability 22% given A=0 and 58% given A=1.
Synthetic chain A to B to C has eight joint states and five free probabilities, versus seven unrestricted. Inputs are 25%, 20%, 80%, 10% and 70%. With B hidden, C has probability 22% given A=0 and 58% given A=1.
Original stipulated one-day flag model, not market estimates. Local conditional tables reduce the parameter count; the two bars show that hiding the middle flag leaves the endpoints dependent.
The saving comes from A⊥C∣BA\perp C\mid B: once BB is known, learning AA adds no information about CC. It does not imply marginal independence. Summing over the hidden liquidity flag gives
p(C=1∣A=0)=0.8(0.1)+0.2(0.7)=0.22,p(C=1∣A=1)=0.2(0.1)+0.8(0.7)=0.58.\begin{aligned} p(C=1\mid A=0)&=0.8(0.1)+0.2(0.7)=0.22,\\ p(C=1\mid A=1)&=0.2(0.1)+0.8(0.7)=0.58. \end{aligned}

The market flag remains informative when liquidity is unobserved. “No direct edge” and “no association” are different claims. These are imposed probabilities, not evidence that the chain fits actual trading data.

Representation, inference and learning

Representation specifies the variables, factors and structural assumptions. Inference answers a query under that model, such as the probability of the execution flag given observed market information. Learning estimates parameters, or sometimes structure, from data. CMU's exact-inference notes separate these tasks.
Compact representation does not guarantee cheap inference. Intermediate factors can become large when variables are summed out. Belief propagation exploits local messages; sum-product is exact on a tree factor graph, while applying it around loops generally supplies an approximation. The graph is a model description, not an accuracy certificate for an inference algorithm.

Arrows also do not automatically establish causality. A directed factorisation describes an observational joint law; interpreting an intervention requires additional causal assumptions. An edge can permit dependence without forcing it for every numerical parameter choice. Nor must a graph display every extra independence that happens to hold for particular parameters.

For further worked teaching, Bayesian Networks and Markov Random Fields develops local structures, d-separation and clique potentials. Its preview is public; the full lesson requires membership.

Sources

Last updated
  • graphical models
  • conditional independence
  • probabilistic modelling
  • factorisation
← Back to the glossaryBack to top ↑