compute_var_es
Compute portfolio Value at Risk and Expected Shortfall using four methods: historical, parametric-normal, Cornish-Fisher, and Monte Carlo. Specify confidence alpha, asset returns, and optional weights.
Instructions
Portfolio VaR and Expected Shortfall by four methods (historical,
parametric-normal, Cornish-Fisher, Monte Carlo) at confidence alpha.
asset_returns maps asset name -> equal-length list of daily returns;
weights defaults to equal. Omit both to use the demo book. Divergence
between historical and normal VaR is the fat-tail signal.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "compute_var_es"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alpha | No | ||
| weights | No | ||
| asset_returns | No |