Docsity

Portfolio Optimization Using Solver - Lecture Slides | EMSE 388, Study notes of Systems Engineering

Toggle sidebar
bg1
EMSE 388 – Quantitative Methods in Cost Engineering
Lecture Notes by Instructor: Dr. J. Rene van Dorp Chapter 16 - Page 194
Source: Financial Models Using Simulation and Optimization by Wayne Winston
CHAPTER 16:
PORTFOLIO OPTIMIZATION USING SOLVER
PROBLEM DEFINITION:
Given a set of investments (for example stocks) how do we find a portfolio that
has the lowest risk (i.e. lowest volatility or lowest variance) and yields an
acceptable expected return?
• Harry Markowitz solved the above problem in 1950’s. For this work and
other investment topics he received the Nobel Prize in Economics in 1991.
• Ideas discussed in this session are the basis for most methods of asset
allocation used by Wall Street firms.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23

Partial preview of the text

Download Portfolio Optimization Using Solver - Lecture Slides | EMSE 388 and more Study notes Systems Engineering in PDF only on Docsity!

CHAPTER 16:

PORTFOLIO OPTIMIZATION USING SOLVER

PROBLEM DEFINITION:

Given a set of investments (for example stocks) how do we find a portfolio that

has the lowest risk (i.e. lowest volatility or lowest variance) and yields an

acceptable expected return?

•^

Harry Markowitz solved the above problem in 1950’s. For this work andother investment topics he received the Nobel Prize in Economics in 1991.

-^

Ideas discussed in this session are the basis for most methods of assetallocation used by Wall Street firms.

EMSE 388 – Quantitative Methods in Cost Engineering Lecture Notes by Instructor: Dr. J. Rene van Dorp Source: Financial Models Using Simulation and Optimization by Wayne Winston

WEIGTHED SUM OF RANDOM VARIABLES

•^

A fixed number of N investments (or Stocks) are available.

-^

i

S

: Random return during a calendar year on a dollar invested in investment I, where i=1, …, N.

Examples:

•^

s^ = i

, dollar invested at the beginning of the years is worth $1.10 at the

end of the year

-^

s^ = − i

, dollar invested at the beginning of the years is worth $0.80 at the

end of the year

Definition:

•^

x^ : the fraction of one dollar that is invested in investment i. Note that: i

•^

The expected (or average) annual return for R can be calculated as:

] [

] [^

1 ∑=

∗

=

n i

i

i^

S E

x

R E

WHY?

•^

We know that if X is a random variable, a and b are constants and Y=a*X+bthat:

E[Y]=E[aX+b]= aE[X]+b

•^

We know that if X and Y are random variables and Z=X+Y that:

E[Z]=E[X+Y]=E[X]+E[Y]

Chapter 16 - Page 198

WHAT ABOUT THE UNCERTAINTY IN OUR ANNUAL RETURN R?

(or What about the variance of our Annual Return R?)

•^

We know that

if

the returns on the investments

i

S

are

independent

random

variables that

]

[

]

