lundi 20 mai 2019

How to generate 10 i.i.d. random variables from a normal distribution?

I want to generate 10 i.i.d. random variables from a Normal distribution with mean 0 and variance 0.5.

I'm not sure if rnorm is enough for i.i.d. As how do I know if it is i.i.d. or just a random variable, rather than an i.i.d. random variable.

I tried this, Y<- rnorm(mean = 0, sd=sqrt(.5), n=10) but I still don't know if it's i.i.d.




Aucun commentaire:

Enregistrer un commentaire