Investments

Appendix A: A Spreadsheet Model for Efficient Diversification

c. As n gets very large, the variance of an efficient (equally weighted) portfolio diminishes, leaving only the variance that comes from the covariances among stocks. Therefore, Systematic standard deviation=√​ ______ ρ×σ2​=√​ _______ .5×602​=42.43% Note that with 25 stocks we came within .84% of the systematic risk, that is, the standard deviation of a portfolio of 25 stocks is only .84% higher than 42.43%. With 37 stocks, the standard deviation is 43.01%, whichis only .58% greater than 42.43%. d. If the risk-free rate is 10%, then the risk premium on any size portfolio is 15 − 10 = 5%. The standard deviation of a well-diversified portfolio is (practically) 42.43%; hence, the slope of the CAL is S=5/42.43=.1178

Several software packages can be used to generate the efficient frontier. We will demonstrate using Microsoft Excel. Excel is far from the best program for this purpose and is limited in the number of assets it can handle, but using it to work through a simple portfolio optimization can illustrate the approach used in more sophisticated “black-box” programs. You will find that even in Excel, the computation of the efficient frontier is not difficult. We apply the Markowitz portfolio optimization program to the problem of international diversification. We take the perspective of a portfolio manager serving U.S. clients, who wishes to construct for the next year an optimal risky portfolio of large stocks in the U.S. and six developed capital markets (Japan, Germany, the U.K., France, Canada, and ­Australia). First, we describe the input list: forecasts of risk premiums and the covariance matrix. Next, we describe Excel’s Solver, and finally we show the solution to the ­manager’s problem.

The manager needs to compile an input list of expected returns, variances, and c­ovariances. Spreadsheet 7A.1 shows the calculations. Panel A lays out the expected excess return for each country index.While these estimates may be guided by historical experience, as we discussed in Chapter 5, using simple historical averages would yield extremely noisy estimates of expected risk premiums because returns are so volatile. Historical average returns fluctuate enormously across subperiods, making them highly unreliable estimators. Here, we simply assume the manager has arrived at some reasonable estimates of each country’s risk premium through scenario analysis informed by historical experience. These values are presented in column B. Panel B is the bordered covariance matrix corresponding to Table 7.2. The covariances in this table might reasonably be estimated from a sample of historical returns, as empirically based variance and covariance estimates are far more precise than corresponding estimates of mean returns. It would be common to estimate Panel B using perhaps five years of monthly returns. The Excel function COVARIANCE would compute the covariance between the time series of returns for any pair of countries. We assume the manager has already collected historical returns on each index, plugged each pair of returns into the COVARIANCE function, and obtained the entries that appear in PanelB. The elements on the diagonal of the covariance matrix in Panel B are the variances of each country index.

C H A P T E R 7 Efficient Diversification 239

A B C D E F G H I J K L 1 Efficient Frontier Spreadsheet 2 Panel A Expected excess returns (risk premiums) of each country index

Bordered Covariance Matrix

Various points along the efficient frontier. Panel B

Panel C Formulas used in key cells 3 4 0.060 0.053 0.070 0.080 0.058 0.045 0.059 5 6 7 8 9 10 11

Portfolio weights 0.6112 0.8778 –0.5097 0.2055 0.6112 0.8778 –0.2140 –0.5097 0.0695 0.2055 –0.0402 1.0000

Cel A17 – A23 These are portfolio weights. You can set initial value arbitrarily as long as sum = 1 = A17, and so on. The portfolio weights in column A are copied to row 17. = SUM(A17:A23) = C15*SUMPRODUCT($A17:$A23,C17:C23) Copied from C24 (note the use of absolute addresses) = SUMPRODUCT(A17:A23,$B5:$B11) = SUM(C24:I24)^0.5 = C25/C26 Cel C15 Cel A24 Cel C24 Cel D24 through I24 Cel C25 Cel C26 Cel C27 0.0224 0.0184 0.0250 0.0288 0.0195 0.0121 0.0205 0.0078 0.0383 0.1132 0.3386 0.0184 0.0223 0.0275 0.0299 0.0204 0.0124 0.0206 0.0113 0.0288 0.0299 0.0438 0.0515 0.0301 0.0183 0.0305 –0.0065 0.0121 0.0124 0.0177 0.0183 0.0147 0.0353 0.0158 0.0026 –0.2140 U.S. U.K. 0.0250 0.0275 0.0403 0.0438 0.0259 0.0177 0.0273 –0.0027 0.0695 France Germany 0.0195 0.0204 0.0259 0.0301 0.0261 0.0147 0.0234 0.0009 Australia Japan U.S. U.K. France Germany Australia Japan Canada –0.0402 0.0205 0.0206 0.0273 0.0305 0.0234 0.0158 0.0298 –0.0005 Canada 13 14 12

