summary
Report on varbacktest data
Syntax
Description
Examples
Create a varbacktest
object.
load VaRBacktestData
vbt = varbacktest(EquityIndex,Normal95)
vbt = varbacktest with properties: PortfolioData: [1043×1 double] VaRData: [1043×1 double] Time: [1043×1 double] PortfolioID: "Portfolio" VaRID: "VaR" VaRLevel: 0.9500
Generate the summary report.
S = summary(vbt)
S=1×10 table
PortfolioID VaRID VaRLevel ObservedLevel Observations Failures Expected Ratio FirstFailure Missing
___________ _____ ________ _____________ ____________ ________ ________ _____ ____________ _______
"Portfolio" "VaR" 0.95 0.94535 1043 57 52.15 1.093 58 0
Use the varbacktest
constructor with name-value pair arguments to create a varbacktest
object and generate a summary report.
load VaRBacktestData vbt = varbacktest(EquityIndex,... [Normal95 Normal99 Historical95 Historical99 EWMA95 EWMA99],... 'PortfolioID','Equity',... 'VaRID',{'Normal95' 'Normal99' 'Historical95' 'Historical99' 'EWMA95' 'EWMA99'},... 'VaRLevel',[0.95 0.99 0.95 0.99 0.95 0.99]); S = summary(vbt)
S=6×10 table
PortfolioID VaRID VaRLevel ObservedLevel Observations Failures Expected Ratio FirstFailure Missing
___________ ______________ ________ _____________ ____________ ________ ________ ______ ____________ _______
"Equity" "Normal95" 0.95 0.94535 1043 57 52.15 1.093 58 0
"Equity" "Normal99" 0.99 0.9837 1043 17 10.43 1.6299 173 0
"Equity" "Historical95" 0.95 0.94343 1043 59 52.15 1.1314 55 0
"Equity" "Historical99" 0.99 0.98849 1043 12 10.43 1.1505 173 0
"Equity" "EWMA95" 0.95 0.94343 1043 59 52.15 1.1314 28 0
"Equity" "EWMA99" 0.99 0.97891 1043 22 10.43 2.1093 143 0
Input Arguments
varbacktest
(vbt
) object,
contains a copy of the given data (the PortfolioData
and VarData
properties) and all combinations of
portfolio ID, VaR ID, and VaR levels to be tested. For more information
on creating a varbacktest
object, see varbacktest
.
Output Arguments
Summary report, returned as a table. The table rows correspond to all combinations of portfolio ID, VaR ID, and VaR levels to be tested. The columns correspond to the following information:
'PortfolioID'
— Portfolio ID for the given data'VaRID'
— VaR ID for each of the VaR data columns provided'VaRLevel'
— VaR level for the corresponding VaR data column'ObservedLevel'
— Observed confidence level, defined as number of periods without failures divided by number of observations'Observations'
— Number of observations, where missing values are removed from the data'Failures'
— Number of failures, where a failure occurs whenever the loss (negative of portfolio data) exceeds the VaR'Expected'
— Expected number of failures, defined as the number of observations multiplied by one minus the VaR level'Ratio'
— Ratio of the number of failures to expected number of failures'FirstFailure'
— Number of periods until first failure'Missing'
— Number of periods with missing values removed from the sample
Version History
Introduced in R2016b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)