Article View: sci.math.num-analysis
Article #688Re: 2D random numbers
From: David Kastrup
Date: Thu, 01 Oct 1992 00:11
Date: Thu, 01 Oct 1992 00:11
33 lines
1955 bytes
1955 bytes
gfraenke@magnus.acs.ohio-state.edu (Gideon A Fraenkel) writes: >In article <3638.9209301031@rfsparc.essex.ac.uk> jenum@essex.ac.uk (Mohamed Jenu M Z) writes: >> >>Hi netters, >> >>Is it ok to generate a 2D Gaussian distribution (mean 0 and variance 1) >>pseudorandom numbers from a 1D pseudorandom numbers (Gaussian, mean 0, >>variance 1) by arranging them into rows and columns? Any advice is >>greatly appreciated. >> >>Jenu >> >>jenum@ossparc.essex.ac.uk >What about the 2D distribution is supposed to be Gaussian? If it's >the norm -- the distance from the origin -- , then the answer to your >question is no. In general, the distribution of a function f(x,y) is >calculated as > / > P(z) = | delta(z-f(x,y)) P(x)P(y) dxdy . > / >You can see that if x and y are Gaussian, then P(z) will be >proportional to z times a Gaussian, which among other things goes to >zero at the origin. A two-dimensional Gaussian has probability just like usual Gaussian: 1/(variance * sqrt(2pi)) exp(-(x-mean)^2/(2 variance^2)), only that mean and x are vectors, and their sqauring is a simple dot product. So you can use 1D Gaussians perfectly, since something like exp(-x^2-y^2) can be split into exp(-x^2)exp(-y^2) without problem. Apart from the post before being wrong (considering Gaussians definition), I do not understand it. Too bad.
Technical Details
Message-ID:
<dak.717898277@messua>Path:
arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!darwin.sura.net!Sirius.dfn.de!Urmel.Informatik.RWTH-Aachen.DE!messua!dakReferences:
<3638.9209301031@rfsparc.essex.ac.uk> <1992Sep30.130942.12022@magnus.acs.ohio-state.edu>Show Full Headers
Complete Article Headers
Newsgroups: sci.math.num-analysis Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!darwin.sura.net!Sirius.dfn.de!Urmel.Informatik.RWTH-Aachen.DE!messua!dak From: dak@messua.informatik.rwth-aachen.de (David Kastrup) Subject: Re: 2D random numbers Message-ID: <dak.717898277@messua> Sender: news@Urmel.Informatik.RWTH-Aachen.DE (Newsfiles Owner) Nntp-Posting-Host: messua Organization: Rechnerbetrieb Informatik / RWTH Aachen References: <3638.9209301031@rfsparc.essex.ac.uk> <1992Sep30.130942.12022@magnus.acs.ohio-state.edu> Date: 1 Oct 92 00:11:17 GMT Lines: 33