Python: NxM array of samples drawn from NxM normal distributions

Viewed 1410

I have two 2D arrays (or of higher dimension), one that defines averages (M) and one that defines standard deviations (S). Is there a python library (numpy, scipy, ...?) that allows me to generate an array (X) containing samples drawn from the corresponding distributions?

In other words: each entry xij is a sample that comes from the normal distribution defined by the corresponding mean mij and standard deviation sij.

1 Answers
Related