A topic in the Open Knowledge Graph — a free, open map of 15,495 topics and the order to learn them in.

Probabilistic Graphical Models

Graduate Depth 107 in the knowledge graph ☐ I know this ☆ Set as goal
8topics build on this
653prerequisites beneath it
See this on the map →
Bayesian Networks and InferenceConditional Probability+2 more→→Causal Inference in Machine LearningExpectation-Maximization Algorithm+2 more
probabilistic-reasoning inference graphical-models joint-distributions

Core Idea

Probabilistic graphical models represent joint probability distributions compactly using graph structure where nodes are variables and edges encode conditional independence. This enables efficient representation and inference when the joint distribution would be exponentially large; directed acyclic graphs represent Bayesian networks while undirected graphs represent Markov random fields.

Explainer

Consider a medical diagnosis system with 50 binary symptoms and 20 possible diseases. The full joint probability distribution over all 70 variables would require storing 270 entries — more than a billion billion values. Yet most symptoms are conditionally independent given the underlying disease: once you know the patient has the flu, whether they have a runny nose tells you nothing new about whether they also have a fever. Probabilistic graphical models (PGMs) exploit exactly this kind of conditional independence structure to represent joint distributions compactly. Instead of enumerating every possible combination, a PGM encodes which variables directly influence which others, and the joint distribution factorizes into a product of small local functions.

You already know the most important type of PGM from your study of Bayesian networks. A directed graphical model (Bayesian network) uses a directed acyclic graph where each node stores a conditional probability table given only its parents. The joint distribution factorizes as the product of these local conditionals: P(X₁, X₂, ..., Xₙ) = ∏ P(Xᵢ | Parents(Xᵢ)). If each variable has at most k parents and takes d values, storage drops from dn to n·dk+1 — an exponential savings. The graph structure also encodes conditional independence: a variable is conditionally independent of all non-descendants given its parents, which you can read directly from the topology using d-separation.

The second major family is undirected graphical models (Markov random fields), where edges have no direction and the distribution factorizes over cliques — fully connected subsets of nodes. Each clique has a potential function (a non-negative function of the clique's variables), and the joint distribution is proportional to the product of all clique potentials. Unlike Bayesian networks, the potentials are not probabilities and the distribution requires a normalization constant (the partition function). Undirected models naturally express symmetric relationships — pixels in an image influencing their neighbors, or atoms in a molecule affecting nearby atoms — where there is no natural causal direction.

The power of the PGM framework is that once you express a problem as a graph, generic algorithms handle inference and learning regardless of the specific domain. Inference — computing the probability of some variables given observed evidence — uses algorithms like variable elimination, belief propagation, or sampling methods that exploit the graph structure to avoid brute-force summation. The graph tells these algorithms the order in which to combine information, turning an intractable computation into a tractable one. This unifying framework connects Bayesian networks, Markov random fields, hidden Markov models, and many other probabilistic models under a single theoretical roof, where the graph structure is the key that makes reasoning practical.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Combining Small Groups Within 5 → Number Bonds Within 5 → Number Bonds to 10 → Tens and Ones Place Value → Reading and Writing Three-Digit Numbers → Comparing Three-Digit Numbers → Comparing and Ordering Three-Digit Quantities → Comparing and Ordering Whole Numbers → Comparing Numbers 1 to 20 → Ordering Numbers to 20 → Number Line 0 to 20 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Opposites and Additive Inverses → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Factorial → Permutations → Combinations → Counting Principles: Addition and Multiplication Rules → Introduction to Graph Theory → Propositional Logic Foundations → Logical Equivalences → Boolean Algebra → Boolean Type and Truth Values → Comparison Operators and Boolean Tests → Logical Operators and Boolean Algebra → Boolean Algebra and Fundamental Laws → Logic Gates Fundamentals → Implementing Boolean Functions with Gates → Karnaugh Map Simplification → Combinational Circuit Design → Flip-Flops and Latches → Finite State Machines (FSMs) → Deterministic Finite Automata (DFA) → Nondeterministic Finite Automata (NFA) → Regular Language Recognition Algorithms → DFA Properties and Minimization Algorithms → Regular Languages: Definition and Characterization → Context-Free Grammars (CFGs) → Context-Free Grammar Properties and Ambiguity → Parse Trees, Derivations, and Ambiguity in CFGs → Context-Free Grammars in Compiler Design → Abstract Syntax Trees (ASTs) → Symbol Tables and Scope Resolution → Semantic Analysis Phase → Scope and Binding Resolution → Scope, Shadowing, and Variable Lifetime → Parameter Passing: Value vs. Reference → Two-Dimensional Arrays → Graph Representations: Adjacency List vs. Adjacency Matrix → Semantic Networks → Bayesian Networks and Inference → Probabilistic Graphical Models

Longest path: 108 steps · 653 total prerequisite topics

Prerequisites (4)

Leads To (4)