The continuous random variable $X$ has probability density function $f(x)=k(4-x)$ for $0\le x\le4$, and $f(x)=0$ otherwise.
(a) Show that $k=\dfrac18$. [2]
(b) Find $E(X)$. [2]
(c) Find the median of $X$. [3]
(d) Find $P(X>3)$. [1]
- $\int_0^4k(4-x)\,dx=1$: $k\left[4x-\tfrac{x^2}2\right]_0^4=1$M1
- $k\left(16-8\right)=8k=1$, so $k=\dfrac18$ AGA1
- $E(X)=\int_0^4\dfrac{x(4-x)}8\,dx$ (limits required)M1
- $\dfrac43$A1
- Sets $\int_0^m\dfrac{4-x}8\,dx=\dfrac12$ (or $\int_m^4\dfrac{4-x}8\,dx=\dfrac12$)M1
- $\dfrac{4m-\tfrac12m^2}{8}=\dfrac12$, i.e. $m^2-8m+8=0$A1
- $m=4-2\sqrt2\ (\approx1.17)$, rejecting $4+2\sqrt2$ as it lies outside $0\le x\le4$A1
- $P(X>3)=\int_3^4\dfrac{4-x}8\,dx=\dfrac1{16}$ (accept $0.0625$)A1
- Answer: (a) $8k=1$ shown (b) $\tfrac43$ (c) $4-2\sqrt2\approx1.17$ (d) $\tfrac1{16}$
- Examiner tip: Reject the root of the median equation that lies outside the domain; and write the integral limits explicitly.