Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Principle:AI4Finance Foundation FinGPT Risk Metric Computation

From Leeroopedia
Knowledge Sources
Domains Risk_Metrics, Portfolio_Analytics, Trading
Last Updated 2026-10-18 00:00 GMT

Overview

A set of financial risk and performance metrics that quantify the risk-adjusted return profile of a trading strategy from its returns time series.

Description

Risk metric computation provides the quantitative backbone for strategy evaluation. Key metrics include: Sharpe ratio (return per unit volatility), Sortino ratio (return per unit downside risk), maximum drawdown (worst peak-to-trough loss), Calmar ratio (return / max drawdown), Value-at-Risk (VaR via variance-covariance), and rolling versions of each for time-varying analysis.

Usage

Use this principle when computing summary statistics or rolling risk profiles from a strategy's returns time series.

Theoretical Basis

Sharpe ratio:

S=Rp−Rfσp

Maximum drawdown:

MDD=mint(Vt−maxs≤tVsmaxs≤tVs)

Variance-covariance VaR:

VaR=P−P(α+1),α=Φ−1(1−c,μ,σ)

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment