mardi 25 juin 2019

Generate normal random variable and sample

Generate 3 normal random variables with mean 100 and standard deviation 1. This will require 3 lines of code.

Import the numpy library Set the seed to 123 to initialize environment so random variables are replicated according to the grader. (hint: np.random.seed(?)) Draw three random normal variables with mean 100 and standard deviation 1 and assign it to a variable named sample. (hint: np.random.normal(?,?,?)) Print sample.




Aucun commentaire:

Enregistrer un commentaire