I'm interested in the following question:
Given only the cumulative distribution function $F(x)$ of a mixed random variable $X$, how does one proceed to calculate the expectation $E(X)$?
By mixed I mean a variable which is neither continuous nor discrete. For example, the cdf could be:$$F(x)=\begin{cases}0&,x\in(-\infty,-1)\\ \frac13+\frac x3&,x\in [-1,0)\\ \frac12+\frac x3&,x\in [0,1)\\ 1&,x\in [1,+\infty) \end{cases},$$ though it could be more complicated. Note that it isn't piecewise constant, nor continuous (there's a jump at $x=0$ for example).
If $X$ was absolutely continuous, I guess the simplest approach would be to take the derivative of $F$ to get the density and then integrate for the expectation.
If it was discrete, one could easily find the distribution law from the cdf itself, by seeing the size and location of jumps and then take the weighted sum for expectation.
However, I don't have an idea how to go about calculating the expectation of a mixed variable.
I should note that I'm not looking for the solution for the above example specifically, but a general method for solving the question at the top of the post.