I am a programmer and just came across the section where in Monte Carlo was discussed. I would like to know the exact concept of Monte Carlo simulation. In net i have read about it that it is the computational algorithms dependent on repeated random sampling to have the numerical result. but i want the exact concept of it as in from the programmers point of view. I am not getting the essence of Monte carol algorithm
Edit: For example creating the random number series so that every time number does not repeat.
Monte Carlo methods are extremely useful to calculate approximate solutions for definite integrals.
Since functions that have a primitive in closed form are few, having numerical ways of approximating the values of an integral is an important instrument to keep in your toolbox. Common methods for doing this are discretizing the integration interval and approximating the integral on each of the subsets of the interval of integration $[a,b]$ that we have considered (e.g. approximating through Riemann-sums)
Stochastic methods for approximating integrals numerically work in a different way: two numbers, the required approximation and the maximum acceptable probability that the error is greater than the required approximation are fixed. We don't require the certainty that the error will be in a certain interval, but we fix an acceptable probability that the error will be in this interval.
This approximated method has the advantage that it only requires a random number generator, but for single variable calculus deterministic approaches are more efficient, because Monte-Carlo method requires many random numbers to be generated. This changes radically in multi-variable calculus, where Monte-Carlo algorithms are far more efficient than deterministic ones when functions start getting complicated.