Académique Documents
Professionnel Documents
Culture Documents
February 9, 2009
1 Introduction
Optimizing a portfolio is a major area in nance. The objective is to maximize the yield
and simultaneously minimize the risk. One way of optimizing a portfolio was suggested
by Harry Markowitz (1927-) who published the article Portfolio selection in Journal of
Finance 1952 [1]. In 1990 he received the Nobel Memorial Prize in Economic Sciences
due to his contributions to portfolio theory. There have been extensions and develop-
ments made on Markowitz model and it is still a widely used model.
An investment instrument that can be bought and thereafter sold is called an asset [2].
The underlying asset could be a stock, currency, option, bond or portfolio. Suppose you
purchase an asset at time zero and sell it at a xed time (T ≥ 0). We are only inter-
ested in this single period and will assume that neither tax nor transaction costs present.
Let X0 be the amount of money invested at time 0, and let XT be the amount of
money you receive when you sell the asset at time T . Then the total return, R, on your
investment is dened as
XT
R= .
X0
The rate of return ,r, (sometimes referred to as return ) is dened as
XT − X0
r= ,
X0
1
hence R = 1 + r. Note that to make a prot r has to be greater than zero.
Suppose now that there are n dierent assets, and to each of them corresponds a total
return Ri , i = 1, . . . , n. If we spread out our invested money in these assets, we say that
we form a portfolio (it is called a portfolio even if we don't invest money in all assets).
We select an amount of money X0i in asset i such that ni=1 X0i = X0 , and we restrict
P
ourselves X0i ≥ 0, i = 1, .., n. To make the coming notation simpler we introduce weights
wi , i = 1, . . . , n, such that X0i = wi X0 . Clearly the sum over all weights is equal to one.
Then the amount of money generated at time T by the ith asset is Ri wi X0 , and hence
the total return R of the portfolio is
Pn Pn n n
i=1 Ri wi X0 i=1 (1 + ri )wi X0 X X
R= = = wi + ri wi
X0 X0
i=1 i=1
The return you get when you sell an asset r is uncertain when you buy the asset. In
these cases r is a random variable. Suppose we know the mean for each of the n assets,
call it r¯i , i = 1, . . . , n. Call the variance of asset i σi2 , and the covariance between asset
i and j σij . Then the expected return of a portfolio r̄ is simply
n
X n
X
E[r] = r̄ = wi E[ri ] = wi r¯i .
i=1 i=1
2
3 The Markowitz model
The fundamental problem of a portfolio can be formulated in 2 ways, either the investor
wants to minimize the variance with respect to a xed expected return r̄ or maximize
the expected return given a xed variance. This is known as the Markowitz model [2].
To express it mathematically, the problem can be formulated as
We will mainly concentrate on the rst one, the second one is rather equivalent. The
solution to the Markowitz model is an optimization problem. To be able to solve it and
fully understand it, we need to use Lagrange multipliers.
For an extremum of f to exist on g , the gradient of f must line up with the gradi-
ent of g [3]. If the two gradients are in the same direction, then one is a multiple (−λ)
of the other, so
∇f = −λ∇g.
The two vectors are equal, so all of their components are as well, giving
fx0 i = −λgx0 i
for i = 1, . . . , n.
If there are several constraints for example if there exist 2 functions g1 (x1 , . . . , xn ) = 0
and g2 (x1 , . . . , xn ) = 0, the equations become ∇f + λ∇g1 + µ∇g2 = 0, where µ and λ
are constants.
3
3.2 Solution to the Markowitz model using Lagrange multipliers
We can now apply the Lagrange multipliers and get a solution to the Markowitz model.
Using the same notation as in section 3.1, set
n
X
f (w1 , . . . , wn ) = wi wj σij ,
i,j=1
n
X
λg1 (w1 , . . . , wn ) = λ wi r¯i − r̄ ,
i=1
n
X
µg2 (w1 , . . . , wn ) = µ wi − 1 .
i=1
Note that if we want our constraints (namely ni=1 wi r¯i = r̄, ni=1 wi = 1) to be
P P
fullled, g1 = g2 = 0 as we moved the right side over to the left side. Also note that
we already know σij , r¯i and r̄ for every i, j . If we sum the functions above we get the
Lagrangian
n
X n
X n
X
L(w1 , . . . , wn ) = wi wj σij + λ wi r¯i − r̄ + µ wi − 1 .
i,j=1 i=1 i=1
Figure 1: An example of a mean-variance plot. A red dot marks a possible portfolio while
the blue line, called the ecient frontier, consists of the set of all portfolios, either a minimal
variance with subject to a xed expected return, or a maximal expected return subject to
a xed variance.
4
4 CAPM
The capital asset pricing model (CAPM) is developed mainly by Sharpe, Lintner
and Mossin, which follows from the Markowitz mean-variance portfolio theory [2]. This
method is applied to investment decision problems. When one chooses to set up a
portfolio the expectation of the return has to be studied carefully. The idea is to get
better understanding of an asset's return and try to diversify the risk. Later on this
result will be input variables in Markowitz model.
The CAPM formula is usually written as
ri = rf + βi (rM − rf )
where
σiM
βi = 2 .
σM
There are many methods to obtain a risk free asset rf . One can lend money with interest
of rate or buy bond. The market return, rM , describes the market which contains the
asset. For example if we purchase stocks in Ericsson then OMX is our market. We use
the value of these two when calculating the β parameter. β a is relation between the
asset and market return.
5 Conclusions
Markowitz model to minimize risk subject to a given expected return is an optimization
problem. One wants to nd the optimal amount of money wi to invest in each asset i.
The model is quite simple to understand and can be solved by using Lagrange multipli-
ers. A common way of estimating the expected return, r, is made by CAPM but there
are more advanced tools and one is called Arbitrage Pricing Theory (APT). CAPM is a
single factor model since one β is generated while APT has many factors.
It is important to point out that the Markowitz model is just a tool. The most im-
portant part of portfolio theory is the assets and risk factors that one chooses. You have
to have knowledge about your asset since there is no guarantee to prot in the model.
The risk factors should be chosen carefully because of the correlation between the asset
and the risk factor which is not always obvious. A correlation could exist even if the
factor and asset are not in the same area of business.
A lot of extensions can be made to the Markowitz model. In our example we assumed
that there were no transaction costs, this is of course not the case in reality. Braun and
Mitchell show a solution to the portfolio problem when the transaction costs are linear
[4]. Moreover, we concentrated on the original Markowitz model on just a single period
5
where a portfolio is created once and then sold at a xed time T ≥ 0. Multiple periods
is discussed further by Luenberger [2].
For further reading, David G Luenberger's Investment Science [2] is generally a good
source. Sources on the internet should be read with care since the quality of them varies.
References
[1] Harry Markowitz. Portfolio selection. Journal of nance ; Vol 7; 77-91.