I've been trying to use the chaospy package to get quasi-random numbers for a Monte Carlo simulation. The dimensions need to be 365×5000 (but can be up to 2190×5000).
When I pull a sample using chaospy.J(chaospy.Normal(0, 1))
, I get an array of random numbers, but they are only normally distributed along one axis. The other axis appears to be uniformly distributed.
I'm trying to find the best way to get these numbers normally distributed. I've read in a few places that you can take another uniform distribution, add it and take mod 1 (i.e. (ranom.uniform() + sample) % 1
). That seems like it defeats the purpose a bit. Is there a better way to do this? Also, if anyone has some better suggestions of packages to use, I would be open to that.
random.multivariate_normal
from numPy should do the trick. This is probably off topic here btw. $\endgroup$