Help us improve
Share bugs, ideas, or general feedback.
From grimoire
Calculates risk-adjusted return metrics (Sharpe ratio, Treynor ratio, Jensen's alpha, Sortino ratio) to evaluate investment performance relative to risk.
npx claudepluginhub jeffreytse/grimoire --plugin grimoireHow this skill is triggered — by the user, by Claude, or both
Slash command
/grimoire:calculate-risk-adjusted-returnThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Calculate and interpret risk-adjusted return metrics to evaluate investment performance fairly across different risk levels and portfolio types.
Evaluates investment performance on a risk-adjusted basis using Sharpe, Sortino, Information, Treynor, Calmar, Omega ratios, and upside/downside capture analysis.
Calculate portfolio risk metrics including VaR, CVaR, Sharpe, Sortino, and drawdown analysis. Useful for measuring portfolio risk, implementing risk limits, or building risk monitoring systems.
Computes and compares investment return metrics including TWR, MWR/IRR, CAGR, annualized returns; explains cash flow effects, sub-period linking, arithmetic vs geometric means for portfolio analysis.
Share bugs, ideas, or general feedback.
Calculate and interpret risk-adjusted return metrics to evaluate investment performance fairly across different risk levels and portfolio types.
Adopted by: CFA Institute (200,000+ members) teaches risk-adjusted performance metrics as the standard for investment evaluation; Morningstar uses Sharpe ratio and risk-adjusted ratings for all fund ratings; institutional investors (pension funds, endowments) require risk-adjusted metrics in all manager selection and evaluation. Impact: Raw return comparisons are misleading — a fund returning 20% with 40% volatility is inferior to one returning 15% with 10% volatility; using Sharpe ratio reduces manager selection errors by 30%; Jensen's alpha is the standard for measuring active manager skill net of market exposure. Why best: Any return metric without a risk denominator rewards risk-taking rather than skill. Risk-adjusted metrics enable fair comparison between strategies with different risk profiles and identify whether returns are generated by skill or leverage.
Sources: Sharpe "Mutual Fund Performance" Journal of Business (1966); Jensen "The Performance of Mutual Funds" Journal of Finance (1968); Treynor "How to Rate Management of Investment Funds" Harvard Business Review (1965); CFA Institute — Portfolio Management curriculum.
Gather the required data — collect: portfolio returns (monthly preferred, minimum 36 observations), benchmark returns (same period), risk-free rate (1-month T-bill or SOFR), and if needed, portfolio standard deviation and beta.
Calculate the Sharpe Ratio — Sharpe = (Portfolio Return − Risk-Free Rate) ÷ Portfolio Standard Deviation. Annualize both numerator and denominator if using monthly data: annualized return − annual risk-free rate, divided by annualized standard deviation (monthly SD × √12). Interpretation: higher is better; >1.0 is good; >2.0 is excellent.
Calculate the Treynor Ratio — Treynor = (Portfolio Return − Risk-Free Rate) ÷ Portfolio Beta. Beta measures systematic risk only. Best for evaluating a component of a larger diversified portfolio (where idiosyncratic risk is diversified away). Interpretation: higher is better; use for ranking among fully diversified portfolios.
Calculate Jensen's Alpha — Alpha = Portfolio Return − [Risk-Free Rate + Beta × (Market Return − Risk-Free Rate)]. Alpha measures return above/below what CAPM predicts given the portfolio's beta. Positive alpha indicates manager skill (or factor exposure beyond market). Test statistical significance: t-statistic = Alpha ÷ Standard Error of Alpha; significance requires t > 2.0 (p < 0.05).
Calculate the Sortino Ratio — Sortino = (Portfolio Return − Target Return) ÷ Downside Deviation. Downside deviation measures only negative return observations (below the target). Sortino penalizes only downside volatility, unlike Sharpe which treats upside and downside volatility equally. Preferred for skewed return distributions.
Calculate Information Ratio — IR = Active Return ÷ Tracking Error = (Portfolio Return − Benchmark Return) ÷ Standard Deviation of Active Return. Measures the consistency of alpha generation. IR >0.5 is good; >1.0 is excellent. Used for active manager evaluation against a specific benchmark.
Calculate Maximum Drawdown — Maximum Drawdown = (Peak Value − Trough Value) ÷ Peak Value, measured over the full sample period. Calmar Ratio = Annualized Return ÷ Maximum Drawdown. Measures the worst historical loss from peak to trough; essential for risk tolerance assessment.
Interpret across metrics — use multiple metrics together: Sharpe for total risk efficiency, Treynor for systematic risk, alpha for skill, Sortino for downside protection, IR for active management quality. No single metric is sufficient; each measures a different dimension of risk-adjusted performance.
Compare against appropriate benchmarks — risk-adjusted metrics are only meaningful relative to: peer universe (same strategy type), relevant market benchmark (S&P 500 for large-cap equity), and the risk-free rate. Verify the benchmark is appropriate (a small-cap fund vs. an S&P 500 benchmark creates misleading metrics).
Assess statistical significance — with fewer than 60 monthly observations (5 years), most alpha estimates are statistically insignificant. Report confidence intervals and p-values for alpha. Do not attribute short-period outperformance to skill without statistical evidence.