How to Create a Normally Distributed Set of Random Numbers in Excel (2024)

What is a Normal Distribution?

From a purely mathematical point of view, a Normal distribution (also known as a Gaussian distribution) is any distribution with the following probability density function.

How to Create a Normally Distributed Set of Random Numbers in Excel (1)

Where μ (mu) is the mean and σ (sigma) is the standard deviation.

Normal Distribution Probability Density Function in Excel

It’s also referred to as a bell curve because this probability distribution function looks like a bell if we graph it. It’s a well known property of the normal distribution that 99.7% of the area under the normal probability density curve falls within 3 standard deviations from the mean. So to graph this function in Excel we’ll need a series of x values covering (μ-3σ,μ+3σ).

This is the probability density function for the normal distribution in Excel.

=(1/SQRT(2*PI()*StdDev^2))*EXP(-1*(X-Mean)^2/(2*StdDev^2))

  • X – This is any real number.
  • Mean – This is the mean of the normally distributed random variable.
  • StdDev – This is the standard deviation of the normally distributed random variable.

Graphing the Normal Probability Density Function

How to Create a Normally Distributed Set of Random Numbers in Excel (2)

We can graph the normal probability density function in Excel by setting up a table with two columns of values.

  • X – This is a series of real numbers that will appear on our X-axis which we will evaluate our normal density function on.
  • f(X) – This is the result of our normal density function evaluated at X.

How to Create a Normally Distributed Set of Random Numbers in Excel (3)

If we select our table then go to the Insert tab and select a Line Chart from the Charts section. We can see the result is a nice bell shaped curve centered around the mean value.

Create a Normally Distributed Set of Random Numbers in Excel

Is it possible to create a set of normally distributed values in Excel? Yes, it is, but we will need to look at the cumulative distribution function F(x)=P(X<=x) and it's inverse function. This is the probability that a random value from the distribution is less than a given value x.How to Create a Normally Distributed Set of Random Numbers in Excel (4)

The formula involves calculus but thankfully Excel’s NORM.DIST function will do this calculation for us.

=NORM.DIST(X,Mean,StdDev,TRUE)

  • X – This is any number from the distribution.
  • Mean – This is the mean of the normal distribution.
  • StdDev – This is the standard deviation of the normal distributed.
  • TRUE – This is a predefined input for the NORM.DIST function which tells Excel to calculate the cumulative distribution.

How to Create a Normally Distributed Set of Random Numbers in Excel (5)

We can also graph this in a similar manner to the probability density function and create a Line Chart from the Charts section of the Insert tab.

Note that the Y-axis of this chart goes from 0 to 1. This is a probability value and represents the probability of a random value from our normal distribution being less than or equal to a given value.

As an example F(0)=50% so there’s a 50% chance a random value from our normal distribution will be below 0.

From this graph, we can also start with a probability on the Y-axis and get a value from our normal distribution on the X-axis. This is call the inverse of a function.

If we start at 0.8 on the Y-axis and follow out horizontally until we hit the graph, then move vertically down we will arrive at the 0.788 on the X-axis. This means 0.788 is the inverse of 0.8.

Using the inverse function is how we will get our set of normally distributed random values. We will use the RAND() function to generate a random value between 0 and 1 on our Y-axis and then get the inverse of it with the NORM.INV function which will result in our random normal value on the X-axis.

=NORM.INV(RAND(),Mean,StdDev)

  • Mean – This is the mean of the normal distribution.
  • StdDev – This is the standard deviation of the normal distributed.

How to Create a Normally Distributed Set of Random Numbers in Excel (6)

If we do this calculation 1,000 times we can graph it with a Histogram chart and we start to see a bell shape curve emerge.

How to Create a Normally Distributed Set of Random Numbers in Excel (7)

With 10,000 values, the distribution becomes more clear.

How to Create a Normally Distributed Set of Random Numbers in Excel (8)

In fact because of the law of large numbers, the more of these randomly generated normal values we create, the closer our graph will appear bell shaped.

