performance-metrics
Compute and interpret industry-standard risk-adjusted performance metrics for investment analysis. This skill covers Sharpe ratio, Sortino ratio, Information ratio, Treynor ratio, Calmar ratio, Omega ratio, and capture ratios—each designed to measure returns relative to different types of risk. Use it to compare funds, assess manager skill, and understand whether volatility is justified by returns.
Performance Metrics calculates risk-adjusted ratios like Sharpe and Sortino to measure investment returns relative to risk.
AI-generated summary based on this skill's SKILL.md
Install
JoelLewis/finance_skills/performance-metrics · repository language: Python
git clone https://github.com/JoelLewis/finance_skills
cp -r finance_skills/plugins/wealth-management/skills/performance-metrics ~/.claude/skills/performance-metricsFrequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
How do I calculate risk-adjusted returns with performance-metrics?
performance-metrics computes industry-standard risk-adjusted metrics including Sharpe ratio, Sortino ratio, Information ratio, Treynor ratio, Calmar ratio, Omega ratio, and capture ratios. Each metric measures returns relative to a specific type of risk—total volatility, downside deviation, systematic risk, or drawdown—so you can assess whether an investment's returns justify its risk exposure.
What is the difference between Sortino ratio vs Sharpe ratio?
performance-metrics distinguishes these two: Sharpe ratio penalizes all volatility equally, while Sortino ratio focuses only on downside deviation below a target return. Use Sharpe for broad volatility comparison; use Sortino when you care specifically about losses. Sortino often shows higher ratios because it ignores upside swings.
How does performance-metrics help compare two investment managers' risk?
performance-metrics enables side-by-side comparison by calculating the same risk-adjusted metrics for each manager's portfolio. You can measure Information ratio (alpha per unit of tracking error), Treynor ratio (return per unit of beta), or capture ratios (upside/downside performance versus a benchmark) to assess skill and risk-taking behavior objectively.
Which performance-metrics apply to evaluate downside risk and capture ratios?
performance-metrics includes Sortino ratio for downside deviation analysis, Calmar ratio for maximum drawdown performance, and upside/downside capture ratios for benchmark comparison. Capture ratios show what percentage of benchmark gains or losses a fund captured, isolating performance in rising and falling markets separately.
Can performance-metrics tell me if an investment's volatility is justified?
Yes. performance-metrics calculates return-per-unit-of-risk metrics like Sharpe ratio, Sortino ratio, and Treynor ratio. A higher ratio means better returns for the risk taken. Compare ratios across similar investments: if one has higher returns but lower ratio, its volatility may not be justified relative to alternatives.
What does performance-metrics' Information ratio measure for active funds?
performance-metrics' Information ratio quantifies active management skill by dividing alpha (excess return over benchmark) by tracking error (volatility of that excess return). A higher Information ratio indicates the manager is generating consistent outperformance relative to their benchmark with controlled deviation from it.
SKILL.md
rendered from the published skill — quoted content, verbatim
Performance Metrics
Core Concepts
Sharpe Ratio
The most widely used risk-adjusted performance measure. It divides excess return (over the risk-free rate) by total volatility.
SR = (R_p - R_f) / sigma_p
- R_p: annualized portfolio return
- R_f: annualized risk-free rate
- sigma_p: annualized portfolio volatility (standard deviation of returns)
A higher Sharpe ratio indicates more return per unit of total risk. Typical benchmarks: SR < 0.5 is poor, 0.5-1.0 is acceptable, > 1.0 is strong, > 2.0 is exceptional.
Annualization: If computed from monthly data, SR_annual = SR_monthly * sqrt(12).
Sortino
(truncated - see the full file via the links below)
Read as markdown · JSON record · Browse the source repository
File tree — 2 files
plugins/wealth-management/skills/performance-metrics/SKILL.md
plugins/wealth-management/skills/performance-metrics/scripts/performance_metrics.py