[^

1

2

∑=

n i

i

i^

S

VAR

x

R

VAR

WHY?

• •^

We know that if X is a random variable, a and b are constants and Y=a*X+bthat:

VAR[Y]=VAR[a*X+b]= a

2 *VAR[X]

SO WHAT IS THE CORRECT FORMULA FOR THE VARIANCE OF THEANNUAL RETURN

R

WHEN THE INVESTMENTS ARE DEPENDENT? INTERMEZZO: COVARIANCE

Let X, Y be two random variables.

•^

If X and Y are independent there is no relationship between X and Y, and:

VAR(X+Y)=VAR(X) +VAR(Y)

•^

If X and Y are

positively

dependent large values of X tend to be associated

with large values of Y

-^

If X and Y are

positively

dependent small values of X tend to be associated

with small values of Y

-^

If X and Y are

negatively

dependent large values of X tend to be associated

with small values of Y

-^

If X and Y are

negatively

dependent small values of X tend to be associated

with large values of Y.

WHAT IS THE SIMPLEST RELATIONSHIPTHAT YOU THINK OF BETWEEN X AND Y?

ANSWER:

A Linear Relationship!

CAN WE THINK OF A MEASURE IN THE SAME LINE OF THINKING AS E[X]AND VAR[X] THAT “MEASURES” POSITIVE DEPENDENCE OR NEGATIVE

DEPENDENCE?

WHAT ABOUT : COV(X,Y) = E[(Y-E[Y])(X-E[X])]

E[X]

E[Y]

E[(Y-E[Y])(x-E[X])]^ (-,-)= +

CONCLUSION :

•^

Covariance is positive when there are more (+,+) points and (-,-) points then

(+,-) points and (-,+) points.

•^

Covariance is negative when there are more (+,-) points and (-,+) points then

(+,+) points and (-,-) points.

THEREFORE:

Covariance is a measure of positive dependence or negative dependence.

If Y=a*X+b, what is the relationship between COV(X,Y)

and the slope of the line a?

Chapter 16 - Page 206

Y=a*X+b, a>

X

Y

Y=a*X+b, a>

X

Y

^

^

a =

COV(X,Y) VAR(X)

a =

COV(X,Y) VAR(X)

=

^^

^ ^ ∑=

−

−

−

n i

i

i^

x x x x

n^

1

)

)(

( 1 1

∑=

−

−

−

n i

i

i^

x x y y

n^

1

)

)(

( 1 1

PERFECT LINEAR RELATIONSHIP

IMPERFECT LINEAR RELATIONSHIP

Best FitThroughLinearRegression

CONCLUSION:

•^

If you have a set of points

(^

i i^

y x^

, i=1,…,n you can estimate positive

dependence or negative dependence by calculating COV(X,Y).

-^

If you have a set of points

(^

i i^

y x^

, i=1,…,n you can estimate the slope of the

“linear relationship” by calculating

a

ˆ^

HOW CAN WE DISTINGUISH

BETWEEN A PERFECT LINEAR

RELATIONSHIP AND AN IMPERFECT LINEAR RELATIONSHIP

GIVEN THE SET OF POINTS

(^

i i^

y x^

i=1,…,n?

Chapter 16 - Page 209

Y=a*X+b, a>

X

Y

Y=a*X+b, a>

X

Y

^

^

a =

COV(X,Y) VAR(X)

a =

COV(X,Y) VAR(X)

^

^

^

PERFECT LINEAR RELATIONSHIP

IMPERFECT LINEAR RELATIONSHIP

Best FitThroughLinearRegression

COR(X,Y) = 1

,VAR(Y)>

^ ,VAR(Y)>

^^

(^2) a VAR(X)

^ (^2) a VAR(X)

^

COR(X,Y) =

< 1

^^

COV(X,Y) VAR(X)

^ ^

*VAR(Y)

^

EMSE 388 – Quantitative Methods in Cost Engineering Lecture Notes by Instructor: Dr. J. Rene van Dorp Source: Financial Models Using Simulation and Optimization by Wayne Winston

•^

If X and Y are dependent random variables

VAR(X+Y) = VAR(X) + VAR(Y) + 2*COV(X,Y)

CONCLUSION :

•^

If X,Y are positive dependent variables the level of variation of X+Y isamplified by the dependency.

-^

If X,Y are negative dependent variables the level of variation of X+Y isreduced by the dependency (the random variables tend to “cancel eachother out”).

BACK TO OUR ORIGINAL PROBLEM

Chapter 16 - Page 212

•^

The expected (or average) annual return for R can be calculated as:

] [

] [^

1 ∑=

∗

=

n i

i

i^

S E

x

R E

•^

The variance of the annual return for R can be calculated as:

∑ ∑

∑

=^

≠

=

∗

=

n i

n

i j j

j

i

j i

n i

i

i^

S S

Cov x x

S

Var

x

R

Var

1

, 1

1

2

) , ( ] [ ] [

or

2 1

1

1,

[^

]^

[^

]^

(^

,^

)^

[^

]^

[^

]

n^

n^

n

i^

i^

i^

j^

i^

j^

i^

j

i^

i^

j^

j^

i

Var R

x

Var S

x x Cor S

S

Var S Var S

=^

=^

=^

≠

=

∗

∑

∑ ∑

EQUATIONS LOOK COMPLICATED!

INTERMEZZO: MATRIX - VECTOR MULTIPLICATION

M

⋅N matrix:

      

     

−

− n m

N M

M

N

M

N a

a

a

a

a

a

a

a

a

A

,

1 ,

(^1) ,

, 1

(^2) , 2

(^1) , 2

, 1

(^2) , 1

(^1) , 1

"

%

"

M rows, N Columns

N-Vector (or N

⋅1 matrix) :

    

    

N x x

x

(^1) #