Here is another excellent solution from Andrei at Tudor Vianu National College, Romania:



We have the probability distribution:
ρ(x)= 2 27 (6+x- x2 )

for {0x3}.

The mean of this distribution is m, where
m= 0 3 xρ(x)dx.

Thus
m= 2 27 0 3 x (6+x- x2 )dx= 2 27 0 3 (6x+ x2 - x3 )dx,

hence
m= 2 27 [3 x2 + x3 /3- x4 /4 ]0 3 = 2 27 [27+9-81/4]= 7 6 .

To calculate the median t of the distribution I must have:
Prob{0Xt}=Prob{tX3}.

But the total probability is 1, so each of the two probabilities is 0.5. Then I have to solve the equation
0 t ρ(x)dx= 1 2

which gives:
2 27 0 t (6+x- x2 )dx= 1 2 .

I obtain the following equation
4 t3 -6 t2 -72t+81=0

which has the solutions:
t1 = 9 2 , t2 = 3 2 (-1-3), 3 2 (-1+3).

The only solution in the interval [0,3] is t3 which is approximately 1.098.

In a discrete distribution the mode is the value that occurs most frequently. In a continuous distribution it is the value where the probability density function takes its maximum value. To find this maximum I shall calculate the derivative ρ'(x) and then ρ''(x):
ρ'(x)= 2 27 (1-2x)


ρ''(x)= -4 27 .

As the second derivative is negative the function has indeed a maximum. The maximum value of ρ occurs at x=1/2 so the mode is 1/2.