esbacktestbyde
Create esbacktestbyde
object to run suite of Du and
Escanciano expected shortfall (ES) backtests
Description
The general workflow is:
Load or generate the data for the ES backtesting analysis.
Create an
esbacktestbyde
object. For more information, see Create esbacktestbyde and Properties.Use the
summary
function to generate a summary report on the failures and severities.Use the
runtests
function to run all tests at once.For additional test details, run the following individual tests:
unconditionalDE
— Unconditional ES backtest by Du-EscancianoconditionalDE
— Conditional ES backtest by Du-Escanciano
simulate
— Simulate critical values for test statistics
For more information, see Overview of Expected Shortfall Backtesting and Workflow for Expected Shortfall (ES) Backtesting by Du and Escanciano.
Creation
Description
creates an ebtde
= esbacktestbyde(PortfolioData
,DistributionName
)esbacktestbyde
(ebtde
)
object using portfolio outcomes data and model distribution information. The
esbacktestbyde
object has the following properties:
PortfolioData —
NumRows
-by-1
numeric array orNumRows
-by-1
table or timetable with a numeric column containing portfolio outcomes data.VaRData — Computed VaR data using distribution information from
PortfolioData
, returned as aNumRows
-by-NumVaRs
numeric array.ESData — Computed ES data using distribution information from
PortfolioData
, returned as aNumRows
-by-NumVaRs
numeric array.Distribution — Model distribution information, returned as a structure.
PortfolioID — User-defined portfolio ID.
VaRID — VaRIDs for the corresponding column in
PortfolioData
.VaRLevel — VaRLevel for the corresponding columns in
PortfolioData
.
sets Properties using name-value
pairs and any of the arguments in the previous syntax. For example,
ebtde
= esbacktestbyde(___,Name,Value
)ebtde =
esbacktestbyde(PortfolioData,DistributionName,'VaRID','TotalVaR','VaRLevel',.99)
.
You can specify multiple name-value pairs as optional name-value pair
arguments.
Input Arguments
Properties
Object Functions
summary | Report on failures and severity for basic expected shortfall (ES) using distributions |
runtests | Run all expected shortfall (ES) backtests for
esbacktestbyde object |
unconditionalDE | Unconditional Du-Escanciano (DE) expected shortfall (ES) backtest |
conditionalDE | Conditional Du-Escanciano (DE) expected shortfall (ES) backtest |
simulate | Simulate Du-Escanciano (DE) expected shortfall (ES) test statistics |
Examples
References
[1] Du, Z., and J. C. Escanciano. "Backtesting Expected Shortfall: Accounting for Tail Risk." Management Science. Vol. 63, Issue 4, April 2017.
[2] Basel Committee on Banking Supervision. "Minimum Capital Requirements for Market Risk". January 2016 (https://www.bis.org/bcbs/publ/d352.pdf).
Version History
Introduced in R2019b
See Also
summary
| runtests
| unconditionalDE
| conditionalDE
| simulate
| esbacktestbysim
Topics
- Workflow for Expected Shortfall (ES) Backtesting by Du and Escanciano
- Rolling Windows and Multiple Models for Expected Shortfall (ES) Backtesting by Du and Escanciano
- Expected Shortfall Estimation and Backtesting
- Overview of Expected Shortfall Backtesting
- ES Backtest Using Du-Escanciano Method
- Comparison of ES Backtesting Methods