Discrete Random Variables: Question 2

Syllabus 5.4

Structured AS 7 marks

A small class is surveyed, and the random variable XX represents the number of pets owned by a randomly chosen student from the class. The probability distribution of XX is shown in the table below, where kk is a constant.

xx 0 1 2 3
P(X=x)P(X=x) 0.20.2 0.350.35 0.30.3 kk

(a) Find the value of kk. [2]

(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 probability

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.2+0.35+0.3+k=10.2+0.35+0.3+k=1

Adding the known probabilities: 0.2+0.35+0.3=0.850.2+0.35+0.3=0.85

So 0.85+k=1    k=10.85=0.150.85+k=1 \implies k=1-0.85=0.15

Check: 0.2+0.35+0.3+0.15=1.000.2+0.35+0.3+0.15=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.2)+1(0.35)+2(0.3)+3(0.15)E(X)=\sum xP(X=x) = 0(0.2)+1(0.35)+2(0.3)+3(0.15) =0+0.35+0.6+0.45=1.4=0+0.35+0.6+0.45=1.4

Part (c): Finding Var(X)

First find E(X2)=x2P(X=x)E(X^2)=\sum x^2P(X=x): E(X2)=02(0.2)+12(0.35)+22(0.3)+32(0.15)E(X^2)=0^2(0.2)+1^2(0.35)+2^2(0.3)+3^2(0.15) =0(0.2)+1(0.35)+4(0.3)+9(0.15)=0(0.2)+1(0.35)+4(0.3)+9(0.15) =0+0.35+1.2+1.35=2.9=0+0.35+1.2+1.35=2.9

Then apply Var(X)=E(X2)[E(X)]2\mathrm{Var}(X)=E(X^2)-\bigl[E(X)\bigr]^2: Var(X)=2.9(1.4)2=2.91.96=0.94\mathrm{Var}(X)=2.9-(1.4)^2=2.9-1.96=0.94

Check by the direct definition: Var(X)=(xE(X))2P(X=x)\mathrm{Var}(X)=\sum (x-E(X))^2P(X=x) =(01.4)2(0.2)+(11.4)2(0.35)+(21.4)2(0.3)+(31.4)2(0.15)=(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)=(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=0.392+0.056+0.108+0.384=0.94 which agrees exactly with the value found above.

Final answers

  • (a) k=0.15k=\boxed{0.15}
  • (b) E(X)=1.4E(X)=\boxed{1.4}
  • (c) Var(X)=0.94\mathrm{Var}(X)=\boxed{0.94}