ORF 307: Lecture 3. Linear Programming: Chapter 13, Section 1 Portfolio Optimization. Robert Vanderbei. February 13, 2016

Similar documents
ORF 307 Lecture 3. Chapter 13, Section 1 Portfolio Optimization

ORF 307: Lecture 12. Linear Programming: Chapter 11: Game Theory

Markowitz portfolio theory

Sharpe-optimal SPDR portfolios

Case Study : Portfolio Theory

CSCI 1951-G Optimization Methods in Finance Part 00: Course Logistics Introduction to Finance Optimization Problems

How quantitative methods influence and shape finance industry

ORF 307: Lecture 19. Linear Programming: Chapter 13, Section 2 Pricing American Options. Robert Vanderbei. May 1, 2018

MS-E2114 Investment Science Lecture 5: Mean-variance portfolio theory

ANALYSIS OF EQUITY MARKETS: A SPEARMAN RANK CORRELATION COEFFICIENT APPROACH

Press Release - The Sveriges Riksbank (Bank of Sweden) Prize in Economics in Memory of Alfred Nobel

Portfolios that Contain Risky Assets Portfolio Models 3. Markowitz Portfolios

Markowitz portfolio theory. May 4, 2017

Portfolios that Contain Risky Assets 3: Markowitz Portfolios

Mathematics in Finance

Mean Variance Portfolio Theory

Modern Portfolio Theory

Interactive Brokers Webcast. Options on ETFs. February 13, 2013 Presented by Russell Rhoads, CFA

Predictability of Stock Returns

S&P Day A/D Line

Modeling Portfolios that Contain Risky Assets Risk and Reward II: Markowitz Portfolios

Applications of Linear Programming

An Analysis of Theories on Stock Returns

The Defined Risk Strategy

Implementing Momentum Strategy with Options: Dynamic Scaling and Optimization

Risk and Return. Nicole Höhling, Introduction. Definitions. Types of risk and beta

The Markowitz framework

OPTIMAL PORTFOLIO CONTROL WITH TRADING STRATEGIES OF FINITE

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

Four Components Of A Successful Income Portfolio

Modern Portfolio Theory -Markowitz Model

Financial Market Analysis (FMAx) Module 6

Quantitative Strategy Development in R. R/Finance Chicago 2011 Brian G. Peterson

Lecture 2: Fundamentals of meanvariance

Mean Variance Analysis and CAPM

Chapter 8. Markowitz Portfolio Theory. 8.1 Expected Returns and Covariance

Journal of Business Case Studies November/December 2010 Volume 6, Number 6

Department of Economics ECO 204 Microeconomic Theory for Commerce (Ajaz) Test 2 Solutions

ECON FINANCIAL ECONOMICS

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

2.1 Mean-variance Analysis: Single-period Model

Techniques for Calculating the Efficient Frontier

Advanced Financial Economics Homework 2 Due on April 14th before class

Theoretical Aspects Concerning the Use of the Markowitz Model in the Management of Financial Instruments Portfolios

Chapter 7: Portfolio Theory

1 Asset Pricing: Replicating portfolios

Lecture 3: Factor models in modern portfolio choice

Journal of Computational and Applied Mathematics. The mean-absolute deviation portfolio selection problem with interval-valued returns

Prepared By: David Advisor Prepared for: Joe Investor

Note on Using Excel to Compute Optimal Risky Portfolios. Candie Chang, Hong Kong University of Science and Technology

Lecture 3: Return vs Risk: Mean-Variance Analysis

Efficient Frontier and Asset Allocation

Hierarchical Hidden Markov Models in High-Frequency Stock Markets

Investment Management Theory. Today s Discussion. What are Investors Really Looking For? What is Modern Portfolio Theory?

Session 8: The Markowitz problem p. 1

Expected Return Methodologies in Morningstar Direct Asset Allocation

Financial Economics Field Exam January 2008

LongRun Monthly Strategy Summary (4/30/2014) Commentary

