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

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

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

Sharpe-optimal SPDR portfolios

Case Study : Portfolio Theory

Markowitz portfolio theory

ANALYSIS OF EQUITY MARKETS: A SPEARMAN RANK CORRELATION COEFFICIENT APPROACH

The Defined Risk Strategy

S&P Day A/D Line

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

Market Overview. Sector Overview

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

How quantitative methods influence and shape finance industry

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

Four Components Of A Successful Income Portfolio

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

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

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

Commentary. CBOE Volatility Index (VIX) Brexit Election VIX

Commentary. Our greatest weakness lies in giving up. The most certain way to succeed is always to try just one more time.

Portfolios that Contain Risky Assets Portfolio Models 3. Markowitz Portfolios

Commentary. Patience and perseverance have a magical effect before which difficulties disappear and obstacles vanish. - John Quincy Adams

Real-time Analytics Methodology

Commentary. "How ridiculous and how strange to be surprised at anything which happens in life." - Marcus Aurelius, Stoic philosopher

Commentary. If you are the smartest person in the room, then you are in the wrong room. Attributed to Confucius

Commentary. "The inevitable may be certain, but it is not always punctual." - Jim Grant - Grant's Interest Rate Observer

Commentary. Forecasts usually tell us more about the forecaster than about the future. - Warren Buffett

Prepared By: David Advisor Prepared for: Joe Investor

Use of ETFs in Active Investing

Commentary. "How ridiculous and how strange to be surprised at anything which happens in life." -Marcus Aurelius

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

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

J.P. Morgan Structured Investments

Commentary. Without deviation from the norm, progress is not possible. Frank Zappa

Commentary. You can t overlook volatility, but you don t let it push you around in the market - Boone Pickens

Commentary. Just because the river is quiet doesn't mean the crocodiles have left. Malay proverb

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

Commentary. Things turn out best for the people who make the best of the way things turn out. - John Wooden

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

LongRun Monthly Strategy Review. Commentary. Oct 2017

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

Markowitz portfolio theory. May 4, 2017

Top Down Analysis Success Demands Singleness of Purpose

Tactical Investing Basics: Absolute Return Strategies, Over a Full Market Cycle

Optimal Portfolio Inputs: Various Methods

Portfolios that Contain Risky Assets 3: Markowitz Portfolios

Mean Variance Portfolio Theory

Prospectus. January 31, 2012

MACRO CHART BOOK Q2, 2016

A Guide to J.P. Morgan U.S. Sector Rotator 5 Index (Annuity Series)

VelocityShares Equal Risk Weighted Large Cap ETF (ERW): A Balanced Approach to Low Volatility Investing. December 2013

Vantage Aggressive 2.0

The Markowitz framework

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

Mathematics in Finance

Predictability of Stock Returns

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

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

W. P. Carey School of Business

Modern Portfolio Theory -Markowitz Model

January 24, Michael Rechenthin, PhD Frank Kaberna

January 31, 2015 (as amended October 8, 2015)

VelocityShares Equal Risk Weight ETF (ERW) Please refer to Important Disclosures and the Glossary of Terms section at the end of this material.

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

ECON FINANCIAL ECONOMICS

Asset Allocation Programs: Regulatory Issues Surrounding Use with Variable Insurance Products

Are You Smarter Than a Monkey? Course Syllabus. How Are Our Stocks Doing? 9/30/2017

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

Modern Portfolio Theory

UNIVERSIDAD CARLOS III DE MADRID FINANCIAL ECONOMICS

On the Essential Role of Finance Science in Finance Practice in Asset Management

Quantopian Risk Model Abstract. Introduction

Applications of Linear Programming

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

1 Asset Pricing: Replicating portfolios

Volatility Forecasting and Interpolation

Big Data Analytics of Financial Strategies

An Analysis of Theories on Stock Returns

Portfolio Optimization. Prof. Daniel P. Palomar

OPTIMAL PORTFOLIO CONTROL WITH TRADING STRATEGIES OF FINITE

Hierarchical Hidden Markov Models in High-Frequency Stock Markets

Investment Plan for SPA3ETF USA Equal Weighting Public Portfolio

SELECT YOUR SECTORS. Respond to Market Cycles with Agility and Precision

Vantage 2.0 Portfolio Summary as of 01/31/2016

Prepared by Jaime Johnson and Robert Miner Tuesday, Sept. 1, 2015

Quantitative Portfolio Theory & Performance Analysis

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

Beta stochastic volatility model. Artur Sepp Bank of America Merrill Lynch, London

CHAPTER II LITERATURE STUDY

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

Financial Economics Field Exam January 2008

Covariance Matrix Estimation using an Errors-in-Variables Factor Model with Applications to Portfolio Selection and a Deregulated Electricity Market

Update. UBS Tax-Optimized Active ETF MAP Opportunistic model 3Q2017

Macro Economics Covering the Federal Reserve Bank and the FOMC (Federal Open Market Committee)

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

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

Lecture: Basic Elements

Financial Market Analysis (FMAx) Module 6

Lecture 2: Fundamentals of meanvariance

Session 8: The Markowitz problem p. 1

Exercises on the New-Keynesian Model

Transcription:

ORF 307 Lecture 3 Chapter 13, Section 1 Portfolio Optimization Robert Vanderbei February 14, 2012 Operations Research and Financial Engineering, Princeton University http://www.princeton.edu/ rvdb

