What is the Excel equivalent of Matlab's randn function

3

The randn function of Matlab generates a random number from the standard normal distribution.

What is the equivalent in Excel?

I think the rand(2)-1 is not the right solution because the random number is uniformly generated, not following the standard normal distribution.

ZZZ

Posted 2018-06-25T17:44:18.827

Reputation: 31

Answers

1

I think you want:

=NORMINV(RAND(),0,1)

for a standard normal distribution:

enter image description here

In the above example all the cells in column A were filled. The mean is not exactly zero nor is the S.D. exactly one because they represent the values for this specific sample.

Gary's Student

Posted 2018-06-25T17:44:18.827

Reputation: 15 540