Introduction to Computational Finance and Financial Econometrics Introduction to Portfolio Theory

Head Traders, Technical Contacts, Compliance Officers, Heads of ETF Trading, Structured Products Traders. Exchange-Traded Fund Symbol CUSIP #

Risk and Return and Portfolio Theory

Multi-period mean variance asset allocation: Is it bad to win the lottery?

Market Overview. Sector Overview

Probability and Stochastics for finance-ii Prof. Joydeep Dutta Department of Humanities and Social Sciences Indian Institute of Technology, Kanpur

UNIVERSIDAD CARLOS III DE MADRID FINANCIAL ECONOMICS

Quantitative Portfolio Theory & Performance Analysis

Real-time Analytics Methodology

Financial Optimization ISE 347/447. Lecture 15. Dr. Ted Ralphs

1 Consumption and saving under uncertainty

The Optimization Process: An example of portfolio optimization

Modeling Portfolios that Contain Risky Assets Risk and Reward III: Basic Markowitz Portfolio Theory

ECON FINANCIAL ECONOMICS

Module 10. Lecture 37

OPTIMAL RISKY PORTFOLIOS- ASSET ALLOCATIONS. BKM Ch 7

Lecture: Basic Elements

Portfolio Optimization. Prof. Daniel P. Palomar

Macroeconomics. Lecture 5: Consumption. Hernán D. Seoane. Spring, 2016 MEDEG, UC3M UC3M

EE365: Risk Averse Control

Homework #2 Graphical LP s.

Multi-armed bandit problems

Math Models of OR: More on Equipment Replacement

A Broader View of the Mean-Variance Optimization Framework

Optimizing DSM Program Portfolios

FINANCE 402 Capital Budgeting and Corporate Objectives. Syllabus

Evaluating S&P 500 Sector ETFs Using Risk-Adjusted Performance Measures

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

Asset-Liability Management

A Recommended Financial Model for the Selection of Safest portfolio by using Simulation and Optimization Techniques

Comparison of U.S. Stock Indices

Chapter 2 Portfolio Management and the Capital Asset Pricing Model

Mean-Variance Portfolio Theory

A Comparative Study on Markowitz Mean-Variance Model and Sharpe s Single Index Model in the Context of Portfolio Investment

NON-PROFIT FUNDS Issues and Opportunities, Getting More Mileage, and more...

Chapter. Diversification and Risky Asset Allocation. McGraw-Hill/Irwin. Copyright 2008 by The McGraw-Hill Companies, Inc. All rights reserved.

Portfolio Optimization using the NAG Library

Volatility Forecasting and Interpolation

Lecture 12. Asset pricing model. Randall Romero Aguilar, PhD I Semestre 2017 Last updated: June 15, 2017

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

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

THE OPTIMAL ASSET ALLOCATION PROBLEMFOR AN INVESTOR THROUGH UTILITY MAXIMIZATION

Transcription:

ORF 307: Lecture 3 Linear Programming: Chapter 13, Section 1 Portfolio Optimization Robert Vanderbei February 13, 2016 Slides last edited on February 14, 2018 http://www.princeton.edu/ rvdb

