Lably
Skip to content

Modern portfolio theory

Mathematical framework for investment risk

  • 24 min read
  • 6 chapters

Related on Lably

Through Diversification (finance), Variance and Standard deviation

Its key principle is that an asset's risk and return should not be assessed by itself, but by how it contributes to a portfolio's overall risk and return. The variance of return (or its transformation, the standard deviation) is used as a measure of risk, because it is tractable when assets are combined into portfolios. Often, the historical variance and covariance of returns is used as a proxy for the forward-looking versions of these quantities, but other, more sophisticated methods are available.

Economist Harry Markowitz introduced MPT in a 1952 paper, for which he was later awarded a Nobel Memorial Prize in Economic Sciences; see Markowitz model.

In 1940, Bruno de Finetti published the mean-variance analysis method, in the context of proportional reinsurance, under a stronger assumption. The paper was obscure and only became known to economists of the English-speaking world in 2006.

Mathematical model

Risk and expected return

MPT assumes that investors are risk averse, meaning that given two portfolios that offer the same expected return, investors will prefer the less risky one. Thus, an investor will take on increased risk only if compensated by higher expected returns. Conversely, an investor who wants higher expected returns must accept more risk. The exact trade-off will not be the same for all investors. Different investors will evaluate the trade-off differently based on individual risk aversion characteristics. The implication is that a rational investor will not invest in a portfolio if a second portfolio exists with a more favorable risk vs expected return profile — i.e., if for that level of risk an alternative portfolio exists that has better expected returns.

Under the model:

  • Portfolio return is the proportion-weighted combination of the constituent assets' returns.
  • Portfolio return volatility σp is a function of the correlations ρij of the component assets, for all asset pairs (i, j). The volatility gives insight into the risk which is associated with the investment. The higher the volatility, the higher the risk.

In general:

  • Expected return:
E⁡(Rp)=∑iwiE⁡(Ri)
where Rp is the return on the portfolio, Ri is the return on asset i and wi is the weighting of component asset i (that is, the proportion of asset "i" in the portfolio, so that ∑iwi=1).
  • Portfolio return variance:
σp2=∑iwi2σi2+∑i∑j≠iwiwjσiσjρij,
where σi is the (sample) standard deviation of the periodic returns on an asset i, and ρij is the correlation coefficient between the returns on assets i and j. Alternatively the expression can be written as:
σp2=∑i∑jwiwjσiσjρij,
where ρij=1 for i=j , or
σp2=∑i∑jwiwjσij,
where σij=σiσjρij is the (sample) covariance of the periodic returns on the two assets, or alternatively denoted as σ(i,j), covij or cov(i,j).
  • Portfolio return volatility (standard deviation):
σp=σp2

For a two-asset portfolio:

  • Portfolio expected return: E⁡(Rp)=wAE⁡(RA)+wBE⁡(RB)=wAE⁡(RA)+(1−wA)E⁡(RB).
  • Portfolio variance: σp2=wA2σA2+wB2σB2+2wAwBσAσBρAB

For a three-asset portfolio:

  • Portfolio expected return: E⁡(Rp)=wAE⁡(RA)+wBE⁡(RB)+wCE⁡(RC)
  • Portfolio variance: σp2=wA2σA2+wB2σB2+wC2σC2+2wAwBσAσBρAB+2wAwCσAσCρAC+2wBwCσBσCρBC

The algebra can be much simplified by expressing the quantities involved in matrix notation. Arrange the returns of N risky assets in an N×1 vector R, where the first element is the return of the first asset, the second element of the second asset, and so on. Arrange their expected returns in a column vector μ, and their variances and covariances in a covariance matrix Σ. Consider a portfolio of risky assets whose weights in each of the N risky assets is given by the corresponding element of the weight vector w. Then:

  • Portfolio expected return: w′μ

and

  • Portfolio variance: w′Σw

For the case where there is investment in a riskfree asset with return Rf, the weights of the weight vector do not sum to 1, and the portfolio expected return becomes w′μ+(1−w′1)Rf. The expression for the portfolio variance is unchanged.

Diversification

An investor can reduce portfolio risk (especially σp) simply by holding combinations of instruments that are not perfectly positively correlated (correlation coefficient −1≤ρij<1). In other words, investors can reduce their exposure to individual asset risk by holding a diversified portfolio of assets. Diversification may allow for the same portfolio expected return with reduced risk.

  • If all the asset pairs have correlations of 0 — they are perfectly uncorrelated — the portfolio's return variance is the sum over all assets of the square of the fraction held in the asset times the asset's return variance (and the portfolio standard deviation is the square root of this sum).
  • If all the asset pairs have correlations of 1 — they are perfectly positively correlated — then the portfolio return's standard deviation is the sum of the asset returns' standard deviations weighted by the fractions held in the portfolio. For given portfolio weights and given standard deviations of asset returns, the case of all correlations being 1 gives the highest possible standard deviation of portfolio return.

