Visual walkthrough — Joint distributions — joint PMF - PDF, marginal, conditional
Step 1 — Two numbers at once: what a "point" means
WHAT. We have two random quantities. Call the first and the second . A single outcome is not one number but a pair — a dot on a flat board. The horizontal position is the value of ; the vertical position is the value of .
WHY. Before we can talk about "how and move together" we need a stage where both live at once. One number lives on a line; two numbers live on a plane. That plane is the whole game.
PICTURE. Look at figure s01. The pale-yellow dot sits at (three steps right) and (two steps up). Reading the dot means reading both coordinates.
Step 2 — Piling up probability: the joint
WHAT. Now imagine running the experiment millions of times and dropping a marble at each observed . Some spots get tall stacks, some stay empty. The height of the stack over is how likely that pair is. That height function is the joint.
WHY. We want one object that stores everything. Not "how likely is " and separately "how likely is ", but "how likely is the exact pair ." The stack height answers that directly.
PICTURE. In figure s02 the board is a grid of buckets (discrete case). The number in each bucket is — its share of the marbles. Two rules jump out from the picture:
- No bucket can hold a negative pile → .
- All buckets together hold the whole bag → the numbers sum to .
Step 3 — Squashing the pile flat: the marginal
WHAT. Suppose I no longer care about . I only ask: "how likely is , whatever does?" To answer, I shove every marble in the row together into a single side-pile and read its total.
WHY. ", anything" is the event or or … These sub-events never overlap (a marble has only one ), and together they are the whole row. Probability of a union of non-overlapping events = sum of their probabilities. That is the Law of Total Probability in action.
PICTURE. Figure s03 shows the arrows: each bucket in a row slides left into the margin — the strip written along the edge of the table. That edge total is the marginal. (That is literally where the word marginal comes from: it's written in the margin.)
- = "sweep across every and add." This is the collapse, not a deletion.
- The result depends only on — is gone.
Step 4 — Freezing a slice: why the raw slice is broken
WHAT. Now the opposite move. Someone tells me exactly. I throw away every bucket except the column and stare at what's left.
WHY. Knowing shrinks the world: only outcomes with that are still possible. The column is the new set of possibilities.
PICTURE. Figure s04 grays out the whole board except one bright chalk-blue column. But look at the number written under the column — the leftover marbles add up to , which is less than 1. A distribution must total 1. So this slice, as-is, is not yet a legal distribution.
Step 5 — Re-inflating the slice: the conditional
WHAT. Scale every surviving bucket by the same factor so the column totals again. The factor that does this is dividing by the column total .
WHY. Start from the meaning of "given" — the Conditional Probability rule . Put and : the intersection is the bucket , and is the column total. Dividing by the column total is exactly the re-inflation, and it keeps ratios between buckets intact.
PICTURE. Figure s05 stacks the tall re-scaled column beside the short raw one. Same shape, taller so it now fills a full unit of probability. The green check confirms it sums to .
Step 6 — Reading it backwards: the chain rule
WHAT. Multiply Step 5 across by the column total. The division undoes into a product.
WHY. Sometimes you build a joint from a story: "first draw , then draw given ." That story is a multiplication, and it's just Step 5 rearranged. Both orders must give the same joint.
PICTURE. Figure s06 shows the two-arrow factory: pick a column with weight , then within it pick a bucket with the re-inflated height ; their product rebuilds the original bucket.
Step 7 — The degenerate case: independence
WHAT. Special situation: knowing tells you nothing about . Then the re-inflated column looks identical for every — freezing never changed the shape.
WHY. "Learning changes nothing" means . Feed that into the Step 6 chain rule: . The joint factorizes into its two marginals — see Independence of Random Variables.
PICTURE. Figure s07 contrasts two boards. Left: every column has the same profile → the surface is a clean outer product, independent. Right: the profile tilts as changes → dependent. You literally see dependence as a column-to-column change of shape.
Step 8 — Watch it run: the continuous triangle example
WHAT. Do the whole pipeline once on real dust: on the triangle .
WHY. Every rule above, in order, on a case where the support matters — the sloped edge decides the integration limits.
PICTURE. Figure s08 draws the triangle. The horizontal blue arrow (for the marginal of ) sweeps from up to the sloped edge . The vertical pink arrow (for the marginal of ) sweeps from the edge out to . Read the limits off the picture.
- Marginal of (collapse , from to ):
- Marginal of (collapse , from to ):
- Conditional (divide, support shifts to ):
The one-picture summary
Figure s09 puts the whole journey on one board: the joint surface in the centre, marginals flattened onto each axis (the sum/integral arrows), one frozen column being lifted and re-inflated into the conditional, and the product-arrows showing the chain rule. This single diagram is the parent note.
Recall Feynman retelling — the whole walkthrough in plain words
Picture a board of buckets, each holding some marbles for a pair . That whole pile is the joint — it knows everything. Push every bucket in a row together and scribble the total in the margin: that's the marginal for — you didn't ignore , you added over all of it. Now someone says " is exactly ." Sweep away every bucket except that one column. But the leftovers don't fill a full bag anymore — they only add up to the column's own weight. So you scale them all up by dividing by that weight; now they fill a proper bag again. That re-inflated column is the conditional. Run the last step backwards — weight of column times shape inside it — and you rebuild any bucket: that's the chain rule. And if every column has the exact same shape no matter which you froze, then knowing told you nothing about : the pile splits into a plain product of its two margins — that's independence. Three moves, one pile: jar, margins, slice-and-rescale.
Connections
- Joint distributions — joint PMF - PDF, marginal, conditional — the parent this page derives.
- Conditional Probability — the rule powering Step 5.
- Law of Total Probability — the union-of-disjoint-events sum in Step 3.
- Independence of Random Variables — the factorization of Step 7.
- Bayes' Theorem — reversing the chain rule of Step 6.
- Covariance and Correlation — how dependent surfaces (Step 7 right) get quantified.
- Expectation and Variance — averaging over these distributions next.
- Bivariate Normal Distribution — the smooth joint where every conditional is again normal.