+ All Categories
Home > Documents > Appendix 10 A: A Linear-Programming Approach to Portfolio-Analysis Models (Related to 10.1.2 )

Appendix 10 A: A Linear-Programming Approach to Portfolio-Analysis Models (Related to 10.1.2 )

Date post: 25-Feb-2016
Category:
Upload: jaser
View: 14 times
Download: 0 times
Share this document with a friend
Description:
Appendix 10 A: A Linear-Programming Approach to Portfolio-Analysis Models (Related to 10.1.2 ). By Cheng Few Lee Joseph Finnerty John Lee Alice C Lee Donald Wort. - PowerPoint PPT Presentation
Popular Tags:
28
1 Appendix 10 A: A Linear-Programming Approach to Portfolio-Analysis Models (Related to 10.1.2) By Cheng Few Lee Joseph Finnerty John Lee Alice C Lee Donald Wort
Transcript
Page 1: Appendix 10 A: A Linear-Programming Approach to Portfolio-Analysis Models (Related to 10.1.2 )

1

Appendix 10 A:

A Linear-Programming Approach to Portfolio-

Analysis Models

(Related to 10.1.2)

ByCheng Few LeeJoseph Finnerty

John LeeAlice C Lee

Donald Wort

Page 2: Appendix 10 A: A Linear-Programming Approach to Portfolio-Analysis Models (Related to 10.1.2 )

• The linear programming (LP) that results from the use of market responsiveness as the risk measure and the imposition of an upper limit on investment in each security is

subject to:

where:

= the fraction of the portfolio invested in security i; = the expected returns of security i; = the beta coefficient of security i; = the maximum fraction of the portfolio that may be held in any

one security; and = a parameter reflecting the degree of risk aversion.

1 1

Max 1n n

i i i ii i

P x E R x

1

1

0

n

ii

i

x

x U

ix iE R

iU

(10A.1)

Page 3: Appendix 10 A: A Linear-Programming Approach to Portfolio-Analysis Models (Related to 10.1.2 )

Sharpe LP. Jacob’s model is to minimize

Subject to:

where: = the investment in security i- all, or nothing; = the expected return on security i equal to K = the desired upper bound on the number of securities the investor

is willing to consider, usually in the range of 15 to 20; = the measure of systematic risk; = the measure of unsystematic risk; and = the lowest acceptable rate of return the investor is willing to earn

on his or her portfolio.

2 2

2 2 2 2

1 1

Systematic risk Unsystematic risk

1 1n n

p i i m i ii i

R x R x eK K

*

1

1

1

1 0 or 1

n

i i pi

n

i ii

x E R E RK

x K xK

ix iE R i i mR

i 2

ie

*pE R

(10A.2)

Page 4: Appendix 10 A: A Linear-Programming Approach to Portfolio-Analysis Models (Related to 10.1.2 )

• An additional simplification is to turn the objective function of Equation (10A.2) into a linear relationship.

• Since the decision variables are binary valued, the unsystematic-risk term of the objective function is already linear.

• Given that the portfolio beta is very close to unity, a reasonable linear approximation to the first term in the objective function is provided by

• After division by K and rearrangement of terms, the objective function can be restated as

• Letting , the problem can be cast as

• subject to

• in which is varied from zero to one.

4

2

2 2

1 1

1 1n n

i i m m i ii i

x R R xK K

2 2

1

1n

i i m ii

Z x R eK

1 1

Minimize (1 ) ( )n n

i i i ii i

Z X Z X E R

ix

1

/n

i ii

x K

2 2( ) (1/ ) ( )i i m iZ R K e

1

1.0 0 1 1, 2, ,n

i ii

X X K i N

Page 5: Appendix 10 A: A Linear-Programming Approach to Portfolio-Analysis Models (Related to 10.1.2 )

5

Appendix 10 B:

Expected Return, Variance, and Covariance for a MIM

(Related to 10.2)By

Cheng Few LeeJoseph Finnerty

John LeeAlice C Lee

Donald Wort

Page 6: Appendix 10 A: A Linear-Programming Approach to Portfolio-Analysis Models (Related to 10.1.2 )

• Using the orthogonalization technique discussed in the text, the MIM is transformed into

• in which all are uncorrelated with each other.• The expected value of the model with the multiple indexes is

