PDA

View Full Version : Sampling of a gaussian distribution


matteo86bo
Aug22-11, 12:20 PM
I have a 3d data cube. For every point I measure the property A which is a gaussian variable of mean m and variance s and it's also a function of the density d at every point.


A(x,y,z)=f(d(x,y,z))e^(-(X-m)^2/(2\sigma^2))



X is a random number.

Now let's say I want to sample the distribution. I mean, I divide my 3d cube in boxes of size delta X.

What happen to the function f?

mathman
Aug22-11, 04:17 PM
I'll assume the points are chosen from a Gaussian. If this is a Monte Carlo simulation, then to get an estimate for A, evaluate f.