Matlab Workshop MFE 2006 Lecture 4

Size: px
Start display at page:

Download "Matlab Workshop MFE 2006 Lecture 4"

Transcription

1 Matlab Workshop MFE 2006 Lecture 4 Stefano Corradin Peng Liu Haas School of Business, Berkeley, MFE 2006

2 Applications in Finance II 4.1 Optimum toolbox. 4.2 Mean-variance portfolio. 4.3 Risk management analysis. Haas School of Business, Berkeley, MFE

3 Optimum toolbox We are going to use the command linprog, quadprog and fmincon to solve constrained optimization problems. Let consider an easy problem min 2x 1 3x 2 s.t. x 1 + x 2 3 x 1 0. We are going to use the command linprog >> help linprog LINPROG Linear programming. X=LINPROG(f,A,b) attempts to solve the linear programming problem: min f *x subject to: A*x <= b x Haas School of Business, Berkeley, MFE

4 X=LINPROG(f,A,b,Aeq,beq) solves the problem above while additionally satisfying the equality constraints Aeq*x = beq. X=LINPROG(f,A,b,Aeq,beq,LB,UB) defines a set of lower and upper bounds on the design variables, X, so that the solution is in the range LB <= X <= UB. therefore >> s=linprog([2-3],[1 1],3,[],[],[0]) Optimization terminated. s = 1.205e where we use [] to indicate that we do not consider Aeq x = beq constraint. Haas School of Business, Berkeley, MFE

5 Let consider a quadratic problem min x 2 1 3x x 1 x 2 s.t. x 1 + 2x 2 = 4 x 1 0 x 2 0. We are going to use the command quadprog >> help quadprog QUADPROG Quadratic programming. X=QUADPROG(H,f,A,b) attempts to solve the quadratic programming problem: min 0.5*x *H*x + f *x subject to: A*x <= b x X=QUADPROG(H,f,A,b,Aeq,beq) solves the problem above while Haas School of Business, Berkeley, MFE

6 additionally satisfying the equality constraints Aeq*x = beq. X=QUADPROG(H,f,A,b,Aeq,beq,LB,UB) defines a set of lower and upper bounds on the design variables, X, so that the solution is in the range LB <= X <= UB. therefore >> H = [2 0;0 6]; c = [3-1]; >> Aeq = [1 2]; >> beq = 4; >> lb = [0 0]; >> x = quadprog(h,c,[],[],aeq,beq,lb) Optimization terminated. x = Haas School of Business, Berkeley, MFE

7 Mean-variance portfolio Let consider now a mean-variance portfolio problem with n stocks x: 1 n vector of weights; min x xωx s.t. x1 = 1 x R = R p 0 x i 1 Ω: n n variance-covariance matrix of returns; R: 1 n vector of expected returns; R p : 1 1 expected portfolio returns. Haas School of Business, Berkeley, MFE

8 We are going to analyze two codes: markowqp.m Let analyze the code step-by-step: Matrix of stocks prices. prices = [ ; ; ; ; ; ; ; ; ; Haas School of Business, Berkeley, MFE

9 ; ; ; ]; Create the matrix of returns and calculate the expected return and matrix of variance-covariance. [n,col] = size(prices); % Matrix of returns for i = 2:n ret(i,:) = (prices(i,:)-prices(i-1,:))./prices(i-1,:); end % Expected returns retatt = mean(ret); % Variance-covariance matrix mvarcov = cov(ret); Haas School of Business, Berkeley, MFE

10 Create a vector of portfolio expected returns. R p = [ R 1 p, R 2 p,..., R n p]. % Portfolio expected returns low = min(retatt); up = max(retatt); step =.001; retpor = (low:step:up) ; Solve the problem with quadprog function for every element of the vector R p. mm=length(retpor); varpor=zeros(1,mm); weights = zeros(col,mm); % Quadratic programming % min 0.5 x H x + c x tale che A x <= b % Aeq matrix Aeq = [retatt;ones(1,col)]; c = zeros(col,1); Haas School of Business, Berkeley, MFE

11 for i=1:mm beq = [retpor(i,1);1]; % lower bounds - weights > 0 vlb = zeros(n,1); % upper bounds - weights < 1 vub = ones(n,1); % starting values x0 = [.25;.25;.25;.25]; % quadratic programming function x = quadprog(mvarcov,c,[],[],aeq,beq,vlb,vub,x0); % calculate variance portfolio varpor(i) = x *mvarcov*x; % optimal portfolio weights weights(:,i)=x; end Haas School of Business, Berkeley, MFE

12 Plot the efficient frontier. Haas School of Business, Berkeley, MFE

13 portfolio.m We use the function fmincon to solve the problem and we have now two datasets: - a time series 762 daily observations of 20 stock prices (Italian stock market); - a vector of current portfolio weights. Let analyze the code step-by-step: Import the datasets. % Load dataset in txt format file1= mibtel.txt ; data =dlmread(file1, \t ); % Load portfolio weights in txt format in the workspace file2= weight.txt ; weight =dlmread(file2, \t ); % Size provides number rows and columns in the workspace [r,c] = size(data); Haas School of Business, Berkeley, MFE

14 % Select part of the data set start = 200; obs = 250; m = data(start:start+obs,1:c); Create the matrix of returns and calculate the expected return and matrix of variance-covariance. term = obs - 1; % Stocks returns rend = ((m(2:obs,:)-m(1:term,:))./m(1:term,:)); % Number of Stocks bb = c-1; r_equity = rend(:,1:bb); % Last columns: market index return r_index = rend(:,c); % Expected returns Haas School of Business, Berkeley, MFE

