Monte-Carlo Simulations
If we know how to generate random numbers we can perform Monte Carlo simulations. The main idea behind the method is to generate results based on repeated random sampling and statistical analysis.
In general, Monte Carlo methods follow the following pattern
The domain of possible inputs is defined
These inputs are generated randomly from a probability distribution defined over the domain
Some deterministic computation is performed on the inputs
Results are aggregated
Sawilowsky (2003) distinguishes between a simulation, a Monte Carlo method, and a Monte Carlo simulation. While a simulation is a fictitious representation of a real world phenomena, the Monte Carlo method is simply a technique to solve mathematical or statistical problems. Thus a Monte Carlo simulation is the use of repeated sampling to obtain the statistical properties of some real world phenomenon. Examples:
Simulation: Drawing one pseudo-random uniform integer variable from the interval [1,6] can be used to simulate the tossing of a die. This is a simulation but not a Monte Carlo simulation
Monte Carlo method: Pouring out a box of dice on a table, then computing the ratio of each number that comes up is a Monte Carlo method of determining the behaviour of repeated die tosses but is not a simulation.
Monte Carlo simulation: Drawing a large number of pseudo random uniform integer variables from the interval [1,6] at one time, is a Monte Carlo simulation of the behaviour of repeatedly tossing a die.
Lets perform this Monte Carlo simulation just described. The following (inefficient) code can answer the question of how a die would behave if repeatedly tossed
We can for example use Monte Carlo simulation to approximate . Recall that the area of a circle with radius , is . We can put this circle inside of a square whose sides have length and thus an area of . Now imagine that we draw a random point inside this square. The probability of this point being within the circle is Point inside circle and thus we can express as Point inside circle. We can use Monte Carlo simulation to approximate the probability and thus to get an approximation of . We proceed as follows:
"Test" of the Central Limit Theorem
Recall that the central limit theorem states that the sample mean (scaled by sqrt(n)) of iid random variables with zero mean and unit variance converges in distribution to the standard normal distribution.
Lets test this numerically using Monte Carlo Simulation. We begin by generating a large number of samples, calculate the mean within each sample and then compare the CDF of the means to that of the standard normal.
As we can see from running the code, the cdfs are very close and become closer as we increase the sample size.
Uses in econometrics
The same idea can be used to simulate the distributions of parameter estimates, test statistics, and other statistics, as discussed in the exercises.
Last updated
Was this helpful?