Portfolio Optimization: Markowitz Shares the 1990 Nobel Prize Press Release - The Sveriges Riksbank (Bank of Sweden) Prize in Economic Sciences in Memory of Alfred Nobel KUNGL. VETENSKAPSAKADEMIEN THE ROYAL SWEDISH ACADEMY OF SCIENCES 16 October 1990 THIS YEAR S LAUREATES ARE PIONEERS IN THE THEORY OF FINANCIAL ECONOMICS AND CORPORATE FINANCE The 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. The 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. This 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.

Historical Data Some ETF Prices Share Price 4 3.5 3 2.5 2 XLU utilities XLB materials XLI industrials XLV healthcare XLF financial XLE energy MDY midcap XLK technology XLY discretionary XLP staples QQQ SPY S&P500 XLE 1.5 1 0.5 XLU MDY XLP XLB XLV XLI XLY SPY XLF XLK QQQ 0 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 Date Notation: S j (t) = share price for investment j at time t.

Return Data: R j (t) = S j (t)/s j (t 1) Returns 1.5 1.4 1.3 1.2 1.1 XLU utilities XLB materials XLI industrials XLV healthcare XLF financial XLE energy MDY midcap XLK technology XLY discretionary XLP staples QQQ SPY S&P500 1 0.9 0.8 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 Date Important observation: volatility is easy to see, mean return is lost in the noise.

Risk vs. Reward Reward estimated using historical means: reward j = 1 T 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. T 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 T R j (t) reward j.

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!

Return Data: 50 days around 01/01/2005 1.04 1.03 1.02 1.01 Returns 1 XLU XLB 0.99 XLI XLV XLF 0.98 XLE MDY XLK 0.97 XLY XLP QQQ S&P500 0.96 2004.85 2004.9 2004.95 2005 2005.05 2005.1 Date Note: Not much negative correlation in price fluctuations. An up-day is an up-day and a down-day is a down-day.

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

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

A Markowitz-Type 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 T x j (R j (t) reward j ) µ j x j = 1 j x j 0 for all j

Optimization Problem maximize subject to 1 T 1 T 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...

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

AMPL: Model set A; set T; # asset categories # dates param n := card(t); param risk; param R {T,A}; param mean {j in A} := ( sum{i in T} R[i,j] )/n; param Rtilde {i in T, j in A} := R[i,j] - mean[j]; var x{a} >=0; var y{t} >= 0; maximize reward: sum{j in A} mean[j]*x[j] ; s.t. risk_bound: sum{i in T} y[i] / n <= risk; s.t. tot_mass: sum{j in A} x[j] = 1; s.t. y_lo_bnd {i in T}: -y[i] <= sum{j in A} Rtilde[i,j]*x[j]; s.t. y_up_bnd {i in T}: sum{j in A} Rtilde[i,j]*x[j] <= y[i];

AMPL: Data, Solve, and Print data; set A := xlu xlb xli xlv xlf xle mdy xlk xly xlp qqqq spy; set T := include dates.out ; param R: xlu xlb xli xlv xlf xle mdy xlk xly xlp include amplreturn3.data ; qqqq spy:= printf {j in A}: "%10.7f %10.5f \n", mean[j], sum{i in T} abs(rtilde[i,j])/n > "assets"; for {k in 0..200 by 15} { display k; let risk := (k/200)*0.007 + (1-k/200)*0.017; solve; printf: "%7.4f \n", risk > "portfolio"; printf {j in A: x[j] > 0.001}: "%45s %6.3f \n", j, x[j] > "portfolio"; printf: " %6.3f %6.3f \n", sum{j in A} mean[j]*x[j], sum{i in T} abs(sum{j in A} Rtilde[i,j]*x[j]) / n > "portfolio"; } printf: "%10.7f %10.5f \n", sum{j in A} mean[j]*x[j], sum{i in T} abs(sum{j in A} Rtilde[i,j]*x[j]) / n > "eff_front";

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 XLV XLF XLE MDY XLK XLY XLP QQQ SPY Reward Risk 1.000 1.110 0.0137 1.000 1.110 0.0137 1.000 1.110 0.0137 1.000 1.110 0.0137 1.000 1.110 0.0137 0.050 0.950 1.107 0.0132 0.138 0.862 1.101 0.0125 0.233 0.767 1.096 0.0117 0.329 0.666 0.006 1.090 0.0110 0.332 0.589 0.078 1.083 0.0102 0.329 0.509 0.162 1.076 0.0095 0.311 0.424 0.005 0.259 1.069 0.0087 0.308 0.319 0.015 0.359 1.060 0.0080 0.273 0.067 0.205 0.456 1.048 0.0072

Efficient Frontier 0.016 0.015 QQQ 0.014 XLK XLE 0.013 XLF 0.012 XLB Risk 0.011 XLY MDY 0.01 XLI 0.009 SPY XLV XLU 0.008 XLP 0.007 0.9 0.95 1 1.05 1.1 1.15 Mean Return (annualized)

Getting Started With AMPL on a PC Download putty from http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Under Start, Programs, click on Putty under, you guessed it, Putty. For hostname enter hats.princeton.edu. Log in with your usual user id and password. For a text editor, I recommend pico, so, just type pico.