15 rendatt = mean(r_equity); % Var-Cov matrix mvarcov = cov(r_equity); Create a vector of portfolio expected returns. % Portfolio expected return: a vector is created rend_low = min(rendatt); rend_high = max(rendatt); nfac = 100; step = (rend_high - rend_low)/nfac; rendatt_por = rend_low:step:rend_high; cc = length(rendatt_por); n_equity = bb; Solve the problem with fmincon function for every element of the vector R p % Efficient portfolio xstar = zeros(cc,bb); for i = 1:cc x0 = 1/bb.*ones(1,bb); % starting values Haas School of Business, Berkeley, MFE

16 Aeq = [ones(1,bb); rendatt]; Beq = [1;rendatt_por(i)]; vlb = zeros(1,bb); % weights lower bounds vub = ones(1,bb); % weights upper bounds options = optimset( Display, off ); x = fmincon(@(x)funcov(x,mvarcov,n_equity),x0,... [],[],Aeq,Beq,vlb,vub,[],options); xstar(i,:) = x; end where funcov.m is a function used to define the objective function to minimize function [f] = funcov(x,mvarcov,n_equity) x = x(1:1:n_equity); varpor = x*mvarcov*x ; % function to minimize f = 0.5*varpor; Haas School of Business, Berkeley, MFE

17 Calculate the standard deviation of portfolio, σ p, given the optimal portfolio weights derived x. Plot the efficient frontier. % Efficient portfolio standard deviation for i = 1:cc devpor_eff(i) = sqrt(xstar(i,:)*mvarcov*xstar(i,:) ); end % Expected return and standard deviation of the current portfolio rend_attpor = rendatt*weight ; dev_attpor = sqrt(weight*mvarcov*weight ); Haas School of Business, Berkeley, MFE

18 Haas School of Business, Berkeley, MFE

19 Risk management analysis We can calculate the Value at Risk (VaR) to analyse the riskiness of our portfolio. The VaR is an estimate of the level of loss on a portfolio which is expected to be equaled or exceeded with a given small probability V ar α (X) = inf{x P [X x] α} where α is a confidence interval. The VaR of our portfolio is where V ar α = α T σ p Haas School of Business, Berkeley, MFE

20 α = norminv(p, 0, 1) and p can be.9,.95,.99,...; T is time horizon or unwinding period; σ p can be calculated according to two approaches: a) standard deviation of portfolio previously derived; b) standard deviation of portfolio derived using β of stocks r i t = γ + βr m t + e t where r i t is the stock return, r m t is the market return, γ is the intercept and σ p = xββ x σ m where σ m is the standard deviation of market returns. Haas School of Business, Berkeley, MFE

21 Calculate the VaR with the first approach (still we are working on portfolio.m). % Value at Risk - Var-Cov approach % VaR 1,5 e 10 days time = input( Decide unwinding period = ); time = sqrt(time); % Confidence Interval 95%,97.5% e 99% pp = input( Decide confidence interval between 0 and 1 = ); conf = norminv(pp,0,1); % VaR Var-Cov on optimal portfolio VaRcov = zeros(cc,1); for i = 1:cc VaRcov(i) = time*conf*devpor_eff(i); end Calculate the vector β (the last vector of our dataset is the stock market). Haas School of Business, Berkeley, MFE

22 % Stocks beta Beta_equity = zeros(bb,1); for j = 1:bb X = [ones(term,1),r_index]; coeff = inv(x *X)*X *r_equity(:,j); beta = coeff(2,1); Beta_equity(j,1) = beta; end disp([ Stocks Beta ]); Beta_equity = Haas School of Business, Berkeley, MFE

23 Haas School of Business, Berkeley, MFE

24 Calculate VaR according to the second approach. % VaR Beta OLS VaRbeta = zeros(cc,1); for i = 1:cc % Standard deviation portfolio % (weights*beta*beta *weights *varianze_market)^1/2 devst_por = sqrt(xstar(i,:)*beta_equity*... Beta_equity *xstar(i,:) *cov(r_index)); VaRbeta(i) = time*conf*devst_por; end Haas School of Business, Berkeley, MFE

25 Make a plot to compare the two approaches. Haas School of Business, Berkeley, MFE

Lecture IV Portfolio management: Efficient portfolios. Introduction to Finance Mathematics Fall Financial mathematics

Lecture IV Portfolio management: Efficient portfolios. Introduction to Finance Mathematics Fall Financial mathematics Lecture IV Portfolio management: Efficient portfolios. Introduction to Finance Mathematics Fall 2014 Reduce the risk, one asset Let us warm up by doing an exercise. We consider an investment with σ 1 =

More information

Quantitative Risk Management

Quantitative Risk Management Quantitative Risk Management Asset Allocation and Risk Management Martin B. Haugh Department of Industrial Engineering and Operations Research Columbia University Outline Review of Mean-Variance Analysis

More information

Chapter 5 Portfolio. O. Afonso, P. B. Vasconcelos. Computational Economics: a concise introduction

Chapter 5 Portfolio. O. Afonso, P. B. Vasconcelos. Computational Economics: a concise introduction Chapter 5 Portfolio O. Afonso, P. B. Vasconcelos Computational Economics: a concise introduction O. Afonso, P. B. Vasconcelos Computational Economics 1 / 22 Overview 1 Introduction 2 Economic model 3 Numerical

More information

Applied portfolio analysis. Lecture II

Applied portfolio analysis. Lecture II Applied portfolio analysis Lecture II + 1 Fundamentals in optimal portfolio choice How do we choose the optimal allocation? What inputs do we need? How do we choose them? How easy is to get exact solutions

More information

Minimum Downside Volatility Indices

Minimum Downside Volatility Indices Minimum Downside Volatility Indices Timo Pfei er, Head of Research Lars Walter, Quantitative Research Analyst Daniel Wendelberger, Quantitative Research Analyst 18th July 2017 1 1 Introduction "Analyses

