I want to use interpolation of a function as a PDF and be able to use tools like Mean, Probability, CDF and so on. I did the following:
f = Interpolation[data];
dist = ProbabilityDistribution[f[x], {x,0,1000}];
And for example when I try:
Mean[dist] //N
it just returns input. The same thing with other other functions.