fund-risk-analyzer

Compute annualized return, max drawdown, Sharpe ratio, and correlation matrix from NAV data.

12|2|Updated Apr 21, 2026
One-click install
npx skills add https://github.com/haomingz/kimi-skills --skill fund-risk-analyzer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fund-risk-analyzer
Source: https://github.com/haomingz/kimi-skills/tree/main/skills/fund-risk-analyzer
Command: npx skills add https://github.com/haomingz/kimi-skills --skill fund-risk-analyzer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Multi-ETF risk-return analysis from NAV data enables users to compare multiple funds by computing key risk-adjusted metrics, automating the evaluation of performance across ETFs.

Core Features & Use Cases

  • Compute annualized return, max drawdown, and annualized volatility for each ETF
  • Generate a Pearson correlation matrix based on daily returns to assess inter-asset relationships
  • Produce human-readable reports or export data to CSV/JSON for portfolio benchmarking

Quick Start

Run the etf_screener on a NAV CSV to generate a comparative risk-return report.

Frequently Asked Questions about fund-risk-analyzer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I calculate annualized return and max drawdown for multiple ETFs from NAV CSV data?

You can calculate annualized return and max drawdown for multiple ETFs by processing NAV CSV data through a Python standard library script. The analysis computes annualized volatility and Sharpe ratio for each fund, handling missing data robustly to generate a comparative risk-return report.

How do I generate a correlation matrix for daily returns across multiple funds?

Generating a correlation matrix for daily returns requires computing Pearson correlation coefficients across multiple ETF NAV time series. The script calculates daily returns from your NAV CSV data and produces a matrix assessing inter-asset relationships for portfolio risk assessment.

Can I compute ETF risk-adjusted metrics like the Sharpe ratio using only Python's standard library?

Yes, you can compute ETF risk-adjusted metrics like the Sharpe ratio using only Python's standard library. The analysis requires no external dependencies, using a configurable risk-free rate and trading days to calculate annualized volatility and returns.

What is the best way to compare fund performance using NAV data for portfolio benchmarking?

The best way to compare fund performance using NAV data is to compute key risk-return metrics including annualized return, max drawdown, and Sharpe ratio. This approach generates human-readable reports or exports data to CSV and JSON for portfolio benchmarking.

Does this fund risk analysis approach work with missing data in my NAV CSV files?

Yes, this fund risk analysis approach works with missing data in NAV CSV files by applying robust handling of missing values. The script processes incomplete NAV time series without failing, ensuring reliable calculation of annualized volatility and correlation matrices.

How do I configure the risk-free rate for ETF Sharpe ratio calculations?

You can configure the risk-free rate for ETF Sharpe ratio calculations as a script parameter. The analysis uses this configurable rate alongside a defined number of trading days to compute annualized returns and volatility for accurate risk-adjusted performance benchmarking.