You enteredX∈{0, 1, 2}
E(X)=1 Standard deviation
0.707107 Show the work
- 1
Expected value
The expected value is the long-run average: each value x is weighted by its probability P(x) and the results are added.
E(X)=∑xP(x)=0×0.25+1×0.5+2×0.25=0+0.5+0.5=1 - 2
Mean of the squares
The variance needs the average of the squared values, found in the same way with x2 in place of x.
E(X2)=∑x2P(x)=0×0.25+1×0.5+4×0.25=0+0.5+1=1.5 - 3
Variance
The variance measures the spread: the mean of the squares less the square of the mean. Here E(X)=1 and E(X2)=1.5.
Var(X)=E(X2)−(E(X))2=1.5−(1)2=1.5−1=0.5 - 4
Standard deviation
The standard deviation is the square root of the variance, which puts the spread back in the units of X.
σ=Var(X)=0.5≈0.707107 - 5
Result
So E(X)=1 and Var(X)=0.5.