2 A random variable \(X\) has probability density function given by
$$f ( x ) = \begin{cases} \frac { 2 } { 3 } x & 1 \leqslant x \leqslant 2
0 & \text { otherwise } \end{cases}$$
- Find \(\mathrm { E } ( X )\).
- Find \(\mathrm { P } ( X < \mathrm { E } ( X ) )\).
- Hence explain whether the mean of \(X\) is less than, equal to or greater than the median of \(X\).