Conditional Expectation, is this true?

45 Views Asked by At

I'd like to know if this statement is true:

$$ \mathbb{E}[f(X)|X\in A] = \int f(X) \mathbb{I}_{(X\in A)} dP $$

for any $f(X)$ and $X$ random variables and $A\subset\mathbb{R}$.

1

There are 1 best solutions below

2
On BEST ANSWER

It's not true; just take $A$ to be an event with probability zero.

For example consider $X \sim U[0, 1]$, $f = \text{id}_\mathbb{R}$ and $A = \{\frac{1}{2}\}$. Then the left-hand side is $\frac{1}{2}$ and the right-hand side is zero.