Calculating the Variance –Covariance matrix

Slides:



Advertisements
Similar presentations
Modeling using VBA. Covered materials -Userforms -Controls -Module -Procedures & Functions -Variables -Scope.
Advertisements

Multi-objective Approach to Portfolio Optimization 童培俊 张帆.
Quadratic Portfolio Management Variance - Covariance Analysis EMIS 8381 Prepared by Carlos V Caceres SID:
Maths for Computer Graphics
Linear System of Equations MGT 4850 Spring 2008 University of Lethbridge.
Efficient Portfolios MGT 4850 Spring 2008 University of Lethbridge.
Efficient Portfolios with no short-sale restriction MGT 4850 Spring 2008 University of Lethbridge.
Portfolio Models MGT 4850 Spring 2009 University of Lethbridge.
Combining Individual Securities Into Portfolios (Chapter 4)
Session 5a Decision Models -- Prof. Juran.
Calculating the Variance – Covariance matrix MGT 4850 Spring 2007 University of Lethbridge.
More on Asset Allocation
Calculating the Cost of Capital MGT 4850 Spring 2008 University of Lethbridge.
MFE 230G Section 2 Hari Phatak 21 August, Administrative Notes Homework, Friday 5:00pm: 3 options –Hard copy Envelope outside F633 (usually up on.
Portfolio Models MGT 4850 Spring 2007 University of Lethbridge.
Estimating betas and Security Market Line MGT 4850 Spring 2007 University of Lethbridge.
FINANCIAL TRADING AND MARKET MICRO-STRUCTURE MGT 4850 Spring 2011 University of Lethbridge.
Basic Mathematics for Portfolio Management. Statistics Variables x, y, z Constants a, b Observations {x n, y n |n=1,…N} Mean.
Efficient Portfolios with no short-sale restriction MGT 4850 Spring 2009 University of Lethbridge.
Efficient Portfolios MGT 4850 Spring 2009 University of Lethbridge.
Module 6 Matrices & Applications Chapter 26 Matrices and Applications I.
Arithmetic Operations on Matrices. 1. Definition of Matrix 2. Column, Row and Square Matrix 3. Addition and Subtraction of Matrices 4. Multiplying Row.
CE 311 K - Introduction to Computer Methods Daene C. McKinney
Supplemental Homework Multi-asset Portfolio Optimization.
Multi-Dimensional Arrays in Java "If debugging is the process of removing software bugs, then programming must be the process of putting them in." -- Edsger.
Efficient Portfolios without short sales MGT 4850 Spring 2007 University of Lethbridge.
Portfolio Statistics  Portfolio Expected Return: E(r p ) = w T r  Portfolio Variance:  2 p = w T  w  Sum of portfolio weights: = w T 1 –where w is.
1CP102_module 3: spreadsheet2 More features in Excel Selection: a cell, a range, multiple ranges Name a range: to give name to a selected range or multiple.
ECON 1150 Matrix Operations Special Matrices
Matlab tutorial course Lesson 2: Arrays and data types
Quadratic Portfolio Management Variance - Covariance Analysis EMIS 8381 Prepared by Carlos V Caceres SID:
IE 212: Computational Methods for Industrial Engineering
Some matrix stuff.
CH3 Factor model.
Class 3 Programming in Visual Basic. Class Objectives Learn about input/output Learn about strings Learn about subroutines Learn about arrays Learn about.
Learner’s Guide to MATLAB® Chapter 2 : Working with Arrays.
Modern Portfolio Theory. History of MPT ► 1952 Horowitz ► CAPM (Capital Asset Pricing Model) 1965 Sharpe, Lintner, Mossin ► APT (Arbitrage Pricing Theory)
259 Lecture 13 Spring 2013 Advanced Excel Topics – Arrays.
One Way ANOVA SS total SS between SS within Logic of Two Way ANOVA.
1 Sample Geometry and Random Sampling Shyh-Kang Jeng Department of Electrical Engineering/ Graduate Institute of Communication/ Graduate Institute of Networking.
Working with Arrays in MATLAB
PH24010 Data Handling and Statistics Use of MathCAD to handle statistical data Data storage in vectors and matrices MathCAD’s built-in functions: –Mean,
Spreadsheet Models for Managers: Session 14 14/1 Copyright © Richard Brenner Spreadsheet Models for Managers Session 14 Using Macros II Function.
1 Multi-Objective Portfolio Optimization Jeremy Eckhause AMSC 698S Professor S. Gabriel 6 December 2004.
Meeting 18 Matrix Operations. Matrix If A is an m x n matrix - that is, a matrix with m rows and n columns – then the scalar entry in the i th row and.
ME 142 Engineering Computation I Matrix Operations in Excel.
McGraw-Hill/Irwin Copyright © 2008 The McGraw-Hill Companies, Inc., All Rights Reserved. Efficient Diversification CHAPTER 6.
CHAPTER 9 PART II. MULTIDIMENSIONAL ARRAYS Used to represent tables of values arranged in rows and columns. Table element requires two indexes: row and.
ME 142 Engineering Computation I Matrix Operations in Excel.
Travis Wainman partner1 partner2
1.7 Linear Independence. in R n is said to be linearly independent if has only the trivial solution. in R n is said to be linearly dependent if there.
Digital Image Processing. Converting between Data Classes The general syntax is B = data_class_name (A) Where data_class_name is one of the names defined.
Matrix Multiplication The Introduction. Look at the matrix sizes.
Introduction to Financial Modeling MGT 4850 Spring 2008 University of Lethbridge.
MANY RISKY SECURITIES èWith many risky securities, principles of portfolio optimization are still the same as in Portfolio Problem #2 èSolution is also.
Precalculus Section 14.1 Add and subtract matrices Often a set of data is arranged in a table form A matrix is a rectangular.
Lecture 16 Portfolio Weights. determine market capitalization value-weighting equal-weighting mean-variance optimization capital asset pricing model market.
Chapter 1 Computing Tools Variables, Scalars, and Arrays Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
1 Matrix Math ©Anthony Steed Overview n To revise Vectors Matrices.
Portfolio Diversification Modern Portfolio Theory.
Breeding Value Estimation Chapter 7. Single information source What is the breeding value of this cow for milk production? A cow produces 9000 kg milk.
Advanced Excel Topics – Arrays
Linear Algebra review (optional)
Regression.
CSCI N207 Data Analysis Using Spreadsheet
Figure 6.1 Risk as Function of Number of Stocks in Portfolio
Linear Algebra review (optional)
Matrix Multiplication Sec. 4.2
Announcements.
Presentation transcript:

Calculating the Variance –Covariance matrix MGT 4850 Spring 2009 University of Lethbridge

Efficient Portfolios Efficient frontier Black (1972) – convex combination of any two efficient portfolios, e.g. if we have two efficient portfolios we can find the whole efficient frontier. Minimize portfolio variance, subject to defined return and sum of weights equal 1.

Transpose and Multiplication Weights - column vector Γ (row vector ΓT) Returns - column vector E (row vector ET) Portfolio return ET Γ 25 stocks portfolio variance ΓTS Γ ΓT(1x25)*S(25x25)* Γ(25x1) To calculate portfolio variance we need the variance/covariance matrix S.

variance/covariance matrix Using Excess Returns Return data for variance-covariance 295 Excess return matrix A and its transpose AT for the calculation of S matrix AT A/(M-1) → S (p. 292).

Excess Returns (fixing the row cell A$23)

AT A/(M-1) → S (p. 292).

Population vs. Sample

VBA (optional) Function VarCovar(rng As Range) As Variant Dim i As Integer Dim j As Integer Dim numCols As Integer numCols = rng.Columns.Count Dim matrix() As Double ReDim matrix(numCols - 1, numCols - 1) For i = 1 To numCols For j = 1 To numCols matrix(i - 1, j - 1) = Application.WorksheetFunction.Covar(rng.Columns(i), rng.Columns(j)) Next j Next i VarCovar = matrix End Function

Array function 298 (Shift+CTRL+Enter)

variance/covariance matrix 299 Offset Function → returns a reference to a range that is a given number of rows and columns for a given reference

Minvarprt=1.S-1/1. S-1.1T

Eff P=S-1[E(r)-c]/Sum{S-1[E(r)-c]}

Single Index Model