Correlated multivariable gaussian random number generation

iibewegung
Messages
14
Reaction score
0
\mathrm{prob} \propto \mathrm{e}^{-\frac{(a -x_1)^2}{2 \sigma^2}} \mathrm{e}^{-\frac{(x_1 -x_2)^2}{2 \sigma^2}} \mathrm{e}^{-\frac{(x_2 -x_3)^2}{2 \sigma^2}} \mathrm{e}^{-\frac{(x_3 -b)^2}{2 \sigma^2}}

a and b are known real constants.
Is there a way to generate x_1, x_2, x_3 independently using a single gaussian random-number generator 3 times, then transforming them somehow?

I'm almost certain this appears in statistics or applied math textbooks but I don't know what to look for.
 
Physics news on Phys.org
iibewegung said:
Is there a way to generate x_1, x_2, x_3 independently using a single gaussian random-number generator 3 times, then transforming them somehow?

Yes there is.

First you need to rewrite your PDF as a standard http://en.wikipedia.org/wiki/Multivariate_normal_distribution" \Sigma^{1/2} of \Sigma.

Then you can generate samples using

x = \Sigma^{1/2} y + \mu

where y is a 3-vector of single Gaussian (zero mean, variance=1) random numbers.
 
Last edited by a moderator:
Hi all, I've been a roulette player for more than 10 years (although I took time off here and there) and it's only now that I'm trying to understand the physics of the game. Basically my strategy in roulette is to divide the wheel roughly into two halves (let's call them A and B). My theory is that in roulette there will invariably be variance. In other words, if A comes up 5 times in a row, B will be due to come up soon. However I have been proven wrong many times, and I have seen some...
Thread 'Detail of Diagonalization Lemma'
The following is more or less taken from page 6 of C. Smorynski's "Self-Reference and Modal Logic". (Springer, 1985) (I couldn't get raised brackets to indicate codification (Gödel numbering), so I use a box. The overline is assigning a name. The detail I would like clarification on is in the second step in the last line, where we have an m-overlined, and we substitute the expression for m. Are we saying that the name of a coded term is the same as the coded term? Thanks in advance.
Back
Top