Julian C. answered 05/04/20
Math Master's Graduate and Software Engineer for Math/CS Tutoring
I'm assuming that the random variable X in the problem is continuous. Recall that expected value of
a continuous random variable is given by:
E[X] = ∫–∞∞ xf(x)dx
where f(x) is the density of the cumulative distribution function of X.
In particular, if the density function is defined to be f(x) = 2x if 0≤x≤, and 0 otherwise, then:
E[X] = ∫–∞∞ xf(x)dx = ∫01 x(2x)dx = ∫01 2x2dx = 2(1)3 / 3 - 2(0)3 / 3 = 2/3.