time series
10 posts
- Quant techniques · resampling
Bootstrapping time series: why you resample blocks, not days
The ordinary bootstrap assumes your observations are independent. Daily returns of a trend-following or carry strategy often aren’t, and shuffling days throws that dependence away, so error bars come out too narrow. The moving-block bootstrap keeps it. How much the naive version understates, and how to pick a block length.
- Quant techniques · pairs trading
Correlated or cointegrated? Spurious regression and the Engle–Granger test
Regress one random walk on another, unrelated one, and you get a “significant” slope about 90% of the time. Prices that really belong together are cointegrated: some combination of them is stationary. The two-step Engle–Granger test tells the cases apart, if you use the right critical values.
- Quant techniques · forecast uncertainty
Conformal calibration for volatility forecast intervals
Wrap a volatility or return forecast with a residual calibration layer, understand split conformal ranks, and account for time-series dependence in evaluation.
- Quant techniques · forecasting
The Diebold–Mariano test: are two forecasts really different?
Compare forecast accuracy through a loss-differential time series, estimate its long-run variance, and account for overlapping multi-step forecast errors.
- Quant techniques · time series
Fractional differencing: preserve memory while making a series usable
Use the fractional-difference operator to tune the stationarity–memory trade-off, compute its long-lag weights, and avoid misleading truncation and leakage.
- Quant techniques · volatility forecasting
Volatility clusters: forecasting it with GARCH(1,1)
Big moves follow big moves. GARCH(1,1) captures that with three parameters, explains fat tails from normal shocks, and gives a volatility forecast that decays back to a long-run level with a half-life you can read off α + β.
- Quant techniques · volatility forecasting
HAR-RV: a simple model for forecasting realized volatility
Combine daily, weekly, and monthly realized-volatility components to mimic long memory, fit a practical regression, and evaluate forecasts without leaking future data.
- Quant techniques · econometric inference
Newey–West standard errors for financial time series
Estimate regression uncertainty robust to heteroskedasticity and serial correlation with a Bartlett-kernel HAC covariance matrix, and choose a bandwidth that matches the dependence.
- Quant techniques · backtesting
Purged cross-validation: stop overlapping labels leaking across folds
Financial labels span time, so ordinary random folds can share parts of the same outcome between training and test. Purging and embargo reduce this leakage while preserving a clear model-selection protocol.
- Quant techniques · statistical tests
Is it a random walk? The variance ratio test
If prices follow a random walk, the variance of q-day returns is exactly q times the variance of 1-day returns. Lo and MacKinlay turned that into a test: ratios above 1 point to momentum, below 1 to mean reversion. The formula, its standard error, and how much data you need to see anything.