CF 10e Chapter 11 Excel Master Student
CF 10e Chapter 11 Excel Master Student
Chapter 11
In these spreadsheets, you will learn how to use the following Excel fun
SQRT
COVAR
CORREL
Adding a trendline
Regression estimates
SLOPE
INTERCEPT
eadsheets:
equire that
Chapter 11 - Section 2
Expected Return, Variance, and Covariance
In Chapter 10, we used the AVERAGE, VAR, and STDEV functions to calculate the average, variance, and standard dev
have built-in functions that handle unequal probabilities, so we need to create our own equations.
Supertech
(5)
(1) (2) (3) (4) Deviation from
State of Probability of Return if State Product Expected Return
Economy State Occurs (2) × (3) (3) - E(R)
Depression 0.25 -0.20 -0.05 -0.375
Recession 0.25 0.10 0.025 -0.075
Normal 0.25 0.30 0.075 0.125
Boom 0.25 0.50 0.125 0.325
Expected return = 0.175
The standard deviation is the square root of the variance, so the standard deviation is:
We should also note that the square root (or any other power) can be calculated using the caret key (^). For example
(5)
(1) (2) (3) (4) Deviation from
State of Probability of Return if State Product Expected Return
Economy State Occurs (2) × (3) (3) - E(R)
Depression 0.25 0.05 0.0125 -0.005
Recession 0.25 0.20 0.0500 0.145
Normal 0.25 -0.12 -0.0300 -0.175
Boom 0.25 0.09 0.0225 0.035
Expected return = 0.055
To calculate the covariance and correlation, we need to calculate the product of the return deviations, multiply this p
then sum to find the covariance. Doing so, we find:
Deviation of Deviation of
Supertech Slowpoke
Return from the Return from the
State of Probability of Expected Expected Product of the
Economy State Return Return Deviations
Depression 0.25 -0.375 -0.005 0.001875
Recession 0.25 -0.075 0.145 -0.010875
Normal 0.25 0.125 -0.175 -0.021875
Boom 0.25 0.325 0.035 0.011375
Covariance =
Since the correlation is the covariance divided by the product of the standard deviations, the correlation between Su
Correlation: -0.1639
Suppose we have the following returns for the market and a stock:
What is the covariance and correlation of the returns between this stock and the market?
Covariance: 0.0281
Correlation: 0.8648
To use COVAR and CORREL, select the first data array, tab to Array2, and select the second data array. It is irrelevant w
between A and B is equal to the correlation between B and A.
A Quick Statistics
Covariance Review are measures of how much two variables move together. If two variables tend to vary tog
and correlation
value, then the other variable tends to be above its expected value too), then the covariance and correlation betwee
when one of them is above its expected value the other variable tends to be below its expected value, then the cova
negative.
The main difference between covariance and correlation is the interpretation. Covariance is an unstandardized numb
the two variables is large, or because of a strong relationship between the two variables. Thus, the only interpretatio
positive or negative.
Correlation is standardized and will be between -1 and 1. The closer the correlation is to -1, the stronger the negativ
correlation is to 1, the stronger the positive relationship between the two variables. Therefore, correlation measures
between two variables.
So why is correlation important to diversification? Correlation (and covariance) measure how two assets move toget
two assets, the greater the diversification benefit. If you think of two assets with a negative correlation, as one asset
return below its average. This will smooth out the returns of a portfolio of these two assets. However, if the assets h
its mean, the other asset will also have a return above its mean, so there is less benefit to diversification. For an app
manufacturers and would be expected to have a high correlation because many of the firm specific risks that would
share firm specific risk with Microsoft, so we would expect GM and Microsoft to have a lower correlation than GM a
benefit.
average, variance, and standard deviation for historical returns. Unfortunately, Excel does not
our own equations.
(6) (7)
Squared Value Product
of Deviation (2) × (5)
0.140625 0.0351563
0.005625 0.0014063
0.015625 0.0039063
0.105625 0.0264063
Variance = 0.0668750
is found under the Math & Trig tab. The function looks like this:
d using the caret key (^). For example, we could have entered an equation as H13^(1/2).
(6) (7)
Squared Value Product
of Deviation (2) × (5)
0.000025 0.0000063
0.021025 0.0052563
0.030625 0.0076563
0.001225 0.0003063
Variance = 0.0132250
the return deviations, multiply this product by the probability of the state of the economy, and
Probability of
State of the
Economy times
Product of the
Deviations
0.000469
-0.002719
-0.005469
0.002844
-0.004875
qual probabilities, both calculations are often done using historic market data. When using
orrelation for you.
under More Functions, Statistical. Both functions use similar inputs, namely the arrays that
he second data array. It is irrelevant which data array you select first. That is, the correlation
ther. If two variables tend to vary together (that is, when one of them is above its expected
e covariance and correlation between the two variables will be positive. On the other hand,
ow its expected value, then the covariance and correlation between the two variables will be
ovariance is an unstandardized number. A large covariance can arise because the variance of
variables. Thus, the only interpretation we can take from the covariance is the direction, either
tion is to -1, the stronger the negative relationship between the variables, and the closer the
bles. Therefore, correlation measures both the direction and magnitude of the relationship
measure how two assets move together. All else the same, the lower the correlation between
h a negative correlation, as one asset has a return above its average, the other asset will have a
two assets. However, if the assets have a positive correlation, as one asset has a return above
benefit to diversification. For an application, think of GM and Ford. Both are auto
of the firm specific risks that would affect GM also affect Ford. However, GM is less likely to
have a lower correlation than GM and Ford, and therefore have a greater diversification
Chapter 11 - Section 4
The Return and Risk for Portfolios
In the textbook, the equation for the standard deviation of a portfolio is presented. Given the following information
deviation of the portfolio?
Stock A Stock B
Expected return 9% 14%
Standard deviation 19% 55%
Weight of stock 30% 70%
Correlation 0.10
Of course, we could be interested in examining the opportunity set for the two assets. To see this, we can create a ta
expected return and standard deviation of the two assets for various portfolio weights is:
Expected Standard
Weight of Stock A Return Deviation
0%
5%
10%
15%
20%
25%
30%
35%
40%
45%
50%
55%
60%
65%
70%
75%
80%
85%
90%
95%
100%
So what does the opportunity set for these two assets look like? Below, you will see. To examine how a change in the
correlation in the cell above.
3
64 %
5
58 %
7
52 %
9
46 %
1
41 %
3
35 %
5
29 %
7
23 %
9
17 %
1
12 %
63
5% 10% 210% 410% 610% 810% 1010%
So how do we find the minimum variance portfolio? The best way is to use Solver. Try this for yourself and see if you
portfolio is about 92.93%
en the following information concerning two stocks, what is the expected return and standard
To see this, we can create a table for various portfolio weights and then graph the results. The
is:
examine how a change in the correlation will affect the shape of the opportunity set, change the
ets
urn)
his for yourself and see if you don't agree that the weight of Stock A in the minimum variance
Chapter 11 - Section 8
Market Equilibrium
In this section, you will learn how beta is estimated. Before we begin that discussion, we want to start with a graph o
month end values for the S&P 500, a common proxy for the market as a whole, and the adjusted closing price for Am
estimating beta, 60 monthly returns is a commonly used number of historical returns. Since we are going to be using
much data as possible. However, the further back in time we go, the less the company is like the current company. Fo
more than 100 years. But is AT&T in its current form actually comparable to AT&T in 1930? Not really. For this and ot
standard when estimating beta.
To begin, we would like to graph the returns of Amazon.com stock against the returns of the S&P 500. In this case, w
Ch a r
30%
20%
Amazon.com Return
0%
-20% -15% -10% -5% 0% 5% 10%
-10%
-20%
-30%
-40%
S&P 500 Return
Notice that we have added a trend line in this graph. This trend line is called the characteristic line. The slope of this
market returns. The slope of this line is the beta of the stock.
The equation in the graph above is a linear regression. We can use the trend line option on a graph to estimate a line
linear regression as well as give us more statistical information about the regression estimate.
The input box for our linear regression looks like this:
The Y input range is the dependent variable, in this case the stock returns, and the X input range is the independent
the data and selected the Labels box, which will put a label on the output for the variables. Finally, we selected the C
confidence interval. The output for this regression is below.
SUMMARY OUTPUT
Regression Statistics
Multiple R 0.4763651752
R Square 0.2269237802
Adjusted R Square 0.2135948798
Standard Error 0.0952868398
Observations 60
ANOVA
df SS MS F
Regression 1 0.1545793713 0.1545793713 17.0249438688
Residual 58 0.526615747 0.0090795818
Total 59 0.6811951183
More Regression
If you are just interested in the slope and intercept for a regression, Excel has functions that will calculate these valu
eturns of the S&P 500. In this case, we used a scatter plot which resulted in the graph below.
20%
10%
0%
0% 5% 10% 15% 20%
-10%
-20%
-30%
-40%
&P 500 Return
characteristic line. The slope of this line represents how the stock's returns respond to the
sign, Layout, and Format tabs.
is an equation. We went to More Options and selected the box to display the equation on
e option on a graph to estimate a linear regression, but Excel has a tool that will estimate a
sion estimate.
Significance F
0.0001193752
nctions that will calculate these values separately, SLOPE and INTERCEPT.
atistical. The inputs for each function are the Y values and the X values. Below, you will see
Return Data
The CAPM is one of the most tested models in Finance. When beta is estimated in practice, a variation of CAPM called the market model is often use
market model, we start with the CAPM:
Since CAPM is an equation, we can subtract the risk-free rate from both sides, which gives us:
This equation is deterministic, that is, exact. In a regression, we realize that there is some indeterminate error. We need to formally recognize this in
adding epsilon, which represents this error:
Finally, think of the above equation in a regression. Since there is no intercept in the equation, the intercept is zero. However, when we estimate the
equation, we can add an intercept term, which we will call alpha:
This equation, known as the market model, is generally the model used for estimating beta. The intercept term is known as Jensen's alpha and repre
return. If CAPM holds exactly, this intercept should be zero. If you think of alpha in terms of the SML, if the alpha is positive, the stock plots above th
alpha is negative, the stock plots below the SML.
You want to estimate the market model for an individual stock and a mutual fund. First, go to finance.yahoo.com and download the adjusted prices f
months for an individual stock and a mutual fund, and the S&P 500. Next, go to the St. Louis Federal Reserve website at www.stlouisfed.org. You sho
a. FRED® database on this website. Look for the 1-Month Treasury Constant Maturity Rate and download this data. This will be the proxy for the risk-fre
using this rate, you should be aware that this interest rate is the annual interest rate, while we are using monthly stock returns, so you will need to a
month T-bill rate. For the stock and mutual fund you select, estimate the beta and alpha of the stock using the market model. When you estimate th
model, find the box that says Residuals and check this box when you do each regression. Because you are saving the residuals, you may want to save
output in a new worksheet.
1) Are the alpha and beta for each regression statistically different from zero?
2) How do you interpret the alpha and beta for the stock and the mutual fund?
3) Which of the two regression estimates has the highest R squared? Is this what you would have expected? Why?
b. In part a, you asked Excel to return the residuals of the regression, which is the epsilon in the regression equation. If you remember back to statistics
are the linear distance from each observation to the regression line. In this context, the residuals are the part of each monthly return that is not exp
market model estimate. The residuals can be used to calculate the appraisal ratio, which is the alpha divided by the standard deviation of the residua
Mutual fund
a. Month/Year S&P 500 Stock price price Risk-free rate S&P 500 return
IBM FMAGX
3) Since the mutual fund is a diversified portfolio, we would expect a higher R squared value. The diversification
unsystematic risk, therefore more of the return should be explained by the movement of the market.
b. 1) Since the residuals are the part of each return that is not explained by the regression line, the residuals are t
measure of the excess return per unit of systematic risk. A higher appraisal ratio is better since it is greater exce
IBM: Err:504
FMAGX: Err:504
3) Fund managers, at least active fund managers, attempt to beat the market. The appraisal ratio measures the
excess return relative to the specific risk in the portfolio. Since the ratio is the return per unit of firm specific ris
that could be diversified away by holding the market portfolio. As such, it is more appropriate for a portfolio pe
measure.
Mutual fund Market risk Stock risk Mutual fund risk
Stock return return premium premium premium
alue. The diversification of the portfolio has eliminated much of the
the market.
ine, the residuals are the systematic risk. As such, the appraisal ratio is a
since it is greater excess return per unit of risk.