Portfolio Optimization: Markowitz Shares the 1990 Nobel Prize Press Release - he Sveriges Riksbank (Bank of Sweden) Prize in Economic Sciences in Memory of Alfred Nobel KUNGL. VEENSKAPSAKADEMIEN HE ROYAL SWEDISH ACADEMY OF SCIENCES 16 October 1990 HIS YEAR S LAUREAES ARE PIONEERS IN HE HEORY OF FINANCIAL ECONOMICS AND CORPORAE FINANCE he Royal Swedish Academy of Sciences has decided to award the 1990 Alfred Nobel Memorial Prize in Economic Sciences with one third each, to Professor Harry Markowitz, City University of New York, USA, Professor Merton Miller, University of Chicago, USA, Professor William Sharpe, Stanford University, USA, for their pioneering work in the theory of financial economics. Harry Markowitz is awarded the Prize for having developed the theory of portfolio choice; William Sharpe, for his contributions to the theory of price formation for financial assets, the so-called, Capital Asset Pricing Model (CAPM); and Merton Miller, for his fundamental contributions to the theory of corporate finance. Summary Financial markets serve a key purpose in a modern market economy by allocating productive resources among various areas of production. It is to a large extent through financial markets that saving in different sectors of the economy is transferred to firms for investments in buildings and machines. Financial markets also reflect firms expected prospects and risks, which implies that risks can be spread and that savers and investors can acquire valuable information for their investment decisions. he first pioneering contribution in the field of financial economics was made in the 1950s by Harry Markowitz who developed a theory for households and firms allocation of financial assets under uncertainty, the so-called theory of portfolio choice. his theory analyzes how wealth can be optimally invested in assets which differ in regard to their expected return and risk, and thereby also how risks can be reduced. Copyright 1998 he Nobel Foundation 1

Historical Data Some EF Prices Notation: S j (t) = share price for investment j at time t. 2

Return Data: R j (t) = S j (t)/s j (t 1) Important observation: volatility is easy to see, mean return is lost in the noise. 3

Risk vs. Reward Reward: Estimated using historical means: reward j = 1 R j (t). Risk: Markowitz defined risk as the variability of the returns as measured by the historical variances: risk j = 1 ( ) 2 Rj (t) reward j. However, to get a linear programming problem (and for other reasons) we use the sum of the absolute values instead of the sum of the squares: risk j = 1 R j (t) reward j. 4

Why Make a Portfolio?... Hedging Investment A: Up 20%, down 10%, equally likely a risky asset. Investment B: Up 20%, down 10%, equally likely another risky asset. Correlation: Up-years for A are down-years for B and vice versa. Portfolio: Half in A, half in B: up 5% every year! No risk! 5

Explain Explain the 5% every year claim. 6

Return Data: 50 days around 01/01/2014 1.03 1.02 1.01 Returns 1 0.99 0.98 0.97 XLU XLB XLI XLV XLF XLE MDY XLK XLY XLP QQQ S&P500 0.96 2013.96 2013.98 2014 2014.02 2014.04 2014.06 2014.08 2014.1 2014.12 2014.14 Date Note: Not much negative correlation in price fluctuations. An up-day is an up-day and a down-day is a down-day. 7

Portfolios Fractions: x j = fraction of portfolio to invest in j Portfolio s Historical Returns: R x (t) = j x j R j (t) Portfolio s Reward: reward(x) = 1 R x (t) = 1 x j R j (t) j = 1 x j R j (t) = x j reward j j j 8

What s a Good Formula for the Portfolio s Risk? 9

Portfolio s Risk: risk(x) = 1 = 1 R x(t) reward(x) x j R j (t) 1 j x j R j (s) s=1 j = 1 j x j R j (t) 1 R j (s) s=1 = 1 x j (R j (t) reward j ) j 10

A Markowitz-ype Model Decision Variables: the fractions x j. Objective: maximize return, minimize risk. Fundamental Lesson: can t simultaneously optimize two objectives. Compromise: set an upper bound µ for risk and maximize reward subject to this bound constraint: Parameter µ is called risk aversion parameter. Large value for µ puts emphasis on reward maximization. Small value for µ puts emphasis on risk minimization. Constraints: 1 x j (R j (t) reward j ) µ j x j = 1 j x j 0 for all j 11

Optimization Problem maximize subject to 1 1 x j R j (t) j x j (R j (t) reward j ) µ j x j = 1 j x j 0 for all j Because of absolute values not a linear programming problem. Easy to convert... 12

Main Idea For he Conversion Using the greedy substitution, we introduce new variables to represent the troublesome part of the problem y t = x j (R j (t) reward j ) to get j maximize subject to 1 x j R j (t) j x j (R j (t) reward j ) = y t j 1 y t µ x j = 1 j for all t x j 0 for all j. We then note that the constraint defining y t can be relaxed to a pair of inequalities: y t j x j (R j (t) reward j ) y t. 13

