kmdoh04 GitHub avatar

volatility-regime-research

kmdoh04

一项针对KOSPI200波动率预测的跨机制鲁棒性实证研究,表明一个两参数均值回复锚点能够在波动率机制变化时实现泛化,而XGBoost、随机森林和Transformer均失败,其域外R²为负。

Stars

3

7 天增长

暂无数据

Fork 数

0

开放 Issue

0

开源协议

MIT

最近更新

2026-07-29

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

该研究挑战了复杂模型泛化能力更强的普遍假设,提供了有力证据:将金融理论(简单锚点)嵌入模型,在域外场景下显著优于灵活的学习器,并表明域内准确性无法反映跨机制鲁棒性。

适合谁使用

  • 金融机器学习研究者
  • 量化分析师和波动率预测从业者
  • 投资组合风险管理实践者
  • 机器学习鲁棒性研究人员

典型使用场景

  • 设计能在机制转换下保持技能鲁棒的波动率模型
  • 通过在清晰分割的波动率机制上评估来压力测试预测模型
  • 将机器学习模型的泛化能力与基于理论的基准进行比较
  • 开发具有加性架构组件的物理信息神经网络

项目优势

  • 清晰的实验设计,包含受控的机制转换和泄漏控制(42天隔离期)
  • 可复现的代码、数据管道和共享CSV,确保所有模型使用完全相同的输入
  • 六种模型的全面比较,并采用块自助法对R²差异进行置信区间估计
  • 强有力的实证证据表明,跨机制泛化的关键在于结构而非容量

使用前须知

  • 锚点的优势依赖于尾随的已观测波动率,因此它能在变化后快速调整,但无法预测变化
  • 研究仅覆盖单一指数(KOSPI200),泛化到其他市场是未来工作
  • 没有任何模型能预测机制变化,锚点只是减轻了跨机制失败,而非解决它

README 快速开始

Cross-Regime Robustness of Volatility Forecasting

Why a two-parameter mean-reversion anchor generalizes where XGBoost, Random Forests, and Transformers fail.

An empirical study of out-of-distribution robustness in volatility forecasting on the KOSPI200. Six models are compared on identical data under controlled regime transitions, testing whether learned models retain forecasting skill when the volatility level shifts — and whether embedding financial theory into a neural network repairs the failure.

Status: Undergraduate research project. Preprint + code archived for the record. If you use this work, please cite via the DOI in CITATION.cff (see below).


TL;DR — the main finding

Cross-regime volatility generalization is a problem of structure, not capacity. Flexible learners do not fail to find a signal; they discard transferable structure that a two-parameter formula retains, in exchange for regime-specific fit.

Cross-regime R² (train on one volatility regime, test on another):

ExperimentXGBoostRandom ForestTransformersoft-PINNadditive-PINNanchor
E1 (low→high)−1.15−1.14−1.11−1.120.680.71
E2 (high→low)−22.9−27.2−22.2−10.10.700.76
E3 (mid→high)−0.80−0.78−0.67−0.760.590.57
E4 (mid→low)−3.75−5.77−2.55−4.41−0.40−0.96
E5 (bridge→mid)−4.72−10.5−5.02−3.470.320.69

All four data-driven models score negative cross-regime R² everywhere (Crisis Robustness Score = 0.00). A two-parameter closed-form mean-reversion anchor, with no training, achieves positive R² on four of five experiments.


Key results

  1. Data-driven models: strong in-regime, zero cross-regime. XGBoost, Random Forest, and a Transformer all reach in-regime R² of 0.38–0.92 but negative R² on every regime transition.
  2. In-regime accuracy is uninformative about cross-regime robustness. RF and XGBoost tie in-regime yet RF is strictly worse out-of-regime on every experiment — conventional validation cannot tell them apart.
  3. Failure is directionally asymmetric. Downward extrapolation (crisis→calm) is catastrophic (R² −2.6 to −27.2); upward is bounded (−0.67 to −1.15). This replicates across three model

项目描述

Cross-Regime Robustness of Volatility Forecasting: Why a Two-Parameter Mean-Reversion Anchor Generalizes Where XGBoost, Random Forests, and Transformers Fail

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

slvDev
精选
slvDev GitHub avatar

esp32-ai

A 28.9 million parameter language model runs on an $8 ESP32-S3 microcontroller entirely on-device, generating simple stories at about 9.5 tokens per second.

AI 与机器学习大语言模型
1,960
gavamedia
精选
gavamedia GitHub avatar

deltafin

Deltafin is a research project that runs the 2.8-trillion-parameter Mixture-of-Experts model Kimi K3 on a single Apple Silicon Mac (e.g., M1 Max with 64 GB) at about 16 seconds per token, using exact, reproducible inference with local or streaming expert loading.

AI 与机器学习大语言模型
304
jamesob
精选
jamesob GitHub avatar

local-llm

A comprehensive guide for building and configuring a high-end local machine to run state-of-the-art LLMs, with detailed hardware choices, BIOS tuning, and Docker-based model serving.

AI 与机器学习大语言模型
1,660