Discrete Random Variables: Question 10

Syllabus 5.4

Structured AS 8 marks

In a mock driving test, the random variable XX represents the number of minor faults recorded for a randomly chosen candidate, where XX can take the values 00, 11, 22 or 33. The probability distribution of XX is shown in the table below, where pp is a constant.

xx 0 1 2 3
P(X=x)P(X=x) 0.50.5 3p3p 2p2p 0.10.1

(a) Find the value of pp. [3]

(b) Find E(X)E(X). [2]

(c) Find Var(X)\mathrm{Var}(X). [3]

Show worked solution Hide worked solution

Worked solution

Part (a): Finding the unknown constant

Since XX is a discrete random variable, all of its probabilities must sum to 11: P(X=0)+P(X=1)+P(X=2)+P(X=3)=1P(X=0)+P(X=1)+P(X=2)+P(X=3)=1 0.5+3p+2p+0.1=10.5+3p+2p+0.1=1

Combine the known probabilities and the pp-terms: 0.6+5p=10.6+5p=1

Solve for pp: 5p=10.6=0.4    p=0.45=0.085p=1-0.6=0.4 \implies p=\frac{0.4}{5}=0.08

So P(X=1)=3p=3(0.08)=0.24P(X=1)=3p=3(0.08)=0.24 and P(X=2)=2p=2(0.08)=0.16P(X=2)=2p=2(0.08)=0.16.

Check: 0.5+0.24+0.16+0.1=1.000.5+0.24+0.16+0.1=1.00 ✓, and every value lies between 00 and 11, 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)E(X)=\sum xP(X=x)=0(0.5)+1(0.24)+2(0.16)+3(0.1) =0+0.24+0.32+0.3=0.86=0+0.24+0.32+0.3=0.86

Part (c): Finding Var(X)

First find E(X2)=x2P(X=x)E(X^2)=\sum x^2P(X=x): E(X2)=02(0.5)+12(0.24)+22(0.16)+32(0.1)E(X^2)=0^2(0.5)+1^2(0.24)+2^2(0.16)+3^2(0.1) =0(0.5)+1(0.24)+4(0.16)+9(0.1)=0(0.5)+1(0.24)+4(0.16)+9(0.1) =0+0.24+0.64+0.9=1.78=0+0.24+0.64+0.9=1.78

Then apply Var(X)=E(X2)[E(X)]2\mathrm{Var}(X)=E(X^2)-\bigl[E(X)\bigr]^2: Var(X)=1.78(0.86)2=1.780.7396=1.0404\mathrm{Var}(X)=1.78-(0.86)^2=1.78-0.7396=1.0404

Check by the direct definition: Var(X)=(xE(X))2P(X=x)\mathrm{Var}(X)=\sum(x-E(X))^2P(X=x) =(00.86)2(0.5)+(10.86)2(0.24)+(20.86)2(0.16)+(30.86)2(0.1)=(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.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=0.3698+0.004704+0.207936+0.45796=1.0404 which agrees exactly with the value found above.

Final answers

  • (a) p=0.08p=\boxed{0.08}
  • (b) E(X)=0.86E(X)=\boxed{0.86}
  • (c) Var(X)=1.0404\mathrm{Var}(X)=\boxed{1.0404}