Joint Distributions
Suppose you record both the height and weight of a randomly chosen adult. Each measurement alone is a familiar random variable with its own distribution. But neither number alone tells you whether tall people also tend to be heavy. To capture how two random quantities behave together, we need a single mathematical object. It must track their simultaneous behavior. This is not two separate one-dimensional pictures glued together. Instead, it is one genuinely two-dimensional (or higher) description. This is the role of a joint distribution. It is the natural extension of the Cumulative Distribution Function to several random variables at once. It is the foundation on which almost all of multivariate probability is built. Once we have joint distributions in hand, we can recover the individual behavior of each variable (its marginal distribution). We can also ask whether the variables are unrelated (independence). And we can compute the distribution of combinations like sums (convolution). All of this depends on having captured the joint information correctly in the first place. The central idea is deceptively simple: instead of asking , we ask for every pair . This function of two variables encodes everything there is to know about the pair . When the variables are discrete, this specializes to a joint probability mass function. When they admit densities, it specializes to a joint probability density function. Both are used constantly. They appear in modeling correlated failures in engineering systems, joint stock returns in finance, pixel intensities across color channels, or errors in repeated measurements. This article gives the precise definitions of joint CDFs, joint PMFs, and joint PDFs for two (and more) random variables. It states and proves the basic consistency theorem linking them. It also works through concrete asymmetric examples. These examples show how to compute probabilities of events involving several variables simultaneously.
- A joint CDF fully describes the simultaneous behavior of a pair of random variables.
- Discrete pairs are described by a joint PMF summing to over all values.
- Continuous pairs are described by a joint PDF with , integrated to get probabilities of regions.
- Rectangle probabilities from a joint CDF are computed by a signed sum of four corner values (the "inclusion–exclusion" identity).
- Any monotonicity or normalization failure means a candidate function is not a valid joint CDF/PMF/PDF.
- Joint distributions are the raw material from which marginals, independence, and sums are later built.
- Key idea: knowing each variable's own distribution is not enough — the joint distribution is a genuinely new object encoding their relationship.
Where this lives today
Joint distributions are the working substrate of essentially all multivariate reasoning in applied probability and statistics. In finance, the joint distribution of asset returns drives portfolio risk models, value-at-risk calculations, and copula-based dependence modeling. In engineering reliability, joint distributions of component lifetimes determine system-level failure probabilities in series and parallel configurations. In machine learning and statistics, the joint distribution of features and labels is the object that generative models attempt to learn, and Bayesian inference is fundamentally a manipulation of joint distributions of parameters and data via Conditional Distributions. In physics, joint distributions of position and momentum (subject to quantum constraints) and joint distributions of particle velocities in statistical mechanics rely on exactly the density/PDF formalism developed here. In signal processing and communications, joint distributions of noise samples at different times determine detection and estimation performance. Every one of these applications begins with the same three objects defined in this article — joint CDF, joint PMF, joint PDF — before moving on to marginals, independence, and sums.
Ask the tutor: How do I compute the marginal PDF of from a joint PDF , and how does this connect to checking independence?
Let and be random variables defined on the same Probability Space .
Joint CDF. The joint cumulative distribution function of and is the function given by
where denotes the event .
Joint PMF (discrete case). If and take values in a countable set, the joint probability mass function is
It satisfies for all and
the sum being over all values that can take.
Joint PDF (continuous case). and are jointly continuous if there exists a function , the joint probability density function, such that for every (Borel) set ,
and in particular
General variables. For random variables , the joint CDF is
with analogous joint PMF (discrete) or joint PDF (continuous, requiring ) definitions.
Intuition
Think of as the probability mass that a "sensor" sweeping down-and-left from has accumulated: it is the total probability assigned to the entire lower-left quadrant with corner . As moves to , this sweeps up all the probability in the plane, so . As in either coordinate, the quadrant becomes empty and . For discrete pairs, imagine placing a little tower of height above every possible pair of values in the plane; the joint PMF is this whole "skyline" of towers, and their total volume (sum of heights) is exactly . For continuous pairs, replace towers with a continuous surface hovering over the plane; probability of any region is the volume trapped between this surface and , and the total volume under the whole surface is . The picture below shows a discrete joint PMF as a grid of probability masses, and a continuous joint PDF as a density surface represented by shaded contour bands — both integrating (or summing) to unit total mass.
The rectangle identity: extracting probabilities from a joint CDF
Before stating the central theorem, note the essential computational fact used throughout multivariate probability: the joint CDF alone determines the probability of any rectangle, via a four-term inclusion–exclusion formula. This is the two-dimensional analogue of the single-variable fact .
Let be random variables on a common probability space with joint CDF .
(a) Rectangle formula. For all real numbers and ,
(b) Basic properties. is: 1. Monotone nondecreasing in each argument: if then for every , and similarly in . 2. Right-continuous in each argument: for every , and similarly in . 3. Has correct limits:
4. Marginal consistency: and . 5. The right side of the rectangle formula in part (a) is always nonnegative (this is a genuinely new constraint, not implied by ordinary one-variable monotonicity — see the counterexample below).
We prove each part using elementary set operations and the axioms of probability (countable additivity and monotonicity of ).
(a) Rectangle formula. Fix , . Define the events
By definition , , , . Consider the event , whose probability we want. We claim
Indeed, means and . Split on whether or , and whether or :
- If : then (regardless of , since already holds).
- If and : then (since holds).
- If and : combined with this is exactly .
These three cases are mutually exclusive and exhaust , confirming is not quite a clean disjoint union of themselves (since overlap), so we instead use inclusion–exclusion directly on . By definition, (since ), and this union together with partitions : indeed iff and (together with ), i.e. iff . Also by construction. Hence, using finite additivity of ,
By inclusion–exclusion for two events,
Finally , since forces , and forces . Substituting,
so
which is the claimed identity.
(b1) Monotonicity. If then as sets (any with automatically has ). Monotonicity of probability measures (, itself immediate from countable additivity applied to ) gives . The argument in is symmetric.
(b2) Right-continuity. Fix . Let be any sequence decreasing to . The events form a decreasing sequence of events ( since , by the monotonicity argument above) with — this intersection equality holds because for all iff (using that the reals are Archimedean and ). By continuity of probability measures from above (a standard consequence of countable additivity: for decreasing , ), we get . Since the sequence was arbitrary, . The argument in is symmetric.
(b3) Limits. Let . Then decreases to . If then for every , forcing , impossible since is real-valued; hence . By continuity of probability from above, . The case is symmetric. For the joint limit to : let ; then increases to (every eventually satisfies both inequalities since are finite real numbers), and continuity of probability from below gives .
(b4) Marginal consistency. Let . Then increases to (since for any , eventually , while the constraint is unaffected). Continuity of probability from below gives . The other marginal limit is symmetric.
(b5) Nonnegativity. The quantity in (a) equals for an actual event , and probabilities are nonnegative by the axioms of probability.
∎If are discrete with joint PMF , then for any set ,
and in particular . If are jointly continuous with density , then wherever is continuous,
by the Fundamental Theorem of Calculus applied twice (differentiating the double integral in the definition, first in then in , using continuity of the integrand to justify differentiating under the integral sign).
Worked examples
Example 1 (discrete, asymmetric joint PMF). A repair shop receives, on a given day, = number of urgent tickets () and = number of routine tickets (), with joint PMF given by the table
Check normalization: . Good — this is a valid joint PMF, since every entry is also . Question 1: Find . This is the sum of table entries with , :
Question 2: Find the joint CDF value . By definition this is . Question 3 (rectangle formula check): Compute two ways. Direct sum over the table with (since excludes ) and :
Via the rectangle formula with (choosing so that is captured as excluding all mass, consistent with "" always holding here):
Here (all mass), , and (no mass with ). This gives , matching the direct computation. ✓.
Example 2 (continuous, asymmetric joint PDF). Let have joint density
Step 1: Find . Normalization requires
Compute the inner integral in :
Then
So , giving . Step 2: Verify nonnegativity and support. On we have , so everywhere, confirming this is a valid density. Step 3: Compute .
Inner integral:
Then
Step 4: Find the joint CDF at directly, cross-checking part of Step 3.
Inner integral: . Then . As a rectangle-formula sanity check, note
where . The inner integral is (computed above with the general bound), so . Then , matching Step 3 exactly. ✓
Property (b5) of the theorem — that for all rectangles — is an extra requirement beyond ordinary coordinate-wise monotonicity (b1), right-continuity (b2), and correct limits (b3). To see that (b1)–(b3) do not imply (b5), consider the function
Check coordinate-wise monotonicity: fixing , increasing can only move a point from the "0" region into the "1" region (since increasing only increases ), never the reverse, so is nondecreasing in for fixed ; symmetric argument for . One can also check is right-continuous in each variable separately (it is piecewise constant with the jump occurring in a right-continuous manner along ), and as either coordinate (in fact whenever or , ), as both . Now test the rectangle formula on :
Here (since ), (since ), (since ), and (since ). So the rectangle sum is
A genuine joint CDF can never produce a negative value here, because that value must equal by the very proof of the rectangle formula (it literally is the probability of an event). Since violates nonnegativity of this particular rectangle combination, cannot be the joint CDF of any pair of random variables, even though it satisfies monotonicity, right-continuity, and the correct limits at infinity. This shows property (b5) is not automatic — it is a genuinely independent constraint that must be checked (or built into the construction, e.g. by starting from an actual PDF/PMF) whenever verifying that a candidate two-variable function is a legitimate joint CDF.
Scope, edge cases & common traps
| Situation | What to watch for |
|---|---|
| Mixed discrete/continuous pair | Neither pure PMF nor pure PDF description applies; need the joint CDF or a mixed density/measure treatment. |
| Only marginals known | The joint CDF is not determined by the marginals alone (many joint distributions share the same marginals). |
| Candidate two-variable function proposed as a joint CDF | Must check all of monotonicity, right-continuity, correct limits, and rectangle-nonnegativity — see counterexample. |
| Computing from a PDF | Integrate over the correct (often non-rectangular) region; do not assume independence of the bounds. |
| Support of the joint density | Always state the region of where ; integrals outside this region contribute automatically but must be tracked when setting limits. |
The mathematician behind it
Origins · 1 minAndrei Nikolaevich Kolmogorov and how this was discovered
Kolmogorov's 1933 monograph Grundbegriffe der Wahrscheinlichkeitsrechnung placed probability theory on a rigorous measure-theoretic footing, defining random variables as measurable functions on a probability space and joint distributions as the induced measures on product spaces . This framework — built on countable additivity and the axioms he formalized — is precisely the machinery used above to prove continuity-from-above/below properties of joint CDFs. Kolmogorov also proved the extension theorem guaranteeing that consistent finite-dimensional joint distributions determine a well-defined stochastic process, a cornerstone result for the theory of sums and limiting behavior of sequences of random variables.
What is the difference between a joint distribution and two separate (marginal) distributions?
Two marginal distributions describe and in isolation and say nothing about their relationship. A joint distribution describes the pair simultaneously, encoding how likely combinations of values are to occur together. Crucially, many different joint distributions can share the exact same pair of marginals — for instance, and could be independent, or could be perfectly correlated, and yet still have identical individual (marginal) distributions. Only the joint distribution can distinguish these cases, which is exactly why it is introduced as a separate, richer object rather than derived automatically from the marginals.
Can I always recover the joint PDF by differentiating the joint CDF?
Wherever the joint CDF is twice continuously differentiable, yes: , by the corollary above. This follows from applying the Fundamental Theorem of Calculus twice to the double-integral definition of . However, if is not differentiable everywhere (e.g., mixed discrete-continuous distributions, or densities with jump discontinuities), this formula only holds at points of differentiability, and a genuinely careful treatment requires measure theory beyond the pointwise-density picture.
Is it true that in general?
No, this equality holds if and only if and are independent — it is not a general identity satisfied by every joint CDF. In general can be anywhere between and , the Fréchet–Hoeffding bounds, depending on the dependence structure between and . Assuming the product formula without verifying independence is one of the most common errors when first working with joint distributions.
Does a joint PMF or PDF always exist for a pair of random variables?
Not necessarily as a PMF or PDF in the elementary sense described here. If is discrete and is continuous, neither a joint PMF nor a joint PDF (in the form given here) applies directly, since the pair is neither purely discrete nor purely continuous. More generally, some joint distributions are "singular," concentrating probability on lower-dimensional sets (like a line) with no density with respect to area. The joint CDF, however, always exists for any pair of random variables, which is why it is the most universally applicable of the three objects.
How do I check whether a proposed table of numbers is a legitimate joint PMF?
Two conditions are necessary and sufficient: every entry must be nonnegative, and the entries must sum to exactly over all possible pairs of values. If either condition fails — a negative entry, or a total different from — the table cannot represent an actual joint PMF of any pair of random variables. This is directly analogous to checking that a single-variable PMF's probabilities are nonnegative and sum to , just extended over the two-dimensional grid of value-pairs.
Why is the rectangle probability formula written with four terms rather than two?
Because a rectangle in the plane is not simply the difference of two "quadrant" events the way an interval on the line is the difference of two half-lines. The joint CDF only gives probabilities of lower-left quadrants , and expressing a rectangle in terms of quadrants requires the inclusion–exclusion argument carried out in the proof, which naturally produces four corner terms with alternating signs.
How does this connect to what comes next — marginals, independence, sums?
The joint CDF/PMF/PDF is the raw object from which every other multivariate concept is derived. Marginal Distributions are obtained by "integrating out" or "summing out" one variable from the joint distribution. Independence of Random Variables is the special case where the joint distribution factors as a product of marginals. Sums of Random Variables and Convolution computes the distribution of by integrating the joint density over the diagonal strips . None of these can even be stated without first fixing what a joint distribution is, which is exactly the role this article plays.