Open Family Office Datasets Tickers Strategies Portfolios Research Posts About Changelog

Time Series Analysis, from Its Open Sources

Source

Citation. The issue names James D. Hamilton, Time Series Analysis, Princeton University Press, 1994 (ISBN 978-0-691-04289-3). This page doesn't review the book, which is behind a paywall. The maintainer decided on 2026-11-27 that a book issue reviews its open equivalents. This page reviews four open sources on the chapters the issue names first:

The book's unit-root chapters are left to #137, and its Kalman filter to the Brunton & Kutz review (docs/literature/data-driven-science-engineering.md).

Status. Planned. #8 holds the metrics with their errors, #29 the Sortino ratio's inference, and #10 and #31 the splitters and the purge length. These sources give the standard error of a metric under serial correlation, a model of changing volatility, and regimes found from data. No code in the repo uses them yet, though open_familyoffice/scoring.py uses Newey–West weights (#109).

Read. Read on 2026-11-27. A subagent read all four. It used pdftotext, and read the Newey–West paper, a scan with no text layer, as page images. It skimmed the algebra of the Handbook chapter's estimation sections. I checked three quotes, and recomputed Engle's model from his Table II.

Summary

Claim. Returns are serially correlated and their volatility clusters. So the error of a mean or a ratio needs an estimator that allows for both (Newey–West). Volatility itself can be forecast (ARCH and GARCH). And a series can switch between regimes, which can be inferred from data as it arrives (Markov switching).

Method.

Findings, as the sources report them.

Setting Number Value
S&P 500, daily, 1963–2003 kurtosis, full sample and since 1990 41.45, 6.78
The same GARCH(1,1) weights: long run, last forecast, news 0.004, 0.941, 0.055
The same, TARCH t-statistic of the asymmetry almost 20
The same falls against rises, effect on volatility more than 3 times
TARCH 99.7% intervals, 10,000+ days expected misses, actual 29, 75
99% one-day VaR, normal against the residuals' quantile VaR 1.77%, 2%
99% ten-day VaR, √10 rule against a bootstrap of the residuals VaR 5.6%, 6.5%
US GDP, two regimes, 1947–2004 expansion and recession growth, ML 4.62%, −0.48% a year
The same chance a regime lasts another quarter 0.92, 0.74
Postwar US recessions in the sample 11

From Engle's Table II, the TARCH's persistence is α + β + γ/2 = 0.9974. That is a half-life of about 267 days. Its long-run daily volatility is 1.33%, against a sample figure of 0.94%. Engle doesn't discuss the gap.

Where the claims go beyond the evidence

Newey–West gives no rule for the lag. The authors write that the growth rate "gives little guidance concerning the choice of m in practice". The paper has no simulation and no data. The rule ⌊4(T/100)^(2/9)⌋ that scoring.py uses comes from later work.

Engle's tests are in sample. The 75 misses against 29 expected, and each VaR multiplier, come from a model fitted on the same 40 years. Engle lists over 20 variants of ARCH, says "a slightly better model can be found", and allows for none of the choices. That one model fits "almost any financial return series" rests on the S&P 500 alone.

Smoothed probabilities look ahead, and the sources don't warn. Both of Hamilton's texts use full-sample smoothed probabilities to estimate and to show results. Only the filtered probability is known at t. The Handbook's "excellent out-of-sample record" for recessions uses probabilities one quarter after the fact, published four months later. It is shown in a figure, with no hit rate or loss.

The number of regimes has no standard test. Under one regime, some parameters don't exist, so the likelihood ratio "does not have the usual χ² limiting distribution". The BIC fails for the same reason. Hamilton lists special tests, and warns that rich models are "asking more than the data can deliver": 11 recessions give about 50 quarters of data.

Errors in the texts.

Credit. Newey and West prove positive semi-definiteness and repair an earlier proof. Engle shows his model's intervals miss too often, and that option prices are more skewed than his model implies. Hamilton states the limits of his tests. He recommends many starting points, because the likelihood has several maxima.

Use in this repo

Every metric's error needs a HAC estimator, with its lag stated. #8's Sharpe, Sortino (#29) and capital-efficiency errors should allow for serial correlation and changing volatility, as Newey–West does. The lag is a choice, and the paper gives no rule, so the harness records it as a trial in the ledger (#7). scoring.py's default is one such rule.

Volatility clusters, so a constant-volatility error or drawdown is too small. A GARCH persistence near 1 means shocks last for months. A drawdown or VaR from independent draws understates the risk. The bootstrap gave a ten-day VaR of 6.5% against 5.6% from the √10 rule. #8's bootstraps should resample blocks, not single days.

A regime signal must be filtered, never smoothed. A strategy that uses a regime model can use only ξ̂_{t|t} at t. A backtest that uses smoothed probabilities is look-ahead. #10's splitters and the point-in-time data must also refit the model's parameters on past data only.

Count the regime models tried. The number of regimes, the switching parameters and the GARCH variant are each a choice. The ledger (#7) counts them, and DSR (#8) deflates for them.

The purge length follows the dependence. A persistence of 0.9974 means volatility shocks last about 267 days. #31's purge and embargo should cover the dependence of the strategy's own returns, not a set few days.

A question for the maintainer. Should the harness use one rule for the HAC lag, such as ⌊4(T/100)^(2/9)⌋, for every metric? The other choice is to pick it per strategy and record it as a trial.