The University of Sydney School of Mathematics and Statistics. Computer Project

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

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

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

Financial Mathematics III Theory summary

Mean-Variance Portfolio Choice in Excel

Solutions to Problem Set 1

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

Techniques for Calculating the Efficient Frontier

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

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

Mean Variance Analysis and CAPM

FINC 430 TA Session 7 Risk and Return Solutions. Marco Sammon

SDMR Finance (2) Olivier Brandouy. University of Paris 1, Panthéon-Sorbonne, IAE (Sorbonne Graduate Business School)

Chapter 7: Portfolio Theory

Economics 424/Applied Mathematics 540. Final Exam Solutions

CHAPTER 6: PORTFOLIO SELECTION

1 Asset Pricing: Bonds vs Stocks

Report 2 Instructions - SF2980 Risk Management

Characterization of the Optimum

Monte Carlo Methods for Uncertainty Quantification

Lecture 3: Factor models in modern portfolio choice

The mean-variance portfolio choice framework and its generalizations

Markowitz portfolio theory

The Optimization Process: An example of portfolio optimization

Lecture 10-12: CAPM.

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

Mean-Variance Analysis

Portfolios that Contain Risky Assets 10: Limited Portfolios with Risk-Free Assets

Washington University Fall Economics 487. Project Proposal due Monday 10/22 Final Project due Monday 12/3

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

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

Quantitative Risk Management

PORTFOLIO OPTIMIZATION AND EXPECTED SHORTFALL MINIMIZATION FROM HISTORICAL DATA

Chapter 8. Portfolio Selection. Learning Objectives. INVESTMENTS: Analysis and Management Second Canadian Edition

This assignment is due on Tuesday, September 15, at the beginning of class (or sooner).

Financial Economics 4: Portfolio Theory

Modeling Portfolios that Contain Risky Assets Risk and Return I: Introduction

IMPA Commodities Course : Forward Price Models

Two Hours. Mathematical formula books and statistical tables are to be provided THE UNIVERSITY OF MANCHESTER. 22 January :00 16:00

UNIVERSITY OF OSLO. Please make sure that your copy of the problem set is complete before you attempt to answer anything.

Session 8: The Markowitz problem p. 1

Economics 826 International Finance. Final Exam: April 2007

Portfolio theory and risk management Homework set 2

The University of Chicago, Booth School of Business Business 41202, Spring Quarter 2011, Mr. Ruey S. Tsay. Solutions to Final Exam.

In terms of covariance the Markowitz portfolio optimisation problem is:

Portfolio Management

General Notation. Return and Risk: The Capital Asset Pricing Model

1.1 Interest rates Time value of money

2.1 Mean-variance Analysis: Single-period Model

Mathematics of Finance Final Preparation December 19. To be thoroughly prepared for the final exam, you should

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

9.1 Principal Component Analysis for Portfolios

Portfolios that Contain Risky Assets Portfolio Models 9. Long Portfolios with a Safe Investment

Consumption- Savings, Portfolio Choice, and Asset Pricing

A RIDGE REGRESSION ESTIMATION APPROACH WHEN MULTICOLLINEARITY IS PRESENT

Optimal Portfolio Selection

MAS1403. Quantitative Methods for Business Management. Semester 1, Module leader: Dr. David Walshaw

ECMC49F Midterm. Instructor: Travis NG Date: Oct 26, 2005 Duration: 1 hour 50 mins Total Marks: 100. [1] [25 marks] Decision-making under certainty

by Kian Guan Lim Professor of Finance Head, Quantitative Finance Unit Singapore Management University

Diversification. Finance 100

Stock Prices and the Stock Market

Risk Tolerance. Presented to the International Forum of Sovereign Wealth Funds

Portfolios that Contain Risky Assets Portfolio Models 3. Markowitz Portfolios

Efficient Frontier and Asset Allocation

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

Washington University Fall Economics 487

Midterm 1, Financial Economics February 15, 2010

Final exam solutions

Exercises on the New-Keynesian Model