15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38

U.K. Risk Prem: Std Dev: Sharpe: 0.0350 0.1141 0.3066 0.5944 1.0175 –0.2365 –0.6077 0.0588 0.2192 –0.0459 Min var portfolio Optimal (tangency) portfolio 0.0383 0.1132 0.3386 0.6112 0.8778 –0.2140 –0.5097 0.0695 0.2055 –0.0402 0.0465 0.0400 0.1135 0.3525 0.6195 0.8083 –0.2029 –0.4610 0.0748 0.1987 –0.0374 0.0466 0.0450 0.1168 0.3853 0.6446 0.5992 –0.1693 –0.3144 0.0907 0.1781 –0.0288 0.0479 0.0500 0.1238 0.4037 0.6696 0.3900 –0.1357 –0.1679 0.1067 0.1575 –0.0203 0.0508 0.0550 0.1340 0.4104 0.6947 0.1809 –0.1021 –0.0213 0.1226 0.1369 –0.0118 0.0550 0.0564 0.1374 0.4107 0.7018 0.1214 –0.0926 0.0205 0.1271 0.1311 –0.0093 0.0564 0.0575 0.1401 0.4106 0.7073 0.0758 –0.0852 0.0524 0.1306 0.1266 –0.0075 0.0575 0.0600 0.1466 0.4092 0.7198 –0.0283 –0.0685 0.1253 0.1385 0.1164 –0.0032 0.0602 0.0700 0.1771 0.3953 0.7699 –0.4465 –0.0014 0.4185 0.1704 0.0752 0.0139 0.0727 0.0800 0.2119 0.3774 0.8201 –0.8648 0.0658 0.7117 0.2023 0.0341 0.0309 0.0469 0.0870 U.S. France Germany Australia Japan Canada CAL* *Risk premium along the CAL = StdDev of portfolio times slope of optimal risky portfolio (Cel I45) 42 43 44 45 46 47 48 49 50 51 52 41 39

40 Risk Prem Std Dev Sharpe U.S. U.K. France Germany Australia Japan Canada

Spreadsheet 7A.1 Spreadsheet models for international diversification

Please visit us at www.mhhe.com/Bodie13e 240 PA R T I I Portfolio Theory and Practice

The covariance matrix in Panel B is bordered along the top (row 15) and left (columnA) by a set of portfolio weights. You can start the procedure off using any arbitrary set of weights as long as they sum to 1. You will be asking Excel to replace these initial weights with the weights that correspond to the portfolios on the efficient frontier. Cells C25, C26, and C27 calculate some important characteristics of the portfolio defined by the set of portfolio weights. C25 is the expected risk premium on the portfolio, computed by taking a weighted average of country risk premiums (using Excel’s ­SUMPRODUCT function; the formula for cell C25 is presented in cell C35). Cell C26 computes the standard deviation of any portfolio using the formula developed in Table 7.2. Portfolio variance is given by the sum of cells C24–I24 below the bordered covariance matrix. Cell C26 takes the square root of this sum to produce the standard deviation. Finally C27 is the portfolio’s Sharpe ratio, expected excess return divided by standard deviation. This is also the slope of the CAL (capital allocation line) that runs through the portfolio corresponding to the weights in column A. The optimal risky portfolio is the one that maximizes the Sharpe ratio. Panel C shows the properties of several portfolios along the efficient frontier. The highlighted columns correspond to the minimum-variance and the tangency portfolios. Each column in the panel shows portfolio characteristics and the weighting in each country.