More information

CSCI 1951-G Optimization Methods in Finance Part 07: Portfolio Optimization

CSCI 1951-G Optimization Methods in Finance Part 07: Portfolio Optimization CSCI 1951-G Optimization Methods in Finance Part 07: Portfolio Optimization March 9 16, 2018 1 / 19 The portfolio optimization problem How to best allocate our money to n risky assets S 1,..., S n with

More information

Attilio Meucci. Managing Diversification

Attilio Meucci. Managing Diversification Attilio Meucci Managing Diversification A. MEUCCI - Managing Diversification COMMON MEASURES OF DIVERSIFICATION DIVERSIFICATION DISTRIBUTION MEAN-DIVERSIFICATION FRONTIER CONDITIONAL ANALYSIS REFERENCES

More information

Optimal Portfolio Selection

Optimal Portfolio Selection Optimal Portfolio Selection We have geometrically described characteristics of the optimal portfolio. Now we turn our attention to a methodology for exactly identifying the optimal portfolio given a set

More information

PORTFOLIO THEORY. Master in Finance INVESTMENTS. Szabolcs Sebestyén

PORTFOLIO THEORY. Master in Finance INVESTMENTS. Szabolcs Sebestyén PORTFOLIO THEORY Szabolcs Sebestyén szabolcs.sebestyen@iscte.pt Master in Finance INVESTMENTS Sebestyén (ISCTE-IUL) Portfolio Theory Investments 1 / 60 Outline 1 Modern Portfolio Theory Introduction Mean-Variance

More information

u (x) < 0. and if you believe in diminishing return of the wealth, then you would require

u (x) < 0. and if you believe in diminishing return of the wealth, then you would require Chapter 8 Markowitz Portfolio Theory 8.7 Investor Utility Functions People are always asked the question: would more money make you happier? The answer is usually yes. The next question is how much more

More information

Final Exam Suggested Solutions

Final Exam Suggested Solutions University of Washington Fall 003 Department of Economics Eric Zivot Economics 483 Final Exam Suggested Solutions This is a closed book and closed note exam. However, you are allowed one page of handwritten

More information

Modern Portfolio Theory

Modern Portfolio Theory Modern Portfolio Theory History of MPT 1952 Horowitz CAPM (Capital Asset Pricing Model) 1965 Sharpe, Lintner, Mossin APT (Arbitrage Pricing Theory) 1976 Ross What is a portfolio? Italian word Portfolio

More information

Lecture 2: Fundamentals of meanvariance

Lecture 2: Fundamentals of meanvariance Lecture 2: Fundamentals of meanvariance analysis Prof. Massimo Guidolin Portfolio Management Second Term 2018 Outline and objectives Mean-variance and efficient frontiers: logical meaning o Guidolin-Pedio,

More information

Economics 424/Applied Mathematics 540. Final Exam Solutions

Economics 424/Applied Mathematics 540. Final Exam Solutions University of Washington Summer 01 Department of Economics Eric Zivot Economics 44/Applied Mathematics 540 Final Exam Solutions I. Matrix Algebra and Portfolio Math (30 points, 5 points each) Let R i denote

More information

Stochastic Programming and Financial Analysis IE447. Midterm Review. Dr. Ted Ralphs

Stochastic Programming and Financial Analysis IE447. Midterm Review. Dr. Ted Ralphs Stochastic Programming and Financial Analysis IE447 Midterm Review Dr. Ted Ralphs IE447 Midterm Review 1 Forming a Mathematical Programming Model The general form of a mathematical programming model is:

More information

Introduction to Computational Finance and Financial Econometrics Introduction to Portfolio Theory

Introduction to Computational Finance and Financial Econometrics Introduction to Portfolio Theory You can t see this text! Introduction to Computational Finance and Financial Econometrics Introduction to Portfolio Theory Eric Zivot Spring 2015 Eric Zivot (Copyright 2015) Introduction to Portfolio Theory

More information

Chapter 8: CAPM. 1. Single Index Model. 2. Adding a Riskless Asset. 3. The Capital Market Line 4. CAPM. 5. The One-Fund Theorem

Chapter 8: CAPM. 1. Single Index Model. 2. Adding a Riskless Asset. 3. The Capital Market Line 4. CAPM. 5. The One-Fund Theorem Chapter 8: CAPM 1. Single Index Model 2. Adding a Riskless Asset 3. The Capital Market Line 4. CAPM 5. The One-Fund Theorem 6. The Characteristic Line 7. The Pricing Model Single Index Model 1 1. Covariance

More information

Applications of Linear Programming

Applications of Linear Programming Applications of Linear Programming lecturer: András London University of Szeged Institute of Informatics Department of Computational Optimization Lecture 8 The portfolio selection problem The portfolio

More information

Portfolio Risk Management and Linear Factor Models

Portfolio Risk Management and Linear Factor Models Chapter 9 Portfolio Risk Management and Linear Factor Models 9.1 Portfolio Risk Measures There are many quantities introduced over the years to measure the level of risk that a portfolio carries, and each

More information

Derivation Of The Capital Asset Pricing Model Part I - A Single Source Of Uncertainty

Derivation Of The Capital Asset Pricing Model Part I - A Single Source Of Uncertainty Derivation Of The Capital Asset Pricing Model Part I - A Single Source Of Uncertainty Gary Schurman MB, CFA August, 2012 The Capital Asset Pricing Model CAPM is used to estimate the required rate of return

More information

THE CHINESE UNIVERSITY OF HONG KONG Department of Mathematics MMAT5250 Financial Mathematics Homework 2 Due Date: March 24, 2018

