Exercise. Claim sizes on an insurance policy have the following distribution:
$$F(x)=\begin{cases}0&x\le0\\0.0002x&0<x<1000\\0.4&x=1000\\1-0.6e^{(x-1000)/2000}&x>1000\end{cases}$$
Calculate the expected claim size.
A) 1500
B) 1700
C) 1900
D) 2100
E) 2300
Correct me if I'm wrong, but this is a mixed distribution because there is a jump (discontinuity) in $F(x) \space$ at $\space x=1000$.
I know one way of doing it would be to integrate the survival function. But why wouldn't taking the derivative and integrating $\space xf(x) \space$ in each interval plus the point mass at $1000$ work?
For example, when $\space 0<x<1000, \space$ then $\space f(x) = .0002,\space $ so integrating $\space .0002x \space$ from $0,1000$ would give $.0001(1000)^2 = 100$.
The point mass I believe should have a probability of $.2$, since that's the height of the jump in $\space F(x) \space$ at $\space x=1000,\space$ so $.2(1000)$ to take into account the point mass.
Then do the same for the last piece, though that might be hard to integrate $\space F'(x)\cdot x. \space$ But I ran though it with technology and it's nowhere close to the answer it should be for the overall expected value.
Using your method, I end up with $2100$, so (D).
I have to assume your error is somewhere in your last step that you didn't include.
An alternative method is to write your random variable $X$ as a sum of more basic ones: $$X = 0.2 \cdot U_{[0,1000]} + 0.2\cdot\delta_{1000} + 0.6\cdot (R_{1000}E_{2000})$$ where $U_{[a,b]}$ is uniform on $[a,b]$, $\delta_{c}$ is a point-mass at $x=c$, $E_\lambda$ is an exponential with mean $\lambda$, and $R_x$ right-shifts the distribution by $x$.
Then $$\begin{align*}\mathbb{E}[X] &= 0.2\mathbb{E}[U_{[0,1000]}] + 0.2\mathbb{E}[\delta_{1000}] + 0.6\left(\mathbb{E}[E_{2000}] + 1000\right) \\ &= 0.2(500) + 0.2(1000) + 0.6(2000+1000) \\ &= 2100 \end{align*}$$