Conditional independence: tail-to-tail, head-to-tail and head-to-head
10 questions on conditional independence, the three basic three-node graphs, when observing a node blocks or unblocks a path, and colliders with descendants.
- 10 questions
- Stopwatch
- Instant feedback
Sample questions
Play now ↑Answers stay hidden. Start the quiz to play them.
Sample 1
In a chain a, then c, then b, where a influences c and c influences b, what happens when c is observed?
- a and b become dependent
- Nothing changes
- a and b become independent, because c blocks the path
How it works
- One question per screen. An answer is final once sent.
- You see right away whether you were right, with a short explanation.
- The stopwatch runs: on equal scores, the faster player ranks first.
- Only your best attempt counts, so replaying is never risky.
About this quiz
Two weather stations a few kilometres apart report very similar temperatures. Are the readings independent? Of course not: both are driven by the same weather. But suppose you know the true air temperature exactly. Now the readings differ only by sensor noise, and learning one tells you nothing about the other. The dependence disappeared once you knew the common cause. This is conditional independence, one of the most useful ideas in probabilistic modelling, and graphs let you read it off almost at a glance.
This quiz introduces it through the three smallest graphs that exhibit it, each with three nodes and two arrows. In the first, one node is the common parent of the other two. In the second, the three form a chain. In the third, two nodes both point at a third, which is called a collider. For each you will ask the same two questions: are the end nodes independent when nothing is observed, and are they independent once the middle node is observed? The answers are not all the same, and the contrast is the lesson. The first two behave one way, and the third behaves in exactly the opposite way, which surprises many readers the first time.
You will also meet the notion of a descendant of a node, a node reached by following arrows, and learn why observing a descendant of a collider has the same unblocking effect as observing the collider itself. The questions are small scenarios built from familiar situations, such as coin flips and sensors, so you can check your intuition against the rule.
Common errors are worth anticipating. Many people assume that observing more always makes variables independent, whereas at a collider it does the reverse. Others read independence from the absence of a direct arrow, forgetting paths that go through other nodes. And the definition requires independence for every value of the conditioning variable, not just on average.
The quiz suits learners who know how directed graphs factorise a distribution, and practitioners who want a firm basis for reading models. It needs no calculus. There are 10 questions, each with an explanation, and it takes about four minutes. These three small graphs are worth learning thoroughly, because every larger graph is built from them. A long path through a big model is just a sequence of such junctions, and whether it is open or blocked depends on the type of each junction and on what has been observed. The same reasoning explains why adding an observation can switch a dependence on as well as off, a fact that matters whenever a model is used for diagnosis, for fault finding or for deciding which measurement to take next, and it is the foundation on which the general rule of d-separation is built.
Questions and answers
›How long does the quiz take?
About 3 to 4 minutes for 10 questions, at roughly 20 seconds each. An explanation follows each answer, so each of the three graphs is explained several times from different angles.
›Do I need to know probability formulas?
No. The quiz relies on scenarios and on one idea, that two variables are conditionally independent if, once a third is known, knowing one gives no further information about the other. You do not need to manipulate the formulas to answer.
›What is conditional independence?
Two variables are conditionally independent given a third if, whenever the third is known, the first carries no further information about the second. In formulas, the joint distribution of the two, conditioned on the third, factorises into the product of their separate conditional distributions. It must hold for every possible value of the third variable.
›What is a tail-to-tail node?
It is a node with arrows leading out of it to both of the other nodes on a path, so that the node is connected to the tails of the two arrows. A common cause is the standard example. The path makes the two other nodes dependent when the middle node is not observed, and observing the middle node blocks the path.
›What is a head-to-tail node?
It is the middle of a chain, where one arrow comes in and another goes out. Like a tail-to-tail node, it leaves the path open, making the end nodes dependent, as long as it is unobserved. Observing it blocks the path, so the end nodes become conditionally independent given the middle one.
›What is a head-to-head node, or collider?
It is a node at which two arrows meet, so that it is connected to the heads of both. Its behaviour is the opposite of the other two. While the collider is unobserved, the path is blocked and its two parents are independent. Observing it, or a descendant of it, unblocks the path and makes them dependent.
›Why does observing a collider make its parents dependent?
Because the collider's value carries joint information about its two causes. If you know that an effect happened, learning that one cause was present changes how likely the other is. The two causes were independent beforehand, but they compete to explain the observation, and the next quiz explores this effect in detail.
›What is a descendant?
A node is a descendant of another if there is a path from the second to the first in which every step follows the direction of an arrow. The rule for colliders extends to descendants: the path through a collider is unblocked if the collider or any of its descendants is observed.