↓ Skip to main content

ARIMA

AR(1) Process Autocorrelation: Theory vs Simulation in Python

AR(1) Process Autocorrelation: Theory vs Simulation in Python

You simulate an AR(1) process with parameter ρ = 0.7 and compute its sample autocorrelation at lag 1. What value do you expect? The theoretical answer is simple: the lag-1 autocorrelation of an AR(1) process is exactly ρ. But how quickly does the sample autocorrelation converge to this value — and how noisy is the estimator at realistic sample sizes? In this post, we derive the theoretical autocorrelation function of an AR(1) process, simulate it in NumPy, and verify both the point estimate and its dispersion against theory with a Monte-Carlo experiment.