Three Checks Before Conditioning
Conditioning changes which probabilities or expectations are being calculated. Many errors arise from treating the conditioned-on information as if it were irrelevant, or from applying a rule without checking its assumptions. Before using a conditional probability or expectation, ask three questions: does the conditioning event have positive probability; am I using a conditional distribution or a marginal distribution; and is a factor being taken outside a conditional expectation actually known under the conditioning?
Throughout, random variables are defined on a probability space \((\Omega,\mathcal{F},\mathbb{P})\). For an event \(B\in\mathcal{F}\) with \(\mathbb{P}(B)>0\), conditioning on \(B\) means using the probability measure \(\mathbb{P}(\,\cdot\mid B)\), where \(\mathbb{P}(C\mid B)=\mathbb{P}(C\cap B)/\mathbb{P}(B)\). For an integrable random variable \(X\), the corresponding conditional expectation is \(\mathbb{E}[X\mid B]=\mathbb{E}[X\mathbf{1}_B]/\mathbb{P}(B)\). The positive-probability requirement is essential: if \(\mathbb{P}(B)=0\), this ratio is undefined.
1. Conditioning on an Event of Probability Zero
A conditional probability given an event \(B\) is defined by a ratio whose denominator is \(\mathbb{P}(B)\). If that probability is zero, the elementary event-conditioning formula does not define a value. A common error is to insert a zero-probability event into the formula anyway, or to assume that there is one uniquely determined answer.
For conditioning on the value of a continuous random variable, conditional distributions can be represented by a family of probability distributions indexed by the conditioning value. Such a family is called a regular conditional distribution. Its defining integral identities determine its values only for almost every conditioning value under the distribution of the conditioning variable. A value at a particular point with probability zero can therefore depend on the chosen version.
Worked Example: A Conditional Distribution at a Null Point
Let \(X\) be uniform on \([0,1]\), and let \(Y\) be independent of \(X\), with \(\mathbb{P}(Y=0)=\mathbb{P}(Y=1)=\tfrac12\). Thus \(\mathbb{P}(X=0)=0\). For every \(x\in[0,1]\), one version of the conditional distribution of \(Y\) given \(X=x\) assigns probability \(\tfrac12\) to each of 0 and 1.
Now define a second family: when \(x\ne0\), again assign probability \(\tfrac12\) to each value; when \(x=0\), assign probability 1 to \(Y=0\). Both families are probability distributions at every \(x\), but they disagree at \(x=0\).
Check the defining identity. For any measurable \(A\subseteq[0,1]\), the first family gives \(\mathbb{P}(X\in A,Y=0)=\tfrac12\mathbb{P}(X\in A)\). The second gives the same integral: its only change is at \(x=0\), and \(\mathbb{P}(X=0)=0\), so changing the integrand there does not change the integral. The identity for \(Y=1\) also holds, because the changed point again has probability zero.
Consequently, these are both valid versions, even though the first assigns \(\mathbb{P}(Y=1\mid X=0)=\tfrac12\) and the second assigns \(\mathbb{P}(Y=1\mid X=0)=0\). The joint model does not select a unique pointwise answer at \(X=0\). The unconditional independence statement does not justify treating an arbitrary pointwise version as uniquely determined there.
Proof of non-uniqueness. A regular conditional distribution is required to satisfy its defining integral identities. The two families above differ only at \(x=0\), a set with \(X\)-probability zero. For each measurable \(A\), an integral with respect to the distribution of \(X\) is unchanged by changing an integrand on a set of measure zero. Thus both families satisfy the same defining identities while assigning different distributions at \(x=0\). \(\square\)
2. Conditional Distributions Are Not Marginals
The marginal distribution of \(Y\) describes \(Y\) without specifying another variable. The conditional distribution of \(Y\) given \(X=x\) describes \(Y\) after the value \(X=x\) is supplied. These distributions need not agree. To recover the marginal distribution from conditional distributions, average them over the distribution of \(X\); do not replace every conditional distribution by the marginal.
Proof. Since the \(A_i\) form a partition, \(\sum_{i=1}^{m}\mathbf{1}_{A_i}=1\) everywhere. Therefore \(X=\sum_{i=1}^{m}X\mathbf{1}_{A_i}\). Taking expectations and using the definition of conditioning on each positive-probability cell gives \(\mathbb{E}[X]=\sum_i\mathbb{E}[X\mathbf{1}_{A_i}]=\sum_i\mathbb{P}(A_i)\mathbb{E}[X\mid A_i]\). Taking \(X=\mathbf{1}_C\) proves the probability identity. If \(\mathbb{P}(A_i)=0\), then \(\mathbb{E}[|X|\mathbf{1}_{A_i}]=0\), so that cell contributes zero and its conditional expectation is not required. \(\square\)
Worked Example: Conditional and Marginal Probabilities
Let \(\Omega=\{(0,0),(1,1)\}\), with probability \(\tfrac12\) on each point, and let \(X\) and \(Y\) be the first and second coordinates. Find the conditional and marginal distributions of \(Y\), and compare \(\mathbb{E}[Y\mid X]\) with \(\mathbb{E}[Y]\).
The marginal probabilities are \(\mathbb{P}(Y=0)=\tfrac12\) and \(\mathbb{P}(Y=1)=\tfrac12\), so \(\mathbb{E}[Y]=0\cdot\tfrac12+1\cdot\tfrac12=\tfrac12\). Both values of \(X\) have probability \(\tfrac12\), so the conditioning events are positive-probability events. Given \(X=0\), \(Y=0\) with probability 1; given \(X=1\), \(Y=1\) with probability 1. Hence \(\mathbb{E}[Y\mid X=0]=0\) and \(\mathbb{E}[Y\mid X=1]=1\), or, as a random variable, \(\mathbb{E}[Y\mid X]=X\).
Check by averaging. The finite conditioning identity gives \(\mathbb{E}[\mathbb{E}[Y\mid X]]=\tfrac12\cdot0+\tfrac12\cdot1=\tfrac12=\mathbb{E}[Y]\). The conditional distribution given \(X=1\) is concentrated at 1, while the marginal assigns probability \(\tfrac12\) to 1. They are not interchangeable.
Common wrong calculation: “Since \(\mathbb{P}(Y=1)=\tfrac12\), \(\mathbb{P}(Y=1\mid X=1)=\tfrac12\).” This uses the marginal probability as if it were conditional. The correction is \(\mathbb{P}(Y=1\mid X=1)=\mathbb{P}(Y=1,X=1)/\mathbb{P}(X=1)=(\tfrac12)/(\tfrac12)=1\).
3. Taking a Factor Outside a Conditional Expectation
The rule for moving a factor outside a conditional expectation depends on what is known under the conditioning. If \(H\) is measurable with respect to \(\mathcal{G}\), then \(H\) is known when conditioning on \(\mathcal{G}\). For integrable \(X\) and bounded \(\mathcal{G}\)-measurable \(H\), the standard taking-out-what-is-known property is \(\mathbb{E}[HX\mid\mathcal{G}]=H\mathbb{E}[X\mid\mathcal{G}]\) almost surely. Boundedness ensures \(HX\) is integrable. The measurability requirement is not optional: a factor that is not known under \(\mathcal{G}\) generally cannot be taken out.
Proof. Write \(H=\sum_{r=1}^{q}h_r\mathbf{1}_{C_r}\), where each \(C_r\in\mathcal{G}\) and the \(C_r\) form a finite partition. Set \(Z=\mathbb{E}[X\mid\mathcal{G}]\). The random variable \(HZ\) is \(\mathcal{G}\)-measurable. For every \(C\in\mathcal{G}\),
The middle equality follows from the defining property of \(Z\), because \(C\cap C_r\in\mathcal{G}\). Thus \(HZ\) satisfies the defining property of the conditional expectation of \(HX\), so the two are equal almost surely. \(\square\)
Worked Example: A Factor That Is Not Known
Let \(\Omega=\{\omega_1,\omega_2\}\), give each point probability \(\tfrac12\), and let \(\mathcal{G}=\{\varnothing,\Omega\}\), the trivial sigma-field. Define \(X(\omega_1)=X(\omega_2)=1\) and \(H(\omega_1)=1,\ H(\omega_2)=0\). Compute both sides of the proposed identity \(\mathbb{E}[HX\mid\mathcal{G}]=H\mathbb{E}[X\mid\mathcal{G}]\).
Because \(X=1\), its conditional expectation given the trivial sigma-field is the constant \(\mathbb{E}[X]=1\). Also \(HX=H\), whose expectation is \(\tfrac12\). Therefore \(\mathbb{E}[HX\mid\mathcal{G}]=\tfrac12\), a constant. In contrast, \(H\mathbb{E}[X\mid\mathcal{G}]=H\), which takes the values 1 and 0.
Check: The two sides differ at both points: the left side is \(\tfrac12\), while the right side is 1 at \(\omega_1\) and 0 at \(\omega_2\). The failed hypothesis is that \(H\) is \(\mathcal{G}\)-measurable. Indeed, the only \(\mathcal{G}\)-measurable random variables are constants, and \(H\) is not constant.
Common wrong calculation: Pulling \(H\) outside simply because it multiplies \(X\). The correction is to check measurability first. Here direct calculation gives \(\mathbb{E}[HX\mid\mathcal{G}]=\tfrac12\), not \(H\).
A Practical Error-Checking Routine
These errors can be caught by checking definitions before simplifying. For event conditioning, write down the denominator and verify it is positive. For conditioning on a random variable’s value, distinguish values with positive point probability from values in a continuous range: a conditional density or kernel is specified only up to almost-everywhere changes unless an additional convention selects a version. For a conditional distribution, identify which variable is conditioned on and calculate the relevant conditional probabilities rather than copying marginal probabilities. For a factor outside a conditional expectation, verify that it is measurable with respect to the conditioning sigma-field and check the integrability assumptions.
A final consistency check is to average conditional quantities over the conditioning information. On a finite partition, the weights are the probabilities of the partition cells and sum to 1. Conditional expectations can vary across cells even though their weighted average recovers the unconditional expectation. In contrast, taking a factor outside is a pointwise almost-sure identity that requires the factor to be known under the conditioning. These are different rules and should not be substituted for one another.
Check Your Understanding
For each question, identify the assumption needed before calculating and verify the result using the definition or a direct average.
- If \(\mathbb{P}(B)=0\), is \(\mathbb{P}(C\mid B)=\mathbb{P}(C\cap B)/\mathbb{P}(B)\) defined? Explain why a conditional distribution at a null value may nevertheless have a chosen version.
- A partition has two cells with probabilities \(\tfrac14\) and \(\tfrac34\). If the conditional means of \(X\) on those cells are 2 and 4, calculate \(\mathbb{E}[X]\) using the finite conditioning identity.
- In the two-point example, calculate \(\mathbb{P}(Y=0\mid X=0)\) and compare it with \(\mathbb{P}(Y=0)\).
- For a sigma-field \(\mathcal{G}\), what measurability condition allows a factor \(H\) to be taken outside \(\mathbb{E}[HX\mid\mathcal{G}]\)?
- Give a direct reason the proposed factor identity fails in the two-point example when \(\mathcal{G}\) is trivial.