The expectation of $X$ is given by the integral of $x$ times the probability density function. So, we have:
$$E(X) = \int_{2}^{6} x \cdot f(x) \, dx = \int_{2}^{6} x \cdot \frac{1}{4} \, dx = \frac{1}{4} \int_{2}^{6} x \, dx = \frac{1}{4} \cdot
Show more…