Skip to content

9231 · 4.1

Continuous random variables — practice questions

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

Worked example 1

A continuous random variable XX has the probability density function given by f(x)={kx(4x)0x40otherwisef(x) = \begin{cases} kx(4-x) & 0 \le x \le 4 \\ 0 & \text{otherwise} \end{cases} (a) Show that k=332k = \frac{3}{32}. (b) Find P(1<X<3)P(1 < X < 3).

Show solution outline

(a) For f(x)f(x) to be a valid PDF, the total area under the curve must be 1. f(x)dx=04kx(4x)dx=1\int_{-\infty}^{\infty} f(x) \, dx = \int_{0}^{4} kx(4-x) \, dx = 1 k04(4xx2)dx=1k \int_{0}^{4} (4x - x^2) \, dx = 1 k[2x2x33]04=1k \left[ 2x^2 - \frac{x^3}{3} \right]_{0}^{4} = 1 k((2(42)433)(0))=1k \left( (2(4^2) - \frac{4^3}{3}) - (0) \right) = 1 k(32643)=1k \left( 32 - \frac{64}{3} \right) = 1 k(96643)=1k \left( \frac{96-64}{3} \right) = 1 k(323)=1k \left( \frac{32}{3} \right) = 1 k=332k = \frac{3}{32} [M1 for integration, A1 for correct value]

(b) Now we find the probability by integrating the PDF with k=332k=\frac{3}{32} over the interval (1,3)(1, 3). P(1<X<3)=13332x(4x)dxP(1 < X < 3) = \int_{1}^{3} \frac{3}{32}x(4-x) \, dx =33213(4xx2)dx= \frac{3}{32} \int_{1}^{3} (4x - x^2) \, dx =332[2x2x33]13= \frac{3}{32} \left[ 2x^2 - \frac{x^3}{3} \right]_{1}^{3} [M1 for setting up correct integral] =332((2(32)333)(2(12)133))= \frac{3}{32} \left( (2(3^2) - \frac{3^3}{3}) - (2(1^2) - \frac{1^3}{3}) \right) =332((189)(213))= \frac{3}{32} \left( (18 - 9) - (2 - \frac{1}{3}) \right) =332(953)= \frac{3}{32} \left( 9 - \frac{5}{3} \right) =332(2753)=332(223)= \frac{3}{32} \left( \frac{27-5}{3} \right) = \frac{3}{32} \left( \frac{22}{3} \right) =2232=1116= \frac{22}{32} = \frac{11}{16} [A1 for correct final answer]

Worked example 2

The lifetime, TT years, of a particular electronic component has PDF given by f(t)={14et4t00otherwisef(t) = \begin{cases} \frac{1}{4}e^{-\frac{t}{4}} & t \ge 0 \\ 0 & \text{otherwise} \end{cases} Find the mean lifetime, E(T)E(T), and the variance of the lifetime, Var(T)Var(T).

Show solution outline

First, we find the expectation, E(T)E(T). E(T)=0tf(t)dt=0t14et4dtE(T) = \int_{0}^{\infty} t f(t) \, dt = \int_{0}^{\infty} t \cdot \frac{1}{4}e^{-\frac{t}{4}} \, dt This requires integration by parts: udvdtdt=uvvdudtdt\int u \frac{dv}{dt} dt = uv - \int v \frac{du}{dt} dt. Let u=t    dudt=1u=t \implies \frac{du}{dt}=1. Let dvdt=14et4    v=et4\frac{dv}{dt}=\frac{1}{4}e^{-\frac{t}{4}} \implies v = -e^{-\frac{t}{4}}. [M1 for setting up correct integral and identifying integration by parts] E(T)=[tet4]00(et4)dtE(T) = \left[ -t e^{-\frac{t}{4}} \right]_{0}^{\infty} - \int_{0}^{\infty} (-e^{-\frac{t}{4}}) \, dt =[tet4]0+0et4dt= \left[ -t e^{-\frac{t}{4}} \right]_{0}^{\infty} + \int_{0}^{\infty} e^{-\frac{t}{4}} \, dt As tt \to \infty, tet40t e^{-\frac{t}{4}} \to 0. At t=0t=0, the term is 0. So the first part is 0. E(T)=[4et4]0=(0)(4e0)=4E(T) = \left[ -4e^{-\frac{t}{4}} \right]_{0}^{\infty} = (0) - (-4e^0) = 4. The mean lifetime is 4 years. [A1 for E(T)]

Next, we find E(T2)E(T^2) to calculate the variance. E(T2)=0t2f(t)dt=014t2et4dtE(T^2) = \int_{0}^{\infty} t^2 f(t) \, dt = \int_{0}^{\infty} \frac{1}{4}t^2 e^{-\frac{t}{4}} \, dt Again, use integration by parts. Let u=t2    dudt=2tu=t^2 \implies \frac{du}{dt}=2t. Let dvdt=14et4    v=et4\frac{dv}{dt}=\frac{1}{4}e^{-\frac{t}{4}} \implies v = -e^{-\frac{t}{4}}. [M1 for setting up E(T^2) integral] E(T2)=[t2et4]00(et4)(2t)dtE(T^2) = \left[ -t^2 e^{-\frac{t}{4}} \right]_{0}^{\infty} - \int_{0}^{\infty} (-e^{-\frac{t}{4}})(2t) \, dt The first term is 0. E(T2)=20tet4dt=8014tet4dtE(T^2) = 2 \int_{0}^{\infty} t e^{-\frac{t}{4}} \, dt = 8 \int_{0}^{\infty} \frac{1}{4} t e^{-\frac{t}{4}} \, dt We recognise the integral as E(T)E(T), which we found to be 4. E(T2)=8×E(T)=8×4=32E(T^2) = 8 \times E(T) = 8 \times 4 = 32. [A1 for E(T^2)]

Finally, calculate the variance. Var(T)=E(T2)[E(T)]2=3242=3216=16Var(T) = E(T^2) - [E(T)]^2 = 32 - 4^2 = 32 - 16 = 16. [M1 A1 for Var(T)] The variance of the lifetime is 16 years2^2.