Chapter 1 Microeconomics of Consumer Theory

The University of Chicago, Booth School of Business Business 41202, Spring Quarter 2017, Mr. Ruey S. Tsay. Solutions to Final Exam

Portfolios that Contain Risky Assets 3: Markowitz Portfolios

Carnegie Mellon University Graduate School of Industrial Administration

Extend the ideas of Kan and Zhou paper on Optimal Portfolio Construction under parameter uncertainty

Random Variables and Probability Distributions

Maximum Likelihood Estimation

Lastrapes Fall y t = ỹ + a 1 (p t p t ) y t = d 0 + d 1 (m t p t ).

Final Exam Suggested Solutions

Lecture 2: Fundamentals of meanvariance

Module 6 Portfolio risk and return

Risk and Return and Portfolio Theory

Financial Risk Forecasting Chapter 3 Multivariate volatility models

Microeconomics of Banking: Lecture 2

Portfolios that Contain Risky Assets 1: Risk and Reward

MATH3075/3975 FINANCIAL MATHEMATICS TUTORIAL PROBLEMS

A Hybrid Commodity and Interest Rate Market Model

Chapter 3. Numerical Descriptive Measures. Copyright 2016 Pearson Education, Ltd. Chapter 3, Slide 1

LECTURE NOTES 3 ARIEL M. VIALE

University of Toronto Department of Economics ECO 204 Summer 2013 Ajaz Hussain TEST 2 GOOD LUCK! 9-DIGIT STUDENT ID # (AS IT APPEARS IN ROSI)

Return and Risk: The Capital-Asset Pricing Model (CAPM)

Idiosyncratic risk, insurance, and aggregate consumption dynamics: a likelihood perspective

ECMC49S Midterm. Instructor: Travis NG Date: Feb 27, 2007 Duration: From 3:05pm to 5:00pm Total Marks: 100

PhD Qualifier Examination

IEOR E4602: Quantitative Risk Management

Estimation of Volatility of Cross Sectional Data: a Kalman filter approach

A Broader View of the Mean-Variance Optimization Framework

Application to Portfolio Theory and the Capital Asset Pricing Model

PASS Sample Size Software

Models and Decision with Financial Applications UNIT 1: Elements of Decision under Uncertainty

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

Transcription:

The University of Sydney School of Mathematics and Statistics Computer Project MATH2070/2970: Optimisation and Financial Mathematics Semester 2, 2018 Web Page: http://www.maths.usyd.edu.au/u/im/math2070/ Lecturer: Anna Aksamit and Georg Gottwald Due on 5.00pm Thursday 1 st November via TurnItIn Late assignments are not accepted without prior arrangement well before the deadline! You must attach a scanned copy of the signed cover-sheet to the front of your assignment (see over)! This is mostly a computational project so you must submit all computer programs with your project formulations, descriptions and outputs. Assessment will be based on: accuracy, programming and presentation. MATH2070: Do all questions except Questions x for x 7. MATH2970: Do all questions. In this assignment you will be analyzing real stock market data downloaded from Yahoo!Finance. The file DowPricing_2004_2010.csv which you can download from Ed, contains the daily closing prices of the 30 stocks which make up the Dow Jones Industrial Average Index. Prices are recorded on a (business)-daily basis between 31/12/2003 and 29/12/2010. This includes the Global Financial Crisis (GFC) which we locate here in time from very roughly from 03/01/2007 31/05/2010. We define the peak of the GFC as the period 02/09/08 01/06/09, and define a pre-gfc and post-gfc period from 03/01/07 29/08/2008 and from 01/06/09 31/12/10, respectively. Recall that Lehman Brothers filed bankrupt protection on September 15, 2008. There are two particularities with this time series: (1) Visa s share price starts at 19/3/2008 on Yahoo!Finance. (2) Dow and DuPont have recently merged and are now trading as a new entity (DWDP) with a short trading history. Therefore only consider the 28 stocks without Visa and Dow & DuPont. All prices are here in US dollars. Correlations and the covariance matrix 1. Export the data into Matlab using csvread and/or readtable. This question investigates the correlations of the return rates. When analyzing return rate data one has several choices. A commonly used variable is the logarithmic change of price or the so called log return rate: Let Y i be the price at time i, then consider Ξ i = log Y i log Y i 1 (wrt the natural base). An advantage of this variable to quantify the return rate is that it insensitive to (constant!) deflation factors (why?). (i) Calculate the maximal correlation between the Ξ i, and plot the two stock prices associated with the highest correlation as a function of time (excluding Visa and/or Dow & DuPont (see above)) (ii) Calculate the minimal correlation between the Ξ i, and plot the two stock prices associated with the smallest correlation as a function of time (excluding Visa and/or Dow & DuPont (see above)) Copyright c 2018 The University of Sydney 1

