Monte Carlo Approximation
Let X1,X2,… be a sequence of i.i.d. random variables with mean μ we have Mn=n1∑i=1nXi and LLN tells us that Mn≈μ as n→∞. If we dont know the μ, we can use Mn as an estimator or approximation of μ. This is called Monte Carlo approximation.
Normally, for a integral ∫f(x)dx we try to find a density function statisfied inside f(x) to do transform where write ∫f(x)dx into expecation format. A example for I=∫01cos(x2)sin(x4)dx we can use U(0,1) where this distribution with density function f(x)=1 that is we have I=E[cos(X2)sin(X4)] where X∼U(0,1). To do Monte Carlo approxmation we need to have a sequence of i.i.d. such random variables X1,X2,… following U(0,1), then we set up another random variable Ti=cos(Xi2)sin(Xi4) and we have I≈n1∑i=1nTi.