Suppose $X$ and $Y$ are discrete random variables. Show that $$E(X \mid Y)=E(X \mid Y^3).$$
The conditional expected value of a discrete random variable is expressed as $$E(X \mid Y)=\sum xp_{X \mid Y}(x \mid y),$$ where$$p_{X \mid Y}(x \mid y)=\frac{p_{X,Y}(x,y)}{p_Y(y)}.$$
Similarly, you can say that $$E(X \mid Y^3)=\sum x p_{X \mid Y^3}(x \mid y^3),$$ where$$p_{X \mid Y^3}(x \mid y^3)=\frac{p_{X,Y^3}(x,y^3)}{p_{Y^3}(y^3)}.$$
The goal is to show that
$$\sum xp_{X \mid Y}(x \mid y)=\sum xp_{X \mid Y^3}(x \mid y^3).$$
From here I don't really know how to show that the two are equal, some help would be appreciated.
Let $S$ denote the sample space. Notice that both $\mathbb{E}(X|Y):S\rightarrow \mathbb{R}$ and $\mathbb{E}(X|Y^3):S\rightarrow \mathbb{R}$ are random variables, and the following holds:
$\mathbb{E}(X|Y)(s) = \mathbb{E}(X|Y = Y(s)) = \mathbb{E}(X|Y^3 = (Y(s))^3) = \mathbb{E}(X|Y^3 = Y^3(s))= \mathbb{E}(X|Y^3)(s)$
for all $s\in S$.
Therefore, $\mathbb{E}(X|Y)= \mathbb{E}(X|Y^3)$.