4 A random variable \(X\) has probability density function given by
$$f ( x ) = \begin{cases} \frac { 1 } { 2 } x & 0 \leqslant x \leqslant a
0 & \text { otherwise } \end{cases}$$
where \(a\) is a constant.
- Find \(a\).
- Show that \(\mathrm { E } ( X ) = \frac { 4 } { 3 }\).
The median of \(X\) is denoted by \(m\). - Find \(\mathrm { P } ( \mathrm { E } ( X ) < X < m )\).