Let $X$ be a random variable with Cantor distribution. Find $\mathbb{E} \sin(X)$.
I thought about representing
$$X = \sum \frac{X_i}{3^i}$$
where $X_{i} \in \{0, 2\}$, but I guess it's not easy to compute the sine of a sum of random variables.
Maybe it's better to compute via the definition? Any hints?
You are most probably asked for an exact formula and, as mentioned in a comment on main, the procedure to find it is indeed standard and based on characteristic functions as follows.
First, by definition, $X=\sum\limits_{n\geqslant1}X_n/3^n$ where $(X_n)$ is i.i.d. uniform on $\{0,2\}$, hence, for every real number $t$, $$E(e^{itX})=\prod\limits_{n\geqslant1}E(e^{itX_n/3^n})=\prod\limits_{n\geqslant1}\frac{1+e^{2it/3^n}}2=\prod\limits_{n\geqslant1}\left(e^{it/3^n}\cos(t/3^n)\right)$$ that is, $$E(e^{itX})=e^{it/2}\prod\limits_{n\geqslant1}\cos(t/3^n)$$ In particular, for $t=1$, $$E(\sin X)=\Im\left( E(e^{iX})\right)=\sin(1/2)\prod\limits_{n\geqslant1}\cos(1/3^n)$$ As regards numerical approximations, keeping only $N$ terms in the product of cosines yields a value overestimating the complete product by about $1/(16\cdot9^N)$, thus one can suggest the approximations $E(\sin X)\approx e_N$ with $$e_N=\left(1-\frac1{16\cdot9^N}\right)\cdot\sin(1/2)\prod\limits_{n=1}^N\cos(1/3^n)$$ One gets $$e_1=0.449890406\qquad e_2=0.449895438$$ $$e_3=0.449895499\qquad e_4=0.449895500$$ and $$E(\sin X)=0.449895500$$