# Monte Carlo Methods and Finance

Monte Carlo Method
Very nice definition of Monte Carlo methods from Wikipedia
“Monte Carlo methods vary, but tend to follow a particular pattern:

1.Define a domain of possible inputs.
2.Generate inputs randomly from a probability distribution over the domain.
3.Perform a deterministic computation on the inputs.
4.Aggregate the results.
For example, consider a circle inscribed in a unit square. Given that the circle and the square have a ratio of areas that is π/4, the value of π can be approximated using a Monte Carlo method:[4]

1.Draw a square on the ground, then inscribe a circle within it.
2.Uniformly scatter some objects of uniform size (grains of rice or sand) over the square.
3.Count the number of objects inside the circle and the total number of objects.
4.The ratio of the two counts is an estimate of the ratio of the two areas, which is π/4. Multiply the result by 4 to estimate π.
In this procedure the domain of inputs is the square that circumscribes our circle. We generate random inputs by scattering grains over the square then perform a computation on each input (test whether it falls within the circle). Finally, we aggregate the results to obtain our final result, the approximation of π.

If grains are purposefully dropped into only the center of the circle, they are not uniformly distributed, so our approximation is poor. Second, there should be a large number of inputs. The approximation is generally poor if only a few grains are randomly dropped into the whole square. On average, the approximation improves as more grains are dropped.

ref: http://en.wikipedia.org/wiki/Monte_Carlo_analysis

Monte Carlo methods in finance
http://en.wikipedia.org/wiki/Monte_Carlo_methods_in_finance