-1
$\begingroup$

I need a data set with a mean of 0 and stdv of 1. how do i get this?

| cite | improve this question | | | | |
$\endgroup$
7
$\begingroup$

You could buy a copy of A Million Random Digits with 100,000 Normal Deviates.

| cite | improve this answer | | | | |
$\endgroup$
1
$\begingroup$

In R, for instance,

rnorm(10000)

will give you ten thousand N(0,1) (pseudo)random observations. You could use runif to obtain uniform distributions, or any distribution of your choice by setting parameters so that mean is 0 and variance is 1.

| cite | improve this answer | | | | |
$\endgroup$
  • $\begingroup$ You forgot to scale the results. $\endgroup$ – Michael M Jun 12 '18 at 7:37
  • $\begingroup$ @Michael M: ?? I think rnorm will by default produce mena 0 and variance 1, runif of course will need to set parameters. $\endgroup$ – F. Tusell Jun 12 '18 at 9:57
  • 1
    $\begingroup$ Not exactly. It will sample from a distribution with these parameters, but the specific sample will have a mean different of 0. $\endgroup$ – Michael M Jun 12 '18 at 10:23
  • $\begingroup$ If this is what it was asked, then I guess there should be no problem centering and standardizing the sample. $\endgroup$ – F. Tusell Jun 12 '18 at 10:26

Not the answer you're looking for? Browse other questions tagged or ask your own question.