• because a and the b are constants, and the expected value of the residuals is equal to zero

• where is the expected value of index j.

6

1 1 2 2i i i i iL L iR a b I b I b I c (10B.1)

jI

1 1 2 2

1 1 2 2 i i i i iL L i

i i i iL L i

E R E a b I b I b I c

E a E b I E b I E b I E c

1 1 2 2i i i i iL Lr a b I b I b I (10B.2)

jI

Page 7: Appendix 10 A: A Linear-Programming Approach to Portfolio-Analysis Models (Related to 10.1.2 )

• The variance of the returns using multiple indexes is

Where is the expected value of the returns of security i. Substituting from above:

• Rearranging, and noticing that the cancel, yields:

• Next the terms in the brackets are squared. • To proceed with this concentrate on the first index, arid the rest of the terms

involving the other indexes follow directly. • The first index times itself and all other terms yields

7

22i i iE R r

21 1 2 2

21 1 2 2

[

]i i i i iL L i

i i i iL L

E a b I b I b I c

a b I b I b I

221 1 1 1 2 1 1 2 2

1 1 1 1 1 1

[

]

i i i

i iL L L i i

E b I I b b I I I I

b b I I I I b I I c

ir and i iR r

ia

2 21 1 1 2 2 2[ ]i i i iL L L iE b I I b I I b I I c

Page 8: Appendix 10 A: A Linear-Programming Approach to Portfolio-Analysis Models (Related to 10.1.2 )

• Remembering that

• the only nonzero term involving index one is expressed as

• Because all terms involving are zero and :

• The covariance of the returns between security i and j utilizing the MIM can be expressed as

8

0 and 0i i j j i i iE I I I I E I I c

22 2 21 1 1 1 1i i Ib E I I b

2 2 2 2 2 2 2 21 1 2 2i i I i I iL IL cib b b

ij i i j jE R r R r

2 2i ciE c ic

(10B.3)

Page 9: Appendix 10 A: A Linear-Programming Approach to Portfolio-Analysis Models (Related to 10.1.2 )

• Again, substituting for :

• Again, noting that cancels and combining the terms involving the same b’s:

• Next multiply out terms, again concentrating on the terms involving :

• Because the covariance between two indexes is zero, and the covariance between any residual and an index is zero:

• To conclude, remember that the covariance of the residuals is equal to zero and therefore:

9

1 1 2 2

*1 1 2 2

1 1 2 2

1 1 2 2

[[( )

( )] [( )

( )]]

ij i i i iL L i

i i i iL L

j j j jL L j

j j j jL L

E a b I b I b I c

a b I b I b Ia b I b I b I c

a b I b I b I

1 1 1 2 2 2

1 1 1 2 2 2

{[ ( ) ( ) ( ) ]

[ ( ) ( ) ( ) ]}ij i i iL L L i

j j jL L L j

E b I I b I I b I I c

b I I b I I b I I c

21 1 1 1 1 2 1 1 2 2 1 1 1 1 1 1[ ( ) ( )( ) ( )( ) ( ) ]i j i i i jL L L i jE b b I I b b I I I I b b I I I I b I I c

, , , and i i j jR r R r

ia

1ib

2 21 1 1 1 1 1 1( )i j i j Ib b E I I b b

2 2 21 1 1 2 2 2ij i j I i j I iL jL ILb b b b b b (10B.4)

Page 10: Appendix 10 A: A Linear-Programming Approach to Portfolio-Analysis Models (Related to 10.1.2 )

10

Appendix 10 C:

Using Microsoft Excel to Calculate Optimal Weights

of a Portfolio

(Related to Sample Problem 11.1)

ByCheng Few LeeJoseph Finnerty

John LeeAlice C Lee

Donald Wort

Page 11: Appendix 10 A: A Linear-Programming Approach to Portfolio-Analysis Models (Related to 10.1.2 )

11

Part I• This part illustrates how to solve a simultaneous equation system by matrix

inversion method. • Given simultaneous equations as follows:

• The simultaneous equations can be written as the matrix forms

• Then we can obtain the elements of matrix X by multiplying the inverse matrix and the matrix .

• In the following part, we will illustrate the calculation of the inverse matrix in Excel.

1 2 3

1 3

1 2 3

