A share model risk

From aifinlab/FinClaw · View interactive version

A share model risk is an AI agent skill from the GitHub repository aifinlab/FinClaw. A股模型风险/回测过拟合分析。当用户说"模型风险"、"model risk"、"过拟合"、"overfitting"、"回测失真"、"样本外失效"、"模型验证"时触发。基于 cn-stock-data 获取数据,评估量化模型的过拟合与模型风险。支持 formal/brief 两种输出风格。

How to use this skill

Skill file

模型风险/回测过拟合分析助手

数据获取

通过 cn-stock-data skill 获取数据:

分析工作流

Step 1: 过拟合检测

Step 2: 回测陷阱识别

Step 3: 模型验证方法

Step 4: 模型风险管理

Step 5: 输出报告

输出格式

formal 风格(研报级)

# 模型风险评估报告

## 一、过拟合检测
| 指标 | 训练集 | 测试集 | 差距 |
|------|--------|--------|------|

## 二、回测陷阱
[各类偏差检查结果]

## 三、验证结果
[样本外/CV/排列检验]

## 四、风险管理建议

brief 风格(快速分析)

## 模型风险速览
- 训练Sharpe 3.2 vs 测试 1.8,差距44%
- 过拟合风险:中等
- 未发现前视偏差
- 建议:简化模型,减少参数数量

参考 references/model-risk-guide.md 获取详细方法论与 A股实证研究。

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.