Monte Carlo Run Length

Decide how many samples or chains a stochastic computation needs and whether it has converged. Sets a target confidence-interval half-width and runs until it is met instead of choosing N by habit; uses the standard error for independent runs and batch means or effective sample size for correlated output. For MCMC requires four or more dispersed chains, R-hat below 1.01, bulk and tail ESS above a floor, trace and rank plots and a divergence count. Gives each worker an independent stream (SeedSequence.spawn); common random numbers for comparisons. Use for "how many Monte Carlo runs are enough", "is my MCMC converged", "R-hat and effective sample size", "error bars on a simulation estimate". Not for fixed-seed run differences (nondeterminism-bisect), equal-budget method comparison (fair-method-comparison), clustered data (nonindependence-audit) or mesh error (convergence-study).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit 3ad7265ab0

Frequently asked questions

npx get-skill add greenblacked/monte-carlo-run-length