Create esbacktestbyde
object to run suite of Du and
Escanciano expected shortfall (ES) backtests
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-Escanciano
conditionalDE
— 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.
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 or NumRows
-by-1
table or timetable with a numeric column containing portfolio
outcomes data.
VaRData
— Computed VaR data using distribution information from
PortfolioData
, returned as a
NumRows
-by-NumVaRs
numeric array.
ESData
— Computed ES data using distribution information from
PortfolioData
, returned as a
NumRows
-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.
summary | Basic expected shortfall (ES) report on failures and severity |
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 |
[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).
conditionalDE
| esbacktestbysim
| runtests
| simulate
| summary
| unconditionalDE