There's a random variable given:
$$\begin{array}{|c|c|} \hline \rm {X}_i & -2 & 0 & 2 & 4 \\ \hline \rm{p}_i & 0,1 & 0,5 & 0,3 & 0,1 \\\hline\end{array}$$
The variance I calculated is: 2.56 or 2.24 depending on what formula I use. This is weird and I want to verify.