I have this random variable $X$, that has its values in $\{0,1,2,...,2n\}$.
It is known that $P(X = n-i) = P(X = n+i)$ for any $i$, $i \in [1,n]$.
How should I calculate the expected value of the random variable?
The correct result is $n$.
I have this random variable $X$, that has its values in $\{0,1,2,...,2n\}$.
It is known that $P(X = n-i) = P(X = n+i)$ for any $i$, $i \in [1,n]$.
How should I calculate the expected value of the random variable?
The correct result is $n$.
It becomes more clear if you instead consider the expected value of $Y = X-n$. You then have $P(Y = -i) = P(Y = i)$. The contributions to the expected value from $\pm i$ will cancel out exactly, leaving $E(Y) = 0$. And thus $E(X) = n$.