Re: distance between points from 2d normal distribution



Hi,
Actually the way I did it was:

D^2 = X^2 + Y^2

For my case, the pdf's for X^2 and Y^2 are identical, both:

p(x)= 1/(2*sigma*sqrt(pi)) * exp(-x^2/(4*sigma^2))

In other words std = sqrt(2)*sigma (variance is 2*sigma^2) and then I
used the formula for chi-square distribution of order 2 to get

f(x) = 1/(4*sigma^2) * exp(-x / (4*sigma^2))

But this is the distribution for D^2 isn't it? Do I need to take
positive square root? The thing is, when I plot f(x) I get a
negative exponential curve (obviously) but a simulation for distances
is clearly not that shape. You can compare the simulations in
matlab:

For D^2:

hist((randn(1,5000000) - randn(1,5000000)).^2 + (randn(1,5000000) -
randn(1,5000000)).^2, 250);

For D:

hist(sqrt((randn(1,5000000) - randn(1,5000000)).^2 +
(randn(1,5000000) - randn(1,5000000)).^2) , 250)

My desire is to analytically get the distribution for the latter, but
I don't know how to manipulate pdfs! Sorry for more troubling, but
any more direction would be of great help!

Many thanks,
Jeff
.



Relevant Pages

  • Re: regression assumptions are violated, what next?
    ... simulation) will be something like: ... where 'err' should come from residuals distribution. ... and about 12 outliers in that range; ...
    (sci.stat.math)
  • Re: Testing for product of Gaussians
    ... >I have a value created by a computer simulation. ... test against the computed Bessel function distribution will ... I know the answer to the diffusion equation, ... are those of the Statistics Department or of Purdue University. ...
    (sci.math)
  • Re: HCP distribution in a 2NT opener
    ... >> According to the known distribution of HCPs given by Rik and Pavlieck, ... >> much attention to various simulation programs. ... I was able to get the exact percentages ...
    (rec.games.bridge)
  • avg(Randomize, reorder, subtract adjacent)?
    ... All variables have the same distribution. ... The problem is this: I need to randomize N of them, sort them from the smallest to the highest, repeat the process endless times to obtain an infinite number of sorted lists, then calculate the average, across all the lists, of the ith variable minus the th variable. ... not with a monte carlo simulation. ...
    (sci.stat.math)
  • How to show 2 MAX values in a list
    ... spreadsheet with the aim of recording the distribution of the critical ... My problem is that in some cases, when the simulation is performed, ... PS Should require a spreadsheet to assist you in helping me I would be ...
    (microsoft.public.excel.misc)