#1   Report Post  
Posted to microsoft.public.excel.misc
Randi R
 
Posts: n/a
Default random numbers

How do I generate random numbers from a normal distribution in excel? I want
to generate a set of random numbers with a normal distribution of
(mean=162.7, standard deviation=6.2)
  #2   Report Post  
Posted to microsoft.public.excel.misc
Martin P
 
Posts: n/a
Default random numbers

Go to Tools, Data Analysis, Random Number Generation and choose the
distribution giving your required mean and standard deviation. The mean and
standard deviation of the list generated will not be exactly the same as
those you entered. First multiply every item by the required standard
deviation divided by 6.2. You will now have the required standard deviation.
The mean will also have changed. Add the required mean minus the new mean to
every item.

"Randi R" wrote:

How do I generate random numbers from a normal distribution in excel? I want
to generate a set of random numbers with a normal distribution of
(mean=162.7, standard deviation=6.2)

  #3   Report Post  
Posted to microsoft.public.excel.misc
Mike Middleton
 
Posts: n/a
Default random numbers

Randi R -

How do I generate random numbers from a normal distribution in excel? I
want to generate a set of random numbers with a normal distribution of
(mean=162.7, standard deviation=6.2) <


For a dynamic worksheet function approach, in general use

=NORMINV(RAND(),Mean,StDev)

and for your specific case

=NORMINV(RAND(),162.7,6.2)

Both NORMINV and RAND are numerically improved in Excel 2003 (and NORMINV is
considerably slower).

For more info, browse to Google Groups and search for "Excel random normal"
(without the quotes).

- Mike
www.mikemiddleton.com


  #4   Report Post  
Posted to microsoft.public.excel.misc
David J. Braden
 
Posts: n/a
Default random numbers

No No No No No!
Do NOT use ATP for any of its stat functions, unless you want to
demonstrate the degree to which MS can demonstrate total ineptitude when
it comes to long-standing (since 1990, at least) problems with many of
its functions (core worksheet functions, as well as those supplied by
the analysis ToolPak).

PopTools is a free add-in that will do the trick; unlike MS, its author
is good about documenting what's going on (he uses the very modern
Mersenne Twister for the underlying variates).

Many of us who write add-ins for this stuff use a Box-Muller algorithm
when the variates aren't from a truncated distribution; I assume the
(IMO excellent) commercial package Crystal Ball approaches this
differently, given its age.

There are more free add-ins out there for what you request, but none I
have seen are as well documented, and modern, as PopTools.

HTH
Dave Braden


Martin P wrote:
Go to Tools, Data Analysis, Random Number Generation and choose the
distribution giving your required mean and standard deviation. The mean and
standard deviation of the list generated will not be exactly the same as
those you entered. First multiply every item by the required standard
deviation divided by 6.2. You will now have the required standard deviation.
The mean will also have changed. Add the required mean minus the new mean to
every item.

"Randi R" wrote:

How do I generate random numbers from a normal distribution in excel? I want
to generate a set of random numbers with a normal distribution of
(mean=162.7, standard deviation=6.2)


--
Please keep response(s) solely within this thread.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
can you assign random numbers to many different lines of row? random number generator Excel Worksheet Functions 3 February 28th 06 06:35 PM
random numbers John Murf Excel Worksheet Functions 1 February 22nd 06 12:39 AM
Random Numbers jannet Excel Discussion (Misc queries) 5 July 24th 05 03:52 PM
random numbers from a data of numbers? MaryEng Excel Worksheet Functions 6 May 31st 05 12:09 PM
Random Assignment of Numbers itse Excel Worksheet Functions 2 March 17th 05 02:14 AM


All times are GMT +1. The time now is 01:31 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"