Sampling and Monte Carlo
Framing: Monte Carlo
Suppose we have X1,…,Xn
i.i.d. and let g(x)
be a function, where we
want to estimate EX[g(x)]
.
Define the auxiliary variable
Sn[g]=n1i=1∑ng(Xi)
The frequentist estimator given [Xi]
samples with Xi∼X
and n
fixed,
g^=n1i=1∑ng(Xi).
We can observe immediately that
EX[Sn[g]]=EX[n1i=1∑ng(Xi)]=n∑i=1nEX[g(Xi)]=EX[g(x)]
and so this estimator is unbiased.
The variance is then
VX[Sn[g]]=VX[n1i=1∑ng(Xi)]=n21i=1∑nVX[g(x)]=n1VX[g(x)].
In dimensional problems, the variance of this estimator has units of g(x)2
, so taking the square root of the resultant quantity (thereby giving the standard error)
shows that error tends to decrease as n−1/2
.
Convergence of RVs