Style factor calculation

From aifinlab/FinClaw · View interactive version

Style factor calculation is an AI agent skill from the GitHub repository aifinlab/FinClaw. 用于因子暴露的风格因子计算原子 skill,适用于通用行业金融计算场景。

How to use this skill

Skill file

风格因子计算 Skill

数据来源

本 Skill 支持多种金融数据输入格式,核心数据来源包括:

1. 价格序列数据

2. 财务数据

3. 市场数据

4. 数据格式要求

说明:本 Skill 不包含数据采集功能,需要用户提供清洗后的价格和财务数据。建议数据时间跨度不少于1年,以便进行准确的风格因子计算。


功能

本 Skill 提供全面的风格因子计算能力,涵盖多种风格因子:

1. 价值风格因子

2. 成长风格因子

3. 规模风格因子

4. 动量风格因子

5. 质量风格因子

6. 因子暴露计算

7. 数据处理能力


使用示例

输出示例

{
  "symbol": "000001.SZ",
  "date": "2024-12-31",
  "style_factors": {
    "value_factors": {
      "pe": 15.2,
      "pe_percentile": 45.3,
      "pb": 2.1,
      "pb_percentile": 52.8,
      "ps": 3.5,
      "ps_percentile": 48.2
    },
    "growth_factors": {
      "revenue_growth": 12.5,
      "revenue_growth_percentile": 65.8,
      "net_income_growth": 18.3,
      "net_income_growth_percentile": 72.5
    },
    "size_factors": {
      "market_cap": 50000000000,
      "market_cap_percentile": 78.5,
      "size_category": "large_cap"
    },
    "momentum_factors": {
      "price_momentum": 8.5,
      "price_momentum_percentile": 58.2,
      "return_momentum": 7.2,
      "return_momentum_percentile": 55.8
    }
  },
  "factor_exposure": {
    "value_exposure": 0.45,
    "growth_exposure": 0.65,
    "size_exposure": 0.78,
    "momentum_exposure": 0.58
  }
}

注意事项与限制

1. 数据质量要求

2. 计算方法选择

3. 时间序列特性

4. 综合判断原则

5. 使用限制


参考资料

License

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.