Let $X,Y$ be independent random variables. $X$ has uniform distribution on $[0,1]$ and $Y$ has uniform distribution on $\{0,1\}$. Find $E\left(X^{Y}\mid X\right)$ and $E\left(X^{Y}\mid Y\right)$.
Both $E\left(X^{Y}\mid X\right)$ and $E\left(X^{Y}\mid Y\right)$ are random variables. My questions are:
- is $X^{Y}$ measurable on $\sigma-$algebra generated by $X$ and
- is $E\left(X^{Y}\mid Y\right)$ a discrete random variable?