Created by Dr. Pedram Jahangiry | Enhanced with Claude
Generate any number of white-noise, random-walk, and cyclical series side by side and watch each one's conditional expectation E[X_t | X_(t-1), X_(t-2), ...] play out — constant for one, drifting or oscillating for the other two, which is the entire practical difference between a stationary process and a non-stationary one.
Explore conditional expectations E[X_t | X_(t-1), X_(t-2), ...] across different time series processes
E[X_t | X_(t-1), X_(t-2), ...] = E[X_t] = μ (constant for all t) → STATIONARY
E[X_t | X_(t-1), X_(t-2), ...] = X_(t-1) + δ (depends on past values) → NON-STATIONARY
E[X_t | X_(t-1), X_(t-2), ...] = A·sin(ωt + φ) (time-varying pattern) → NON-STATIONARY