Investments

Estimating Variance and Standard Deviation

146 PA R T I I Portfolio Theory and Practice

Take another look at Spreadsheet 5.2. Column D shows the squared deviation from the arithmetic average, and cell D9gives the variance as .0315. This is the sum of the product of the probability of each outcome (1/n = .20) times the squared deviation of that outcome. Finally, the standard deviation given in cell D10, .1774, is the square root of the variance.

When thinking about risk, we are interested in the likelihood of deviations of actual outcomes from the expected return. Given a scenario analysis, we can define variance using squared deviations around the mean outcome, as in Equation 5.12. However, in practice, we rarely observe expectations directly, so we instead calculate variance by averaging squared deviations from our estimate of the expected return, the arithmetic average, ¯r​.​ Adapting Equation 5.12 for historic data, we again use equal probabilities for each observation and use the sample average in place of the unobservable E(r). Therefore, using historical data with n observations, we estimate variance as 1 σ​^​2​=_​_ ​∑ ​

s=1

​ ​[r(s)−¯r​]​2​ (5.19)

where ​σ^​ replaces σ to denote that it is an estimate.

The variance estimate from Equation 5.19 is biased downward, however. The reason is that we have taken deviations from the sample arithmetic average, ¯r​,​ instead of the unknown, true expected value, E(r), and so have introduced a bit of estimation error. Its effect on the estimated variance is sometimes called a degrees of freedom bias. We can eliminate the bias by multiplying the arithmetic average of squared deviations by the factor n/(n − 1). The variance and standard deviation then become ( ) 1 ​σ​=​_​_n___​​×_​_ ​∑ ^2 ​ n−1 n s = 1

​ 1 ​[()−¯​]2=_​____ ​​∑ rs r​ n−1 s = 1

​ ​ ​[r(s)−¯r​​]2

​σ^​=​ ________________ 1 _​____​ ​∑ n−1 s = 1

​ ​ [r(s)−¯r​]​2​ (5.20)

Cell D13 shows the unbiased estimate of standard deviation, .1983, which is higher than the .1774 value obtained in cell D11. In Excel, the function STDEV.P calculates standard deviation without any correction for degrees of freedom (consistent with Equation5.19) while the function STDEV.S applies the correction (consistent with Equation 5.20). For large samples, the distinction is usually not important:n/(n − 1) is close to 1, and the adjustment for degrees of freedom becomes trivially small.

Using the annual returns for years 3–5 in Spreadsheet 5.2: a. Compute the arithmetic average return. b. Compute the geometric average return. c. Compute the standard deviation of returns using the correction for degrees of freedom. d. Compute the Sharpe ratio, assuming the risk-free rate was 6% per year.

5.7: Historic Returns on Risky Portfolios