THE CHINESE UNIVERSITY OF HONG KONG Department of Mathematics MMAT5250 Financial Mathematics Homework 2 Due Date: March 24, 2018 THE CHINESE UNIVERSITY OF HONG KONG Department of Mathematics MMAT5250 Financial Mathematics Homework 2 Due Date: March 24, 2018 Name: Student ID.: I declare that the assignment here submitted is original

More information

Confidence Intervals for the Difference Between Two Means with Tolerance Probability

Confidence Intervals for the Difference Between Two Means with Tolerance Probability Chapter 47 Confidence Intervals for the Difference Between Two Means with Tolerance Probability Introduction This procedure calculates the sample size necessary to achieve a specified distance from the

More information

Financial Analysis The Price of Risk. Skema Business School. Portfolio Management 1.

Financial Analysis The Price of Risk. Skema Business School. Portfolio Management 1. Financial Analysis The Price of Risk bertrand.groslambert@skema.edu Skema Business School Portfolio Management Course Outline Introduction (lecture ) Presentation of portfolio management Chap.2,3,5 Introduction

More information

Lecture 3: Factor models in modern portfolio choice

Lecture 3: Factor models in modern portfolio choice Lecture 3: Factor models in modern portfolio choice Prof. Massimo Guidolin Portfolio Management Spring 2016 Overview The inputs of portfolio problems Using the single index model Multi-index models Portfolio

More information

Tests for Two Variances

Tests for Two Variances Chapter 655 Tests for Two Variances Introduction Occasionally, researchers are interested in comparing the variances (or standard deviations) of two groups rather than their means. This module calculates

More information

In terms of covariance the Markowitz portfolio optimisation problem is:

In terms of covariance the Markowitz portfolio optimisation problem is: Markowitz portfolio optimisation Solver To use Solver to solve the quadratic program associated with tracing out the efficient frontier (unconstrained efficient frontier UEF) in Markowitz portfolio optimisation

More information

(High Dividend) Maximum Upside Volatility Indices. Financial Index Engineering for Structured Products

(High Dividend) Maximum Upside Volatility Indices. Financial Index Engineering for Structured Products (High Dividend) Maximum Upside Volatility Indices Financial Index Engineering for Structured Products White Paper April 2018 Introduction This report provides a detailed and technical look under the hood

More information

Mean Variance Analysis and CAPM

Mean Variance Analysis and CAPM Mean Variance Analysis and CAPM Yan Zeng Version 1.0.2, last revised on 2012-05-30. Abstract A summary of mean variance analysis in portfolio management and capital asset pricing model. 1. Mean-Variance

More information

FMO6 Web: Polls:

FMO6 Web:   Polls: FMO6 Web: https://tinyurl.com/ycaloqk6 Polls: https://pollev.com/johnarmstron561 Improving numerical methods. Optimization. Dr John Armstrong King's College London November 20, 2018 What's coming up Improving

More information

An Intertemporal Capital Asset Pricing Model

An Intertemporal Capital Asset Pricing Model I. Assumptions Finance 400 A. Penati - G. Pennacchi Notes on An Intertemporal Capital Asset Pricing Model These notes are based on the article Robert C. Merton (1973) An Intertemporal Capital Asset Pricing

More information

Regression Review and Robust Regression. Slides prepared by Elizabeth Newton (MIT)

Regression Review and Robust Regression. Slides prepared by Elizabeth Newton (MIT) Regression Review and Robust Regression Slides prepared by Elizabeth Newton (MIT) S-Plus Oil City Data Frame Monthly Excess Returns of Oil City Petroleum, Inc. Stocks and the Market SUMMARY: The oilcity

More information

Mean Variance Portfolio Theory

Mean Variance Portfolio Theory Chapter 1 Mean Variance Portfolio Theory This book is about portfolio construction and risk analysis in the real-world context where optimization is done with constraints and penalties specified by the

More information

Econ 424/CFRM 462 Portfolio Risk Budgeting

Econ 424/CFRM 462 Portfolio Risk Budgeting Econ 424/CFRM 462 Portfolio Risk Budgeting Eric Zivot August 14, 2014 Portfolio Risk Budgeting Idea: Additively decompose a measure of portfolio risk into contributions from the individual assets in the

More information

Asset Selection Model Based on the VaR Adjusted High-Frequency Sharp Index

Asset Selection Model Based on the VaR Adjusted High-Frequency Sharp Index Management Science and Engineering Vol. 11, No. 1, 2017, pp. 67-75 DOI:10.3968/9412 ISSN 1913-0341 [Print] ISSN 1913-035X [Online] www.cscanada.net www.cscanada.org Asset Selection Model Based on the VaR

More information

Risk-Return Optimization of the Bank Portfolio

Risk-Return Optimization of the Bank Portfolio Risk-Return Optimization of the Bank Portfolio Ursula Theiler Risk Training, Carl-Zeiss-Str. 11, D-83052 Bruckmuehl, Germany, mailto:theiler@risk-training.org. Abstract In an intensifying competition banks

More information

Techniques for Calculating the Efficient Frontier

Techniques for Calculating the Efficient Frontier Techniques for Calculating the Efficient Frontier Weerachart Kilenthong RIPED, UTCC c Kilenthong 2017 Tee (Riped) Introduction 1 / 43 Two Fund Theorem The Two-Fund Theorem states that we can reach any

More information

Can you do better than cap-weighted equity benchmarks?

Can you do better than cap-weighted equity benchmarks? R/Finance 2011 Can you do better than cap-weighted equity benchmarks? Guy Yollin Principal Consultant, r-programming.org Visiting Lecturer, University of Washington Krishna Kumar Financial Consultant Yollin/Kumar

More information

Tests for Two ROC Curves

