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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alpha | No | ||
| weights | No | ||
| asset_returns | No |