The formula for the expected value is given by:
$$E(X) = \int_{-\infty}^{\infty} x f(x) dx$$
where f(x) is the probability density function. In this case, f(x) = $\frac{1}{18}x$ for $0 \leq x \leq 6$ and 0 otherwise. So, we need to evaluate the integral from 0
Show more…