Answer: 4.24 : 4.26
The expected value E[X] of a discrete random variable X is defined as:
E[X]=x∑x⋅Pr(X=x)
We are given the probability distribution of X over the set {1,2,3,4,5,6,7,8}:
- For x∈{1,2,5,7}, Pr(X=x)=61
- For x∈{3,4,6,8}, Pr(X=x)=121
Let us compute the contribution of each group to the expectation:
- Group 1: x∈{1,2,5,7}
x∈{1,2,5,7}∑x⋅Pr(X=x)=(1+2+5+7)×61=15×61=2.5
- Group 2: x∈{3,4,6,8}
x∈{3,4,6,8}∑x⋅Pr(X=x)=(3+4+6+8)×121=21×121=1.75
Adding the two contributions gives the total expected value:
E[X]=2.5+1.75=4.25
Thus, the expected value of X is 4.25.