AI Agent Hub
Back to skills
Fund Correlation Analysis icon

Fund Correlation Analysis

Data Analysis Updated 2026.08.29

Paste the following prompt into your AI chat to install this skill:

Please install @user_a706bb76/finance001 following the official guide at https://skillhub.cn/install/skillhub.md.

About this skill

Problem

Fund portfolio analysis often requires judging whether several tickers move together, especially QDII funds, ETFs, and actively managed funds. Common needs include assessing the relationship between overseas and domestic assets, comparing how closely index ETFs track each other, and checking how well active funds align with benchmark indices. Manually collecting NAV data, aligning dates, calculating correlations, and formatting reports can be error-prone around fund codes and data sources.

How It Works

The skill uses a two-interface AkShare workflow:
- Takes at least two six-digit fund codes, covering ETFs, open-ended funds, LOFs, QDIIs, money market funds, and bond funds
- Uses ak.fund_name_em() to load fund names from Tiantian Fund, and ak.fund_open_fund_info_em() to fetch historical NAV
- Fetches data for 3m, 6m, or 12m windows, aligns return series to the minimum common length, and computes the Pearson correlation coefficient
- Outputs table, csv, json, or html; HTML reports include a color-coded matrix, legend, and pairwise details

Boundaries

Correlation measures only linear relationships and does not replace drawdown, volatility, or tracking error metrics. Some QDII data may be delayed, and historical correlation does not imply future behavior. Compare multiple time windows and interpret strong, weak, and negative correlations separately.

Use Cases

  • Portfolio managers reviewing quarterly performance can pull 12-month correlations between active funds and index benchmarks
  • QDII researchers assessing diversification can compare six-month correlations of India and Germany equity funds with A-share ETFs
  • Index analysts selecting ETFs can check three-month linkage among SSE 50, CSI 300, and CSI 500 funds
  • Risk engineers can export pairwise fund correlations to CSV for downstream portfolio modeling

Best For

  • Multi-asset portfolio managers who need to check whether active funds, QDIIs, and index funds move together
  • ETF researchers selecting index funds who need to compare recent linkage among similar products
  • Quant analysts writing post-investment reports who need pairwise fund correlations in structured data
  • Fund product managers researching industry funds who need to inspect active-fund benchmark correlation