Professional Documents
Culture Documents
Lecture 2:
Application: Portfolio Optimisation
Contents
Introduction
The portfolio expected returns
The variance-covariance matrix
The portfolio variance
The covariance between two portfolios
Portfolio optimisation
The minimum variance frontier
The efficient set without a risk free asset
The efficient set with a risk free asset
Estimation of the optimal portfolio when there is a risk free asset
Short selling constraints
Alternative formulations of the mean-variance portfolio optimisation analysis
Practical issues in mean-variance analysis
2
Introduction
Suppose that a fund manager faces a set of possible investment opportunities; which combination of these
is optimal?
When there are a large number of stocks to choose from, the portfolio optimisation problem is made
much easier by the use of Excel’s matrix functions
3
Portfolios
Suppose there are N assets; a portfolio P is defined as a combination of these N assets with portfolio
weights w given by
w1
w
w 2
wN
Note that since these are portfolio weights, we must have
N
w
i 1
i 1
Portfolio weights represent the proportion invested in each asset; for mutual funds, these weights must
typically be greater than or equal to zero, but for hedge funds, they can also be negative
4
The portfolio expected returns 1
E r1
E r
E R 2
E r
N
E r1
E r
w1 w2 wN 2
E rN
wT E R
5
The portfolio expected returns 2
For example, suppose we have collected five years of monthly data for IBM, GE, DIS and KO and have
computed simple returns
6
The portfolio expected returns 3
Consider two portfolios P1 = (0.2, 0.3, 0.1, 0.4) and P2 = (0.1, -0.3, 0.8, 0.4).
We can estimate the expected returns of the four stocks by their sample mean returns; the sample mean
return of the individual stocks and the portfolios, P1 and P2, are given as follows
7
The variance-covariance matrix
8
The portfolio variance
The variance of the portfolio return is given by
n n
wi w j ij
2
p
i 1 j 1
12 1N w1
p2 w1 wN
N 1 N2 wN
wT Vw
9
The covariance between two portfolios
In due course, we will need the covariance between two portfolios, P1 and P2; this is given by
12 w1T Vw 2
10
Portfolio optimisation 1
We now turn to the question of which portfolio of these four stocks is optimal for an investor
We consider two cases; firstly where there is no risk free asset, and secondly where there is a risk free
asset such as the three month Treasury bill
When there is no risk free asset, we cannot establish a unique optimal risky portfolio since this will
depend on an investor’s risk-return preferences (or on a fund manager’s risk tolerance); however, we can
establish the set of efficient portfolios, i.e. those that have the highest expected return for a given level of
risk
When there is a risk free asset, we can identify a unique risky optimal portfolio; different investors satisfy
their risk-return preferences by investing different proportions of their wealth in this portfolio
11
Portfolio optimisation 2
Note also that for some investors (most private investors, mutual funds, pension companies and insurance
companies) short selling is not allowed and so the weights of the optimal portfolio must be non-negative
For other investors (primarily hedge funds) short selling is allowed and so the optimal portfolio weights
can be negative
There may also be other constraints (such as a constraint on the maximum investment in a particular asset
class) that must be satisfied
We will not consider the case of no risk free asset when there are short selling constraints as it is
computationally quite difficult
12
The minimum variance frontier and the efficient set
13
The minimum variance frontier 1
In order to derive the efficient set, we first derive the minimum variance frontier, or envelope
There are a number of ways that this can be achieved; however, perhaps the most intuitive approach is to
use Excel’s Solver function to find the weights that minimise the portfolio standard deviation for a given
expected return (i.e. a typical hedge fund strategy)
14
The minimum variance frontier 2
We can find the minimum variance frontier by finding the weights of P1 that minimise the portfolio
variance for a range of expected returns, and plot the portfolio standard deviation for each of these
expected returns
On the face of it, it would seem that we would have to do this for all possible values of expected returns
However, a result due to Black (1972) says that any combination of two minimum variance portfolios is
itself a minimum variance portfolio
This leads to a neat way of deriving the minimum variance frontier: we derive two minimum variance
portfolios and simply trace out the expected return and standard deviation of all possible combinations of
these two portfolios
For the first portfolio, we can find the portfolio weights that minimise the portfolio variance for an
expected return of 0.30%
15
The minimum variance frontier 3
Given the mean-variance optimisation framework, the investor solves the following constrained
optimisation problem:
min P21 w1' Vw1
w
subject to
E ( RP1 ) w1' R1 µ
n
and w 1
i 1
i
16
The minimum variance frontier 4
Here we have told solver to minimise the target cell (the variance of P1) by changing the weights of P1
But we have to add two constraints: the first is that the portfolio weights sum to unity, and the second is
that the portfolio return is 0.3%
To add these constraints, click on ADD, which generates the following dialogue box, completed for the
first constraint
17
The minimum variance frontier 5
Clicking Solve and then OK gives us the minimum variance portfolio with and expected return equal to
0.30%
18
The minimum variance frontier 6
We can also find the portfolio P2 that has the minimum variance for an expected return of 0.60%, which
yields
19
The minimum variance frontier 7
We can now combine P1 and P2 into a ‘super-portfolio’, and by varying the weights on P1 and P2, trace
out the expected return and standard deviation of the minimum variance frontier
First, set up the super-portfolio and its expected return, variance and standard deviation
Note that the initial weight in P1 in the super-portfolio is arbitrarily set to zero
20
The minimum variance frontier 8
Now we can construct data tables for the expected return and standard deviation, by varying the weights
on P1 and P2
21
The efficient set 1
When an individual investor is faced with just these four risky assets, we cannot say which portfolio
he/she will invest in, since that would depend on the investor’s risk preferences
However, we can say that his/her chosen portfolio would lie on the efficient frontier, which is defined as
the upper segment of the minimum variance frontier
In particular, the optimal portfolio would be the portfolio that lies at the tangency of the efficient set and
the investor’s indifference curve
As noted above, a fund manager would instead choose the optimal portfolio associated with either a target
level of risk or a target expected return
22
The efficient set with a risk free asset 1
23
The efficient set with a risk free asset 2
E RP rf N
max
P
subject to w
i 1
i 1
where E RP wT E (R ) and P2 w T Vw
24
Estimation of the optimal portfolio when there is a risk free asset 1
To estimate the optimal portfolio when there is a risk free asset, we use solver to find the portfolio P
We first set up the spreadsheet to include the risk free rate (in this case 0.1%) and the definition of Theta
25
Short selling constraints
When investors are not able to short sell, the feasible set of portfolios is reduced and the efficient set will
be inferior to that when short selling is allowed
26
Alternative formulations of the mean-variance portfolio optimisation analysis
In the above section, we examine the investor who wants to minimise risk for a target expected return.
Another perspective is to look at the decision that the investor has to make to maximise expected return
when he cannot take more risk
The investor now pre-determines a given level of risk 2 and maximises his expected return of the
portfolio. He solves the maximum expected return problem:
max E R p w T E ( R )
w
subject to
n
w T Vw 2 and w 1.
i 1
i
The mean-variance analysis can be formulated in an alternative way. Incorporating expected return and
risk in a utility function in which the investor would prefer a high expected return with low variance
portfolio, and the maximum expected utility formulation is given by
max E U E R p p2 wT E (R ) wT Vw
w 2 2
n
27
Practical issues in mean-variance analysis 1
Markowitz optimisation treats expected returns, variances and covariances as deterministic. However, in
practice, these moments of returns are unobservable and must be estimated.
We now discuss practical issues that arise in the application of mean–variance analysis in choosing
portfolios. The two areas of focus are:
o estimating inputs for mean–variance optimization, and
o the instability of the minimum-variance frontier, which results from the optimisation process’s
sensitivity to the inputs.
Relative to the first area, we must ask two principal questions concerning the prediction of expected
returns, variances, and correlations.
o First, which methods are feasible?
o Second, which are most accurate?
28
Practical issues in mean-variance analysis 2
Now, we compare the feasibility and accuracy of several methods for computing the inputs for mean–
variance optimization. These methods may use one of the following:
Historical estimates involve calculating means, variances, and correlations directly from historical data.
The two limitations of the historical approach involve the quantity of estimates needed and the quality of
historical estimates of inputs.
29
Practical issues in mean-variance analysis 3
Market Model Estimates: Historical Beta (Unadjusted): A simpler way to compute the variances and
covariances of asset returns involves the insight that asset returns may be related to each other through
their correlation with a limited set of variables or factors. The simplest such model is the market model,
which describes a regression relationship between the returns on an asset and the returns on the market
portfolio. For asset i, the return to the asset can be modelled as
Ri i i RM i
Market Model Estimates: Adjusted Beta: Researchers have shown that adjusted beta is often a better
forecast of future beta than is historical beta. As a consequence, practitioners often use adjusted beta.
i ,t 1 0 1i ,t i ,t 1
30
Practical issues in mean-variance analysis 4
The chief problem with mean–variance optimization is that small changes in input assumptions can lead
to large changes in the minimum-variance (and efficient) frontier. This problem is called instability in
the minimum-variance frontier. It arises because, in practice, uncertainty exists about the expected
returns, variances, and covariances used in tracing out the minimum-variance frontier.
T=60 T=120
22 22
20 20
The figure illustrates the estimation error problem in
18 18
using the sample estimates of expected returns and the
covariance matrix to construct the mean-variance
Expected Return (%)
31
Practical issues in mean-variance analysis 5
Despite the simple and intuitive appeal of Markowitz’s mean-variance optimisation, its application is
often problematic.
Extensive research has been done to provide resolutions to the well-documented practical problems
associated with the mean-variance framework.
Improved estimates of expected returns and the covariance matrix have been suggested, ranging from
factor models to shrinkage estimators.
Further readings
BRANDT, M. W. 2009. Portfolio choice problems. In: AIT-SAHALIA, Y. & HANSEN, L. P. (eds.) Handbook of
Financial Econometrics. North Holland.
32
Practice exercise
You are an analyst in a US fund management company that specialises in global equity investment. The company is
considering launching a new fund, the ‘G7 Equity Fund’, which will invest in a broad selection of large stocks in the equity
markets of the G7 countries (US, UK, Japan, Germany, France, Canada and Italy). Your manager has asked you to establish
the efficient frontier for these markets, assuming that there is a risk free asset. As a proxy for the investment in each market,
you decide to use monthly simple returns calculated using an aggregate equity return index for each market.
1. The data
You can use the return index data in “Practice Exercise data 2.xlsx” file. Ignore exchange rate fluctuations (you could
assume that the currency risk is perfectly hedged). Use the return index data to compute monthly simple returns.
2. Estimating the inputs to the optimisation
Use the return data to compute the VCV for the seven markets.
A significant problem with applying portfolio optimisation in practice is that sample estimates of expected returns are very
noisy, and hence not reliable. Using an alternative approach, Harvey (2000) estimates the following monthly expected
returns for the G7 countries:
US 1.58% UK 1.22%
Japan 0.43% Germany 1.42%
France 1.49% Italy 1.02%
Canada 1.04%
3. Computing the efficient set
The ‘G7 Equity Fund’ will have constraints. The first is that short sales are not allowed, and the second is that no
investment in a single market should be bigger than 25 percent. Estimate the efficient set of the seven equity markets under
the above constraints, assuming that there is a risk free asset. Obtain the US risk free rate from Yahoo! Finance for a three
month holding period.
33