# Conditional Expectation

This result isn't in our book, but it is in my notes and I want to make sure it's correct. Please verify if you can.

## Homework Statement

I have two I.I.D random variables. I want the conditional expectation of Y given Y is less than some other independent random variable Z.

$$E(Y \, \vert \, Y < z) = \dfrac{\int_0^{z} y \cdot f(y) \, dy}{F(z)}$$

Where f(y) is the pdf of Y and F(z) is the cdf for Z

## The Attempt at a Solution

I've searched the book and the web, but all I find is the formula for conditional expectation for $$E(X | Y = y)$$ for joint distributions and the like. Is my formula correct?

You know that $$\mathbb{E}[X|Y]=\frac{\mathbb{E}[X \mathbf{1}_Y]}{\mathbb{P}(Y)}$$ so your formula looks correct.

Last edited:
Homework Helper
Think this way: if you know $$Y \le z$$, then the truncated distribution has density

$$g(y \mid Y \le z) = \frac{f(y)}{F(z)}$$

so the expectation is

$$\int_0^z y g(y \mid Y \le z) \, dy = \frac{\int_0^z y f(y) \, dy}{F(z)}$$

exactly as you have it.