I know how to calculate $E[Y|X=x]$ from knowing how to calculate $P(Y|X=x)$.
What I don't understand is the meaning of $P(Y=y|X)$. Wouldn't be $P(X)$ = 1 since it is taken over the entire random variable? Or is it constraining X to some implicit set like $x_1 < X < x_2$, so you can then apply Bayes' theorem?
I have seen people suggest calculating $E[Y|X] = \int y p(y|X) dy$ which I don't understand.
My understanding on calculating $\text{Var}(E[Y|X)$ as it stands is calculating $E[Y|X=x]$ and then marginalizing over X for the variance part, but I think I am missing something when it comes to $P(y|X)$ or going from $E[Y|X]$ to $\text{Var}(E[Y|X)$.