ArticleslgStudy

computer science

Dependency network (graphical model)

Dependency network (graphical model) is a computer science 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 Dependency network (graphical model) rather than just read about it. In short: Dependency networks (DNs) are graphical models, similar to Markov networks, wherein each vertex (node) corresponds to a random variable and each edge captures dependencies among variables. Unlike Bayesian networks, DNs may contain cycles.

Key takeaways

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

Reference excerpt

Dependency networks (DNs) are graphical models, similar to Markov networks, wherein each vertex (node) corresponds to a random variable and each edge captures dependencies among variables. Unlike Bayesian networks, DNs may contain cycles. Each node is associated to a conditional probability table, which determines the realization of the random variable given its parents.

Markov blanket In a Bayesian network, the Markov blanket of a node is the set of parents and children of that node, together with the children's parents. The values of the parents and children of a node evidently give information about that node. However, its children's parents also have to be included in the Markov blanket, because they can be used to explain away the node in question. In a Markov random field, the Markov blanket for a node is simply its adjacent (or neighboring) nodes. In a dependency network, the Markov blanket for a node is simply the set of its parents.

Dependency network versus Bayesian networks Dependency networks have advantages and disadvantages with respect to Bayesian networks. In particular, they are easier to parameterize from data, as there are efficient algorithms for learning both the structure and probabilities of a dependency network from data. Such algorithms are not available for Bayesian networks, for which the problem of determining the optimal structure is NP-hard. Nonetheless, a dependency network may be more difficult to construct using a knowledge-based approach driven by expert-knowledge.

Dependency networks versus Markov networks Consistent dependency networks and Markov networks have the same representational power. Nonetheless, it is possible to construct non-consistent dependency networks, i.e., dependency networks for which there is no compatible valid joint probability distribution. Markov networks, in contrast, are always consistent.

Definition A consistent dependency network for a set of random variables 𝐗=(X1,…,Xn) with joint distribution p(𝐱) is a pair (G,P) where G is a cyclic directed graph, where each of its nodes corresponds to a variable in 𝐗, and P is a set of conditional probability distributions. The parents of node Xi, denoted 𝐏𝐚𝐢, correspond to those variables 𝐏𝐚𝐢⊆(X1,…,Xi−1,Xi+1,…,Xn) that satisfy the following independence relationships

p(xi∣𝐩𝐚𝐢)=p(xi∣x1,…,xi−1,xi+1,…,xn)=p(xi∣𝐱−xi). The dependency network is consistent in the sense that each local distribution can be obtained from the joint distribution p(𝐱). Dependency networks learned using large data sets with large sample sizes will almost always be consistent. A non-consistent network is a network for which there is no joint probability distribution compatible with the pair (G,P). In that case, there is no joint probability distribution that satisfies the independence relationships subsumed by that pair.

Structure and parameters learning Two important tasks in a dependency network are to learn its structure and probabilities from data. Essentially, the learning algorithm consists of independently performing a probabilistic regression or classification for each variable in the domain. It comes from observation that the local distribution for variable Xi in a dependency network is the conditional distribution p(xi|𝐱−xi), which can be estimated by any number of classification or regression techniques, such as methods using a probabilistic decision tree, a neural network or a probabilistic support-vector machine. Hence, for each variable Xi in domain X, we independently estimate its local distribution from data using a classification algorithm, even though it is a distinct method for each variable. Here, we will briefly show how probabilistic decision trees are used to estimate the local distributions. For each variable Xi in 𝐗, a probabilistic decision tree is learned where Xi is the target variable and 𝐗−Xi are the input variables. To learn a decision tree structure for Xi, the search algorithm begins with a singleton root node without children. Then, each leaf node in the tree is replaced with a binary split on some variable Xj in 𝐗−Xi, until no more replacements increase the score of the tree.

Probabilistic Inference A probabilistic inference is the task in which we wish to answer probabilistic queries of the form p(𝐲∣𝐳), given a graphical model for 𝐗, where 𝐘 (the 'target' variables) 𝐙 (the 'input' variables) are disjoint subsets of 𝐗. One of the alternatives for performing probabilistic inference is using Gibbs sampling. A naive approach for this uses an ordered Gibbs sampler, an important difficulty of which is that if either p(𝐲∣𝐳) or p(𝐳) is small, then many iterations are required for an accurate probability estimate. Another approach for estimating p(𝐲∣𝐳) when p(𝐳) is small is to use modified ordered Gibbs sampler, where 𝐙=𝐳 is fixed during Gibbs sampling. It may also happen that 𝐲 is rare, e.g. when 𝐘 has many variables. So, the law of total probability along with the independencies encoded in a dependency network can be used to decompose the inference task into a set of inference tasks on single variables. This approach comes with the advantage that some terms may be obtained by direct lookup, thereby avoiding some Gibbs sampling. You can see below an algorithm that can be used for obtain p(𝐲|𝐳) for a particular instance of 𝐲∈𝐘 and 𝐳∈𝐙, where 𝐘 and 𝐙 are disjoint subsets.

Algorithm 1: 𝐔:=𝐘 (* the unprocessed variables *) 𝐏:=𝐙 (* the processed and conditioning variables *) 𝐩:=𝐳 (* the values for 𝐏 *) While 𝐔≠∅︀: Choose Xi∈𝐔 such that Xi has no more parents in U than any variable in U If all the parents of X are in 𝐏 p(xi|𝐩):=p(xi|𝐩𝐚𝐢) Else Use a modified ordered Gibbs sampler to determine p(xi|𝐩) 𝐔:=𝐔−Xi 𝐏:=𝐏+Xi 𝐩:=𝐩+xi Returns the product of the conditionals p(xi|𝐩)

Applications In addition to the applications to probabilistic inference, the following applications are in the category of Collaborative Filtering (CF), which is the task of predicting preferences. Dependency networks are a natural model class on which to base CF predictions, once an algorithm for this task only needs estimation of p(xi=1|𝐱−xi=0) to produce recommendations. In particular, these estimates may be obtained by a direct lookup in a dependency network.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Dependency network (graphical model)

Start with the simplest possible case. Write down what Dependency network (graphical model) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, 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 Dependency network (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 Dependency network (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 Dependency network (graphical model)

In research
Dependency network (graphical model) appears in computer science 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 Dependency network (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
Dependency network (graphical model) is common in secondary-school and first-year university syllabi. It links to neighbouring topics Algorithms, Graphical models, so understanding it makes those chapters shorter.
In everyday life
Look for Dependency network (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 “Dependency network (graphical model)” →

How to study Dependency network (graphical model) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Dependency network (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 Dependency network (graphical model) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Dependency network (graphical model) in simple terms?

Dependency networks (DNs) are graphical models, similar to Markov networks, wherein each vertex (node) corresponds to a random variable and each edge captures dependencies among variables. Unlike Bayesian networks, DNs may contain cycles.

Why does Dependency network (graphical model) matter?

Because it connects several computer science 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 Dependency network (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 Dependency network (graphical model).

Tags

  • Algorithms
  • Graphical models

Keep exploring