Suppose we want to integrate a function g(x) for a certain space D. Let I be the result of the integration.
Is it true that to get and estimate of I, one can do a Monte Carlo simulation by taking sum of g(Xi)/m where m is the total number of sample points and Xi are randomly sampled points from a uniform distribution in D?
E.g.
Say g(x) = x and we want to integrate from 0 to 100, ie D is 0 to 100.
We take say 6 points, 0, 20, 40, 60, 80, 100, assume they are points gotten from a uniform distribution from 0 to 100. so g(0) = 0, g(20) = 20, etc..
Sum them up is 0 + 20 + 40 +60 +80 + 100 = 300
Estimate = 300/6 = 50.
50 is the exact value of the integral.
The question is does this scheme work for every function g? Assume m can be extremely large, ie approaches infinity.
2006-08-20
16:03:14
·
2 answers
·
asked by
ali
6
in
Science & Mathematics
➔ Mathematics