I read that $E[X\mid X = x] =x$ but I don't get that when I try to prove it: \begin{align} E[X\mid X = x] &= \sum x P(X=x|X=x) \\ &= \sum x \frac{P(X=x,X=x)}{P(X=x)} \\ &= \sum x \frac{P(X=x)}{P(X=x)} \\ &= \sum x \\ \end{align} So what am I doing wrong?
2026-04-18 18:02:02.1776535322
How to show $E[X\mid X = x] =x$?
250 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
3
You are using $x$ for two different purposes: as a free variable and as a bound variable (index). The more correct solution (at least for a discrete random variable), using $x$ as a free variable and another variable ($y$) as a bound variable:
$$ \begin{align} E[X|X = x] &= \sum_y y P(X=y|X=x) \\ &= \sum_{y\ne x} y \frac{P(X=y,X=x)}{P(X=x)} + x \frac{P(X=x,X=x)}{P(X=x)}\text{ (split out }y=x\text{ from }y\ne x\text{)} \\ &= x\frac{P(X=x)}{P(X=x)}\text{ (all terms in the sum above are zero)} \\ &= x \\ \end{align} $$