Skip to content
QFT.org

Search QFT.org

Enter a word or phrase.

    You can also browse the main navigation and chapter contents.

    Monte Carlo Errors and Autocorrelation

    For a stationary real measurement stream XjX_j with covariance Γ(k)\Gamma(k) and NN stored measurements, the sample-mean variance is exactly

    Var⁡(X‾)=Γ(0)N[1+2∑k=1N−1(1−kN)ρ(k)],ρ(k)=Γ(k)Γ(0).\operatorname{Var}(\overline X)=\frac{\Gamma(0)}N \left[1+2\sum_{k=1}^{N-1}\left(1-\frac kN\right)\rho(k)\right], \qquad \rho(k)=\frac{\Gamma(k)}{\Gamma(0)}.

    Assume a nonzero finite variance. The factor N−kN-k counts pairs at lag kk. Algorithmic Monte Carlo time is separate from Euclidean or real physical time.

    If the correlation sum converges and the run is long enough,

    τint=12+∑k=1∞ρ(k),Var⁡(X‾)≃2τintΓ(0)N,Neff=N2τint.\tau_{\rm int}=\frac12+\sum_{k=1}^\infty\rho(k),\qquad \operatorname{Var}(\overline X)\simeq \frac{2\tau_{\rm int}\Gamma(0)}N,\qquad N_{\rm eff}=\frac N{2\tau_{\rm int}}.

    Independent data have τint=1/2\tau_{\rm int}=1/2 in this convention. The effective size belongs to a particular observable and estimator. The variance identity alone does not prove equilibration, ergodic exploration or a central limit theorem.

    Exact autoregressive check

    Start X0X_0 in the unit-variance stationary Gaussian distribution and evolve

    Xj+1=aXj+1−a2 ϵj,∣a∣<1,X_{j+1}=aX_j+\sqrt{1-a^2}\,\epsilon_j, \qquad |a|<1,

    with independent standard normal ϵj\epsilon_j. Then ρ(k)=a∣k∣\rho(k)=a^{|k|} and

    τint=1+a2(1−a).\tau_{\rm int}=\frac{1+a}{2(1-a)}.

    For a=0.8a=0.8, the effective size tends to N/9N/9 and the independent-sample standard error is too small by a factor three. For a=−1/2a=-1/2, Neff=3NN_{\rm eff}=3N: anticorrelation improves this mean without producing additional independent configurations. A nonstationary start has a separate transient, EXj=ajX0\mathbb E X_j=a^jX_0 for fixed X0X_0.

    Windows, blocks and derived quantities

    A finite autocorrelation window trades omitted-tail bias against the noise of long-lag estimates. Compare plausible windows and longer independent streams. A small, very slow mode may remain invisible in a short record; a short measured correlation time is not proof that the chain has visited every sector.

    For BB approximately independent consecutive block means YbY_b,

    Var⁡^(X‾)=1B(B−1)∑b(Yb−X‾)2.\widehat{\operatorname{Var}}(\overline X) =\frac1{B(B-1)}\sum_b(Y_b-\overline X)^2.

    Increase block length while retaining enough blocks to estimate the error itself. Do not form lag pairs across independent-run boundaries, and keep rejected proposals as repeated configurations. Removing rejections changes the sampled process.

    For a smooth function of several means, F=f(X‾)F=f(\overline{\mathbf X}), the relevant leading fluctuation is ∇f⋅Xj\nabla f\cdot\mathbf X_j. Its autocorrelation may differ from every component separately. Block jackknife or bootstrap must keep numerator, denominator and other correlated observables aligned and repeat the entire nonlinear calculation.

    If F(−b)F_{(-b)} are delete-one-block results, the scalar jackknife variance is

    V^JK=B−1B∑b(F(−b)−F‾JK)2.\widehat V_{\rm JK}=\frac{B-1}B \sum_b(F_{(-b)}-\overline F_{\rm JK})^2.

    This assesses fluctuations under the stated analysis choices; it does not measure ansatz bias, finite volume or missed sectors. See autocorrelation and effective sample size for finite-run checks and a slow-tail example.

    References

    Scrollable formula. Use Left and Right arrow keys to reveal hidden content.

    Scrollable table. Use Left and Right arrow keys to reveal hidden columns.

    Scrollable figure. Use Left and Right arrow keys to reveal hidden content.