risk-analysis

Quantifies portfolio risk via VaR, CVaR, max drawdown, and Monte Carlo simulations.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Risk measurement and stress testing provides a systematic framework to quantify potential losses, validate risk controls, and guide asset allocation decisions for portfolios.

Core Features & Use Cases

  • VaR / CVaR calculations (historical, parametric, and Monte Carlo)
  • Maximum drawdown analysis and stress testing with historical and hypothetical scenarios
  • Tail-risk analytics using EVT and Monte Carlo result interpretation

Quick Start

Provide your return series or net value data and a portfolio to generate VaR, CVaR, max drawdown, and Monte Carlo projections.

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 simulation?

Portfolio VaR and CVaR are calculated using historical, parametric, and Monte Carlo methods by processing return series or net value data to project potential losses and tail-risk exposure. Results include structured risk metrics and recommended controls.

What is the difference between historical VaR and Monte Carlo VaR for risk analysis?

Historical VaR uses actual past return distributions, while Monte Carlo VaR generates simulated future scenarios. Both methods, alongside parametric VaR, are implemented to quantify portfolio risk and calculate metrics like CVaR and maximum drawdown.

Can I run stress tests and tail-risk analysis across equities and fixed income portfolios?

Yes, stress testing and tail-risk analytics using Extreme Value Theory apply to equities, fixed income, and multi-asset allocations. The analysis covers historical and hypothetical scenarios, providing structured outputs and recommended risk controls.

How do I backtest VaR models to validate risk controls?

VaR backtesting validates risk models by comparing projected losses against actual return series data. The analysis evaluates historical, parametric, and Monte Carlo VaR accuracy, producing structured outputs and recommended risk control adjustments.

What data do I need to provide for maximum drawdown analysis and Monte Carlo projections?

You need to provide a portfolio's return series or net value data to generate VaR, CVaR, maximum drawdown, and Monte Carlo projections. This data drives scenario analysis and structured risk reporting across asset classes.

When should I use CVaR instead of VaR for portfolio risk measurement?

Use CVaR alongside VaR when tail-risk analysis is needed, as CVaR measures expected losses beyond the VaR threshold. Both metrics are calculated through historical, parametric, and Monte Carlo methods for comprehensive portfolio risk quantification.