Just a thought that I had recently. Suppose given discrete data points for a random variable, could one numerically generate the probability function values at these discrete values? I tried looking into this subject but I couldn't find this subject in numerical analysis. I was interested in this for approximating expected values, standard deviations, etc.
Maybe someone has encountered this subject before. Thank you.