I would like to get the probability distribution (either pdf or cdf) for a variable, by knowing the first n-moments of the distribution. I ask:
- Is there a standard way to deal with this, and maybe a python package?
- It is a matter of inverting the moment generating function or the characteristic function, that are expressed as series of moments. Is it legit to truncate these series to the first n-moments? When yes and when not?
- What if I don't know the exact moments, but I rather estimate them from data? Does the inversion process above work well with noisy data?