Conditional Distributions
Suppose a factory produces items with two measured traits, weight and length. These traits are statistically linked. If you learn the weight of an item, how should you update your beliefs about its length? This is the question of a conditional distribution. It is the distribution of one random variable once another has been pinned down to a specific value. It is the probabilistic engine behind regression, Bayesian updating, and every inference procedure. Such procedures use partial information to say something about the rest. The idea matters because raw joint distributions are unwieldy. Marginal distributions, meanwhile, throw away exactly the dependence structure we usually care about. Conditional distributions sit between the two. They keep the joint law intact but repackage it as a family of distributions, one for each value of the conditioning variable. This reframing turns " and are related" into a precise, computable statement. It becomes a formula you can differentiate, integrate, and simulate from. The big picture is that conditioning is really just a renormalization of probability mass or density. Restrict attention to the slice where the conditioning variable takes its observed value. Then rescale so the slice again integrates to one. This works cleanly for discrete random variables using conditional probability directly. With real analytic care about "probability zero events," it extends to continuous random variables via conditional density functions. This article builds the formal definitions of conditional PMFs and PDFs from Joint Distributions and Marginal Distributions. It proves the core consistency theorem relating joint, marginal, and conditional laws. It works through two fully computed examples with asymmetric numbers. It closes by flagging exactly where the continuous case needs extra hypotheses. Finally, it sets up the road to Conditional Expectation and the Bivariate Normal Distribution.
- The conditional PMF is defined by ordinary conditional probability, valid whenever .
- The conditional PDF is defined even though for continuous , via a limiting/density argument.
- For each fixed with positive marginal mass or density, (or ) is itself a genuine probability distribution — it integrates or sums to 1.
- The joint law factors as joint = marginal × conditional: , and this factorization characterizes independence when the conditional law does not depend on .
- Conditioning on a continuous variable requires and continuity/regularity of at for the pointwise definition to behave as expected — this is the Borel–Kolmogorov subtlety.
- Key idea: conditioning is normalization — slice the joint distribution at the given value and divide by the total mass or density of that slice.
Where this lives today
Conditional distributions are the mathematical backbone of Bayesian statistics, where the posterior distribution of a parameter given data is precisely a conditional distribution, computed (up to normalization) via Bayes' rule as a ratio of a joint density to a marginal. In regression analysis, the conditional distribution of a response given a predictor underlies not just the conditional mean (the regression function) but the full predictive distribution used for prediction intervals. Markov chains and Markov processes, central to Conditional Expectation and used throughout physics and finance, are defined entirely through conditional distributions of the future state given the present state. In information theory, conditional entropy and mutual information are built from conditional distributions and measure how much a conditional law deviates from the marginal. Machine learning methods such as naive Bayes classifiers, hidden Markov models, and generative models (e.g., variational autoencoders) explicitly manipulate conditional PDFs/PMFs as their core computational object. In statistical physics, conditional distributions describe the state of a subsystem given the configuration of its environment, a precursor to the conditioning ideas needed for the Bivariate Normal Distribution and Gaussian graphical models used in signal processing.
Ask the tutor: How does the conditional density formula change when and are jointly normal, and why is the resulting conditional mean linear in ?
Discrete case. Let be discrete random variables with joint probability mass function and marginal PMF . For any with , the conditional PMF of given is
This is undefined when , since there is nothing to condition on.
Continuous case. Let be jointly continuous random variables with joint probability density function and marginal density . For any with , the conditional PDF of given is defined as
The associated conditional CDF is
and for a Borel set we define . In both cases the conditioning value ranges only over the support of (points, or in the continuous case a set of full measure, where the marginal is strictly positive).
Intuition
Picture the joint density as a mountain range sitting over the -plane. Slicing this mountain range with a vertical plane at produces a cross-sectional curve in — the shape of . That curve is not itself a probability density in general: its total area is , the height of the marginal density at , not 1. Dividing the cross-section by its own area — that is, by — rescales it into a genuine density. That rescaled cross-section is exactly . The discrete picture is the same idea with a bar chart instead of a mountain: fix a column , look at the relative heights of the joint-probability bars within that column, and renormalize them to sum to 1. A key visual fact: if and are independent, then every vertical slice has the same shape, just possibly rescaled — so after normalizing, all conditional densities coincide with the marginal density of . Dependence is precisely what makes the slice's shape change as varies.
(A) Discrete case. Let be discrete random variables with joint PMF and marginal PMFs . Fix with . Then: 1. The function is a valid PMF: it is nonnegative and . 2. Factorization: for all ,
3. Independence criterion: and are independent if and only if for every and every with .
(B) Continuous case. Let be jointly continuous with joint density , continuous at every point of interest, and marginal density . Fix with . Then: 1. The function is a valid PDF: it is nonnegative and . 2. Factorization: for all ,
3. Independence criterion: and are independent if and only if for (almost) every and every with . 4. Limiting interpretation: for every at which is continuous in the first argument at , and every small,
i.e. it is the density obtained as the limit of conditioning on a shrinking interval around , so the formal definition agrees with the naive "conditioning on " intuition.
We give the argument technique-by-technique: (A) is a direct computation from the definition of conditional probability (Kolmogorov's elementary definition, valid since ); (B) requires an approximation/limiting argument because in the continuous case, so the naive conditional-probability definition is not directly applicable, and instead we justify the density formula as a limit of conditioning on shrinking intervals, then verify it satisfies the defining properties of a density.
Part (A), discrete case. (1) Valid PMF. By definition . Since and , each term is nonnegative. Summing over all values of ,
where the middle equality is exactly the definition of the marginal PMF as a sum of the joint PMF over (Marginal Distributions). This proves is a genuine PMF. (2) Factorization. This is immediate algebra: multiply both sides of by (which is nonzero by hypothesis) to recover . If instead , then since (because ), we get too, so the identity holds trivially, and no conditional probability need be assigned. (3) Independence criterion. Recall means for all (definition of independence for discrete random variables). () If , then for any with ,
for every , as claimed. () Suppose for all and all with . By the factorization in Part (2), for such ,
For with , we showed above automatically. Hence for all , which is exactly independence.
Part (B), continuous case. Preliminary: the limiting argument justifying the definition. Fix with , and suppose is continuous in a neighborhood of for the in question. For small , condition on the event , which has for small since and (by continuity of , which follows from continuity of and dominated convergence applied to under mild regularity) is positive near . Define the conditional CDF given this event:
As , by continuity of at (which holds if is continuous and dominated appropriately, e.g. bounded on compact sets) and the mean value property of integrals,
and similarly . Dividing these two limits,
This shows is exactly the limit of the well-defined conditional CDFs as the conditioning interval shrinks to the point . This is the rigorous sense in which represents "the distribution of given " — it is not obtained by conditioning on a probability-zero event directly, but as this limit. This establishes claim (4) and justifies the definition itself. (1) Valid PDF. Nonnegativity of is immediate since both numerator and denominator are nonnegative densities. For the total integral,
using the definition of the marginal density (Marginal Distributions) in the middle step. Hence integrates to 1 and is a genuine density. (2) Factorization. Multiply both sides of the defining equation by to obtain directly. (3) Independence criterion. Recall (jointly continuous) means for almost every . () If , then for every with and almost every ,
() Conversely, if for almost every and every with , then by the factorization identity (Part 2),
for almost every with ; on the null set both sides vanish almost everywhere in since constant multiple considerations force the integral of over such to be zero as a set (a standard measure-theoretic fact: if -null set has , then for a.e. for a.e. such , by Tonelli's theorem applied to ). Hence almost everywhere, which is the definition of independence.
∎Worked examples
Example 1 (discrete, asymmetric joint table). A quality-control station inspects items for two independent defect types, but the joint counts recorded are as follows. Let be the number of Type-A blemishes and the number of Type-B blemishes on a randomly chosen item, with joint PMF given by the table (each entry is ):
Check: all entries sum to . ✓.
Step 1: marginals. Summing rows,
Summing columns,
Step 2: conditional PMF of given . Here , so
Check normalization: . ✓
Step 3: conditional PMF of given , for comparison.
Since , the independence criterion from the theorem tells us immediately that and are not independent — knowing roughly doubles the chance of a Type-B blemish (from marginal to conditional ) compared to knowing (conditional ).
Example 2 (continuous, asymmetric joint density). Let have joint density
To make the numbers genuinely asymmetric and nontrivial, use the density
and zero elsewhere, with normalizing constant to be found.
Step 1: find . We require . Compute the inner integral first:
Then
Setting gives . So
Step 2: marginal of .
Check: . ✓ (This also reveals the distribution with density on , i.e., has CDF .)
Step 3: marginal of .
Check: . ✓
Step 4: conditional density of given . First confirm . Then
Observation: this conditional density is exactly , independent of the chosen . Indeed for any ,
since the factors cancel. By the independence criterion of the theorem, this proves and are independent in this example — consistent with the fact that the joint density factored from the start as .
Step 5: a numeric conditional probability. Compute :
Drop the hypothesis "" and see the definition break down entirely — and separately, drop " continuous near the conditioning point" and see the value of become ambiguous, not just undefined.
Part 1: makes the ratio meaningless. Let be uniform on the triangle , so on and elsewhere (check: area of is , and density makes total mass ✓). The marginal of is
so . At , the formula is literally : there is no sensible way to divide, and no amount of algebra recovers a meaningful conditional law, because the event forces into a shrinking sliver whose shape changes with — the limit in the theorem's part (4) does not stabilize to a fixed density as in the same way, because itself vanishes at the boundary and the renormalizing denominator collapses along with the numerator. The conditional distribution simply is not defined at (a single point, consistent with the theorem, which only asserts existence where ).
Part 2: discontinuous joint density gives two "reasonable" but different limits (the Borel–Kolmogorov phenomenon). Consider trying to define "the distribution of given " for uniform on the unit disk , so on . This density is continuous on the open disk, so conditioning at any interior point via vertical strips is perfectly well-posed and gives
(a uniform density on the vertical chord at , since ). This part is fine and illustrates the theorem correctly. The trap arises if one instead tries to condition on a different zero-probability event describing the same point set differently — e.g., conditioning "given near 1" versus "given near on the boundary" of the disk — these differing parametrizations of an approach to a probability-zero set can yield genuinely different limiting conditional laws. This is the classical Borel–Kolmogorov paradox: conditioning on a probability-zero event is only well-defined relative to a specific limiting family of positive-probability approximating events (as built rigorously in part (4) of the theorem), not as an intrinsic property of the zero-probability event alone. Dropping the explicit "vertical-strip" regularization silently, and instead conditioning along some other family of shrinking neighborhoods, can and does change the answer. Both failures disappear once the stated hypotheses — , and continuity of used consistently with the "shrinking interval in " limiting scheme — are respected exactly as the theorem requires.
Scope, edge cases & common traps
| Situation | What happens | Correct handling |
|---|---|---|
| discrete, discrete, | undefined | Restrict conditioning values to the support of |
| jointly continuous, | Conditional density well-defined via ratio and limiting argument | Use |
| continuous, discrete (mixed case) | Define ; often computed via Bayes-type formula with densities | Treat as its own case; not covered by either pure formula above |
| Conditioning on a probability-zero event described in two different ways | Can give different answers — Borel–Kolmogorov paradox | Always specify the limiting family of positive-probability events used |
| independent | for all valid (conditional = marginal) | Use as a defining test for independence, both directions |
| Conditional distribution mistaken for conditional expectation | Conditional distribution is a whole distribution, not a number | Conditional expectation is a summary (mean) of the conditional distribution — see Conditional Expectation |
The mathematician behind it
Origins · 1 minAndrey Nikolaevich Kolmogorov and how this was discovered
Kolmogorov built the first fully rigorous axiomatic foundation for probability theory, published in his 1933 monograph Grundbegriffe der Wahrscheinlichkeitsrechnung (Foundations of the Theory of Probability). Before this work, conditional probability was used freely and informally, but conditioning on events of probability zero — exactly the situation needed for continuous conditional distributions — had no rigorous definition and was a known source of paradox. Kolmogorov resolved this using measure theory, defining conditional expectation and conditional distributions via the Radon–Nikodym theorem relative to a sub--algebra, subsuming both the discrete ratio formula and the continuous limiting-density construction as special cases of one unified framework. He also identified and analyzed the paradox that bears his name jointly with Émile Borel, clarifying that conditioning on a probability-zero event requires specifying an approximating sequence of positive-probability events.
Why can't we just define as directly, the way we do for discrete variables?
Because for continuous , the event has probability exactly zero, and Kolmogorov's elementary formula requires to make sense — dividing by zero is not defined. Instead, the conditional density is defined as the ratio , and separately justified by showing it arises as the limit of ordinary (well-defined) conditional probabilities given that lies in a shrinking interval around . This limiting argument, carried out in the proof above, is what makes the ratio formula meaningful rather than a formal trick.
Does the conditional distribution of given always have to be a "nice" distribution, like normal or exponential?
No — it can be any valid probability distribution whatsoever, and its shape can change substantially as varies. There is one important structural exception: if and are jointly normal (bivariate normal), then the conditional distribution of given is always normal, with a mean that is linear in and a variance that does not depend on at all. This special rigidity is a defining feature of the Bivariate Normal Distribution and does not hold for general joint distributions.
How is a conditional distribution different from a conditional expectation?
A conditional distribution is an entire probability law — a full PMF or PDF describing all the probabilistic behavior of once is known. A conditional expectation, , is a single real number: the mean of that conditional distribution. The conditional distribution contains strictly more information; from it one can compute not just the conditional mean but the conditional variance, conditional median, or any other feature. Conditional Expectation builds directly on the conditional distribution defined here by integrating against (or summing against ).
If the conditional PDF equals the marginal PDF for one particular value of x, does that mean X and Y are independent?
No, and this is a subtle but important trap. Independence requires for every in the support of (and for almost every ), not just for one specific value. It is entirely possible for the conditional distribution to coincide with the marginal at one value of purely by coincidence, while differing at other values of — in that case and are still dependent. The independence criterion in the theorem is a universally quantified statement over all valid , and checking a single proves nothing in general.
What goes wrong if the joint density is not continuous at the point where we condition?
The ratio formula can still be written down formally, but the justification linking it to "conditioning on near " (via the shrinking-interval limit in the theorem) may fail or depend on exactly how the density is defined at that discontinuity, since densities are only unique up to sets of measure zero. In practice, if has a jump discontinuity along the line , the conditional density there should be computed using a specific one-sided or averaged version of , chosen so the limiting argument goes through — this requires care beyond the routine formula and is a genuine edge case rather than a purely formal exercise.
Can we condition a discrete random variable on a continuous one, or vice versa?
Yes, but neither pure formula above directly applies, and the construction is a genuinely separate (mixed) case. For discrete and continuous, one typically writes , a version of Bayes' rule mixing a density and a PMF, valid when . This mixed-case formula is exactly the mechanism behind Bayesian posterior computation with continuous data and discrete parameters (or vice versa), and is built from the same normalize-the-slice principle, just applied across the discrete/continuous boundary.
Is the conditional distribution of Y given X=x unique?
Yes, up to the usual "almost everywhere" ambiguity inherent to densities. For discrete random variables, is uniquely determined by the joint and marginal PMFs at every with , with no ambiguity, since PMFs are pointwise well-defined probabilities. For continuous random variables, is well-defined at every where and is a valid representative of the joint density (densities are themselves only unique up to modification on a measure-zero set), and different valid representatives of can give conditional densities differing on measure-zero sets of , which does not affect any probability computed from them.