If the range of X is the set {0,1,2,3,4,5,6,7,8} and P(X=x) as defined in the following table:
x 0 1 2 3 4 5 6 7 8
P(X=x) 0.06528 0.3870 0.03062 0.0968 0.06913 0.0968 0.04846 0.01252 0.1935
Determine the mean and variance of the random variable.
(a) mean
(b) variance