3 2 4 322 3 194 2 3 29

x x xx xx x x

1

2

3

3 2 4 322 0 3 19 4 2 3 29

KXA

xxx

1A

Page 12: Appendix 10 A: A Linear-Programming Approach to Portfolio-Analysis Models (Related to 10.1.2 )

12

Part II• Here we use the monthly prices of Johnson &Johnson (JNJ), International

Business Machines (IBM), Boeing Company (BA), and S&P 500 index (^GSPC) during March 1, 2000 to April 30, 2010 as the example.

• The process includes data collection, the statistic analysis of samples, the results of the market model, and the calculation of the optimal weights of Markowitz model.

Data Collection• The collection of the monthly returns starts from the Yahoo Finance website:

http://finance.yahoo.com/ and inputs the stock ticker “JNJ” to get quotes.

Page 13: Appendix 10 A: A Linear-Programming Approach to Portfolio-Analysis Models (Related to 10.1.2 )

13

• The second step is to get the stock prices: select “Historical Prices” on the left panel of the website, input the range of data from March 1, 2000 to April 30, 2010, select “Monthly” data and press “Get Prices.”

• After the webpage shows the historical prices, scroll down to the bottom of the webpage and select “Download to Spreadsheet,” and then we can get the monthly prices of JNJ.

• Here we only need the data of the adjusted prices and use “Sort” function on Excel to make price in ascending order.

Page 14: Appendix 10 A: A Linear-Programming Approach to Portfolio-Analysis Models (Related to 10.1.2 )

14

Page 15: Appendix 10 A: A Linear-Programming Approach to Portfolio-Analysis Models (Related to 10.1.2 )

15

• After repeat the second step to get the monthly prices of IBM, BA, and S&P 500 index, the final step is the calculation of the monthly returns.

• The monthly returns at time t is the value of the price at time t minus the price at time t−1 divided by the price at time t.

• In excel, use the formula “=(B4-B3)/B3” in cell C4 to get JNJ’s monthly return in April 2000, and then by the same way we can get the monthly returns of the individual securities and S&P 500 index.

Page 16: Appendix 10 A: A Linear-Programming Approach to Portfolio-Analysis Models (Related to 10.1.2 )

16

The Way to Collect the Monthly Risk-Free Rates • We use Three-Month Treasury Constant Maturity Rate from Federal Reserve