Efficient frontier with no risk-free asset

The MPT is a mean-variance theory, and it compares the expected (mean) return of a portfolio with the standard deviation of the same portfolio. The image shows expected return on the vertical axis, and the standard deviation on the horizontal axis (volatility). Volatility is described by standard deviation and it serves as a measure of risk. The 'return - standard deviation space' is sometimes called the space of 'expected return vs risk'. Every possible combination of risky assets, can be plotted in this risk-expected return space, and the collection of all such possible portfolios defines a region in this space. The left boundary of this region is hyperbolic, and the upper part of the hyperbolic boundary is the efficient frontier in the absence of a risk-free asset (sometimes called "the Markowitz bullet"). Combinations along this upper edge represent portfolios (including no holdings of the risk-free asset) for which there is lowest risk for a given level of expected return. Equivalently, a portfolio lying on the efficient frontier represents the combination offering the best possible expected return for given risk level. The tangent to the upper part of the hyperbolic boundary is the capital allocation line (CAL).

Matrices are preferred for calculations of the efficient frontier.

In matrix form, for a given "risk tolerance" q∈[0,∞), the efficient frontier is found by minimizing the following expression:

wTΣw−qRTw

where

  • w∈RN is a vector of portfolio weights and ∑i=1Nwi=1. (The weights can be negative);
  • Σ∈RN×N is the covariance matrix for the returns on the assets in the portfolio;
  • q≥0 is a "risk tolerance" factor, where 0 results in the portfolio with minimal risk and ∞ results in the portfolio infinitely far out on the frontier with both expected return and risk unbounded; and
  • R∈RN is a vector of expected returns.
  • wTΣw∈R is the variance of portfolio return.
  • RTw∈R is the expected return on the portfolio.

The above optimization finds the point on the frontier at which the inverse of the slope of the frontier would be q if portfolio return variance instead of standard deviation were plotted horizontally. The frontier in its entirety is parametric on q.

Harry Markowitz developed a specific procedure for solving the above problem, called the critical line algorithm, that can handle additional linear constraints, upper and lower bounds on assets, and which is proved to work with a semi-positive definite covariance matrix. Examples of implementation of the critical line algorithm exist in Visual Basic for Applications, in JavaScript and in a few other languages.

Also, many software packages, including MATLAB, Microsoft Excel, Mathematica and R, provide generic optimization routines so that using these for solving the above problem is possible, with potential caveats (poor numerical accuracy, requirement of positive definiteness of the covariance matrix...).

An alternative approach to specifying the efficient frontier is to do so parametrically on the expected portfolio return RTw. This version of the problem requires that we minimize

wTΣw

subject to

RTw=μ

and

∑i=1Nwi=1

for parameter μ. This problem is easily solved using a Lagrange multiplier which leads to the following linear system of equations:

[2Σ−R−1RT001T00][wλ1λ2]=[0μ1]

Two mutual fund theorem

One key result of the above analysis is the two mutual fund theorem. This theorem states that any portfolio on the efficient frontier can be generated by holding a combination of any two given portfolios on the frontier; the latter two given portfolios are the "mutual funds" in the theorem's name. So in the absence of a risk-free asset, an investor can achieve any desired efficient portfolio even if all that is accessible is a pair of efficient mutual funds. If the location of the desired portfolio on the frontier is between the locations of the two mutual funds, both mutual funds will be held in positive quantities. If the desired portfolio is outside the range spanned by the two mutual funds, then one of the mutual funds must be sold short (held in negative quantity) while the size of the investment in the other mutual fund must be greater than the amount available for investment (the excess being funded by the borrowing from the other fund).

Risk-free asset and the capital allocation line

The risk-free asset is the (hypothetical) asset that pays a risk-free rate. In practice, short-term government securities (such as US treasury bills) are used as a risk-free asset, because they pay a fixed rate of interest and have exceptionally low default risk. The risk-free asset has zero variance in returns if held to maturity (hence is risk-free); it is also uncorrelated with any other asset (by definition, since its variance is zero). As a result, when it is combined with any other asset or portfolio of assets, the change in return is linearly related to the change in risk as the proportions in the combination vary.

When a risk-free asset is introduced, the half-line shown in the figure is the new efficient frontier. It is tangent to the hyperbola at the pure risky portfolio with the highest Sharpe ratio. Its vertical intercept represents a portfolio with 100% of holdings in the risk-free asset; the tangency with the hyperbola represents a portfolio with no risk-free holdings and 100% of assets held in the portfolio occurring at the tangency point; points between those points are portfolios containing positive amounts of both the risky tangency portfolio and the risk-free asset; and points on the half-line beyond the tangency point are portfolios involving negative holdings of the risk-free asset and an amount invested in the tangency portfolio equal to more than 100% of the investor's initial capital. This efficient half-line is called the capital allocation line (CAL), and its formula can be shown to be

