Analyze mutual funds in Excel - YouTube

Channel: unknown

[2]
Welcome to the exercise. In this exercise, we would like to
[10]
analyse two funds. We have here the returns of two funds.
[17]
We would like to know which of these two funds is better.
[25]
In the yellow areas, we can already see the solution. Let's delete the
[33]
solution and let's develop the solution step by step.
[55]
We know from the literature that there are various approaches to compare
[63]
mutual funds. For example, we can use the Sharpe ratio, the Treynor ratio or
[70]
the Alpha in a CAPM or Carhart four-factor model to analyse these funds.
[77]
We have here the annual returns of these funds. Additionally, we have the returns
[84]
of our four risk factors: the market risk premium, size, value, and momentum.
[96]
We have the risk-free rate in each year. Let's start here at the beginning.
[107]
In finance, we are usually working with excess returns. Here we see the
[114]
formulas. We see - here for example the Sharpe ratio or the Treynor ratio - that
[119]
we are using the returns of the fund in excess of the risk-free rate.
[125]
In the first step, we compute the excess returns by subtracting the
[136]
risk-free rate from our returns. We fix here column F with a dollar sign because
[147]
the risk-free rate is always in the same column. We can now fill to the right and
[155]
down.
[163]
We see here the last row is row 92. Let's keep this in
[171]
mind because it makes life a little bit easier going forward.
[175]
First, the Sharpe ratio: the average return or the average excess return
[185]
divided by the standard deviation. Let's assume we are working with
[191]
continuously compounded returns here. The average excess return is just
[196]
AVERAGE of this area. We see that fund B has a higher average excess return than fund A.
[216]
The volatility can be computed by using the STDEV.S function.
[237]
We see here that fund B also had a higher volatility than fund A. The Sharpe
[243]
ratio is defined as the average excess return divided by the volatility of returns.
[253]
We see that fund B had a better Sharpe ratio then fund A. The risk to reward
[264]
was better. The Sharpe ratio does not take into account the systemic risk
[272]
exposure of our fund. Therefore, the Treynor ratio uses the
[280]
beta. There are various ways to find the beta. Here the beta is the result of
[291]
a regression of the fund returns on the market portfolio. We have an
[300]
univariate regression and in this case we can use the SLOPE function.
[307]
Our Y variable - our dependent variable - are the fund returns. The returns of our
[320]
risk factor - the market risk - is in B4 to B92. We're fixing here
[339]
column B with dollar signs such that we can easily fill to the right as you see
[348]
here. We will regress fund B on the market returns. The Treynor ratio is the
[356]
average excess returns over the beta. We see that the Treynor ratio for fund B
[368]
is also highe. Now let's compute the Alpha in a one-factor CAPM model.
[380]
Basically, we are doing a regression of funds returns on the market risk.
[391]
Here the SLOPE function - we have used here - delivers the beta and the INTERCEPT
[399]
function delivers the alpha. We can basically just take this formula copy it,
[410]
paste it here, and replace SLOPE by INTERCEPT.
[422]
We see that fund B has a higher alpha than fund A in a one-factor model.
[432]
We know that there are a number of extensions to one-factor models.
[437]
The most popular one is a Carhart four-factor model which has market risk, size, value and
[445]
momentum as additional risk factors. When we are doing a multivariate analysis
[455]
in Excel- a multivariate regression - we can use the LINEST function.
[461]
The LINEST function is a matrix function. The output area is always 5 rows high. We
[478]
find here the coefficient, the standard error, the R^2, the F test and the sum of errors in
[486]
these rows. The number of columns depend on our independent variables.
[499]
We have here in this case 4 risk factors plus 1 constant. Therefore, the output area consists
[508]
of 5 columns. Please note that in Excel the sorting is in reverse order.
[518]
We see that here the market risk premium is in the first column. Here we have
[527]
the constant always in the in the very last column. In the second last
[531]
column, we have the first risk factor. Bear in mind that the order is reversed
[538]
in Excel. Now: This is a matrix function. We need to mark this whole
[546]
area when we start typing. We type LINEST - multivariate regression - our
[553]
dependent returns which in J4 to J92. Our risk factors are in
[563]
B4 to E92. The next parameter is basically whether Excel shall include
[576]
a constant. My recommendation is to include always a constant.
[582]
If you enter nothing, Excel includes a constant. Then, we would like to have
[589]
some statistics. This is a matrix function. When we have finished typing, we need
[595]
to press CMD + ENTER on a Macbook. On a Windows PC, CTRL + SHIFT + ENTER .
[601]
I'm working with the MacBook; so I press CMD + ENTER. We see
[608]
here the results. We see - for example - this fund has some exposure to the value
[616]
factor, exposure to the market risk and in a four-factor vector model the Alpha is 0.78% per year.
[625]
We can do something very similar for the second fund. We mark this
[638]
area, we have copied the formula and now we just need to replace our
[644]
returns. They are now in K4 to K92.
[651]
Press CMD + ENTER . We have here in this four factor model an
[662]
alpha of minus 0.8%. We see that fund B has an exposure about 0.5
[677]
to momentum, no exposure to value and size and a beta of 1 to the market.
[686]
In a nutshell, fund A follows a value strategy with a low
[692]
beta. Fund B follows the momentum strategy with a normal beta. We see here
[704]
fund A has positive returns, a positive alpha. Fund has had a
[711]
negative alpha. So: which of these funds is is better? We see here fund B had
[728]
higher returns, higher Sharpe ratio, higher Treynor ratio in a in an one-factor
[735]
model. But these returns, these apparent excess returns are due to a
[742]
different strategy. Fund B has decided to go for a momentum strategy.
[748]
This momentum strategy was more successful in this time range than a
[758]
pure value strategy. So: We have analysed our funds. Maybe two additional comments
[773]
You can also extract the alpha directly, if you combine the INDEX function with
[780]
the LINEST function. Sometimes, it's necessary to compute t values.
[788]
We can compute t values easily by dividing the coefficient by the standard error.
[800]
Let's summarise: we have started with two funds. The target of this exercise
[807]
was to analyze these two funds by using the Sharpe ratio, Treynor ratio and the
[813]
alphas in a CAPM and Earhart model. We started first by computing excess
[819]
returns. Then, we computed the Sharpe ratio. For the Treynor ratio, we use the INTERCEPT and
[826]
SLOPE function to compute the alpha in a one-factor model. We use the LINEST function to
[834]
compute the risk exposure in Carhart four-factor model and to compute the alpha in
[840]
a four-factor model. Thank you very much.