The expected value is given by the integral of x times the probability density function. For the given function, we have two different integrals to compute because the function is defined differently on the intervals [0,2] and (2,∞).
For the interval [0,2], the
Show more…