Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

log-normal and gaussian distribution - array generation

Hi experts!

I wanna generate a random number array of size=N using a log normal distribution. From i wanna use the parameters mu and sigma.

I know that I must do:

form scipy.stats import lognorm
new_array = lognorm.rvs(......, size=N)

What must I set like parameters (loc, s, scale, etc.) for use mu and sigma distribution parameters.

In the same way: what must I do in

new_array = norm.rvs(......, size=N)

for generate a array of random numbers using a gaussian distribution with parameters mu and sigma?

Waitign for your answers.

Thanks a lot!