Show that the moment generating function of a uniform random variable Uniform(a,b) with probability density function
Px (x) = 1/(b-a) for a ≤ x ≤ b, otherwise 0,
is given by
Mx (t) = (e^(bt) - e^(at))/(t(b-a)).
[6]
Show that the first moment (i.e. the expected value) of a uniform random variable Uniform(a,b) is given by
E[X] = (a + b)/2,
and that the variance of uniform random variable X is given by (b-a)^2/12.
Uniform(a, b), denoted as U(a, b).
[10]