The continuous random variable \(X\) has the following probability density function:
$$f(x) = \begin{cases}
\frac{1}{8}x, & 0 \leq x \leq 2, \\
\frac{1}{12}(6-x), & 2 \leq x \leq 6, \\
0, & \text{otherwise}.
\end{cases}$$
- Sketch \(f(x)\) for all values of \(x\). [4 marks]
- State the mode of \(X\). [1 mark]
- Define fully the cumulative distribution function \(F(x)\) of \(X\). [9 marks]
- Show that the median of \(X\) is 2.536, correct to 4 significant figures. [4 marks]