(iii) Visualize the correlation matrices for the period before and during the GFC (separating into pre/peak/post periods). (You may use Matlab s command imagesc). Can you spot differences? (iv) Plot the histogram of the correlation coefficients ρ ij for the four periods. Comment on your result. (v) Play with the data and try to identify interesting particularities. This sub-question will not be marked - just an encouragement to have some fun. Portfolio Theory Consider for this question and the required plots only the GFC period 03/01/2007 31/12/2010. However, you might need to investigate the normal non-gfc period as well to justify any claims/interpretations you want to draw form your results. 2. Determine which investors short sell in this market consisting of the stocks used to calculate the Dow Jones Index and which stocks they short sell. Are there any stocks which no-one will short sell or which everyone will short sell? 3. Carry out the following computational tasks for an optimal portfolio P consisting of the 28 stocks included in the Dow Jones for an agent who wants to invest $200,000 and has a risk factor of t = 0.15 (excluding Visa and Dow & Du Pont). (i) Obtain the dollar investment in each of the stocks and obtain the corresponding expected return and risk of P. (ii) Obtain the µσ-plane graphical representation and include (all on the same graph): (a) The stocks of the Dow Jones (b) The minimum variance and efficient frontiers. Use a t-range t 0.35 for your display. (c) A plot of 1000 random feasible portfolios satisfying x i 20 (for each of the 28 stocks) and σ i 0.05 for i = 1,..., 1000. You might notice that the random points occupy some region well-separated from the minimum variance frontier (MVF) - comment on this and explain why (This is a/the major part of the question). (d) The indifference curve of an investor with t = 0.15 and their optimal portfolio P. 4. Adding a Riskless Cash Fund: Suppose now that a riskless cash fund P 0 is also available to invest in. The risk free rate was r 0 = 0.05 before the GFC and was lowered to r 0 = 0.0025 in December 2008, for both lending and borrowing. (i) Obtain the investor s new allocation of their investment to the (now) 29 funds. State clearly investment in the riskless cash fund. (ii) Describe in detail the Capital Market Line and the tangency portfolio. What can you say about the tangency portfolio; explain your result. (iii) Assuming that the world only existed out of the 30/28 stocks traded in the Dow Jones contingent. What data would you like to have to determine the market portfolio and how would you then compute it? Unfortunately I was not able to get the data to approximate the market portfolio. 2

