Worked solution
Part (a): Finding the unknown probability
Since X is a discrete random variable, all of its probabilities must sum to 1:
P(X=0)+P(X=1)+P(X=2)+P(X=3)=1
0.2+0.35+0.3+k=1
Adding the known probabilities:
0.2+0.35+0.3=0.85
So
0.85+k=1⟹k=1−0.85=0.15
Check: 0.2+0.35+0.3+0.15=1.00 ✓, and every value lies between 0 and 1, so this is a valid probability distribution.
Part (b): Finding E(X)
E(X)=∑xP(X=x)=0(0.2)+1(0.35)+2(0.3)+3(0.15)
=0+0.35+0.6+0.45=1.4
Part (c): Finding Var(X)
First find E(X2)=∑x2P(X=x):
E(X2)=02(0.2)+12(0.35)+22(0.3)+32(0.15)
=0(0.2)+1(0.35)+4(0.3)+9(0.15)
=0+0.35+1.2+1.35=2.9
Then apply Var(X)=E(X2)−[E(X)]2:
Var(X)=2.9−(1.4)2=2.9−1.96=0.94
Check by the direct definition: Var(X)=∑(x−E(X))2P(X=x)
=(0−1.4)2(0.2)+(1−1.4)2(0.35)+(2−1.4)2(0.3)+(3−1.4)2(0.15)
=(1.96)(0.2)+(0.16)(0.35)+(0.36)(0.3)+(2.56)(0.15)
=0.392+0.056+0.108+0.384=0.94
which agrees exactly with the value found above.
Final answers
- (a) k=0.15
- (b) E(X)=1.4
- (c) Var(X)=0.94