I'm having a bit of a hard time forming an answer to a problem.
Let: $$X \sim U(0,1),\ \ Y|X=x \sim Bin(10,x)$$
When I was asked to find the conditional expectation of $Y$ that was a piece of cake, using the Law of total expectation:
$$\mathbb{E}[Y|X=x] = 10x \to \mathbb{E}[Y] = \mathbb{E}_x\Big[\mathbb{E}_Y[Y|X=x]\Big]=\mathbb{E}_X[10x]=5$$
But now I'm asked to calculate $$Var(X|Y=3)$$
I tried something like: $$\mathbb{E}[X^2|Y=3]-(\mathbb{E}[X|Y=3])^2$$
I'm still having some difficulty to convert it to something with Bayes' theoreme...
My problem is to express $\mathbb{P}(X=x|Y=3)$ or $\mathbb{P}(X=x\cap Y=3)$ since one is discrete and one is continuous.
Any direction of how to preceed would be appreciated.
Hint:
$$f_{X|Y}(x|y)=\frac{P(Y=y|X=x)f_X(x)}{P(Y=y)}$$
for $y=0,1,\ldots,10$
and:
$$P(Y=y)=\int P(Y=y|X=x)f_X(x)\,dx$$