Captial Market Theory 5. The Capital Market Line: Make a new µσ-plane graph showing the riskless cash fund, tangency portfolio, and the Capital Market Line relative to the risky efficient frontier. Calculate the investor s new optimal portfolio. If the original stocks have a net worth of $100 million, estimate (to the nearest $0.1 million) the total value of each stock. 6. The Security Market Line: Compute the β s of all relevant stocks and assets in this project and clearly display them on the Security Market Line. Comment on the result and decsribe what portfolio theory would recommend an investor to do. Empirical Orthogonal Eigenfunctions Scientists are often faced with the challenge of extracting useful information from large data sets. In this assignment the data set is a time series of the stock return rates of the 30 stocks which make up the Dow Jones index (well, only 28 are actual occurring time series). An example from a very different context could be observational data of the sea surface temperature in the Pacific ocean over time. We might ask the question: are there any underlying structures which dominate in some sense the system? Or phrased differently, rather than using the full data set and all available observations to describe the phenomenon, can we describe the system at each time instance by just a few structures or factors the coefficients of which then vary in time? In the context of the sea surface patterns, these structures would be large scale regimes such as El-Niño patterns which dominate the ocean dynamics in the Pacific (on a certain time scale). It turns out that this can be posed as an optimization problem. 7. Mathematically, we seek an approximation of a time series u t for u R d. Here t = 1,, N denotes the discrete times and typically d N. In the context of the stocks price data of the Dow Jones Index we have u R 30 (or rather here u R 28 ). Given an orthonormal basis ϕ j R d with ϕ T i ϕ j = δ ij, at each time instance t we can decompose u t = d c tj ϕ j, j=1 for some real coefficients c ij. Here we order the basis according to descending eigenvalues λ j. All the time dependency is now in the time-varying coefficients a tj R. We now seek an orthonormal basis ϕ i such that if we truncate using only p < d modes to express u, i.e. if we approximate u t by ũ (p) t = p c tj ϕ j, j=1 we make the least error. This definition obviously depends on the definition of "error". An optimal basis called empirical orthogonal eigenfunctions or Karhunen-Loeve modes or principal components, is found by minimizing the l 2 -error ɛ 2 (p) = N t=1 u t ũ (p) t 2, and is found by solving the following constrained optimization problem minimize ɛ 2 (p) subject to ϕ T i ϕ. j = δ ij (i) Solve the constrained optimization problem and show that solutions are given as eigenvectors of the matrix AA T R d d where A it = u it. 3

(ii) Show that for the optimal basis ɛ 2 (p) = d j=p+1 λ j. (iii) It is said that the optimal basis vectors explain most of the variance of the data. Explain. (iv) It is pertinent to note that EOFs are not capable of detecting any temporal correlations, i.e. picking up that, for example, an increase of the stock return rate of Goldman & Sachs on average lags behind a decrease of the stock return rate of of Walt Disney. Show analytically why this is so. 8. Apply the framework from Question 7 to the Dow Jones stock data. (i) Plot the ordered spectrum λ i for i = 1,, 28 (again excluding Visa and Dow & Du Pont). Why is it tempting to say that by only using a few modes we are capable of explaining most of the stock market data? Plot the spectrum for the non-gfc period and for the three periods of the GFC (pre/peak/post). (ii) Plot the first two empirical orthogonal eigenfunctions for the whole data set, the time periods before the GFC and for the pre/peak/post periods of the GFC. (iii) Investigate quantitatively how well the first three EOFs describe the data by projecting the data onto the first three EOFs. Do this for the 5 sets of EOFs. In which projection can you detect the GFC best? Comment on the result. (iv) Can you find any economic interpretation of the EOFs; I couldn t (this question does not earn marks, but it is fun to think about this). 4

The University of Sydney School of Mathematics and Statistics Assignment Cover Sheet MATH2070/2970: Optimisation and Financial Mathematics Semester 2, 2018 Web Page: http://www.maths.usyd.edu.au/u/im/math2070/ Lecturer: Anna Aksamit and Georg Gottwald Family Name.................................................................................... Given Names...................................... SID...................................... Legitimate cooperation between students on assignments is encouraged, since it can be a real aid to understanding. It is legitimate for students to discuss assignment questions at a general level, provided everybody involved makes some contribution. However, students must produce their own individual written solutions. Copying someone else s work is plagiarism, and is unacceptable. I certify that: I have read and understood the University of Sydney Student Plagiarism: Coursework Policy and Procedure at http://sydney.edu.au/policies/showdoc.aspx?recnum=pdoc2012/254&rendnum=0. this assignment is all my own work, and that no part of this assignment has been copied from another person. I have not allowed my work to be copied by another person. Signature........................................ Date........................................ The University may impose severe penalties for plagiarism This part to be completed by the marker: Grand total out of 40................................... 5