Skip to content
Prev 58995 / 398502 Next

density estimation: compute sum(value * probability) for given distribution

bogdan romocea wrote:
I don't get the point. You are estimating using a gaussian kernel.
Hint: What's the probability to get x=0 for a N(0,1) distribution?
So sum(values*probabilities) is zero!

 > The
and could also sum to, e.g., 783453.9, depending on the number of 
observations and the estimated parameters of the desnity ...
No. den$x is a point where the density function is equal to den$y, but 
den$y is not the probability to get den$x (you know, the stuff with 
intervals)! I fear you are mixing theory from discrete with continuous 
distributions.

Uwe Ligges