exceptions
Description
excTable = exceptions(
returns a formatted
table or timetable of exceptions for a vbt
)varbacktest
object, vbt
. An exception is a data point where
-portfolioValue > threshold*varValue
. For example, if
threshold=0
, the table of exceptions includes all dates where
portfolioValue < 0
, indicating when losses occurred. A loss is
defined as -portfolioValue
for a given point in time. The ratio
Loss/VaR
defines the severity ratio.
The output table includes columns corresponding to time, loss, VaR, and severity ratio.
excTable = exceptions(
specifies additional output options using one or more name-value arguments. For example,
vbt
,Name=Value
)excTable = exceptions(vbt,SeverityThreshold=0)
applies an exceptions
threshold to only list the dates where the portfolio shows a loss.
Examples
Input Arguments
Version History
Introduced in R2023b