Worked solution
Part (a): Finding the unknown constant
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.5+3p+2p+0.1=1
Combine the known probabilities and the p-terms:
0.6+5p=1
Solve for p:
5p=1−0.6=0.4⟹p=50.4=0.08
So P(X=1)=3p=3(0.08)=0.24 and P(X=2)=2p=2(0.08)=0.16.
Check: 0.5+0.24+0.16+0.1=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.5)+1(0.24)+2(0.16)+3(0.1)
=0+0.24+0.32+0.3=0.86
Part (c): Finding Var(X)
First find E(X2)=∑x2P(X=x):
E(X2)=02(0.5)+12(0.24)+22(0.16)+32(0.1)
=0(0.5)+1(0.24)+4(0.16)+9(0.1)
=0+0.24+0.64+0.9=1.78
Then apply Var(X)=E(X2)−[E(X)]2:
Var(X)=1.78−(0.86)2=1.78−0.7396=1.0404
Check by the direct definition: Var(X)=∑(x−E(X))2P(X=x)
=(0−0.86)2(0.5)+(1−0.86)2(0.24)+(2−0.86)2(0.16)+(3−0.86)2(0.1)
=(0.7396)(0.5)+(0.0196)(0.24)+(1.2996)(0.16)+(4.5796)(0.1)
=0.3698+0.004704+0.207936+0.45796=1.0404
which agrees exactly with the value found above.
Final answers
- (a) p=0.08
- (b) E(X)=0.86
- (c) Var(X)=1.0404