Академический Документы
Профессиональный Документы
Культура Документы
VaRworks
Monte Carlo Simulation, Historical Simulation, Variance
Covariance VaR, VaRdelta and Extreme Value Theory
Information in this document is subject to change without notice. Companies, names, and data used in
examples herein are fictitious unless otherwise noted. No part of this document may be reproduced or
transmitted in any form or by any means, electronic or mechanical, for any purpose, without the express
written permission of Financial Engineering Associates, Inc.
19951999 Financial Engineering Associates, Inc. All rights reserved.
@ENERGY, @EQUITY, @GLOBAL, @INTEREST, DerivaTool, SPAV, SWING, VaRdelta, VaRworks,
and Financial Engineering Associates design (logo) are registered trademarks and DTlib, EquiLib, ErgLib,
FEA Datepak, FEA Library Modules, GlobLib, IntrLib, MakeVC, SpavLib, SwingLib, VaRlib, ZCURVE,
and Zlib are trademarks of Financial Engineering Associates, Inc. in the United States of America.
Other brand or product names are trademarks or registered trademarks of their respective holders.
NOTICE: This manual does not constitute financial advice; users should consult their own financial
advisors regarding any such advice.
Carlos Blanco wrote this document.
Printed in the United States of America.
Financial Engineering Associates, Inc.
2484 Shattuck Ave., Suite 225
Berkeley, CA 94704-2029
USA
Tel:
+1-510-548-6200
Fax:
+1-510-548-0332
Email: info@fea.com
http://www.fea.com
Printed: 14-Mar-2000
TABLE OF CONTENTS
What is a cash flow map? ....................................................................................................................... 6
What is a vertex?..................................................................................................................................... 6
Why Vertices?......................................................................................................................................... 7
Allocating Cash Flows to a Single Vertex .............................................................................................. 7
Allocating Cash Flows to more than one Vertex .................................................................................... 7
Inputs .............................................................................................................................................................. 9
Volatility data ......................................................................................................................................... 9
Example of a Volatility File........................................................................................................................ 9
Correlation data..................................................................................................................................... 10
Example of a Correlation File................................................................................................................... 10
Asset Codes File ....................................................................................................................................... 11
Portfolio Data........................................................................................................................................ 12
Horizon (days) ...................................................................................................................................... 13
Confidence ............................................................................................................................................ 14
c.
The horizon over which the potential loss is measured. It is not the same to measure the expected loss
over a one day period than over a one week period.
The degree of confidence (probability of ocurrence). The degree of confidence is a measure of the
degree of certainty of the VaR estimate. The most common degree of confidence is 95%, which means
that 95% of the times our losses will be lower than the VaR number, while 5% of the times, our
portfolio will experience greater losses.
The home currency in which we measure the VaR number. VaR is a number, but it is expressed in
U.S. dollars, British pounds or Japaneses yens. It is not the same to say that our VaR is $1 million, than
1 million or 1 million.
In the following graph, we can see the value at risk concept graphically. Extreme outcomes (large losses, or
large gains) are less likely to ocurr, and therefore, the number of expected extreme portfolios outcomes, is
clearly lower.
Value at Risk
1600
1400
1200
Number of Ocurrences
1000
800
600
5% of
expected
ocurrences
400
200
18.2
16.4
14.5
12.7
10.9
9.1
7.3
5.5
3.6
1.8
0.0
1.8
3.6
5.5
7.3
9.1
10.9
12.7
14.5
16.4
18.2
For example, if your VaR is US$10MM and you have set the time period to one day and the probability to
95% then over the next 24-hour period there is a 5% chance your loss will exceed US$10MM.
In a nutshell, VaR is an attempt to quantify risk, given the portfolios current exposure to a certain set of
market factors, by asking how much these factors can move (accounting for volatilities and correlations)
over a period of time.
As a first step, we must identify a set of common risk factors, for which we can obtain volatilities and
correlations, which will represent the Market Factors. To continue the analysis, we have to find a way to
express all the trades of our portfolio in terms of those risk factors (cash flow mapping). Once we have
the cash flow map in terms of the risk factors, and the volatilities and correlations of those risk factors, we
only need to perform basic matrix manipulation to calculate the VaR of our portfolio.
Analytic VaR simplifies the analysis of market risk in the context of a portfolio.
Market Factors
Portfolio Data
(ANSWER)
(ANSWER)
Value at Risk
Measure of the overall risk of
our portfolio (global picture).
Assets
Currencies (USD,CAD,..)
Commodities (GAS, ...)
XS (FX / spot)
R (Money Market / days)
S (Swap / years)
Z (Government / years)
SE (Equity index / spot)
C (Commodity / months)
What is a vertex?
We can think of a vertex as an element which populates a market. For example, USD.GOV.10y would be a
vertex for the market for 10-year U.S. government bonds.
More formally, a vertex is a pre-determined asset class-maturity bucket for which volatilities and other time
series statistics have been measured. It consists of an asset (a currency or commodity code), an asset class
(such as spot currency, interest-rate instrument, equity index, commodity, brady bond), and a tenor or
maturity (a payment date measured in years from today). In VaRworks vertices are represented using the
notation asset.asset_class_and_maturity. A few examples of vertices are the following:
The vertex for the 30-year U.S. Government Bond is USD.Z30.
The vertex for the Japanese equities is JPY.SE (notice it is a spot position)
The vertex for the three month Natural Gas is GAS.C03
Why Vertices?
Vertices reduce the market description to a manageable size. They may be the only answer to
unmanageably huge information sets characterizing markets. To use them properly, two problems need to
be solved:
The systematic measurement of actual markets for the production of data applicable to the vertex set
chosen (for example, using Riskmetrics datasets, or creating your own with MakeVC); and
The reduction of portfolio exposures to a form which can be analyzed using vertex datasets (Cashflow mapping problem)
In order to be compatible with the available data (i.e. vertices), every instrument in a portfolio needs to be
reduced to a collection of cahs-flows.
Definition of cash flow in the VaR methodology
A cashflow is a vertex and a number representing the amount (size) of the cashflow. For example, the cashflow (+100, 10y, USD, GOV) represents a long position of 100 units of 10 year, U.S. dollars, governmentcredit.
We can think of a cash flow map as a many-to-one association between a portfolio (or trade) and a set of
cash flows lying at pre-selected vertices
Cash flow mapping takes a trade description and produces a series of home currency present values of cash
flows marked by 1) a currency, 2) an asset class (which may be indicative of credit rating), 3) a maturity in
years, and 4) a signed amount.
This process has four steps:
1.
2.
3.
4.
DECOMPOSITION: Take a description of the trade and shred it into a series of times and
signed cash flows in the local currencies.
MARKING-TO-MARKET: Present value the cash flows to the effective date (usually today),
using local currency interest rates and market information.
HOME BASING: Convert the cash flows (valued at the effective date) to the home currency
(currency VaR is calculated for). Spot exchange rates are used since present values of cash
flows are converted.
ALLOCATION: Allocate the cash flows to the standard vertices defined in the volatility
dataset.
We have to repeat the process for all the trades in our portfolio.
Following certain rules, we will be able to aggregate the cash flows at each vertex and perform the VaR
calculations. All the cash flows in a cash flow map are expressed in the same currency (home
currency), and are valued at the same date (effective date)
Amount
Original cash
flow
C
T
Time
Amount
Allocated
cash flows
C1
C2
T1
T2
Time
There are two possible choices of units for cashflow amounts: local currency units and home currency. By
local currency, we mean the currency the instrument is originally denominated in. At the portfolio level, we
may have assets denominated in different local currencies, but after the cash-flow mapping process, all the
cash-flows will be denominated in the same currency unit, that is, the home currency chosen.
Inputs
There are three types of inputs to calculate VaR: Market data, Portfolio Data, and Users choices
Market Data
Portfolio Data
Users Choices
Volatilities
Correlations
Prices (interest rates)
Horizon
Confidence Level
Home Currency
FIELD
Description
PRICE/YIELD
DECAY FACTOR
PRICE VOLATILITY
YIELD VOLATILITY
Example
WTI.CO3.VOLD
0.774500
0.94 (daily)
0.97 (monthly)
0.567395
Correlation data
Correlation files contain correlations for the vertices defined in a corresponding volatility file. Each record
specifies two vertices and their correlation. You may create your own correlation files with MakeVC or
download publicly available ones. The sample correlation file, dcmmddyy.rm3 (where mmddyy is some
date), is a RiskMetrics file containing daily correlations.
WTI.C01.
ZNC.CO3.
Correlation Data
Each record specifies two series
(vertices) and their correlation.
CORD
0.013546
The forecast correlation
coefficient between the
two assets. The value is
a real number between
1 and +1, inclusive.
Portfolio Data
One of the obvious inputs in the VaR calculation is the specification of your portfolio.
Portfolio consists of text specifying a portfolio filemay include directory and drive. The portfolio file
describes the financial instruments for which VaR is to be calculated. Each record in a portfolio file
specifies either:
the terms of a single trade, or
a path pointing to another file containing trades.
VaRworkss sample portfolio file, port.txt, contains the names of files containing different types of trades.
Commodities
Portfolio
File
Bonds
Portfolio File
Options
Interest Rates
Equities
Trade Files
USERS CHOICES
Horizon (days)
In VaRworks, horizon is a number specifying the number of business days of the VaR horizon. Express
the horizon in number of days (e.g. 1 month is expressed as 30 days) even if you are using monthly (or
longer) volatility and correlation datasetsVaRs are scaled using the square root of the horizon. The
resulting VaR is the expected change in the portfolios value under adverse circumstances in this time
interval. For example, enter 1 (one) for a one-day horizon.
Choice of horizon
The horizon can be a function either of the position or the investor. In the former case, the longer horizon
for estimating risk can be the result of the time it takes for the position to be liquidated or neutralized. In
less liquid markets, it can take up to a week or longer to significantly modify the market risk profile of a
portfolio. In the latter case, it is the investor who defines the horizon. Risk is measured over the period until
investment objectives are reviewed and reassessed.
When choosing a horizon, consider:
Unwind periodhow long, on average, does it take to reverse a market position or individual
trade?
Attention periodhow often, on average, do you re-examine your portfolio and its mark-tomarket or hedging trades?
Accounting periodhow long until the next financial reporting must be done?
VaRT = VaR1 T
This is known as the square-root-of-T rule. If this rule holds then the choice of horizon is completely
unimportant since all horizons would scale accordingly. But autocorrelation, mean reversion, nonlinear
positions (options), and other issues can damage the applicability of the square-root-of-T rule.
Recommendations
A long period is merely the sequence of several short periods of risk. You cannot expect to manage risk
over long periods unless you are able to manage it over short periods; there is no catching up later in risk
management. We recommend that you make the VaR horizon as short as you can, but no shorter than the
actual trading decisions or VaR recalculations can be done.
Confidence
In VaRworks, confidence is a number between 0.5 and 1, exclusive, specifying the size of the one-tailed
VaR confidence level.
The probability of incurring losses larger than our VaR will be (1-X) %, being X the confidence level. For
example, for a 95% confidence level (5% one-tail level), the probability that the portfolios losses will
exceed the the VaR number will be 5%.
Recommendations
Confidence levels should be established for solid statistical reasons, not wishful thinking. No choice is
more conservative than the other: it is nonsense to say, We want to experience a serious loss
infrequently, so we use a confidence level which involves a small probability of loss in computing our
VaR.
Therefore, we recommend you choose a confidence level sufficiently large to get one outlier a month.
For the same portfolio, the Value at Risk will be a different number for different confidence levels, but the
underlying risk that is attempting to measure is the same. The choice of the confidence interval does not
make your portfolio more or less risky.
VaR provides an estimate of maximum likely loss with a given confidence level. The larger the confidence
level, the larger the VaR number will be.
VaR @ 90%
1.28 S.D
VaR @ 97.5%
1.96 S.D.
VaR @ 95%
1.645 S.D.
.4
-1
.5
-1
.8
.7
-1
-1
-2
.1
-2
.3
-2
.4
-2
.6
-2
.7
-2
.9
VaR @ 99%
2.33 S.D.
-2
-3
When choosing a confidence level, we have to take into account that, from a statistical point of view, the
less-extreme order statistics have higher significance. Therefore, choose 95% or 92.5%, not 97.5% or 99%.