Box Muller Method to Generate Random Normal Values

The Box-Muller method relies on the theorem that if U1 and U2 are independent random variables uniformly distributed in the interval (0, 1) then Z1 and Z2 will be independent random variables with a standard normal distribution (mean = 0 and standard deviation = 1).

How to Create a Normally Distributed Set of Random Numbers in Excel (9)

We will easily be able to create these formulas in Excel with U1=RAND() and U2=RAND(). For our purposes though, we will only need to calculate Z1.

Since Z1 will have a mean of 0 and standard deviation of 1, we can transform Z1 to a new random variable X=Z1*σ+μ to get a normal distribution with mean μ and standard deviation σ.

=SQRT(-2*LN(RAND()))*COS(2*PI()*RAND())*StdDev+Mean

  • Mean – This is the mean of the normal distribution.
  • StdDev – This is the standard deviation of the normal distributed.

How to Create a Normally Distributed Set of Random Numbers in Excel (10)

We can also graph this with a Histogram for a large number of calculations and see a nice well defined bell shaped curve.

How to Create a Normally Distributed Set of Random Numbers in Excel (2024)
Top Articles
Linda Anne Voltemas
Is CVS Minute Clinic the Same as Urgent Care? A Comprehensive Comparison
Car Parts Open Now
Gameplay Clarkston
Pulse Point Oxnard
Air Chat En Espanol
Tc-656 Utah
East Bay Horizon
Busted Newspaper Birmingham Al
Craigs List High Rockies
Cvs Tb Testing Cost
SAP Secure Login Service for SAP GUI Now Available
Buhl Park Summer Concert Series 2023 Schedule
Levidia 2019
303-615-0055
San Diego Terminal 2 Parking Promo Code
Haslam Metrics
Identogo Roanoke Va
New from Simply So Good - Cherry Apricot Slab Pie
Truist Drive Through Hours
[마감]봄나들이 갈때 나만의 스타일을 골라보아요~!마감된이벤트 - dodry
Hendraheim Skyrim
Rek Funerals
Jeep Graphics Ideas
Holley Gamble Funeral Home In Clinton
Grave Digger Wynncraft
Hmnu Stocktwits
Ups Customer Center Locations
Managementassistent directie Wonen
JetBlue, Spirit end $3.8 billion merger agreement after losing antitrust suit
Tcc Northeast Library
Osceola County Addresses Growth with Updated Mobility Fees
Stark Cjis Court Docket
Imagemate Orange County
Investment Banker Salary and Bonus Report: 2023 Update
R/Moissanite
Craigslist Covington Georgia
The Next Phase for the V-22 Osprey: Build Global Support Like C-17
Rydell on LinkedIn: STARTING TODAY you no longer have to wait in a long line to get your oil…
Craigslist Pets Inland Empire
Gym Membership & Workout Classes in Lafayette IN | VASA Fitness
Kayky Fifa 22 Potential
Couponsky.com
Gasmonkeygarage.com Cars For Sale
Lifetime Benefits Login
Tacoma Craigslist Free
Mazda 6 GG/GG1; GY/GY1 2.3 MPS Test : MPSDriver
Embu village mines precious coltan for years 'without knowing its value’
Richard Grieve Judge Judy
Schematic Calamity
Immobiliare di Felice| Appartamento | Appartamento in vendita Porto San
Latest Posts
Article information

Author: Wyatt Volkman LLD

Last Updated:

Views: 5938

Rating: 4.6 / 5 (66 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Wyatt Volkman LLD

Birthday: 1992-02-16

Address: Suite 851 78549 Lubowitz Well, Wardside, TX 98080-8615

Phone: +67618977178100

Job: Manufacturing Director

Hobby: Running, Mountaineering, Inline skating, Writing, Baton twirling, Computer programming, Stone skipping

Introduction: My name is Wyatt Volkman LLD, I am a handsome, rich, comfortable, lively, zealous, graceful, gifted person who loves writing and wants to share my knowledge and understanding with you.