A Linear Programming Formulation maximize subject to 1 x j R j (t) j y t j x j (R j (t) reward j ) y t 1 y t µ x j = 1 j x j 0 y t 0 for all t for all j for all t 14

AMPL: Model set Assets; set Dates; param := card(dates); param mu; param returns {Dates,Assets}; param mean {j in Assets} := ( sum{t in Dates} returns[t,j] )/; param returns_dev {t in Dates, j in Assets} := returns[t,j] - mean[j]; param meanabsdev {j in Assets} := sum{t in Dates} abs(returns_dev[t,j]) / ; var x{assets} >= 0; var y{dates} >= 0; maximize reward: sum{j in Assets} mean[j]*x[j] ; s.t. risk_bound: sum{t in Dates} y[t] / <= mu; s.t. tot_mass: sum{j in Assets} x[j] = 1; s.t. y_lo_bnd {t in Dates}: -y[t] <= sum{j in Assets} returns_dev[t,j]*x[j]; s.t. y_up_bnd {t in Dates}: sum{j in Assets} returns_dev[t,j]*x[j] <= y[t]; 15

AMPL: Data, Solve, and Print set RiskReward := {'risk', 'reward'}; param numiters := 20; param portfolio {0..numiters, Assets union RiskReward}; set assets_max_mean ordered := {j in Assets: mean[j] == max {jj in Assets} mean[jj]}; param maxrisk := meanabsdev[first(assets_max_mean)]; param minrisk := min {j in Assets} meanabsdev[j]; for {k in 0..numiters} { display k; let mu := (k/20)*minrisk + (1-k/20)*maxrisk; solve; } let {j in Assets} portfolio[k,j] := x[j]; let portfolio[k,'reward'] := reward; let portfolio[k,'risk'] := sum{t in Dates} abs(sum{j in Assets} returns_dev[t,j]*x[j]) / ; 16

Efficient Frontier Varying risk bound µ produces the so-called efficient frontier. Portfolios on the efficient frontier are reasonable. Portfolios not on the efficient frontier can be strictly improved. XLU XLB XLI XLV XLF XLE MDY XLK XLY XLP QQQ SPY Risk Reward 1.00000 0.00715 1.00063 0.91073 0.08927 0.00705 1.00063 0.80327 0.19673 0.00696 1.00063 0.64003 0.35997 0.00686 1.00063 0.52089 0.03862 0.44049 0.00676 1.00062 0.50041 0.01272 0.06919 0.41768 0.00667 1.00062 0.48484 0.04132 0.07129 0.40254 0.00657 1.00061 0.46483 0.06857 0.07658 0.39002 0.00647 1.00060 0.44030 0.09633 0.08232 0.38105 0.00638 1.00059 0.42825 0.12917 0.08171 0.36086 0.00628 1.00059 0.39737 0.16114 0.08506 0.35643 0.00619 1.00058 0.36890 0.19318 0.09133 0.34659 0.00609 1.00057 0.33802 0.22223 0.00451 0.09494 0.34030 0.00599 1.00056 0.29959 0.23687 0.01707 0.10664 0.33984 0.00590 1.00055 0.27975 0.26587 0.02543 0.10951 0.31943 0.00580 1.00054 0.25688 0.28212 0.03974 0.12461 0.29666 0.00570 1.00053 0.24677 0.30348 0.05438 0.13634 0.25903 0.00561 1.00052 0.23570 0.32960 0.07273 0.13670 0.22527 0.00551 1.00051 0.21978 0.36630 0.09093 0.12719 0.19580 0.00541 1.00049 0.21069 0.40713 0.10881 0.12695 0.14641 0.00532 1.00048 0.18010 0.46128 0.12077 0.13760 0.10025 0.00522 1.00046 17

Efficient Frontier 18

Downloading the Jupyter Notebook http://www.princeton.edu/ rvdb/307/python/orf307 lecture3.ipynb 19