domains / families / data / risk-metrics-calculation

risk-metrics-calculation

combined

Calculate portfolio risk metrics including VaR, CVaR, Sharpe, Sortino, and drawdown analysis. Use when measuring portfolio risk, implementing risk limits, or building risk monitoring systems.

When to use

When not to use

Skill page

Conflict

The first two copies are nearly identical high-level instructions that point to a resource file, while the third copy contains the actual implementation logic, including a Python class for calculating VaR, CVaR, Sharpe, Sortino, and drawdowns. The first two lack the specific calculation steps, and the third lacks the explicit 'Do not use' and 'Limitations' sections found in the others. Combining them provides both the procedural guardrails and the technical implementation.