0

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.

TomDavies92
  • 1,215
  • 3
  • 13
  • 24

1 Answers1

2

Here is my calculation done two ways

$$ \sum x_k p_k = 0.8 ~~~ \hbox{and}~~~ \sum x_k^2 p_k = 3.2, ~~~ 3.2-0.8^2 = 2.56 $$

The other way is $$ \sum (x_k-0.8)^2 p_k = 2.56 $$

Sorry for using the decimal point instead of the comma!

user44197
  • 9,730