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

Probabilistic Graphical Models

Graduate Depth 96 in the knowledge graph ☐ I know this ☆ Set as goal
8topics build on this
579prerequisites 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 → Addition Within 10 → Number Bonds to 10 → 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 → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Dividing Integers → Unit Rates → Proportions → Percent Concept → Converting Between Fractions, Decimals, and Percents → Operations with Rational Numbers → Two-Step Equations → Solving Multi-Step Equations → Equations with Variables on Both Sides → Angle Pairs: Complementary, Supplementary, and Vertical → Parallel Lines and Transversals → Corresponding Angles → Alternate Interior Angles → Triangle Angle Sum Theorem → Exterior Angle Theorem → Triangle Inequality Theorem → Similar Triangles: AA Similarity → Similar Triangles: SSS and SAS Similarity → Proportions in Similar Triangles → Right Triangle Trigonometry Introduction → Sine, Cosine, and Tangent Ratios → Trigonometric Ratios Review → Radian Measure → Converting Between Degrees and Radians → The Unit Circle → Graphing Sine and Cosine → Graphing Tangent and Reciprocal Trigonometric Functions → Derivatives of Trigonometric Functions → Antiderivatives → Indefinite Integrals → Basic Integration Rules → Riemann Sums → Definite Integral Definition → Probability Density Functions and Continuous Distributions → Cumulative Distribution Functions → Continuous Random Variables → Probability Density Functions → Expected Value → Weak Law of Large Numbers → Probability Axioms and Rules → Conditional Probability → Law of Total Probability → Bayes' Theorem and Statistical Inference → Bayesian Networks and Inference → Probabilistic Graphical Models

Longest path: 97 steps · 579 total prerequisite topics

Prerequisites (4)

Leads To (4)