HomeData ScienceStationarity & the Unit Root: Random Walk vs AR(1) Differencing

Stationarity & the Unit Root: Random Walk vs AR(1) Differencing

Interactive 3D simulator: watch a random walk (unit root, non-stationary) and a mean-reverting AR(1) process evolve live, apply first/second differencing, and read a live Dickey-Fuller-style test statistic that decides whether the series is stationary.

Data Science3DAdvanced60 FPS
ds-topic-97 ↗ Open standalone

Every ARIMA or SARIMA forecast starts with the same question: is this time series stationary? This simulator generates an AR(1) process live — y[t] = φ·y[t-1] + noise — and renders it in 3D as a scrolling rail of points next to its differenced counterpart. Push φ to exactly 1.00 and the series becomes a random walk with a unit root: its variance grows without bound and no amount of waiting makes it settle down. Pull φ below 1.00 and the process becomes mean-reverting and stationary. A live simplified Augmented Dickey-Fuller regression is computed every tick on the currently selected differencing order, so you can watch the test statistic cross the critical value in real time as you change φ, the noise level, or how many times the series has been differenced — exactly the diagnostic step every Box-Jenkins time-series workflow performs before fitting a model.

⚙ Under the hood

Generate an AR(1) time series live, push its coefficient to a unit root to see a non-stationary random walk, and watch a live Dickey-Fuller-style test statistic decide whether first or second differencing has restored stationarity.

time seriesARIMAstationarityunit rootdifferencingstatistics

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

What did you find?

Add reproduction steps (optional)