Conditional expectation of Bernoulli random variable

415 Views Asked by At

how can I prove that for $X$ and $Y$ random variables we have that $$ \mathbb{E}[X \vert Y] = P(X = 1 \vert Y) $$ if $X$ is a Bernoulli random variable?

1

There are 1 best solutions below

0
On

$E(X|Y)=(0)P(X=0|Y)+(1)P(X=1|Y)=P(X=1|Y)$