I need to generate Data set from Normal distribution . How to generate this data using Python. The value of and is given.
Use numpy.random.normal
If you want to generate 1000 samples from the standard normal distribution you can simply do
import numpy
mu, sigma = 0, 1
samples = numpy.random.normal(mu, sigma, 1000)
You can read the documentation here for additional details.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With