Excel’s Solver is a user-friendly, but quite powerful, optimizer. It has three parts: (1) an objective function, (2) decision variables, and (3) constraints. Figure 7A.1 shows three pictures of the Solver. We will begin by finding the minimum-variance portfolio. The problem is set up in Panel A of the figure. The top line of the Solver lets you choose a target cell for the “objective function,” that is, the variable you are trying to optimize. In Panel A of Figure 7A.1, the target cell isC26, the portfolio standard deviation. Below the target cell, you can choose whether your objective is to maximize, minimize, or set your objective function equal to a value that you specify. Here we choose to minimize the portfolio standard deviation. The next part of Solver contains the decision variables. These are cells that the Solver can change in order to optimize the objective function in the target cell. Here, we input cells A17–A23, the portfolio weights that we select to minimize portfolio volatility. The bottom panel of the Solver can include any number of constraints. One constraint that must always appear in portfolio optimization is the “feasibility constraint,” namely, that portfolio weights sum to 1.0. When we bring up the dialogue box for constraints, we specify that cell A24 (the sum of weights) must be set equal to 1.0. When weclick “Solve,” the Solver finds the weights of the minimum-variance portfolio and places them in column A. The spreadsheet then calculates the risk premium and standard deviation of that portfolio. We save the portfolio weights and its key statistics by copying them to Panel C in Spreadsheet 7A.1. Cell C42 in Panel C shows that the lowest standard deviation (SD) that can be achieved with our input list is 11.32%. This standard deviation is considerably lower than even the lowest SD of the individual indexes. Now we are ready to find other points along the efficient frontier. We will do this by finding the portfolio that has the lowest possible variance for any targeted risk premium. You can produce the entire efficient frontier in minutes following this procedure.

1. Input to the Solver a constraint that says: Cell C25 (the portfolio risk premium) must equal some desired value, for example, .04. The Solver at this point is shown in Panel B of Figure 7A.1. There are now two constraints: one for the required risk premium and one for the fact that portfolio weights must sum to 1. Ask Solver to

C H A P T E R 7 Efficient Diversification 241

Figure 7A.1 Solver dialog box

solve, and it will replace the portfolio weights in column A with those corresponding to the portfolio that can achieve the targeted risk premium with the lowest possible standard deviation. This is the portfolio on the efficient frontier with a risk premium of 4%. Again, the spreadsheet calculates the other properties of this portfolio, which you then copy to Column D of Panel C. In Columns B–C, we use risk premiums ranging from .035 to .08 (row 41). Each column corresponds to one portfolio along the efficient frontier. 2. To find another point on the frontier, you input a different desired risk premium, and ask the Solver to solve again. 3. Every time the Solver gives you a solution to the request in (2), copy the results into Panel C, in this way tabulating a collection of points along the efficient frontier.

Now that we have traced out several points along theefficient frontier, our last task is to search for the portfolio with the highest Sharpe ratio. This is the portfolio on the efficient frontier that is tangent to the CAL. To find it, we determine the portfolio weights that maximize the Sharpe ratio. This requires two changes to the Solver. First, change the target cell from cell C26 to cell C27, the Sharpe ratio of the portfolio, and request that the value in this cell be maximized. Next, eliminate the constraint on the risk premium that may be B

C A 242 PA R T I I Portfolio Theory and Practice

left over from the last time you used the Solver. At this point the Solver looks like Panel C in Figure 7A.1. The Solver now produces the optimal risky (the tangency) portfolio. Copy the statistics for the optimal portfolio and its weights to Panel C of your spreadsheet. In order to get a clean graph, place the columns for the minimum variance and tangency portfolios so that the risk premiums of all portfolios in the spreadsheet are steadily increasing, starting from the risk premium of column A (3.5%) all the way up to 8%. The resulting efficient frontier is graphed in Figure 7A.2. The data in cells B42 through L42are used for the horizontal axis (portfolio standard deviation), while B41–L41 are used for the vertical or y-axis and contain the portfolio risk premium.

It is instructive to superimpose on the graph of the efficient frontier in Figure 7A.2 the CAL of the optimal risky portfolio. This CAL has a slope equal to that portfolio’s Sharpe ratio. Therefore, at the bottom of Spreadsheet 7A.1, Panel C, we add a row with entries equal to the standard deviation of each column’s portfolio multiplied by the Sharpe ratio of the optimal risky portfolio cell (H43). This results in the risk premium for each portfolio along the CAL. We now add a series to the graph with the standard deviations in B42–L42 as the x-axis and cells B51–L51 as the y-axis. You can see this CAL in Figure 7A.2.

Using our input list, the optimal risky portfolio calls for short (negative) positions in the stocks of France and Canada (see column H of Spreadsheet 7A.1, Panel C). In many cases, however, the portfolio manager is prohibited from taking short positions. If so, we need to amend the program to preclude short sales. To accomplish this task, we repeat the exercise, but with one change. We add to the Solver the following constraint: Each element in the column of portfolio weights, A17–A23, must be greater than or equal to zero. You should try to produce the short-sale-constrained efficient frontier in your own spreadsheet.

Figure 7A.2 Efficient frontier and CAL for country stock indexes 0.0900 0.0800 0.0700 0.0600 0.0500 0.0400 0.0300 0.1000 0.1200 0.1400 0.1600 0.1800 0.2000 0.2200 0.2400 Standard Deviation m u im e r P k s iR Efficient Frontier CAL