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)

FAQs

How to Create a Normally Distributed Set of Random Numbers in Excel? ›

Use the formula "=NORMINV(RAND(),B2,C2)", where the RAND() function creates your probability, B2 provides your mean and C2 references your standard deviation. You can change B2 and C2 to reference different cells or enter the values into the formula itself.

How do you do a random distribution of numbers in Excel? ›

Enter the formula =RAND()*([UpperLimit]-[LowerLimit])+[LowerLimit]. For example, if you'd like to generate a random decimal between one and 10, you may enter =RAND()*(10-1)+1.

How do you generate a normal distribution of random numbers? ›

r = normrnd( mu , sigma ) generates a random number from the normal distribution with mean parameter mu and standard deviation parameter sigma .

How to normally distribute a number in Excel? ›

How to calculate normal distribution in Excel
  1. Input your data set into an Excel spreadsheet. ...
  2. Find the mean of your data set. ...
  3. Find the standard deviation of your data set. ...
  4. Select a value for the distribution. ...
  5. Type the NORM. ...
  6. Save your Excel spreadsheet for later use.

How do you convert random data to normal distribution? ›

Let X be a continuous random variable. Then X takes on a standard normal distribution if its probability density function is f(x)=1√2πexp(−12x2). f ( x ) = 1 2 π e x p ( − 1 2 x 2 ) . In other words, the standard normal distribution is the normal distribution with mean μ=0 and standard deviation σ=1 .

How to generate random numbers in Excel within a range evenly? ›

To generate random numbers within a specific range in Excel, use the formula =RAND() * (max - min) + min, where max is the maximum value and min is the minimum value of your desired range.

How do I create a distribution of numbers in Excel? ›

How to make a frequency distribution table in Excel
  1. Insert a Pivot Table. ...
  2. Drag the fields to their respective areas. ...
  3. Navigate to the "Value and Field settings..." option. ...
  4. Choose "Count" and click "OK" ...
  5. Navigate to the "Group..." option. ...
  6. Enter values for the distribution and click "OK" ...
  7. Save your Excel spreadsheet.

How do you distribute randomly in Excel? ›

The function RAND () is Excel's random number generator. To use it, in Column C, type in the following = RAND() in each cell adjacent to every name. Or you can type this function in the top row (row 2) and simply copy and paste to the entire column, or click and drag.

How do I create a random series of numbers in Excel? ›

If you want to use RAND to generate a random number but don't want the numbers to change every time the cell is calculated, you can enter =RAND() in the formula bar, and then press F9 to change the formula to a random number. The formula will calculate and leave you with just a value.

How do you show a random variable is normally distributed? ›

A normal distribution has two parameters, the mean μ , and the variance σ2 . The mean can be any real number and the variance can be any non-negative number. NOTATION: "X∼N(μ,σ2) X ∼ N ( μ , σ 2 ) " indicates that the random variable X is normally distributed with mean μ and variance σ2 .

How do you create a normal distribution function? ›

The normal distribution uses these parameters. The standard normal distribution has zero mean and unit standard deviation. If z is standard normal, then σz + µ is also normal with mean µ and standard deviation σ. Conversely, if x is normal with mean µ and standard deviation σ, then z = (x – µ) / σ is standard normal.

Which function can be used to generate random numbers following a normal distribution? ›

The randn function returns a sample of random numbers from a normal distribution with mean 0 and variance 1.

How do you create a random normal distribution in Excel? ›

Use the formula "=NORMINV(RAND(),B2,C2)", where the RAND() function creates your probability, B2 provides your mean and C2 references your standard deviation. You can change B2 and C2 to reference different cells or enter the values into the formula itself.

How do you distribute numbers in Excel? ›

You can use the following formula to achieve the distribution of a given number across multiple cells with predefined limits:
  1. =MIN(x, limit1) in cell 1.
  2. =MIN(MAX(0, x-limit1), limit2) in cell 2.
  3. =MAX(0, x-limit1-limit2) in cell 3.
Mar 29, 2023

How to create normal distributions in Excel? ›

To make a normal distribution graph, go to the “Insert” tab, and in “Charts,” select a “Scatter” chart with smoothed lines and markers. When we insert the chart, we see that our bell curve or normal distribution graph is created.

How do I generate distinct random numbers in Excel? ›

How to generate unique random numbers in Excel
  1. Enter the RAND() function in cells B6 to B55.
  2. In cell D6, input the formula =RANK(B6,B$6:B$55), and drag it down to cell D55.

Top Articles
Best oximeters to measure blood oxygen levels
1150 E Chippewa Dr SE, Grand Rapids, MI 49506 | Estately 🧡 | MLS# 24039687
Strange World Showtimes Near Amc Brazos Mall 14
O Riley Auto Parts Near Me
Fantasy football rankings 2024: Sleepers, breakouts, busts from model that called Deebo Samuel's hard NFL year
Academic Calendar Biola
Dtm Urban Dictionary
Ketchum Who's Gotta Catch Em All Crossword Clue
What Does Sybau Mean
Financial Literacy for Students | EVERFI
Jera Gardens
Body Rub Phoenix
303-615-0055
Erika Henriquez-Quallo
Sound Of Freedom Showtimes Near Sperry's Moviehouse Holland
159 Joseph St, East Brunswick Township, NJ 08816 - MLS 2503534R - Coldwell Banker
Lookwhogotbusted New Braunfels
Estrella Satánica Emoji
Craigslist Ct Pets
Xiom Vega X Review & Playtesting • Racket Insight
The Creator Showtimes Near Baxter Avenue Theatres
My Eschedule Greatpeople Me
What Time Is First Light Tomorrow Morning
Dickinson Jewelers Prince Frederick Md
Shawn N. Mullarkey Facebook
Configuring TPM 2.0 on a 6.7 ESXi host
Management Trainee: Associate Adjuster - June 2025
Emuaid Lawsuit
Visit Lake Oswego! - Lake Oswego Chamber Of Commerce
William Carey Sdn 2023
Fanart Tv
The QWERTY Keyboard Is Tech's Biggest Unsolved Mystery
Craigslist Musicians Phoenix
Computer Repair Tryon North Carolina
Phunextra
Alloyed Trident Spear
Shipstation Commercial Actress
7066642123
KOBALT K15CS-06AC MANUAL Pdf Download
Black Adam Showtimes Near Cinemark Texarkana 14
Denny's Ace Hardware Duluth Mn
Green Press Gazette Obits
Accuradio Unblocked
Effingham Radio News
Ten Conservative Principles
Dermatologist Esthetician Jobs
Big Lots Hours Saturday
Do Diversity Visa Lottery Winners Need Affidavit Of Support With Green Card Application Is Affidavit
Ultipro Fleet Farm
Csgo Xray Command
Hughie Francis Foley
Craigslist Org Las Vegas Cars
Latest Posts
Article information

Author: Kimberely Baumbach CPA

Last Updated:

Views: 6027

Rating: 4 / 5 (41 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Kimberely Baumbach CPA

Birthday: 1996-01-14

Address: 8381 Boyce Course, Imeldachester, ND 74681

Phone: +3571286597580

Job: Product Banking Analyst

Hobby: Cosplaying, Inline skating, Amateur radio, Baton twirling, Mountaineering, Flying, Archery

Introduction: My name is Kimberely Baumbach CPA, I am a gorgeous, bright, charming, encouraging, zealous, lively, good person who loves writing and wants to share my knowledge and understanding with you.