Home▸Data Science▸Effective Sample Size of Autocorrelated Chains: Integrated Autocorrelation Time and Thinning Loss

Effective Sample Size of Autocorrelated Chains: Integrated Autocorrelation Time and Thinning Loss

See how much real information a correlated chain of draws carries. Turn the lag-one correlation up and the effective sample size collapses by the integrated autocorrelation time, so the naive error bar becomes over-confident. Test thinning and watch the trace, the autocorrelation function and the corrected standard error. A Blender-built plotting easel, with exact finite-n, Monte Carlo and series checks built in.

Data Science3DAdvanced60 FPS📱 Mobile-adapted🟠 Blender⇄ 2D version
Effective Sample Size of Autocorrelated Chains: Integrated Autocorrelation Time and Thinning Loss ↗ Open standalone

Correlation between a treatment X and an outcome Y is not proof that X causes Y — a hidden confounder U can drive both and bias any naive regression. This simulator generates a synthetic cohort where that is exactly what happens, renders it as a live 3D point cloud (X, Y, and the normally-invisible U as depth), and fits two regression lines side by side: the biased naive OLS line, and a two-stage-least-squares line built from a valid instrument Z that moves the treatment without ever touching the outcome directly. Sliders let you dial the true causal effect, the confounding strength, the instrument's strength, and the noise level, while live readouts track the true β against both estimates and the instrument's relevance — the same diagnostic economists and epidemiologists run before trusting an IV study.

⚙ Under the hood

See how much real information a correlated chain of draws carries. Turn the lag-one correlation up and the effective sample size collapses by the integrated autocorrelation time, so the naive error bar becomes over-confident. Test thinning and watch the trace, the autocorrelation function and the corrected standard error. A Blender-built plotting easel, with exact finite-n, Monte Carlo and series checks built in.

causal inferenceinstrumental variables2SLSconfoundingregressiondata scienceEffective Sample SizeAutocorrelationMCMC DiagnosticsAR(1) ProcessThinning

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)