Bank of St. Louis (http://research.stlouisfed.org/fred2/series/GS3M). • Press “Download Data” on the website, select the date range from April 1, 2000

to April 30, 2010 and press “Download Data” again.

Page 17: Appendix 10 A: A Linear-Programming Approach to Portfolio-Analysis Models (Related to 10.1.2 )

17

• Here, the risk-free rate is in the form of percentage of annual rate, but the monthly returns of individual securities and S&P 500 index are in the form of decimal of monthly rate.

• To adjust the risk-free rate to monthly risk-free rate, we should divide the risk-free rate by 12.

• Further, to adjust the monthly risk-free rate to decimal, we should divide it by 100.

Page 18: Appendix 10 A: A Linear-Programming Approach to Portfolio-Analysis Models (Related to 10.1.2 )

18

The Statistic Analysis of Samples• Copy the monthly returns of JNJ, IBM, BA, S&P 500 index, and

the monthly risk-free rates into new sheet. • The values of average and variance are calculated by

“AVERAGE” and “VARP” functions and the covariance matrix is calculated by “Covariance” in “Data Analysis.”

Page 19: Appendix 10 A: A Linear-Programming Approach to Portfolio-Analysis Models (Related to 10.1.2 )

19

Page 20: Appendix 10 A: A Linear-Programming Approach to Portfolio-Analysis Models (Related to 10.1.2 )

20

The Market Model• Use “Regression” function in “Data Analysis” to run the market model with

respect to JNJ’s returns, select the monthly returns of JNJ in “Y range” and the monthly returns of S&P 500 index in “X range,” and press “OK.”

• We then can get the regression results of market model with respect to JNJ in new sheet. The coefficients of intercept term and S&P 500 index are “Alpha” and “Beta” of market model with respect to JNJ’s return.

• The MS of residual is the “Variance of residual” of the market model. • Repeat the “Regression” function, and then we can get the results of market

model with respect to the monthly return of IBM and BA.

Page 21: Appendix 10 A: A Linear-Programming Approach to Portfolio-Analysis Models (Related to 10.1.2 )

21

Markowitz Model• In Markowitz Model, we know

• According to the statistic analysis of samples in the prior step, we can get the value of each element of Augmented matrix A.

• From the matrix calculation of Markowitz Model, we can get the optimal weights from multiplying .

11 12 13 1 1

21 22 23 2 2

31 32 33 3 3

1

1 2 3 2

2 2 2 1 ( ) 02 2 2 1 ( ) 02 2 2 1 ( ) 0

1 1 1 0 0 1( ) ( ) ( ) 0 0 *

KWA

E R WE R WE R W

E R E R E R E

1

111 12 13 11

21 22 23 22

31 32 33 33

1

1 2 32

2 2 2 1 ( ) 02 2 2 1 ( ) 02 2 2 1 ( ) 0

1 1 1 0 0 1( ) ( ) ( ) 0 0 *

KW A

E RWE RWE RW

E R E R E R E

1 and A K

Page 22: Appendix 10 A: A Linear-Programming Approach to Portfolio-Analysis Models (Related to 10.1.2 )

22

• To calculate the inverse matrix of matrix A, select a range from A37 to E41 and type “=Minverse(A37:E41)” and press “Ctrl+Shift+Enter,” then we can get the inverse matrix of matrix A.

Page 23: Appendix 10 A: A Linear-Programming Approach to Portfolio-Analysis Models (Related to 10.1.2 )

23

• Input the value of each element of matrix K where E* is the required return of investor.

• To multiply the matrixes , select a range from A114 to A118 and type “=MMULT(A98:E102,A106:A110).”

• Press “Ctrl+Shift+Enter,” then we can get the optimal weight matrix W with short selling.

1 and A K

Page 24: Appendix 10 A: A Linear-Programming Approach to Portfolio-Analysis Models (Related to 10.1.2 )

24

• When short selling is constrained, the optimal weights can be rescaled by

• The rescaled absolute weights are shown in the matrix below.

A

AW

A B C

Page 25: Appendix 10 A: A Linear-Programming Approach to Portfolio-Analysis Models (Related to 10.1.2 )

25

Part III• The data used in Index Model comes from the statistic analysis of samples and

market model discussed in Part II. • Here we use the variance of S&P 500 index as the residual variance of the

artificial security. • In Index Model, we know

Where are the residual variances of JNJ, IBM, BA, and artificial security.

21 11 1

22 22 2

23 33 3

24 44

1

21 2 3

2 0 0 0 10 2 0 0 10 0 2 0 1

0 0 0 2 0 1

11 1 1 0 0 001 0 0

W KA

XXXX

2 2 2 21 2 3 4, , , and

Page 26: Appendix 10 A: A Linear-Programming Approach to Portfolio-Analysis Models (Related to 10.1.2 )

26

• Input the value of each element of Augmented matrix A and calculate the inverse matrix of matrix A via select a range from A167 to F172, type “=Minverse(A159:F164)” and press “Ctrl+Shift+Enter.”

• For the matrix K, the are the intercept terms of market model with respect with JNJ, IBM, and BA; is the average return of S&P 500 index; and is the indicator of risk aversion (here we assume equal to one).

1 2 3, , 4

Page 27: Appendix 10 A: A Linear-Programming Approach to Portfolio-Analysis Models (Related to 10.1.2 )

27

• From the matrix calculation of Index Model, we can get the optimal weights from multiplying .1 and A K

1

121 11 1

22 22 2

23 33 3

24 44

1

2 1 2 3

2 0 0 0 10 2 0 0 10 0 2 0 10 0 0 2 0 1

11 1 1 0 0 001 0 0

W KA

XXXX

Page 28: Appendix 10 A: A Linear-Programming Approach to Portfolio-Analysis Models (Related to 10.1.2 )

28

• Select a range from A175 to A180, type “=MMULT(A167:F172,H167:H172)” and press “Ctrl+Shift+Enter,” then we can get the optimal weight matrix W.

• The average return on optimal portfolio and the variance of optimal portfolio are

calculated by the functions .3 3 3

1 1 1

and ( , )i i i j i ji i j

X R X X Cov R R


Recommended