risk-analysis

Compute VaR, CVaR, and maximum drawdown across historical and Monte Carlo scenarios.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/prinzeval/Vibe-Trading --skill risk-analysis-prinzeval
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: risk-analysis
Source: https://github.com/prinzeval/Vibe-Trading/tree/main/VALENDATA/agent/src/skills/risk-analysis
Command: npx skills add https://github.com/prinzeval/Vibe-Trading --skill risk-analysis-prinzeval

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Risk modeling and stress testing for portfolios, enabling VaR, CVaR, and tail-risk analysis with Monte Carlo simulations and historical scenario testing.

Core Features & Use Cases

  • VaR, CVaR calculations using historical, parametric, and Monte Carlo methods.
  • Maximum drawdown analysis and comprehensive stress testing across historical and hypothetical scenarios.
  • Tail-risk estimation using EVT (POT) and scenario-based risk decompositions.

Quick Start

Run a risk-analysis workflow on your portfolio by loading the provided return series and executing the VaR and stress-test modules.

Frequently Asked Questions about risk-analysis

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

FAQPage Schema
How do I calculate VaR and CVaR for a portfolio using Monte Carlo simulations?

Portfolio VaR and CVaR calculations use historical, parametric, and Monte Carlo methods to quantify risk. Monte Carlo VaR simulates diverse market conditions to estimate potential losses, while CVaR measures tail risk beyond the VaR threshold.

What is the difference between historical VaR and parametric VaR in risk analysis?

Historical VaR computes risk directly from past return series data, whereas parametric VaR assumes a specific statistical distribution. Both methods quantify portfolio risk, but parametric VaR offers faster computation while historical VaR captures actual market dynamics.

How do I run stress tests and scenario analysis on portfolio return series?

Stress testing applies historical and hypothetical scenarios to a portfolio return series to evaluate performance under adverse market conditions. This risk analysis computes maximum drawdown and scenario-based risk decompositions to identify vulnerabilities across diverse market events.

When should I use EVT tail estimation for tail risk analysis?

EVT tail estimation using the POT method is needed when analyzing extreme tail risk beyond standard VaR models. It estimates extreme value theory parameters for rare market events, providing more accurate risk metrics for severe portfolio losses than historical or parametric approaches.

Can I compute maximum drawdown alongside VaR and CVaR in a single risk workflow?

Maximum drawdown analysis runs alongside VaR, CVaR, and stress test modules within a single risk-analysis workflow. Loading the provided return series executes all risk metrics together, delivering comprehensive portfolio risk quantification across multiple market conditions.