Rolling and Recursive Window Regression
Rolling and recursive window regression re-estimates a linear regression on moving or expanding windows of time-ordered data to show how coefficients evolve and to test parameter stability with recursive residuals.
이동창·확장창 회귀는 시간 순서 자료에서 겹치는 창이나 점점 넓어지는 창마다 선형회귀를 다시 추정하여 계수 변화를 보여 주고, 축차잔차로 모수 안정성을 검정합니다.
Has the effect of interest rates on my outcome changed over the last twenty years, or is it stable?
지난 20년 동안 금리가 결과변수에 미친 효과가 바뀌었나요, 아니면 일정했나요?
Re-fit the regression on each window of consecutive observations and plot the coefficient paths with confidence intervals, together with window R-squared and residual SD. Recursive residuals and their CUSUM test whether the coefficients were constant over the whole sample.
When to use Rolling and Recursive Window Regression
- You suspect regression relationships drift over time.
- You want an exploratory view before formal structural-break testing.
- You need coefficient estimates that use only recent data.
When to use something else
- You expect a single abrupt change at an unknown date; use a structural break or threshold regression.
- Your data are not ordered in time; windows have no meaning.
Assumptions and requirements
- Rows are ordered by the time column; duplicate times are not merged.
- Each window has enough rows for its own OLS fit (window larger than the number of coefficients plus one).
- Intervals in each window are classical t intervals and are not adjusted for overlap between windows.
What the analysis reports
- Coefficient paths with confidence intervals (up to 60 windows in the table)
- Window R-squared and residual SD paths
- Recursive residuals and CUSUM test against 5% bounds
- Coefficient path and CUSUM plots
How to report it
In [value]-observation rolling windows, the coefficient of [predictor] ranged from [value] to [value]; the CUSUM of recursive residuals [did/did not] cross its 5% bounds.
Related methods
- Serial Correlation Tests for Regression Residuals (Breusch-Godfrey, Durbin h, Cumby-Huizinga)
- Threshold Regression (Hansen Sample Splitting)
- Multiple Linear Regression
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with reference values computed independently in the test suite.
독립 계산. 시험에서 따로 계산한 참조값 대조 참조 시험 1건 통과.
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Rolling and Recursive Window Regression on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable, predictor (feature) columns and a time variable
- Price
- 250 credits for one analysis up to 10,000 rows (complexity level 2); larger or wider data costs more. Optional methodologist review: 1200 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.