Download presentation
Presentation is loading. Please wait.
Published byTeresa Casey Modified over 9 years ago
1
Risk Analysis & Modelling Lecture 2: Measuring Risk
2
http://www.angelfire.com/linux/lecturenotes
3
What we will look in this lecture Review of statistics The central limit theorem Implied statistical properties Covariance Matrices Correlation Matrices Calculation of mean and variance of a portfolio using matrices
4
Our Thought Experiment Imagine you have £100 an account Infront of you is a machine with a red button on it Every time you press the button the amount you have in your account changes The change seems to vary every time you press We cannot see inside the machine, just observe the outcome We want to know if pressing the button is a good idea
5
Machine You have £100 Note: we will be making this machine in the programming section!
6
Quantifying The Range of Outcomes To asses the risk of a game we need to understand the outcomes that can occur and their respective likely-hood From this outcome range we can evaluate the range of payoffs that are likely to occur if we play the game and determine if it is to our liking.
7
We decide to tabulate the results we observe and their frequency After 100 presses we find: Lose £41010% Lose £22525% Gain £13535% Gain £22525% Gain £455%
8
A probability histogram of outcomes
9
A cumulative probability histogram Cumulative Probability
10
Estimation Error Our histograms are estimations They are subject to estimation error Intuitively we can imagine that the larger our sample the smaller the error. The 100% accurate underlying probability distribution is called the population distribution Our estimation is called the sample distribution
11
Quantitative Measure Our graph and table help us asses the risk and return of playing the game but what if we want to compare risks of various machines? We would like to have a parametric measure based on our personal preferences We decide we are interested in 2 things: The centre of the outcomes (what is most likely to happen) The spread of outcomes about this centre (the uncertainty of the expected outcome) The centre is can be defined as the mean, the spread can be defined as the variance.
12
Sample Mean & Variance The sample mean is defined as The sample variance is defined as
13
Mean And Variance We Expect to Gain £1 There are a range of outcomes other than the expected We are there uncertain about the exact outcome
14
Random Variable Operations A variable with a ~ on top denotes a random variable You cannot treat them like a normal variable, for example: There is however a special operation you can perform on a random variable called the expectation Expectation (E) is a purely abstract concept that states “what would be the expected value if we had knowledge of the population distribution”: Where P X is the true probability of observation X
15
Proof of Unbiased Estimation of Sample Mean We have said that: Where is the population mean So the expected value of our sample mean is the population mean.
16
Proof of Unbiased Estimation of Sample Variance where Where is the population variance: hence
17
Discrete Vs Continuous Probability The game we played in the last section was an example of a discrete random variable The number of outcomes from the game was ‘finite’ or of limited number If the game had payoffs like: “You Win £2.13312” or “You Lose £4.5633” we could not use our table and histogram The outcomes would represent a continuous random variable. For a continuous random variable it does not make sense to talk about a specific outcome only a range of outcomes
18
Cumulative Distribution And Probability Density The Cumulative Distribution Function (cdf) gives the probability that an outcome will be less than or equal to a given value The Probability Density Function (pdf) describes a function which has the property that the area under it describes the cdf.
19
Continuous CDF and PDF graphs +£10 Probability Outcome -£10+£10 Outcome -£10 Probability Density 1.0 0.0 0.4 0.0 -£3 CDF PDF Area Under Curve 0.3 £1 0.6 £1 Difference is Probability of outcomes between –£3 and £1
20
Special Distributions Up until now probability distributions have been of arbitrary shapes describing the likelihood of a range of outcomes There are a number of special distributions that frequently occur in the real world and that are described by well defined functions The most important of these is the Normal Distribution or Bell Curve The Normal Distribution is observed throughout nature and finance and described by mean and variance We can explain why normal distribution occurs using the Central Limit Theorem
21
The Central Limit Theorem The Central Limit Theorem is a precise formulation of the “Law of Large Numbers” Imagine we have a variable Y which equal to the average of the observed values for three independent random variable A,B and C: The expected value of Y is:
22
The Variance of Y: Since A,B,C are independent the covariances are zero The Skew of Y
23
Covariance While looking at the central limit we introduced the concept of covariance which measures the way 2 random variable vary together The unbiased sample covariance is Covariance is a product moment
24
Correlation Correlation is a normalized measure of covariance Correlation must be between –1 and +1 due to the Cauchy-Schwarz inequality. A strong positive correlation suggests that 2 random variables move about their mean value in unison A strong negative correlation suggests that 2 random variable move in opposite directions about their mean value Correlation is defined as:
25
Part 2: Portfolio Mean-Variance
26
Portfolio Risk/Return Imagine you have a portfolio of assets. You have estimates for the means, variances and covariances of the returns for the various assets You wish to calculate the mean and variance of the return for your portfolio We wish to derive the mean and variance of a portfolio’s return from the mean, variance and covariance of returns of the assets it contains.
27
2 Asset Portfolio The return on the portfolio (P) is a weighted average of the return on asset A and asset B Where w A is the proportion invested in asset A and w B is the proportion invested in asset B. Investment proportions are often called ‘weights’. The weights normally add up to 100%. For any value for the return in A and B we can evaluate the return on the portfolio.
28
We can use our expectation operator to show that the expected return on the portfolio is a simple weighted average of the return on the assets The variance of the portfolio has a more complex relationship with the assets A and B:
29
3 Asset Portfolio We will now examine the case of a 3 Asset Portfolio The expected portfolio return: The portfolio variance:
30
Larger Portfolios As we see the equation relating the portfolio variance to the covariance and variance of its assets is messy for 3 assets For A modest portfolio of 30 assets it would contain 450 terms! We need to find a more practical way of calculating the portfolio’s statistical properties To do this we need to introduce 3 new concepts: weight vector, expected return vector and covariance matrix.
31
The Weight Vector The weight vector is a n by 1 vector containing the proportions invested in the various assets For the 3 asset case the weight vector would look like the following: WAWA WBWB WCWC A B C
32
The Expected Return Vector The Expected Return Vector is a n by 1 vector containing the expected returns of the various assets. It is important for the Expected Return Vector to maintain the same order as the weight vector. For the 3 asset case the Expected Return Vector would look like the following: E(R A ) E(R B ) E(R C ) A B C
33
The Covariance Matrix The covariance matrix is a square matrix which describes the covariances and variances between a set of random variables It is a symmetric matrix It is a positive definite matrix (ie X T CX >0 for every non-zero column vector) The covariance matrix should maintain the same order as the weight matrix.
34
Var(R A )Cov(R A,R B ) Cov(R B,R A )Var(R B ) Var(R A )Cov(R A,R B )Cov(R A,R C ) Cov(R B,R A )Var(R B )Cov(R B,R C ) Cov(R C,R A )Cov(R C,R B )Var(R C ) Covariance Matrix for 2 Assets Covariance Matrix for 3 Assets Identical Terms A A B B A A B B C C
35
Expressing Risk & Return with Matrices Let C be the covariance matrix, E the expected return vector and W the weight vector for a Portfolio P E(R P ) = W T.E Var(R P ) = W T.C.W
36
2 Asset Portfolio Return With Matrices E(R P ) = WAWA WBWB E(R A ) E(R B ) X E(R P ) = W A.E(R A ) + W B.E(R B ) E(R P ) = W T.E
37
2 Asset Portfolio Variance With Matrices Var(R P ) = W T.C.W Var(R P ) = WAWA WBWB V(R A )C(R A,R B ) C(R B,R A )V(R B ) WAWA WBWB XX Var(R P ) = W a 2.Var(R a ) + W b 2.Var(R b ) + 2.W a.W b.Cov(R a,R b )
38
The Correlation Matrix The correlation matrix is closely related to the covariance matrix It measures the correlation between assets rather than covariances Correlation matrices can be converted to covariance matrices using the standard deviation vector
39
Transformation Between Correlation and Covariance Matrix Let D be a square matrix with the standard deviations along the diagonal and zeros everywhere else (a diagonal matrix), let P be the correlation matrix and C be the respective covariance matrix. Then the following relationship is true: D.P.D = C
40
2 Asset Correlation to Covariance Matrix Example 1P(R A,R B ) P(R B,R A )1 Sd(R A )0 0Sd(R B ) Sd(R A )0 0Sd(R B ) ** = Sd(R A )*Sd(R A )P(R A,R B )* Sd(R A )*Sd(R B ) P(R B,R A ) *Sd(R A )*Sd(R B )Sd(R B )*Sd(R B ) V(R A )C(R A,R B ) C(R B,R A )V(R B ) =
41
Transformation between Covariance and Correlation Matrix From our initial relationship we can state: P= D -1.C.D -1 Where D -1 is the inverse of the square standard deviation matrix Because D is a diagonal matrix its inverse is simply the reciprocal of the elements along the diagonal.
42
2 Asset Covariance to Correlation Matrix Example 1/ Sd(R A )0 01/ Sd(R B ) 1/Sd(R A )0 01/ Sd(R B ) ** = V(R A ) / (Sd(R A )*Sd(R A ))C(R A,R B )/(Sd(R A )*Sd(R B )) C(R B,R A )/(Sd(R B )*Sd(R A ))V(R B )/(Sd(R B )*Sd(R B )) = V(R A )C(R A,R B ) C(R B,R A )V(R B ) 1P(R A,R B ) P(R B,R A )1
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.