The interview problem
Explain when Xt=φXt−1+εt has a stationary variance.
Original practice, not a reported company interview. Scenarios and numbers are illustrative. Interview date: not applicable. Sources retrieved October 1, 2026.
1. Scope and worked approach
Assume zero-mean independent innovations with variance σ² and |φ|<1. Recursing expresses X as a convergent weighted sum of past innovations. Variance satisfies V=φ²V+σ², giving V=σ²/(1−φ²).
2. Trace the design or derivation
Recurrence → weighted shock history → geometric variance sum → stability
With intercept c, the stationary mean is c/(1−φ), when the same stability condition holds. Center the series before applying the zero-mean variance argument. Seasonal or trending data should not be forced into this model just because an AR coefficient can be estimated.
3. Calculate the example
For φ=0.8 and σ²=9, V=9/0.36=25. A one-unit shock leaves expected influence 0.8^5=0.32768 after five steps.
4. Failure cases and trade-offs
At φ=1 the finite stationary-variance derivation fails. A fitted coefficient near one can be uncertain, and changing regimes violate a fixed-parameter model.
5. Validation, follow-ups and self-review
Check φ=0 and negative φ. Follow-up: what changes with a nonzero intercept? Self-review: state the innovation assumptions and convergence condition.
Sources and related practice
Technical reference: www.statsmodels.org — ARMA stationarity concepts; scalar variance derivation is original.
Source publication/update: Not established. Retrieved October 1, 2026. The workflow, calculations and review exercises are original; this reference is not evidence that a company asked this question.
Continue with Design a demand forecasting system; Segment operating regimes in sensor histories.
Continue your preparation
Choose a connected learning path or browse more ML fundamentals questions. Read our editorial method and attribution policy.