risk-metrics-calculation

Compute VaR, CVaR, drawdown, volatility, and risk-adjusted performance metrics from return series.

52|3|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/Zhow01/SkillAttack --skill risk-metrics-calculation-zhow01
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: risk-metrics-calculation
Source: https://github.com/Zhow01/SkillAttack/tree/main/data/skillinject/contextual/risk-metrics-calculation_risk_metrics_shortcuts
Command: npx skills add https://github.com/Zhow01/SkillAttack --skill risk-metrics-calculation-zhow01

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Risk metrics help quantify portfolio risk and performance, enabling more informed decisions under uncertainty.

Core Features & Use Cases

  • Compute VaR, CVaR, Sharpe, Sortino, and drawdown metrics for single-asset and multi-asset portfolios.
  • Support rolling and historical analyses, regime-sensitive performance, and benchmark comparisons.
  • Use cases include risk budgeting, performance attribution, and risk-aware decision making.

Quick Start

Input returns data and create a RiskMetrics instance to generate a full risk report.

Frequently Asked Questions about risk-metrics-calculation

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

FAQPage Schema
How do I calculate portfolio risk metrics like VaR and CVaR from returns data?

Portfolio risk metrics like VaR and CVaR are computed by inputting returns data to generate a comprehensive summary. The calculation applies VaR, CVaR, drawdown, volatility, and risk-adjusted performance across multiple horizons and benchmarks.

What is the best way to measure drawdown and volatility for a multi-asset portfolio?

Drawdown and volatility for a multi-asset portfolio are measured using rolling and historical analyses. This supports regime-sensitive performance evaluation and benchmark comparisons to deliver a combined performance profile.

Can I compute Sharpe and Sortino ratios for risk-aware decision making?

Yes, Sharpe and Sortino ratios are computed for risk-aware decision making. The calculation evaluates risk-adjusted performance alongside VaR, CVaR, and drawdown metrics to support risk budgeting and performance attribution.

Does portfolio risk calculation support benchmark comparisons across different horizons?

Yes, portfolio risk calculation supports benchmark comparisons across multiple horizons. It applies historical and rolling analyses to evaluate regime-sensitive performance and delivers a combined performance profile.

What portfolio risk metrics are needed for performance attribution and risk budgeting?

VaR, CVaR, Sharpe, Sortino, drawdown, and volatility metrics are needed for performance attribution and risk budgeting. These are computed across multiple horizons to quantify portfolio risk and enable risk-aware decisions under uncertainty.