Skip to content

9709 · 5.4

Discrete random variables — practice questions

Practice and worked examples for 9709 Discrete random variables. Short previews only — attempt the full question in MarkScheme against the official scheme.

Worked example 1

A biased four-sided die has scores 1, 2, 3, and 4. The probability distribution of the score, XX, is given in the table. The probability of scoring a 2 is twice the probability of scoring a 1.

x1234
P(X=x)p2p0.40.1

(i) Find the value of pp. (ii) Find E(X)E(X).

Show solution outline

(i) The sum of probabilities must be 1. P(X=x)=1\sum P(X=x) = 1 p+2p+0.4+0.1=1p + 2p + 0.4 + 0.1 = 1 3p+0.5=13p + 0.5 = 1 3p=0.53p = 0.5 p=0.53=16p = \frac{0.5}{3} = \frac{1}{6}

So, the probabilities are P(X=1)=16P(X=1) = \frac{1}{6} and P(X=2)=2×16=13P(X=2) = 2 \times \frac{1}{6} = \frac{1}{3}.

(ii) To find the expectation, E(X)E(X), we use the formula E(X)=xP(X=x)E(X) = \sum x P(X=x). E(X)=(1×P(X=1))+(2×P(X=2))+(3×P(X=3))+(4×P(X=4))E(X) = (1 \times P(X=1)) + (2 \times P(X=2)) + (3 \times P(X=3)) + (4 \times P(X=4)) E(X)=(1×16)+(2×13)+(3×0.4)+(4×0.1)E(X) = (1 \times \frac{1}{6}) + (2 \times \frac{1}{3}) + (3 \times 0.4) + (4 \times 0.1) E(X)=16+23+1.2+0.4E(X) = \frac{1}{6} + \frac{2}{3} + 1.2 + 0.4 E(X)=16+46+1.6=56+1.6E(X) = \frac{1}{6} + \frac{4}{6} + 1.6 = \frac{5}{6} + 1.6 E(X)=0.8333...+1.6=2.4333...E(X) = 0.8333... + 1.6 = 2.4333... As an exact fraction: E(X)=56+1610=56+85=25+4830=7330E(X) = \frac{5}{6} + \frac{16}{10} = \frac{5}{6} + \frac{8}{5} = \frac{25+48}{30} = \frac{73}{30}. So, E(X)=7330E(X) = \frac{73}{30} (or 2.43 to 3 s.f.).

Worked example 2

A discrete random variable YY has the following probability distribution:

y0123
P(Y=y)0.10.30.40.2

(i) Find E(Y)E(Y) and Var(Y)Var(Y). (ii) A new random variable ZZ is defined as Z=5Y2Z = 5Y - 2. Find E(Z)E(Z) and Var(Z)Var(Z).

Show solution outline

(i) First, calculate E(Y)E(Y). E(Y)=yP(Y=y)E(Y) = \sum y P(Y=y) E(Y)=(0×0.1)+(1×0.3)+(2×0.4)+(3×0.2)E(Y) = (0 \times 0.1) + (1 \times 0.3) + (2 \times 0.4) + (3 \times 0.2) E(Y)=0+0.3+0.8+0.6=1.7E(Y) = 0 + 0.3 + 0.8 + 0.6 = 1.7

Next, to find Var(Y)Var(Y), we first need E(Y2)E(Y^2). E(Y2)=y2P(Y=y)E(Y^2) = \sum y^2 P(Y=y) E(Y2)=(02×0.1)+(12×0.3)+(22×0.4)+(32×0.2)E(Y^2) = (0^2 \times 0.1) + (1^2 \times 0.3) + (2^2 \times 0.4) + (3^2 \times 0.2) E(Y2)=(0×0.1)+(1×0.3)+(4×0.4)+(9×0.2)E(Y^2) = (0 \times 0.1) + (1 \times 0.3) + (4 \times 0.4) + (9 \times 0.2) E(Y2)=0+0.3+1.6+1.8=3.7E(Y^2) = 0 + 0.3 + 1.6 + 1.8 = 3.7

Now use the variance formula: Var(Y)=E(Y2)[E(Y)]2Var(Y) = E(Y^2) - [E(Y)]^2. Var(Y)=3.7(1.7)2Var(Y) = 3.7 - (1.7)^2 Var(Y)=3.72.89=0.81Var(Y) = 3.7 - 2.89 = 0.81

(ii) We use the rules for linear transformations. Given Z=5Y2Z = 5Y - 2, we have a=5a=5 and b=2b=-2.

For expectation: E(Z)=E(5Y2)=5E(Y)2E(Z) = E(5Y - 2) = 5E(Y) - 2. E(Z)=5(1.7)2=8.52=6.5E(Z) = 5(1.7) - 2 = 8.5 - 2 = 6.5

For variance: Var(Z)=Var(5Y2)=52Var(Y)Var(Z) = Var(5Y - 2) = 5^2 Var(Y). Var(Z)=25×Var(Y)=25×0.81Var(Z) = 25 \times Var(Y) = 25 \times 0.81 Var(Z)=20.25Var(Z) = 20.25