The class Random generates random numbers from a gaussian distribution that is one dimensional(uni variate). My problem is how to generate bivariate random numbers from Mean(1.0,1.0) and Covariance(1.0, 0.0,0.0,1.0)
The class Random generates random numbers from a gaussian distribution that is one dimensional(uni variate). My problem is how to generate bivariate random numbers from Mean(1.0,1.0) and Covariance(1.0, 0.0,0.0,1.0)
Let { X1, X2 } be a pair of independent N(0,1) deviates. Then deviates
{ X1, rho*X1+(1-rho^2)^1/2*X2 } represent a pair of deviates from a bivariate
normal distribution with m=0, s=1, correlation coefficient rho.
There is a N(0,1) pseudo random number generator available, so there you go.
Let { X1, X2 } be a pair of independent N(0,1) deviates. Then deviates
{ X1, rho*X1+(1-rho^2)^1/2*X2 } represent a pair of deviates from a bivariate
normal distribution with m=0, s=1, correlation coefficient rho.
There is a N(0,1) pseudo random number generator available, so there you go.
kind regards,
Jos
How I could have used such a book in my 2nd year project (Discrete event simulation).
How I could have used such a book in my 2nd year project (Discrete event simulation).
It's quite an old (and famous!) book: it was first printed in 1964; I bought my
copy ten years later. I guess the current edition is the 10th or 11th edition.
Go to that link I supplied: it's a full scan of more than 1000 pages; ready for
downloading. (better late than never ;-)
It's quite an old (and famous!) book: it was first printed in 1964; I bought my
copy ten years later. I guess the current edition is the 10th or 11th edition.
Go to that link I supplied: it's a full scan of more than 1000 pages; ready for
downloading. (better late than never ;-)
kind regards,
Jos
Yep I've got the download link, I'm downloading it now. I really should have known about that book.
Comment