E(RC)=RF+σCE(RP)−RFσP.

In this formula P is the sub-portfolio of risky assets at the tangency with the Markowitz bullet, F is the risk-free asset, and C is a combination of portfolios P and F.

By the diagram, the introduction of the risk-free asset as a possible component of the portfolio has improved the range of risk-expected return combinations available, because everywhere except at the tangency portfolio the half-line gives a higher expected return than the hyperbola does at every possible risk level. The fact that all points on the linear efficient locus can be achieved by a combination of holdings of the risk-free asset and the tangency portfolio is known as the one mutual fund theorem, where the mutual fund referred to is the tangency portfolio.

Geometric intuition

The efficient frontier can be pictured as a problem in quadratic curves. On the market, we have the assets R1,R2,…,Rn. We have some funds, and a portfolio is a way to divide our funds into the assets. Each portfolio can be represented as a vector w1,w2,…,wn, such that ∑iwi=1, and we hold the assets according to wTR=∑iwiRi.

Markowitz bullet

Since we wish to maximize expected return while minimizing the standard deviation of the return, we are to solve a quadratic optimization problem:{E[wTR]=μminσ2=Var[wTR]∑iwi=1Portfolios are points in the Euclidean space Rn. The third equation states that the portfolio should fall on a plane defined by ∑iwi=1. The first equation states that the portfolio should fall on a plane defined by wTE[R]=μ. The second condition states that the portfolio should fall on the contour surface for ∑ijwiρijwj that is as close to the origin as possible. Since the equation is quadratic, each such contour surface is an ellipsoid (assuming that the covariance matrix ρij is invertible). Therefore, we can solve the quadratic optimization graphically by drawing ellipsoidal contours on the plane ∑iwi=1, then intersect the contours with the plane {w:wTE[R]=μ and ∑iwi=1}. As the ellipsoidal contours shrink, eventually one of them would become exactly tangent to the plane, before the contours become completely disjoint from the plane. The tangent point is the optimal portfolio at this level of expected return.

As we vary μ, the tangent point varies as well, but always falling on a single line (this is the two mutual funds theorem).

Let the line be parameterized as {w+w′t:t∈R}. We find that along the line,{μ=(w′TE[R])t+wTE[R]σ2=(w′Tρw′)t2+2(wTρw′)t+(wTρw)giving a hyperbola in the (σ,μ) plane. The hyperbola has two branches, symmetric with respect to the μ axis. However, only the branch with σ>0 is meaningful. By symmetry, the two asymptotes of the hyperbola intersect at a point μMVP on the μ axis. The point μmid is the height of the leftmost point of the hyperbola, and can be interpreted as the expected return of the global minimum-variance portfolio (global MVP).

Tangency portfolio

The tangency portfolio exists if and only if μRF<μMVP.

In particular, if the risk-free return is greater or equal to μMVP, then the tangent portfolio does not exist. The capital market line (CML) becomes parallel to the upper asymptote line of the hyperbola. Points on the CML become impossible to achieve, though they can be approached from below.

It is usually assumed that the risk-free return is less than the return of the global MVP, in order that the tangency portfolio exists. However, even in this case, as μRF approaches μMVP from below, the tangency portfolio diverges to a portfolio with infinite return and variance. Since there are only finitely many assets in the market, such a portfolio must be shorting some assets heavily while longing some other assets heavily. In practice, such a tangency portfolio would be impossible to achieve, because one cannot short an asset too much due to short sale constraints, and also because of price impact, that is, longing a large amount of an asset would push up its price, breaking the assumption that the asset prices do not depend on the portfolio.

Non-invertible covariance matrix

If the covariance matrix is not invertible, then there exists some nonzero vector v, such that vTR is a random variable with zero variance—that is, it is not random at all.

Suppose ∑ivi=0 and vTR=0, then that means one of the assets can be exactly replicated using the other assets at the same price and the same return. Therefore, there is never a reason to buy that asset, and we can remove it from the market.

Suppose ∑ivi=0 and vTR≠0, then that means there is free money, breaking the no arbitrage assumption.

Suppose ∑ivi≠0, then we can scale the vector to ∑ivi=1. This means that we have constructed a risk-free asset with return vTR. We can remove each such asset from the market, constructing one risk-free asset for each such asset removed. By the no arbitrage assumption, all their return rates are equal. For the assets that still remain in the market, their covariance matrix is invertible.

Sign in to keep reading

5 more chapters are free with a Lably account.

More in Economics