Peer comparison calculation

From aifinlab/FinClaw · View interactive version

Peer comparison 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 不包含数据采集功能,需要用户提供清洗后的对比数据。建议对比对象数量不少于10个,以便进行有意义的排名和对比分析。


功能

本 Skill 提供全面的同类对比分析能力,涵盖多种对比方法:

1. 排名分析

2. 对比分析

3. 统计指标

4. 可视化分析

5. 数据处理能力


使用示例

输出示例

{
  "comparison_period": "2024-01-01 to 2024-12-31",
  "total_objects": 50,
  "ranking": [
    {
      "object_id": "FUND001",
      "object_name": "基金A",
      "metric_value": 18.5,
      "absolute_rank": 1,
      "percentile_rank": 98,
      "relative_to_mean": 1.25,
      "relative_to_median": 1.15
    }
  ],
  "statistics": {
    "mean": 14.8,
    "median": 16.1,
    "std": 5.2,
    "min": 5.3,
    "max": 18.5,
    "percentile_25": 11.2,
    "percentile_75": 17.8
  },
  "group_comparison": {
    "金融": {
      "mean": 12.5,
      "count": 10
    },
    "科技": {
      "mean": 16.8,
      "count": 15
    }
  }
}

注意事项与限制

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.