Contents / Probability / Joint Distributions
Chapter 4
Joint Distributions
Two or more random variables on one probability space: joint pmfs and densities, marginals, independence, conditional distributions, the bivariate normal, and sums by convolution.
Introduction
Everything so far has studied one random variable at a time. A single has a distribution, a mean, a variance, and a tail; you can compute and be done. But almost no question worth asking is about one quantity in isolation. Does a tall parent have a tall child? Does a long queue at the till predict a long wait at the door? Is the second die showing what the first die showed? Each of these compares two random quantities, and to compare them you need them on the same probability space, described by one object that records how they vary together.
That object is the joint distribution. It is not two distributions side by side. Knowing everything about and everything about separately is strictly less information than knowing the pair — a fact this chapter proves by exhibiting two visibly different joint distributions whose separate descriptions agree exactly. The extra information is precisely the dependence between them, and dependence is what the rest of probability is built on.
The chapter builds the two-variable machinery in the order the one-variable machinery was built: first the descriptions — joint pmfs, joint densities, the joint cdf — then the operations, which are marginalising, testing independence, and conditioning one variable on the other. Conditioning in the continuous case means conditioning on an event of probability zero, and the chapter proves that this is legitimate rather than assuming it. Two results then carry everything downstream: the two-dimensional law of the unconscious statistician, which computes without ever finding the distribution of , and the convolution formula for the distribution of a sum. It closes on the bivariate normal, the one family where every question has a closed-form answer, and on the exact sense in which it is exceptional.
Covariance, correlation, conditional expectation, the law of large numbers, the central limit theorem and Markov chains all live on top of what is built here.
4.1Joint mass functions, densities and the joint cdf
Two random variables defined on the same sample space combine into a single map taking values in the plane. That map is a random vector, and asking for its distribution means asking, for each region , what is. The discrete case answers this with a table.
Definition 4.1 (Joint probability mass function). Let and be discrete random variables on the same probability space. Their joint probability mass function is
It satisfies for all and
the sums running over the countably many values each variable can take.
The two conditions are the axioms again. Non-negativity is inherited from ; the total is one because the events , as ranges over all value pairs, are disjoint and exhaust . Any non-negative table summing to one is a legitimate joint pmf, and every question about the pair is answered by adding up entries of it.
Proposition 4.2 (Probability of a discrete region). For any set ,
Proof. The event is the disjoint union of the events over those pairs at which the pmf is positive. There are countably many such pairs, so countable additivity applies and the probabilities add. Pairs with contribute nothing, which is why the sum may be written over all of .∎
So a "region" in the discrete case is just a list of cells to add. The work is in identifying which cells the region contains, not in the summation.
Example 4.3 (Reading a joint table). The pair takes values in with joint pmf
Verify that this is a joint pmf and compute , and .
Solution.
- Every entry is non-negative, and the nine entries total . It is a joint pmf.
- adds the diagonal cells , , :
- adds the cells strictly below the diagonal — , , :
- adds the six cells with : , giving
- Check: forces , and adding the cells above the diagonal — — confirms it. ✓
This table is the chapter's discrete running example, built so that its two variables are dependent while looking, from the outside, as symmetric as possible.
For continuous pairs the table is replaced by a surface, exactly as a one-variable pmf was replaced by a density. The reasoning is the same: a single point in the plane has zero area, so it must carry zero probability, and probability has to be spread rather than placed.
Definition 4.4 (Joint probability density function). A function is a joint probability density function for the pair if
and for every region over which the integral makes sense,
The pair is then called jointly continuous.
Intuition. Spread one kilogram of dust over a tabletop. No single point holds any dust, because a point has no area; what a point has is a surface density, grams per square centimetre. To find the dust lying over some patch of the table, integrate that density across the patch.
A joint density is that surface density with probability in place of dust. The height says how thickly probability is piled up near ; the volume sitting over a region is the probability of landing in it. Probability that used to be area under a curve is now volume under a surface.
Pitfall (Jointly continuous is stronger than "each is continuous"). It is possible for and each to have a perfectly good one-variable density while the pair has no joint density at all. Take and set . Then too, so both are continuous. But all the probability of the pair sits on the diagonal line , and a line in the plane has zero area. If a joint density existed, the probability of the diagonal would be the integral of over a set of zero area, which is — yet the pair lies on the diagonal with probability .
So "jointly continuous" is a genuine assumption about the pair, not a consequence of assumptions about each part. This is the two-variable echo of the fact that marginals do not determine the joint.
Both cases are covered at once by accumulating probability to the lower left.
Definition 4.5 (Joint cumulative distribution function). The joint cumulative distribution function of is
Theorem 4.6 (Properties of a joint cdf). Let . Then
- is non-decreasing in each argument separately;
- , and ;
- is right-continuous in each argument;
- for and , the rectangle inequality holds:
If is jointly continuous with density , then and, at every point where is continuous,
Proof. (1) If then , and probability is monotone under inclusion; the same argument applies in .
(2) The events decrease to the empty set and increase to , so continuity of probability along monotone sequences gives the limits and .
(3) Apply continuity from above to , whose intersection is .
(4) Write and decompose the quarter-plane events. Let . Removing the strip and the strip from removes their overlap twice, so inclusion–exclusion restores it once:
Being a probability, .
The density statements are the two-variable Fundamental Theorem of Calculus: integrating over the quarter-plane is the definition of , and differentiating that iterated integral once in each variable recovers the integrand wherever it is continuous.∎
Property (4) is the condition with no one-variable analogue, and it is where hand-built "cdfs" fail. A function can be monotone in each variable and right-continuous with the correct limits, and still assign a negative probability to some rectangle. The rectangle inequality is the genuine two-dimensional monotonicity condition, and monotonicity along each axis does not imply it.
Example 4.7 (A joint density on the unit square). Let for , , and elsewhere. Check that is a density, and compute and .
Solution.
- Non-negativity is clear on the square. For the total,
- For the region is the lower triangle of the square, so for each the variable runs from to : The integrand simplifies to , so the value is .
- The second region is a rectangle, so both limits are constants:
- Sanity check on step 3: the quarter-square nearest the origin is where is smallest, so its probability should fall below the that a flat density would give. It does: . ✓
Step 2 against step 3 is the whole computational content of the section. A rectangle gives constant limits and the double integral factors into two one-variable integrals; any other region makes the inner limits depend on the outer variable, and getting those limits right is the entire difficulty. The integrand is rarely the hard part.
Method 4.8 (Computing for a jointly continuous pair).
- Sketch the support of — where — and sketch . The region of integration is their intersection; probability outside the support is zero no matter what says.
- Choose a slicing direction. Slicing vertically ("type I") fixes and lets run between two functions of ; slicing horizontally ("type II") does the reverse. Pick whichever needs fewer pieces.
- Write the inner limits as functions of the outer variable, and the outer limits as constants. If the inner limits would need a case split, break the region into pieces and add.
- Integrate inside out, and check the answer lies in .
- Sanity-check against a flat density: compare your answer to the fraction of the support's area that covers, and confirm the difference points the way the density's tilt does.
Example 4.10 (A density on a triangle). Let on the triangle and elsewhere. Verify that is a density and compute .
Solution.
- Slice horizontally: for fixed , runs from to . Then
- The event means , which already implies , so the region is the sub-triangle , :
- Check the direction: the density grows with , so it favours points near the line — that is, points where is not much bigger than . A value of , well below a half, is consistent. ✓
4.2Marginal distributions
Given the joint distribution of the pair, the distribution of alone must be recoverable: is a random variable in its own right and had a distribution before was ever mentioned. Recovering it is called taking a marginal, a name inherited from the practice of writing the row and column totals of a joint table in its margins.
Definition 4.11 (Marginal distributions). For a discrete pair, the marginal pmfs are
For a jointly continuous pair, the marginal densities are
The definition asserts that these formulas produce the distribution of ; that assertion needs proof.
Theorem 4.12 (Marginalisation recovers the distribution). Let have joint pmf (discrete) or joint density (jointly continuous). Then as defined above is the pmf of , and as defined above is a density for .
Proof. Discrete. Fix . The event is the disjoint union, over the countably many values that can take, of the events : every outcome with has exactly one value of . Countable additivity gives
Continuous. Fix and take the region , so that . By the defining property of the joint density and Fubini's theorem, which permits the order of integration to be exchanged because ,
So reproduces every interval probability for . It is non-negative, being an integral of a non-negative function, and taking , gives . Hence satisfies the definition of a density for .∎
Intuition. To find out how often lands near , you do not care what was doing — so you collect every outcome with that value of , whatever came with it, and add up their probabilities. In the table that is a row total. In the continuous picture it is a vertical slice through the density surface: stand at , cut straight down the direction, and the area of that cut is the height of the one-variable density.
Marginalising is summing out, or integrating out, the variable you have stopped caring about.
Example 4.13 (Marginals of the unit-square density). Find both marginal densities of on the unit square, and use one of them to compute .
Solution.
- Integrate out , remembering that vanishes outside the square so the -integral runs only over :
- By the symmetry of in its two arguments, on .
- Check that is a density: . ✓
- Then
- Sanity check: increases across , so it piles mass to the right, and the mean should sit above the midpoint . It does. ✓
Example 4.14 (Marginals of the triangular density). Find both marginals of on .
Solution.
- For , fix and integrate over the values compatible with it, namely :
- For , fix and integrate over :
- Both integrate to one: and . ✓
- Note the shapes. pushes hard towards , which is right — is the larger coordinate. And vanishes at both ends, peaking at , which is right too: cannot be large (it must stay below ) and cannot be near zero either (the density is small there).
The limits of integration carry the support. In the last example the -integral ran to and the -integral ran from , and getting that backwards is the single most common error in marginalising. Write the support as a system of inequalities first, then solve it for the variable being integrated out.
Now the central negative result of the chapter.
Theorem 4.15 (Marginals do not determine the joint). There exist joint pmfs and with but with identical marginals: and .
Proof. Let be the joint pmf of the running table,
and let for every .
Each row of totals , so for . Each column also totals , so . For , each row and each column totals . The marginals therefore agree: both pairs have uniform on and uniform on .
But , since . Indeed the two are distinguishable by an observable probability: under ,
while under ,
Hence no function of the marginals alone can determine .∎
Intuition. The marginals are the row totals and the column totals of the table. Fixing them fixes nine unknowns with only six equations — and one of those six is redundant, since the row totals and column totals both sum to one. The table has genuine freedom left over after its margins are pinned down, and that leftover freedom is the dependence between and .
Two economies can have identical income distributions and identical education distributions, and in one of them education predicts income perfectly while in the other it predicts nothing at all. The margins are blind to the pairing.
Pitfall (You cannot reconstruct a joint from two marginals). Given and , the product is a joint density with those marginals — it is the independent one. It is not the joint density unless you have independently established independence. Multiplying marginals to get a joint is an assumption, not a derivation, and it is the assumption that and carry no information about each other.
This is why a problem that gives you "the distribution of the height and the distribution of the weight" has not given you enough to find the distribution of height minus weight, and why every result about sums of random variables in this chapter states an independence hypothesis explicitly.
4.3Independence of random variables
Two events are independent when the probability of both is the product of the probabilities of each. Two random variables are independent when every pair of events built from them is independent — a condition over infinitely many pairs, which would be unusable if it did not reduce to a single factorisation.
Definition 4.16 (Independent random variables). Random variables and are independent if for every pair of sets ,
Write .
Theorem 4.17 (Factorisation criteria for independence). Let and be random variables with joint cdf and marginal cdfs , . The following are equivalent.
- and are independent.
- for all .
- If the pair is discrete: for all .
- If the pair is jointly continuous: for all except possibly on a set of zero area.
Proof. (1) (2). Take and in the definition.
(2) (1) (sketch). Rectangles have their probabilities determined by through the rectangle inequality of the theorem Properties of a joint cdf, and factorisation of makes each such probability
So the two measures — the law of and the product of the marginal laws — agree on all such rectangles. These rectangles generate the Borel sets of the plane and form a -system, so by the uniqueness theorem for measures the two laws agree on every Borel set, which is (1). The measure-theoretic step is beyond this course, and this is a sketch, not a full proof; nothing later depends on the omitted detail.
(3) (1) in the discrete case. If (1) holds, take and to get (3). Conversely, if (3) holds then for any ,
the middle step being the distributive law applied to two absolutely convergent sums.
(4) (1) in the jointly continuous case. If then for any ,
Conversely, independence gives by (2), and differentiating once in each variable,
wherever the densities are continuous. Since densities are determined only up to sets of zero area, the exceptional set in the statement cannot be removed.∎
Criterion (4) is the one used in practice, and it comes with a trap and a shortcut. The trap is that the factorisation must hold everywhere, including where the density is zero. The shortcut is that this makes the shape of the support decisive.
Proposition 4.18 (Independence forces a product support). If and are independent and jointly continuous, then the support of — the set where it is positive — is, up to a set of zero area, a product set .
Consequently, if a joint density is positive exactly on a region that is not a rectangle (possibly infinite) — a triangle, a disc, the region under a curve — then and are not independent, whatever the algebraic form of the density looks like.
Proof. By the theorem Factorisation criteria for independence, off a set of zero area. A product of two numbers is positive exactly when both factors are positive, so
again off a set of zero area.
For the consequence, suppose the support is the triangle . The point lies in , so ; the point lies in , so . If the support were a product set it would then have to contain — but , so that point is outside and the density there is zero. Since a product set cannot contain two points without containing the two "corner" points that pair their coordinates, is not a product set and independence fails.∎
Pitfall (A density that "looks separable" on a non-rectangular support). The density on is a product of a function of and a function of — written that way it is the very picture of separability — and and are nonetheless dependent.
The resolution is that the honest way to write includes an indicator of the support:
and it is , not , that refuses to split. Knowing confines to ; knowing opens up to . That is information passing between them, which is exactly what dependence means.
The check that survives this trap: compare the support with a rectangle before looking at the formula. If the support is not a rectangle, stop — the variables are dependent.
Example 4.19 (Testing independence three ways). For each pair, decide whether and are independent. (a) The running joint table. (b) on the unit square. (c) on the unit square.
Solution.
- (a) Both marginals are uniform on , so the independent table would have every entry . The actual entry at is . Since , factorisation fails at that single cell, and one failure is enough: and are dependent.
- (b) The support is the unit square, a rectangle, so the support test is inconclusive and the algebra must be done. The marginals are and , so the independent density would be which is not — at it gives while . Dependent.
- (c) The support is again the unit square. Marginalising, and likewise . Their product is , which is on the square and off it. Independent.
- The contrast between (b) and (c) is instructive: a sum never factors, while a product on a rectangular support always does. Sums couple; products on rectangles do not.
Theorem 4.20 (Functions of independent variables are independent). If and are functions for which and are random variables, then .
Proof. Fix sets and let , . Then and as events, so
using independence of and in the middle step.∎
This small theorem does more work than its length suggests. It is why and are independent whenever and are, and it is the step that licenses factorising in the next section and the moment generating function argument in the section on sums.
4.4Conditional distributions
Independence is the case where learning tells you nothing about . The general case is that it tells you something, and the conditional distribution records exactly what.
Definition 4.21 (Conditional pmf). Let be discrete and let be a value with . The conditional pmf of given is
This is nothing but conditional probability, , applied to and . What deserves a proof is that the result is a genuine distribution over .
Proposition 4.22 (The conditional pmf is a pmf). For each fixed with , the function is a probability mass function.
Proof. Non-negativity is inherited: the numerator is a probability and the denominator is positive. For the total,
the middle step by the theorem Marginalisation recovers the distribution applied in the other variable.∎
Example 4.23 (Conditioning in the running table). For the running joint table, find the conditional pmf of given , and compute . Compare with .
Solution.
- The column holds , totalling .
- Divide each entry by that total: These sum to , as they must.
- Then
- The unconditional mean is . Learning that has raised the expected value of from to , which is precisely what dependence buys you: information.
- Repeating for the other columns gives and . Note that the three conditional means average back to the unconditional one, — a first sighting of the tower property of conditional expectation.
The continuous case has an obstruction that must be faced head on. The event has probability zero, so the quotient defining conditional probability reads and the usual definition says nothing at all. Yet conditioning on a continuous measurement is something people do constantly — "given that the temperature was " — so the notion has to be rescued.
Definition 4.24 (Conditional density). Let be jointly continuous and let be a value with . The conditional density of given is
Theorem 4.25 (Conditioning on a null event is legitimate). Let be jointly continuous, and suppose and are continuous at the relevant points with . Then for any ,
That is, the conditional density is the limit of honest conditional probabilities on shrinking events of positive probability.
Proof. For small enough that on , the conditioning event has positive probability and ordinary conditional probability applies:
Divide numerator and denominator by . Each becomes an average of a continuous function over an interval shrinking to , so each converges to the value of that function at :
and, exchanging the order of integration in the numerator by Fubini's theorem, which is permitted because the integrand is non-negative,
Since , the quotient converges to the quotient of the limits,
which is the claim.∎
Intuition. Conditioning on in the continuous case means: take a thin horizontal strip of the density surface at height , and rescale what you find there so that it totals one. The strip has vanishing probability, but the shape of the density across the strip has a perfectly good limit, and that shape — normalised — is the conditional density.
The never actually happens, because numerator and denominator both shrink at the same rate, proportionally to the strip's thickness. Cancelling that common factor is all the theorem does.
Pitfall (Which variable is fixed, and which is the argument). In the second slot is frozen. The function integrates to one over , not over :
The denominator is a constant for the purposes of the -integration, and treating it as a variable is the most common source of wrong normalising constants. When a conditional density fails to integrate to one, the first thing to check is whether you divided by the wrong marginal.
Rearranging the definition gives the tool that generates joint distributions out of a story told in stages.
Theorem 4.26 (Multiplication rule for densities). For a jointly continuous pair, at every with ,
and symmetrically wherever . Consequently
which is Bayes' theorem for densities, and
the law of total probability for densities.
Proof. The first identity is the definition of the conditional density multiplied through by ; the symmetric one is the same manipulation with the roles exchanged. Setting the two expressions for equal,
and dividing by gives Bayes' theorem. For the last identity, marginalise the second factorisation using the theorem Marginalisation recovers the distribution:
Read left to right, the multiplication rule builds a joint distribution: draw from its own distribution, then draw from a distribution depending on the value took. That is how most real models are specified — a rate is drawn, then counts are drawn given the rate — and the joint density is the product of the two stages.
Example 4.27 (Conditioning on the triangle). For on , find , identify the conditional distribution, and compute and .
Solution.
- The marginal was found above: on . Divide:
- Check the normalisation over the correct range: . ✓ Note how the support of the conditional depends on — the clearest possible statement that carries information about .
- At the conditional density is on . Then
- And
- Sanity check: conditioned on , lives in with a density increasing linearly, so its mean must exceed the midpoint and fall below . It does, at — in fact exactly two-thirds of the way along, as for any triangular-shaped density on .
Example 4.28 (Conditioning on the square). For on the unit square, find and compute .
Solution.
- With ,
- At the denominator is , so the conditional density is simply on .
- Hence
- Compare with the unconditional as well. The two agree here by coincidence of the chosen conditioning value, not because the variables are independent — at the conditional density is and . One matching value proves nothing; independence requires the conditional to be free of for every .
Proposition 4.29 (Independence in conditional form). and are independent if and only if for all with (and correspondingly for pmfs).
Proof. If then , so . Conversely, if for all such , then by the theorem Multiplication rule for densities, wherever ; where the marginalisation identity forces for almost every , so the product form holds off a set of zero area. By the theorem Factorisation criteria for independence, .∎
This is the most quotable form of independence: the conditional distribution does not depend on what you conditioned on. It also shows why dependence is informative: a conditional that moves with is a forecast that updates on data.
4.5Several variables: pairwise and mutual independence
Nothing so far needed exactly two variables. A joint pmf of discrete variables is ; a joint density of continuous variables integrates to one over ; a marginal is obtained by summing or integrating out every variable you do not want. The one genuinely new phenomenon at is that independence splits into two inequivalent notions.
Definition 4.30 (Pairwise and mutual independence). Random variables are pairwise independent if for every .
They are mutually independent (usually just "independent") if for every choice of sets ,
equivalently if the joint pmf or density factors completely:
Mutual independence obviously implies pairwise independence: take for every index outside the chosen pair, and those factors contribute each. The converse fails, and the failure is not exotic.
Theorem 4.31 (Pairwise independence is strictly weaker). There exist random variables that are pairwise independent but not mutually independent.
Proof. Toss two fair coins. Let if the first is heads and otherwise, if the second is heads and otherwise, and let
so records whether the two coins differ.
Each of the four outcomes has probability , so and are independent Bernoulli variables. on the two outcomes and , so and is Bernoulli too.
Pairwise. by construction. For and : , and the same computation at each of the other three combinations gives likewise. So , and by symmetry . All three pairs are independent.
Not mutual. Any two of the three determine the third, since forces and . Concretely,
because makes the coins agree and hence , whereas mutual independence would require
Equally, . So the triple factorisation fails while every pair factorises.∎
Intuition. Pairwise independence says no single variable is predictable from any one other variable. Mutual independence says no variable is predictable from all the others together. In the coin example each of , , is a fair coin flip on its own and remains one after you learn any single companion — but the three are bound by the relation , so the last one is determined once you know two. The dependence is a three-way conspiracy invisible to any two-way check.
Pitfall (Checking independence one pair at a time). Verifying , and does not establish that , , are independent, and almost every result that needs independence — variances adding, moment generating functions multiplying, the law of large numbers, the central limit theorem in its standard form — needs the mutual version. There are pairwise conditions but conditions for mutual independence, so for there is strictly more to check.
The exception worth knowing: for jointly normal variables, pairwise zero correlation does imply mutual independence. That is a property of the normal family, established below, not a general fact.
Definition 4.32 (Independent and identically distributed). Random variables are i.i.d. if they are mutually independent and all have the same distribution. A sequence of i.i.d. variables is the standard model of "repeating the same experiment under identical conditions, with no carry-over between trials".
Both halves of that assumption do work: identical distribution makes it meaningful to speak of "the" mean being estimated, and mutual independence is what makes the variance of a sample mean shrink like .
4.6Functions of two variables and two-dimensional LOTUS
Having a joint distribution means being able to compute the expectation of anything built from the pair — , , , — and the striking fact is that you never need the distribution of the new variable in order to do it.
Theorem 4.33 (Two-dimensional law of the unconscious statistician). Let . If is discrete with joint pmf , then
and if is jointly continuous with joint density ,
in both cases provided the sum or integral converges absolutely.
Proof. Discrete case. Let and let range over the values takes. The event is the disjoint union of the cells with , so
Therefore, by the definition of expectation,
where in the last step was replaced by , legitimate because the inner sum only touches cells where those are equal. The cells are partitioned by the value of , so the double sum runs over every cell exactly once and collapses to . Absolute convergence is what permits the rearrangement.
Continuous case (sketch). The same partition argument applies with the level sets replaced by thin bands ; the probability of a band is the integral of over it, and summing times the band probabilities is a Riemann sum for the double integral. Making this exact requires the change-of-variables theorem for the distribution of , which is beyond this course; the argument above is a sketch and is labelled as one.∎
Intuition. Expectation is a weighted average of outputs. LOTUS says you may average over the inputs instead, weighting each input pair by its own probability, rather than first working out how likely each output is. The bookkeeping differs; the total does not, because each input pair contributes the same amount either way. The word "unconscious" is the joke that you get the right answer without ever consciously finding the distribution of .
Example 4.34 (Four expectations from one density). For on the unit square, compute , and , and say what the comparison of the last two reveals.
Solution.
- With , Check against linearity: . ✓
- With ,
- The product of the means is .
- These differ: , so That difference is the covariance, and its being non-zero is another proof that and are dependent here. Its being negative says that large comes with slightly small — which is right, since the density is largest at the two corners and relative to what independence would predict.
Theorem 4.35 (Expectation is linear without any independence). For any with finite means and any constants ,
Proof. Take in the theorem Two-dimensional law of the unconscious statistician. In the continuous case,
the split being valid by absolute convergence. In the first term the inner integral over produces by the theorem Marginalisation recovers the distribution, giving ; the second term gives the same way. The discrete case is the identical computation with sums.∎
The hypothesis list of that theorem is conspicuously empty, and that is the point: expectations add whether or not the variables are independent or related in any way. Variances are not so accommodating, which is why the next theorem has a hypothesis.
Theorem 4.36 (Expectation of a product under independence). If and both have finite means, then . More generally whenever the right-hand side is finite.
Proof. Apply LOTUS with and factor the density using the theorem Factorisation criteria for independence:
the separation being valid by Fubini's theorem under the assumed absolute convergence. For the general version, apply the same computation to , or note that by the theorem Functions of independent variables are independent and use the first part.∎
Pitfall (The converse is false). does not imply independence. Let take the values each with probability and set . Then and , so . Yet is a function of : knowing tells you with certainty, while unconditionally. The variables are as dependent as it is possible to be.
Uncorrelated is strictly weaker than independent. The relation detects only linear association, and a perfect parabola has none.
Example 4.37 (Two expectations for a pair of independent uniforms). Let be independent . Compute and .
Solution.
- Independence gives the joint density on the unit square. By LOTUS, using the symmetry of about the diagonal to replace the absolute value by twice the integral over .
- The inner integral is , so
- For the maximum, use the identity and linearity:
- Check by the direct route: by independence, so the density of the maximum is and its mean is . ✓ Two independent derivations agreeing is the cheapest insurance available.
4.7The bivariate normal distribution
One two-variable family answers every question in closed form, and it is the one that appears whenever two measurements are each the accumulation of many small independent effects. It is the two-dimensional relative of the normal law.
Definition 4.38 (Bivariate normal distribution). The pair is bivariate normal with parameters , and if it has joint density
where, writing and ,
The standard bivariate normal is the case , .
The exponent is a quadratic form, so the level sets are ellipses; the density is a bell-shaped hill whose contours are those ellipses, tilted by . At the cross term vanishes and the contours are axis-aligned; as they collapse towards a line and the normalising constant blows up, which is why is excluded — the pair then lies on a line and has no joint density at all, exactly as in the pitfall Jointly continuous is stronger than "each is continuous".
Theorem 4.40 (Marginals and conditionals of a bivariate normal). Let be bivariate normal with the parameters above. Then
and for every ,
Proof. Work in standardised coordinates ; the general case follows by the linear change of variables , , whose Jacobian cancels the corresponding factor in the normalising constant.
Complete the square in inside the quadratic form:
Substituting into the density and splitting the exponential,
Integrating over , the second factor is a probability density in for each fixed , so it contributes exactly , leaving . Hence and, untransforming, . Symmetry of under exchanging gives the statement for .
For the conditional, divide the displayed factorisation by :
which is the density. Untransforming, and , so the conditional mean becomes and the conditional variance scales by .∎
Three things in that conclusion deserve to be said out loud. The conditional mean is a straight line in — which is why linear regression is the natural estimator under a normal model and not merely a convenient one. The conditional variance does not depend on : the scatter about the line is the same everywhere. And the conditioning shrinks the variance by the factor , so a correlation of removes of the variance of and no more.
Theorem 4.41 (Zero correlation implies independence for the bivariate normal). If is bivariate normal with , then and are independent.
Proof. Set in the density. The quadratic form loses its cross term, , and , so
using the marginals identified in the theorem Marginals and conditionals of a bivariate normal. The joint density factors as a function of times a function of on all of , which is a product support, so by the theorem Factorisation criteria for independence the variables are independent.∎
Pitfall (This implication is a property of the family, not of probability). "Uncorrelated implies independent" is true for jointly normal pairs and false in general — and the counterexample can have normal marginals, which is what makes it sharp.
Let and let be independent of with . Put . By symmetry of the normal density, as well, so both marginals are perfectly normal. The covariance is
using independence of and . So and are uncorrelated. But always, so while : the variables are wildly dependent.
There is no contradiction with the theorem, because is not bivariate normal — all of its probability sits on the two lines , so it has no joint density at all. Normal marginals do not make a normal pair. The hypothesis of the theorem is joint normality, and it must be checked, not assumed from the margins.
Example 4.42 (Conditioning in a bivariate normal). Height (in cm) and weight (in kg) of adults in a population are bivariate normal with , , , , and . Someone is cm tall. Find the conditional distribution of their weight, and the probability it exceeds kg.
Solution.
- By the theorem Marginals and conditionals of a bivariate normal, the conditional mean is
- The conditional variance is , so the conditional standard deviation is .
- Standardise within the conditional distribution:
- Compare with the unconditional . Knowing the person is tall roughly doubles the probability that they are over kg — the entire content of a correlation of , made numerical.
- Note that cut the standard deviation only from to , a reduction. Correlations reduce variance by , and is a good deal less impressive than sounds.
4.8Sums of independent random variables: convolution
The single most-asked question about a pair is the distribution of their sum. Expectation already adds without any hypothesis, by the theorem Expectation is linear without any independence, but the distribution of needs the whole joint law — and under independence it takes a clean and memorable form.
Theorem 4.43 (Convolution formula). Let and be independent and set .
If both are discrete with pmfs , , then
If both are continuous with densities , , then is continuous with density
This operation is written and is called the convolution of the two densities.
Proof. Discrete. Partition according to the value of : the outcomes with and are exactly those with and . These events are disjoint over and exhaust , so
the last step by independence.
Continuous. Compute the cdf of by integrating the joint density over the half-plane , slicing vertically so that for each the inner variable runs over :
Differentiate with respect to . The parameter appears only in the upper limit of the inner integral, so differentiating under the integral sign — justified here because and the integrals converge — replaces by :
Since has a derivative given by an integral of a non-negative function, is continuous with that density.∎
Intuition. To land a total of , the first variable must land somewhere — call it — and the second must then land at exactly the complement . Independence says the chance of that pair is the product of the two chances, and summing (or integrating) over every possible split of into and accounts for every way the total can be reached.
The formula is a sliding overlap: hold one density fixed, reflect the other and slide it along by , and the overlap area at each position is the density of the sum there.
Pitfall (Convolution needs independence, and the limits need the supports). The convolution formula is false without independence — the joint density does not factor, and there is nothing to convolve.
Even with independence, the written integral is over all of only because the densities vanish off their supports. In practice you must impose both constraints, and , and integrate over their intersection, which usually depends on and usually forces a case split. Forgetting the second constraint is the standard error, and it shows up as a "density" that fails to integrate to one.
Example 4.44 (The sum of two independent uniforms). Let be independent and let . Find the density of and compute .
Solution.
- Both densities equal on and elsewhere, so the integrand equals exactly when and , i.e. when . The integrand is therefore the indicator of and is simply the length of that interval.
- For the interval is , of length . For it is , of length . Outside it is empty. Hence the triangular density on .
- Check: the triangle has base and height , so its area is . ✓ And . ✓
- For the probability, integrate the triangle over . By symmetry about it is easier to remove the two tails: , and by symmetry too. So
- Compare with what a flat guess would give. If were uniform on the answer would be . The true answer is nearly twice that, because sums pile up in the middle.
Theorem 4.46 (Sum of independent normals). If and are independent, then
Proof. It suffices to prove the standard case : shifting and by constants shifts by their sum, and a shift of a normal is normal with the shifted mean.
Apply the theorem Convolution formula:
Write and combine the exponents over the common denominator :
Complete the square in . With ,
the last step because . Substituting back, the part depending on alone comes outside the integral:
The remaining integral is a Gaussian integral in with variance , so it equals . Therefore
which is the density.∎
Remark. Independence is used exactly once, at the first line, to write the joint density as a product. Without it the variance of the sum picks up a covariance term, , and the sum of two dependent normals need not be normal at all — the counterexample and from the pitfall above has equal to half the time and the other half, so and the sum is not even continuous.
Example 4.47 (A sum of two independent normals). Let and be independent, and let . Find the distribution of and compute .
Solution.
- By the theorem Sum of independent normals, , so the standard deviation is .
- Standardise:
- The commonest error here is to add the standard deviations, , which would give and . Variances add; standard deviations do not.
Proposition 4.48 (Sums of independent Poissons and binomials). If and are independent then . If and are independent with the same , then .
Proof. For the Poisson case apply the discrete convolution of the theorem Convolution formula, with and running from to :
where the middle step multiplied and divided by to build the binomial coefficient and the last step is the binomial theorem.
For the binomial case, counts successes in independent trials with success probability and counts successes in a further such trials, independent of the first block. The union of the two blocks is independent trials all with the same success probability , and is the total number of successes among them, which is by definition. The shared is essential: with different success probabilities the pooled trials are not identically distributed and the total is not binomial.∎
Summary.
- Joint descriptions. A discrete pair is described by a joint pmf summing to one; a jointly continuous pair by a joint density integrating to one, with . Both are covered by the joint cdf , which must satisfy the rectangle inequality as well as monotonicity in each variable.
- Marginals. and : sum or integrate out the variable you do not want, taking the limits from the support. Marginals do not determine the joint — the running table and the uniform table on share both marginals and disagree about , against .
- Independence. Equivalent to , to , and to off a null set. A non-rectangular support — a triangle, a disc — rules independence out immediately, however separable the formula looks.
- Conditioning. , legitimate despite because it is the limit of conditioning on . The multiplication rule builds joints from two-stage stories, and independence is exactly the statement that the conditional does not move with .
- Three or more. Mutual independence is strictly stronger than pairwise: with two fair coins, , and are pairwise independent and satisfy .
- LOTUS and products. needs no independence, and neither does . But does need it, and its converse is false.
- Bivariate normal. Marginals normal, conditionals normal with mean linear in the conditioning value and variance free of it. Zero correlation implies independence for this family only; with has normal marginals, zero correlation and total dependence.
- Sums. Under independence, . Two independent uniforms on give the triangular density on ; independent normals give ; independent Poissons add their rates.
- Building a joint out of two marginals. is the joint density *only if* the variables are independent. Two different joints can share both marginals, and no amount of information about the margins recovers the pairing.
- Getting the limits of a double integral from the integrand. The limits come from the support, written as inequalities and then solved for the inner variable. For the inner -integral runs from to , not from to .
- Declaring independence because the formula factors. on the triangle factors algebraically and the variables are dependent, because the indicator of the support does not factor. Check the *support* first.
- Marginalising over the wrong variable. is obtained by integrating out . Integrating out leaves a function of , which cannot be a density for — the surviving variable is the one you keep.
- **Treating as a function of . ** The conditional density integrates to one over its *first* argument. The marginal in the denominator is a constant for that integration.
- Reading a conditional density as a probability. can exceed , like any density. Only its integral over a range of is a probability.
- Checking independence pair by pair. For three or more variables, pairwise independence does not give mutual independence, and it is mutual independence that every downstream theorem assumes.
- Concluding independence from zero covariance. detects linear association only. With uniform on and the covariance is zero and is a function of . The implication runs the other way, and back only inside the bivariate normal family.
- Assuming normal marginals make a normal pair. Joint normality is an assumption about the pair. and for an independent random sign both look perfectly normal and are not jointly normal.
- Adding standard deviations when summing independent variables. Variances add; standard deviations do not. , with standard deviation , not .
- Convolving dependent variables. The convolution formula is derived from . Without independence, the distribution of requires the actual joint density and the half-plane integral, and may not even be continuous.