Read Exercise 2.4 in the book and Unit 6.6 for the theory. In this video, along with the sample from a normal distribution and a histogram, we construct the density and cumulative distribution function with the same mean and standard deviation.

Simulation steps

μ and σ are chosen by the user. I select them so as to model temperature distribution in Almaty.

temp (temperature) are just integer number from 14 to 38

Use the Excel command norm.dist with required arguments. The last argument should be "false" to produce a density

The last argument should be "true" to give a cumulative distribution

A combination of the commands norm.dist and rand gives simulated temperature values

Next we define the bins required by the Excel function histogram, which is a part of the Data analysis toolpack (needs to be installed and activated)

The fact that Excel maintains links between data and results is very handy. That is, each time the data is renewed, the histogram will change. Pressing F9 (recalculate) you can see the histogram changing together with the sample.

Another interesting fact is that sometimes randomly generated numbers are not realistic. If observed in practice, they could be called outliers. But here they are due to the imperfect nature of the normal distribution, which can take very large (negative or positive) values with a positive probability.

Modeling a sample from a normal distribution - click to view video

[…] all simulation can be done in Excel. See examples: Exercise 2.1, Exercise 2.2, Exercise 2.3, Exercise 2.4, Example 2.2, and this post about active learning. Even the law of large numbers and central […]

[…] using a combination of a uniformly distributed variable and inverse cumulative distribution of a normal variable. On a scatterplot, we plot values of one variable against those of another. This definition is […]

[…] all simulation can be done in Excel. See examples: Exercise 2.1, Exercise 2.2, Exercise 2.3, Exercise 2.4, Example 2.2, and this post about active learning. Even the law of large numbers and central […]

[…] using a combination of a uniformly distributed variable and inverse cumulative distribution of a normal variable. On a scatterplot, we plot values of one variable against those of another. This definition is […]