tempdisagg:时间序列数据时间拆分的 Python 框架
tempdisagg: A Python Framework for Temporal Disaggregation of Time Series Data
Jaime Vera-Jaramillo
中文摘要
tempdisagg 是一个开源 Python 包,用于从低频基准数据(可选地结合高频指标)估计高频时间序列,并确保估计值聚合后精确等于基准值。它实现了基于回归的 Chow-Lin、Fernández 和 Litterman 估计量,动态 Chow-Lin 模型,Denton 和 Denton-Cholette 基准化过程以及均匀分布,其公式和默认值与 R 包 tempdisagg 一致,并将 Proietti 的自回归分布滞后模型作为实验性扩展。所有广义最小二乘估计量共享一个引擎,其中残差协方差通过其三角因子应用,使得一次似然评估的计算复杂度为 O(n n_l^2) 而非 O(n^2 n_l)。该包提供完整的推断(系数、标准误、基于似然的准则、预测方差以及自回归参数的完整轮廓和识别诊断),接受额外的精确线性约束、多个指标和聚合权重,并提供精确的非负和横截面协调、滚动原点回测、修订分析、一致性诊断和共同因子检验。通过覆盖 29 个参考案例的自动化测试套件确保与 R 的一致性:在固定自回归参数下,预测值和统计量的相对差异在 10^{-15} 到 10^{-7} 之间;在估计参数下,去除优化器容差差异后,一致性约为 10^{-8}。使用高频值已知的序列进行的实验说明了所报告的工具如何支持方法选择。
关键要点
- 01问题:从低频基准数据估计高频时间序列,并保证聚合精确一致。
- 02方法:实现 Chow-Lin、Fernández-Litterman、Denton 等估计量,共享 O(n n_l^2) 似然计算引擎。
- 03结果:与 R 包 tempdisagg 在 29 个参考案例上高度一致,相对差异低至 10^{-15}。
- 04功能:提供完整推断、线性约束、非负协调、回测、修订分析和共同因子检验。
- 05局限:Proietti 模型为实验性扩展,未提及更广泛验证。
解读
尚无解读。
原始英文摘要
arXiv:2503.22054v2 Announce Type: replace-cross Abstract: tempdisagg is an open-source Python package that estimates a high-frequency time series from low-frequency benchmarks and, optionally, high-frequency indicators, such that the estimates aggregate exactly to the benchmarks. It implements the regression-based estimators of Chow-Lin, Fern\'andez and Litterman, the dynamic Chow-Lin model, the Denton and Denton-Cholette benchmarking procedures and uniform distribution, with the formulas and defaults of the R package tempdisagg, together with the autoregressive distributed-lag model of Proietti as an experimental extension. All generalised least squares estimators share one engine in which the residual covariance is applied through its triangular factor, so that one likelihood evaluation costs $O(n\,n_l^2)$ instead of $O(n^2 n_l)$. The package reports complete inference (coefficients, standard errors, likelihood-based criteria, prediction variances and a full profile of the autoregressive parameter with identification diagnostics), accepts additional exact linear constraints, multiple indicators and aggregation weights, and provides exact non-negative and cross-sectional reconciliation, rolling-origin backtesting, revision analysis, conformity diagnostics and a common-factor test. Agreement with R is enforced by an automated test suite over 29 reference cases: with a fixed autoregressive parameter predictions and statistics agree to relative differences between $10^{-15}$ and $10^{-7}$, and with an estimated parameter they agree to about $10^{-8}$ once the difference in optimiser tolerance is removed. Experiments with series whose high-frequency values are known illustrate how the reported tools support the choice of method.