The expected value E[X] of a discrete random variable X is defined as:
E[X]=x∑x⋅Pr(X=x) Partition the values according to their given probabilities:
For values x∈{1,2,5,7}, each has probability 61:
x∈{1,2,5,7}∑x⋅61=(1+2+5+7)×61=15×61=615=2.5 For values x∈{3,4,6,8}, each has probability 121:
x∈{3,4,6,8}∑x⋅121=(3+4+6+8)×121=21×121=1221=1.75 Summing these contributions:
E[X]=2.5+1.75=4.25 Thus, E[X]=4.25.