Skip to content

Conditional Expectation Given an Event

Definition

Let AA be an event with P(A)>0\mathbb{P}(A)>0 and let YY be integrable. Its conditional expectation given AA is the average under the conditional probability model:

E[Y∣A]=E[Y𝟙1A]P(A).\mathbb{E}[Y\mid A]=\frac{\mathbb{E}[Y\indicator_A]}{\mathbb{P}(A)}.

For discrete YY, this equals ∑yy P(Y=y∣A)\displaystyle \sum_y y\,\mathbb{P}(Y=y\mid A). When the conditional law has a density fY∣Af_{Y\mid A}, it equals ∫RyfY∣A(y) dy\int_{\mathbb{R}}y f_{Y\mid A}(y)\,\mathrm{d}y. Conditioning on an event gives a number; conditioning on a random variable gives a random variable and is treated separately in Probability Distributions (conditional expectation given a random variable).


Interpretation

The conditional expectation E[Y∣A]\mathbb{E}[Y\mid A] is the average value of YY when only the outcomes in an event AA that is known to have occurred are considered. It is computed like an ordinary expectation, with the conditional probabilities given AA as weights.

Probability bars for X = 1 to 4 with masses 0.1 to 0.4, and the conditional bars given X at least 3, rescaled to 3/7 and 4/7; vertical lines mark the means 3 and 25/7.

In the figure XX takes the values 1,2,3,41,2,3,4 with probabilities 0.1,0.2,0.3,0.40.1,0.2,0.3,0.4, so E[X]=3\mathbb{E}[X]=3. Given B={X≥3}B=\{X\ge3\}, with P(B)=0.7\mathbb{P}(B)=0.7, the values 11 and 22 drop out, and the masses 0.30.3 and 0.40.4 are rescaled to 3/73/7 and 4/74/7 so that they again add up to 11. The conditional mean E[X∣B]=3(3/7)+4(4/7)=25/7≈3.57\mathbb{E}[X\mid B]=3(3/7)+4(4/7)=25/7\approx3.57 lies to the right of 33 because only the large values remain.

In the formula E[Y∣A]=E[Y𝟙1A]/P(A)\mathbb{E}[Y\mid A]=\mathbb{E}[Y\indicator_A]/\mathbb{P}(A), the indicator sets YY to zero on the outcomes outside AA, so the numerator adds up YY only over AA; dividing by P(A)\mathbb{P}(A) renormalizes those weights to total one. In the figure E[X𝟙1B]=3(0.3)+4(0.4)=2.5\mathbb{E}[X\indicator_B]=3(0.3)+4(0.4)=2.5 and 2.5/0.7=25/72.5/0.7=25/7. The condition P(A)>0\mathbb{P}(A)>0 is needed because the division is otherwise undefined. A common slip is to stop at E[Y𝟙1A]\mathbb{E}[Y\indicator_A]: here 2.52.5 is smaller than every value XX takes on BB, so it cannot be the average over BB.

Conditioning on AA and on its complement and averaging the two results with weights P(A)\mathbb{P}(A) and P(Ac)\mathbb{P}(A^c) gives back E[Y]\mathbb{E}[Y], the expectation version of the law of total probability. In the figure E[X∣X≤2]=0.5/0.3=5/3\mathbb{E}[X\mid X\le2]=0.5/0.3=5/3, and 0.7⋅257+0.3⋅53=2.5+0.5=30.7\cdot\tfrac{25}{7}+0.3\cdot\tfrac{5}{3}=2.5+0.5=3.


Key Results

  • E[Y∣A]=E[Y𝟙1A]/P(A)\mathbb{E}[Y\mid A]=\mathbb{E}[Y\indicator_A]/\mathbb{P}(A).
  • For constants a,ba,b and integrable Y,ZY,Z, E[aY+bZ∣A]=aE[Y∣A]+bE[Z∣A]\mathbb{E}[aY+bZ\mid A]=a\mathbb{E}[Y\mid A]+b\mathbb{E}[Z\mid A].

Examples

  • For a fair die conditioned to be even, the mean is (2+4+6)/3=4(2+4+6)/3=4.
  • For Y∼Unif⁡(0,1)Y\sim\operatorname{Unif}(0,1) conditioned on Y>1/2Y>1/2, the mean is ∫1/212y dy=3/4\int_{1/2}^12y\,\mathrm{d}y=3/4.

Prerequisites

Sources

Aliases: conditional mean given an event Keywords: expected value given information, Conditional Expectation Symbols: integral, real numbers, sum

Last updated: 20 October 2026 03:02