Why $\sum_yPr\left(Y=y|X=x\right)=1$?

26 Views Asked by At

While proving $E\left[E\left[X|Y\right]\right]=E[X]$ I saw use of this $$\sum_yP\left(Y=y|X=x\right)=1$$ but can't comprehend why is it so, please explain? I saw this on wikipedia page here

1

There are 1 best solutions below

0
On

Since $$\sum_yP\left(Y=y|X=x\right)=1\Longleftrightarrow\sum_yP\left(Y=y\wedge X=x\right)=P(X=x)$$