Understanding Monte Carlo Simulation in Statistics
Monte Carlo simulation is a methodology or tool for understanding the properties of a model or statistic under certain conditions. For instance, we talk about the impact of multicolinearity on a regression model, but we cannot assess the actual impact on our estimates because in real life we almost never know the true value of the parameters. By using Monte Carlo simulation, we can perform the same type of analysis on data with known characteristics. We know these characteristics, because we manufacture the data to have those characteristics.
The process of doing a Monte carlo study is as follows:
Some Examples of Performing Monte Carlo simulations:
- Some general information on generating distributions
- Generating random numbers in Excel
- Generating random numbers and models in Stata
Some general information on generating distributions
The Uniform Distribution, also called a rectangular distribution, is one in which every value has an equally likely chance of occuring. Examples are roll of a die, drawing of a lottery number.
For further information, please see:
- Engineering Distributions Handbook Gallery of Distributions: Uniform Distributions
- Eric Weisstein's World of Mathematics: Uniform Distributions
:
Roll of a die
Generating random numbers in Excel
Generating Random Numbers in Exccel is relatively easy. We use the Data Analysis Tools Random number generator.
Tools > Data Analysis > Random Number Generator
(If you do not see the Data Analysis Option, go to Tools > Add-Ins in Windows XP )
Then specify:
- The number of variables,
- The number of random numbers
- The type of distribution
- The distribution parameters
- Specify a seed if you desire to control the random selection process. Specifying the same seed will generate the same numbers each time. If left blank, the seed will be determined by the system clock, and thus is effectively random.
- The location where to put the numbers generated.
See the Excel Spreadsheet on Monte Carlo Simulation for examples:
Generating random numbers and models in Stata