ArticleslgStudy

mathematics

Graphical model

Graphical model is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Graphical model rather than just read about it. In short: A graphical model or probabilistic graphical model (PGM) or structured probabilistic model is a probabilistic model for which a graph expresses the conditional dependence structure between random variables. Graphical models are commonly used in probability theory, statistics—particularly Bayesian statistics—and machine learning.

Graphical model — main illustration
Graphical model — illustration

Key takeaways

  • Graphical model belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Graphical model to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Graphical model from memory before moving on to harder problems.

Reference excerpt

A graphical model or probabilistic graphical model (PGM) or structured probabilistic model is a probabilistic model for which a graph expresses the conditional dependence structure between random variables. Graphical models are commonly used in probability theory, statistics—particularly Bayesian statistics—and machine learning.

Types Generally, probabilistic graphical models use a graph-based representation as the foundation for encoding a distribution over a multi-dimensional space and a graph that is a compact or factorized representation of a set of independences that hold in the specific distribution. Two branches of graphical representations of distributions are commonly used, namely, Bayesian networks and Markov random fields. Both families encompass the properties of factorization and independences, but they differ in the set of independences they can encode and the factorization of the distribution that they induce.

Undirected Graphical Model

The undirected graph shown may have one of several interpretations; the common feature is that the presence of an edge implies some sort of dependence between the corresponding random variables. From this graph, we might deduce that B, C, and D are all conditionally independent given A. This means that if the value of A is known, then the values of B, C, and D provide no further information about each other. Equivalently (in this case), the joint probability distribution can be factorized as:

P [ A , B , C , D ] = f A B [ A , B ] ⋅ f A C [ A , C ] ⋅ f A D [ A , D ] {\displaystyle P[A,B,C,D]=f_{AB}[A,B]\cdot f_{AC}[A,C]\cdot f_{AD}[A,D]}

for some non-negative functions f A B , f A C , f A D {\displaystyle f_{AB},f_{AC},f_{AD}} .

Bayesian network

If the network structure of the model is a directed acyclic graph, the model represents a factorization of the joint probability of all random variables. More precisely, if the events are X 1 , … , X n {\displaystyle X_{1},\ldots ,X_{n}} then the joint probability satisfies

P [ X 1 , … , X n ] = ∏ i = 1 n P [ X i | pa ( X i ) ] {\displaystyle P[X_{1},\ldots ,X_{n}]=\prod _{i=1}^{n}P[X_{i}|{\text{pa}}(X_{i})]}

where pa ( X i ) {\displaystyle {\text{pa}}(X_{i})} is the set of parents of node X i {\displaystyle X_{i}} (nodes with edges directed towards X i {\displaystyle X_{i}} ). In other words, the joint distribution factors into a product of conditional distributions. For example, in the directed acyclic graph shown in the Figure this factorization would be

P [ A , B , C , D ] = P [ A ] ⋅ P [ B | A ] ⋅ P [ C | A ] ⋅ P [ D | A , C ] {\displaystyle P[A,B,C,D]=P[A]\cdot P[B|A]\cdot P[C|A]\cdot P[D|A,C]} . Any two nodes are conditionally independent given the values of their parents. In general, any two sets of nodes are conditionally independent given a third set if a criterion called d-separation holds in the graph. Local independences and global independences are equivalent in Bayesian networks. This type of graphical model is known as a directed graphical model, Bayesian network, or belief network. Classic machine learning models like hidden Markov models, neural networks and newer models such as variable-order Markov models can be considered special cases of Bayesian networks. One of the simplest Bayesian Networks is the Naive Bayes classifier.

Cyclic Directed Graphical Models

The next figure depicts a graphical model with a cycle. This may be interpreted in terms of each variable 'depending' on the values of its parents in some manner. The particular graph shown suggests a joint probability density that factors as

P [ A , B , C , D ] = P [ A ] ⋅ P [ B ] ⋅ P [ C , D | A , B ] {\displaystyle P[A,B,C,D]=P[A]\cdot P[B]\cdot P[C,D|A,B]} , but other interpretations are possible.

Other types Dependency network where cycles are allowed Tree-augmented classifier or TAN model

… excerpt ends here. Continue reading the full article.

Illustrations

Graphical model: Example of a directed acyclic graph on four vertices
Example of a directed acyclic graph on four vertices
Graphical model: An example of a directed, cyclic graphical model. Each arrow indicates a dependency. In this example: D depends on A, B, and C; and C depends on B and D; whereas A and B are each independent.
An example of a directed, cyclic graphical model. Each arrow indicates a dependency. In this example: D depends on A, B, and C; and C depends on B and D; whereas A and B are each independent.
Graphical model: TAN model for "corral dataset"
TAN model for "corral dataset"
Graphical model: TBNL model for "corral dataset"
TBNL model for "corral dataset"

Worked examples

Example 1 — a first encounter with Graphical model

Start with the simplest possible case. Write down what Graphical model claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Graphical model before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Graphical model ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Graphical model

In research
Graphical model appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Graphical model in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Graphical model is common in secondary-school and first-year university syllabi. It links to neighbouring topics Bayesian statistics, Graphical models, so understanding it makes those chapters shorter.
In everyday life
Look for Graphical model outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Graphical model” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Graphical model in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Graphical model means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Graphical model out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Graphical model in simple terms?

A graphical model or probabilistic graphical model (PGM) or structured probabilistic model is a probabilistic model for which a graph expresses the conditional dependence structure between random variables. Graphical models are commonly used in probability theory, statistics—particularly Bayesian s…

Why does Graphical model matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Graphical model?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Graphical model.

Tags

  • Bayesian statistics
  • Graphical models

Keep exploring