Tests for Two ROC Curves Chapter 65 Tests for Two ROC Curves Introduction Receiver operating characteristic (ROC) curves are used to summarize the accuracy of diagnostic tests. The technique is used when a criterion variable is

More information

Answer FOUR questions out of the following FIVE. Each question carries 25 Marks.

Answer FOUR questions out of the following FIVE. Each question carries 25 Marks. UNIVERSITY OF EAST ANGLIA School of Economics Main Series PGT Examination 2017-18 FINANCIAL MARKETS ECO-7012A Time allowed: 2 hours Answer FOUR questions out of the following FIVE. Each question carries

More information

AGRICULTURE POTFOLIO MODEL MODEL TWO. Keywords: Decision making under uncertainty, efficient portfolio, variance analysis, MOTAD

AGRICULTURE POTFOLIO MODEL MODEL TWO. Keywords: Decision making under uncertainty, efficient portfolio, variance analysis, MOTAD AGRICULTURE POTFOLIO MODEL MODEL TWO Keywords: Decision making under uncertainty, efficient portfolio, variance analysis, MOTAD DATA Net income from three crops per acre of land (Income in thousand dollar

More information

Online Shopping Intermediaries: The Strategic Design of Search Environments

Online Shopping Intermediaries: The Strategic Design of Search Environments Online Supplemental Appendix to Online Shopping Intermediaries: The Strategic Design of Search Environments Anthony Dukes University of Southern California Lin Liu University of Central Florida February

More information

Econ 219B Psychology and Economics: Applications (Lecture 10) Stefano DellaVigna

Econ 219B Psychology and Economics: Applications (Lecture 10) Stefano DellaVigna Econ 219B Psychology and Economics: Applications (Lecture 10) Stefano DellaVigna March 31, 2004 Outline 1. CAPM for Dummies (Taught by a Dummy) 2. Event Studies 3. EventStudy:IraqWar 4. Attention: Introduction

More information

Robust Portfolio Optimization Using a Simple Factor Model

Robust Portfolio Optimization Using a Simple Factor Model Robust Portfolio Optimization Using a Simple Factor Model Chris Bemis, Xueying Hu, Weihua Lin, Somayes Moazeni, Li Wang, Ting Wang, Jingyan Zhang Abstract In this paper we examine the performance of a

More information

Statistical analysis of the inverse problem

Statistical analysis of the inverse problem Statistical analysis of the inverse problem Hongyuan Cao and Jayanta Kumar Pal SAMSI SAMSI/CRSC Undergraduate Workshop at NCSU May 24, 2007 Outline 1 Introduction 2 Preliminary analysis Estimation of parameters

More information

Optimizing Portfolios

Optimizing Portfolios Optimizing Portfolios An Undergraduate Introduction to Financial Mathematics J. Robert Buchanan 2010 Introduction Investors may wish to adjust the allocation of financial resources including a mixture

More information

Efficient Portfolio and Introduction to Capital Market Line Benninga Chapter 9

Efficient Portfolio and Introduction to Capital Market Line Benninga Chapter 9 Efficient Portfolio and Introduction to Capital Market Line Benninga Chapter 9 Optimal Investment with Risky Assets There are N risky assets, named 1, 2,, N, but no risk-free asset. With fixed total dollar

More information

Mean-Variance Portfolio Choice in Excel

Mean-Variance Portfolio Choice in Excel Mean-Variance Portfolio Choice in Excel Prof. Manuela Pedio 20550 Quantitative Methods for Finance August 2018 Let s suppose you can only invest in two assets: a (US) stock index (here represented by the

More information

Finite Element Method

Finite Element Method In Finite Difference Methods: the solution domain is divided into a grid of discrete points or nodes the PDE is then written for each node and its derivatives replaced by finite-divided differences In

More information

Fuzzy Mean-Variance portfolio selection problems

Fuzzy Mean-Variance portfolio selection problems AMO-Advanced Modelling and Optimization, Volume 12, Number 3, 21 Fuzzy Mean-Variance portfolio selection problems Elena Almaraz Luengo Facultad de Ciencias Matemáticas, Universidad Complutense de Madrid,

More information

Random Variables and Probability Distributions

Random Variables and Probability Distributions Chapter 3 Random Variables and Probability Distributions Chapter Three Random Variables and Probability Distributions 3. Introduction An event is defined as the possible outcome of an experiment. In engineering

More information

Tests for the Difference Between Two Linear Regression Intercepts

Tests for the Difference Between Two Linear Regression Intercepts Chapter 853 Tests for the Difference Between Two Linear Regression Intercepts Introduction Linear regression is a commonly used procedure in statistical analysis. One of the main objectives in linear regression

More information

QR43, Introduction to Investments Class Notes, Fall 2003 IV. Portfolio Choice

QR43, Introduction to Investments Class Notes, Fall 2003 IV. Portfolio Choice QR43, Introduction to Investments Class Notes, Fall 2003 IV. Portfolio Choice A. Mean-Variance Analysis 1. Thevarianceofaportfolio. Consider the choice between two risky assets with returns R 1 and R 2.

More information

Financial Mathematics III Theory summary

Financial Mathematics III Theory summary Financial Mathematics III Theory summary Table of Contents Lecture 1... 7 1. State the objective of modern portfolio theory... 7 2. Define the return of an asset... 7 3. How is expected return defined?...

More information

Chapter 7: Portfolio Theory

Chapter 7: Portfolio Theory Chapter 7: Portfolio Theory 1. Introduction 2. Portfolio Basics 3. The Feasible Set 4. Portfolio Selection Rules 5. The Efficient Frontier 6. Indifference Curves 7. The Two-Asset Portfolio 8. Unrestriceted

More information

Portfolio selection with multiple risk measures

Portfolio selection with multiple risk measures Portfolio selection with multiple risk measures Garud Iyengar Columbia University Industrial Engineering and Operations Research Joint work with Carlos Abad Outline Portfolio selection and risk measures

More information

Lecture 5. Return and Risk: The Capital Asset Pricing Model

Lecture 5. Return and Risk: The Capital Asset Pricing Model Lecture 5 Return and Risk: The Capital Asset Pricing Model Outline 1 Individual Securities 2 Expected Return, Variance, and Covariance 3 The Return and Risk for Portfolios 4 The Efficient Set for Two Assets

More information

MATH 4512 Fundamentals of Mathematical Finance

MATH 4512 Fundamentals of Mathematical Finance MATH 451 Fundamentals of Mathematical Finance Solution to Homework Three Course Instructor: Prof. Y.K. Kwok 1. The market portfolio consists of n uncorrelated assets with weight vector (x 1 x n T. Since

More information

The stochastic discount factor and the CAPM

The stochastic discount factor and the CAPM The stochastic discount factor and the CAPM Pierre Chaigneau pierre.chaigneau@hec.ca November 8, 2011 Can we price all assets by appropriately discounting their future cash flows? What determines the risk

More information

Financial Market Models. Lecture 1. One-period model of financial markets & hedging problems. Imperial College Business School

Financial Market Models. Lecture 1. One-period model of financial markets & hedging problems. Imperial College Business School Financial Market Models Lecture One-period model of financial markets & hedging problems One-period model of financial markets a 4 2a 3 3a 3 a 3 -a 4 2 Aims of section Introduce one-period model with finite

More information

A Heuristic Crossover for Portfolio Selection

A Heuristic Crossover for Portfolio Selection Applied Mathematical Sciences, Vol. 8, 2014, no. 65, 3215-3227 HIKARI Ltd, www.m-hikari.com http://dx.doi.org/10.12988/ams.2014.43203 A Heuristic Crossover for Portfolio Selection Joseph Ackora-Prah Department

More information

Chapter 6 Efficient Diversification. b. Calculation of mean return and variance for the stock fund: (A) (B) (C) (D) (E) (F) (G)

Chapter 6 Efficient Diversification. b. Calculation of mean return and variance for the stock fund: (A) (B) (C) (D) (E) (F) (G) Chapter 6 Efficient Diversification 1. E(r P ) = 12.1% 3. a. The mean return should be equal to the value computed in the spreadsheet. The fund's return is 3% lower in a recession, but 3% higher in a boom.

More information

Lecture 3: Review of Probability, MATLAB, Histograms

Lecture 3: Review of Probability, MATLAB, Histograms CS 4980/6980: Introduction to Data Science c Spring 2018 Lecture 3: Review of Probability, MATLAB, Histograms Instructor: Daniel L. Pimentel-Alarcón Scribed and Ken Varghese This is preliminary work and

More information

Equivalence Tests for Two Correlated Proportions

Equivalence Tests for Two Correlated Proportions Chapter 165 Equivalence Tests for Two Correlated Proportions Introduction The two procedures described in this chapter compute power and sample size for testing equivalence using differences or ratios

More information

minimize f(x) subject to f(x) 0 h(x) = 0, 14.1 Quadratic Programming and Portfolio Optimization

minimize f(x) subject to f(x) 0 h(x) = 0, 14.1 Quadratic Programming and Portfolio Optimization Lecture 14 So far we have only dealt with constrained optimization problems where the objective and the constraints are linear. We now turn attention to general problems of the form minimize f(x) subject

More information

Version A. Problem 1. Let X be the continuous random variable defined by the following pdf: 1 x/2 when 0 x 2, f(x) = 0 otherwise.

Version A. Problem 1. Let X be the continuous random variable defined by the following pdf: 1 x/2 when 0 x 2, f(x) = 0 otherwise. Math 224 Q Exam 3A Fall 217 Tues Dec 12 Version A Problem 1. Let X be the continuous random variable defined by the following pdf: { 1 x/2 when x 2, f(x) otherwise. (a) Compute the mean µ E[X]. E[X] x

More information

Equilibrium Asset Returns

Equilibrium Asset Returns Equilibrium Asset Returns Equilibrium Asset Returns 1/ 38 Introduction We analyze the Intertemporal Capital Asset Pricing Model (ICAPM) of Robert Merton (1973). The standard single-period CAPM holds when

More information

FIN 6160 Investment Theory. Lecture 7-10

FIN 6160 Investment Theory. Lecture 7-10 FIN 6160 Investment Theory Lecture 7-10 Optimal Asset Allocation Minimum Variance Portfolio is the portfolio with lowest possible variance. To find the optimal asset allocation for the efficient frontier

More information

Get Tangency Portfolio by SAS/IML

Get Tangency Portfolio by SAS/IML Get Tangency Portfolio by SAS/IML Xia Ke Shan, 3GOLDEN Beijing Technologies Co. Ltd., Beijing, China Peter Eberhardt, Fernwood Consulting Group Inc., Toronto, Canada Matthew Kastin, I-Behavior, Inc., Louisville,

More information

Two-Sample Z-Tests Assuming Equal Variance

Two-Sample Z-Tests Assuming Equal Variance Chapter 426 Two-Sample Z-Tests Assuming Equal Variance Introduction This procedure provides sample size and power calculations for one- or two-sided two-sample z-tests when the variances of the two groups

More information

Portfolio Optimization. Prof. Daniel P. Palomar

Portfolio Optimization. Prof. Daniel P. Palomar Portfolio Optimization Prof. Daniel P. Palomar The Hong Kong University of Science and Technology (HKUST) MAFS6010R- Portfolio Optimization with R MSc in Financial Mathematics Fall 2018-19, HKUST, Hong

More information

Key Features Asset allocation, cash flow analysis, object-oriented portfolio optimization, and risk analysis

Key Features Asset allocation, cash flow analysis, object-oriented portfolio optimization, and risk analysis Financial Toolbox Analyze financial data and develop financial algorithms Financial Toolbox provides functions for mathematical modeling and statistical analysis of financial data. You can optimize portfolios

More information

LECTURE NOTES 10 ARIEL M. VIALE

LECTURE NOTES 10 ARIEL M. VIALE LECTURE NOTES 10 ARIEL M VIALE 1 Behavioral Asset Pricing 11 Prospect theory based asset pricing model Barberis, Huang, and Santos (2001) assume a Lucas pure-exchange economy with three types of assets:

More information

Asset Allocation and Risk Management

Asset Allocation and Risk Management IEOR E4602: Quantitative Risk Management Fall 2016 c 2016 by Martin Haugh Asset Allocation and Risk Management These lecture notes provide an introduction to asset allocation and risk management. We begin

More information

Financial Economics 4: Portfolio Theory

Financial Economics 4: Portfolio Theory Financial Economics 4: Portfolio Theory Stefano Lovo HEC, Paris What is a portfolio? Definition A portfolio is an amount of money invested in a number of financial assets. Example Portfolio A is worth

More information

Gov 2001: Section 5. I. A Normal Example II. Uncertainty. Gov Spring 2010

Gov 2001: Section 5. I. A Normal Example II. Uncertainty. Gov Spring 2010 Gov 2001: Section 5 I. A Normal Example II. Uncertainty Gov 2001 Spring 2010 A roadmap We started by introducing the concept of likelihood in the simplest univariate context one observation, one variable.

More information

IEOR E4602: Quantitative Risk Management

IEOR E4602: Quantitative Risk Management IEOR E4602: Quantitative Risk Management Risk Measures Martin Haugh Department of Industrial Engineering and Operations Research Columbia University Email: martin.b.haugh@gmail.com Reference: Chapter 8

More information

Midterm Exam: Overnight Take Home Three Questions Allocated as 35, 30, 35 Points, 100 Points Total

Midterm Exam: Overnight Take Home Three Questions Allocated as 35, 30, 35 Points, 100 Points Total Economics 690 Spring 2016 Tauchen Midterm Exam: Overnight Take Home Three Questions Allocated as 35, 30, 35 Points, 100 Points Total Due Midnight, Wednesday, October 5, 2016 Exam Rules This exam is totally

More information

FE670 Algorithmic Trading Strategies. Stevens Institute of Technology

FE670 Algorithmic Trading Strategies. Stevens Institute of Technology FE670 Algorithmic Trading Strategies Lecture 4. Cross-Sectional Models and Trading Strategies Steve Yang Stevens Institute of Technology 09/26/2013 Outline 1 Cross-Sectional Methods for Evaluation of Factor

More information

Solutions to questions in Chapter 8 except those in PS4. The minimum-variance portfolio is found by applying the formula:

Solutions to questions in Chapter 8 except those in PS4. The minimum-variance portfolio is found by applying the formula: Solutions to questions in Chapter 8 except those in PS4 1. The parameters of the opportunity set are: E(r S ) = 20%, E(r B ) = 12%, σ S = 30%, σ B = 15%, ρ =.10 From the standard deviations and the correlation

More information

LECTURE NOTES 3 ARIEL M. VIALE

LECTURE NOTES 3 ARIEL M. VIALE LECTURE NOTES 3 ARIEL M VIALE I Markowitz-Tobin Mean-Variance Portfolio Analysis Assumption Mean-Variance preferences Markowitz 95 Quadratic utility function E [ w b w ] { = E [ w] b V ar w + E [ w] }

More information

International Finance. Estimation Error. Campbell R. Harvey Duke University, NBER and Investment Strategy Advisor, Man Group, plc.

International Finance. Estimation Error. Campbell R. Harvey Duke University, NBER and Investment Strategy Advisor, Man Group, plc. International Finance Estimation Error Campbell R. Harvey Duke University, NBER and Investment Strategy Advisor, Man Group, plc February 17, 2017 Motivation The Markowitz Mean Variance Efficiency is the

More information

ECO 317 Economics of Uncertainty Fall Term 2009 Tuesday October 6 Portfolio Allocation Mean-Variance Approach

ECO 317 Economics of Uncertainty Fall Term 2009 Tuesday October 6 Portfolio Allocation Mean-Variance Approach ECO 317 Economics of Uncertainty Fall Term 2009 Tuesday October 6 ortfolio Allocation Mean-Variance Approach Validity of the Mean-Variance Approach Constant absolute risk aversion (CARA): u(w ) = exp(

More information

Risk and Return. CA Final Paper 2 Strategic Financial Management Chapter 7. Dr. Amit Bagga Phd.,FCA,AICWA,Mcom.

Risk and Return. CA Final Paper 2 Strategic Financial Management Chapter 7. Dr. Amit Bagga Phd.,FCA,AICWA,Mcom. Risk and Return CA Final Paper 2 Strategic Financial Management Chapter 7 Dr. Amit Bagga Phd.,FCA,AICWA,Mcom. Learning Objectives Discuss the objectives of portfolio Management -Risk and Return Phases

More information

Lab 2 - Decision theory

Lab 2 - Decision theory Lab 2 - Decision theory Edvin Listo Zec 920625-2976 edvinli@student.chalmers.se September 29, 2014 Co-worker: Jessica Fredby Introduction The goal of this computer assignment is to analyse a given set

More information

What can we do with numerical optimization?

What can we do with numerical optimization? Optimization motivation and background Eddie Wadbro Introduction to PDE Constrained Optimization, 2016 February 15 16, 2016 Eddie Wadbro, Introduction to PDE Constrained Optimization, February 15 16, 2016

More information

Problem Set 4 Answers

Problem Set 4 Answers Business 3594 John H. Cochrane Problem Set 4 Answers ) a) In the end, we re looking for ( ) ( ) + This suggests writing the portfolio as an investment in the riskless asset, then investing in the risky

More information

P2.T8. Risk Management & Investment Management. Jorion, Value at Risk: The New Benchmark for Managing Financial Risk, 3rd Edition.

P2.T8. Risk Management & Investment Management. Jorion, Value at Risk: The New Benchmark for Managing Financial Risk, 3rd Edition. P2.T8. Risk Management & Investment Management Jorion, Value at Risk: The New Benchmark for Managing Financial Risk, 3rd Edition. Bionic Turtle FRM Study Notes By David Harper, CFA FRM CIPM and Deepa Raju

More information

The Optimization Process: An example of portfolio optimization

The Optimization Process: An example of portfolio optimization ISyE 6669: Deterministic Optimization The Optimization Process: An example of portfolio optimization Shabbir Ahmed Fall 2002 1 Introduction Optimization can be roughly defined as a quantitative approach

More information

Capital Asset Pricing Model

Capital Asset Pricing Model Capital Asset Pricing Model 1 Introduction In this handout we develop a model that can be used to determine how an investor can choose an optimal asset portfolio in this sense: the investor will earn the

More information

The Journal of Risk (1 31) Volume 11/Number 3, Spring 2009

The Journal of Risk (1 31) Volume 11/Number 3, Spring 2009 The Journal of Risk (1 ) Volume /Number 3, Spring Min-max robust and CVaR robust mean-variance portfolios Lei Zhu David R Cheriton School of Computer Science, University of Waterloo, 0 University Avenue

More information

Example 1 of econometric analysis: the Market Model

Example 1 of econometric analysis: the Market Model Example 1 of econometric analysis: the Market Model IGIDR, Bombay 14 November, 2008 The Market Model Investors want an equation predicting the return from investing in alternative securities. Return is

More information

Worst-Case Value-at-Risk of Non-Linear Portfolios

Worst-Case Value-at-Risk of Non-Linear Portfolios Worst-Case Value-at-Risk of Non-Linear Portfolios Steve Zymler Daniel Kuhn Berç Rustem Department of Computing Imperial College London Portfolio Optimization Consider a market consisting of m assets. Optimal

More information

COMM 324 INVESTMENTS AND PORTFOLIO MANAGEMENT ASSIGNMENT 1 Due: October 3

COMM 324 INVESTMENTS AND PORTFOLIO MANAGEMENT ASSIGNMENT 1 Due: October 3 COMM 324 INVESTMENTS AND PORTFOLIO MANAGEMENT ASSIGNMENT 1 Due: October 3 1. The following information is provided for GAP, Incorporated, which is traded on NYSE: Fiscal Yr Ending January 31 Close Price

More information

Quantitative Portfolio Theory & Performance Analysis

Quantitative Portfolio Theory & Performance Analysis 550.447 Quantitative ortfolio Theory & erformance Analysis Week February 18, 2013 Basic Elements of Modern ortfolio Theory Assignment For Week of February 18 th (This Week) Read: A&L, Chapter 3 (Basic

More information

Introduction to Algorithmic Trading Strategies Lecture 9

Introduction to Algorithmic Trading Strategies Lecture 9 Introduction to Algorithmic Trading Strategies Lecture 9 Quantitative Equity Portfolio Management Haksun Li haksun.li@numericalmethod.com www.numericalmethod.com Outline Alpha Factor Models References

More information

Stochastic Optimization with cvxpy EE364b Project Final Report

Stochastic Optimization with cvxpy EE364b Project Final Report Stochastic Optimization with cvpy EE364b Project Final Report Alnur Ali alnurali@cmu.edu June 5, 2015 1 Introduction A stochastic program is a conve optimization problem that includes random variables,

More information

Foundations of Finance

Foundations of Finance Lecture 5: CAPM. I. Reading II. Market Portfolio. III. CAPM World: Assumptions. IV. Portfolio Choice in a CAPM World. V. Individual Assets in a CAPM World. VI. Intuition for the SML (E[R p ] depending

More information

Kostas Kyriakoulis ECG 790: Topics in Advanced Econometrics Fall Matlab Handout # 5. Two step and iterative GMM Estimation

Kostas Kyriakoulis ECG 790: Topics in Advanced Econometrics Fall Matlab Handout # 5. Two step and iterative GMM Estimation Kostas Kyriakoulis ECG 790: Topics in Advanced Econometrics Fall 2004 Matlab Handout # 5 Two step and iterative GMM Estimation The purpose of this handout is to describe the computation of the two-step

More information

Consumption and Portfolio Decisions When Expected Returns A

Consumption and Portfolio Decisions When Expected Returns A Consumption and Portfolio Decisions When Expected Returns Are Time Varying September 10, 2007 Introduction In the recent literature of empirical asset pricing there has been considerable evidence of time-varying

More information

APPLICATION OF KRIGING METHOD FOR ESTIMATING THE CONDITIONAL VALUE AT RISK IN ASSET PORTFOLIO RISK OPTIMIZATION

APPLICATION OF KRIGING METHOD FOR ESTIMATING THE CONDITIONAL VALUE AT RISK IN ASSET PORTFOLIO RISK OPTIMIZATION APPLICATION OF KRIGING METHOD FOR ESTIMATING THE CONDITIONAL VALUE AT RISK IN ASSET PORTFOLIO RISK OPTIMIZATION Celma de Oliveira Ribeiro Escola Politécnica da Universidade de São Paulo Av. Professor Almeida

More information