The cdf of the number of hours it takes a consultant to complete a project is given by $F(x)= \dfrac{x^2}{16}$ for o to 4. The consultant bills $300 per hour, rounded up to the nearest half hour, for the project. What is the expected amount of the total bill?
(a)900
(b)800
(c)872
(d)950
(e)1100
My work:
$f(x)= \dfrac{dF(x)}{dx}$
$f(x)=\dfrac{x}{8}$
so
integral of $x^2/8$ from 0 to 4 = $x^3/24$ from 0 to 4 = 64/24 = 2.6667
round 2.6667 to nearest half hour is 2.5
so
2.5*300 = 800
But that's wrong; the answer to the question is 872.
Can I please have help understanding why my method is incorrect, so I can try another method while understanding why my last attempt was incorrect.
Because it gets rounded up to the nearest half hour, the expected fee is simply
$$$150\left(\frac{0.5^2}{16}-\frac{0^2}{16}\right)+$300\left(\frac{1^2}{16}-\frac{0.5^2}{16}\right)+\cdots+$1200\left(\frac{4^2}{16}-\frac{3.5^2}{16}\right)$$
(the probability it lands in each half hour multiplied by the amount received in that half hour)
which is just $$$1200-$150\left(\frac{3.5^2}{16}+\cdots+\frac{0.5^2}{16}+\frac{0^2}{16}\right)=$871.875\approx$872$$