Ask Applied Statistics Expert

Project: Derivation of the Efficient Frontier

Part 1

1. Log into WRDS (Wharton) database, using the following information:

Userid: sseechar

Pwd: Plza.123

a. Choose CRSP (Center for the Research of Security Prices) database

b. Choose North America

c. Choose Equities

d. Choose Monthly data files

2. Download data on monthly returns (choose Holding Period Return variable) for the most recent 5-year period on four companies (or mutual funds, ETFs, etc.) from CRSP databaseinto the Excel file. Choose companiesfrom unrelated industries. Use your common sense here. For example, computer hardware and software industries are closely related, but computer hardware and food industries are not. Make sure that your dates are consistent across all four stocks, i.e. you select returns for the same 5-year period.

You can download similar data from Bloomberg

3. Using commands in the Excel Functions menu (click on fx button), calculate expected monthly returns on all three stocks (use AVERAGE function), their variances (VAR function), standard deviations (STDEV function), arrange them into variance-covariance matrix.

The more efficient way to calculate the variance-covariance matrix is using cov-matrix.xlam application, posted on BB. You need to download this application onto your computer and then open it within your Excel program. Don't forget to enable macros.

In this example, Variance-Covariance is a 4 by 4 table. Suppose that it is located in cells (C98:F101), that is rows 98 through 101, columns C through F. On the diagonal of this matrix are variance estimates, on off-diagonal are covariance terms (we will use these addresses later in mmult command).

4. Now find the correlation coefficient between each pair of companies (CORREL function).Arrange them into the 4 by 4

- Correlation matrix

5. Annualize expected returns, variances and covariances. It means you have to multiply monthlyexpected returns, variances and covariancesby 12. We can do this because we assume markets to be efficient at least in a weak form. Market efficiency means that monthly returns are independent of each other; that is the correlation coefficient between returns in one month and returns in any other month is 0. The annual standard deviation is just the square root of the annual variance. The annual correlation coefficient is the same as the monthly correlation coefficient.

You can multiply the entire variance-covariance matrix by 12. Below is the link to the excellent tutorial on matrix manipulations in excel:

http://facweb.cs.depaul.edu/mobasher/classes/csc575/assignments/MatrixOperations-Excel2007.pdf

6. Report monthly and annual statistics, calculated in (3) -- (5). Present annualized variances and covariance's in the variance-covariance.

Part 2

7. In the next fourcolumns specify weights of the fourstocks in your portfolio. Remember, that the weight of the forth stock in the portfolio can be expressed as w4 = 1- w1 - w2- w3.Alternatively, you can write a weight constraint into the next column

i=1?4w­­i=1

You can use any set of numbers as a starting point.

8. In the next threecolumns enter the formula for the variance, standard deviationand expected return (in that order) of the portfolio of four stocks:

σ2p =(w21 σ21 + w22σ22+ w23σ23 + w24σ24 + 2w1w2ρ12σ1σ2 + 2w1w3ρ13σ1σ3 + 2w1w4ρ14σ1σ4 + 2w2w3ρ23σ2σ3 + 2w2w4ρ24σ2σ4 + 2w3w4ρ34σ3 σ4)                                                                            (1)

σp= √σ2p                                                                                      (2)

E[R˜p]= w1E[R˜1]+ w2E[R˜2]+ w3E[R˜3]+ w4E[R˜4]                        (3)

The more efficient way to do calculate the variance or the portfolio and its expected return is to use matrices:

We will use the following matrix form for this equation:

σ2p= ω Ω ω'                                                                                  (4)

In equation (4), w denotes 1 by 4 row vector of weights, W stands for 4 by 4 variance-covariance matrix, and w' is a transpose of w, a 4 by 1 column vector of weights.

a. To do this in Excel:

(i) Enter the vector (row of four) weights for the four assets, for example in B109:E109.  You can start from any set of numbers. In the next cell (F109) Enter the weight constraint, i.e. enter the formula:

=SUM (B109:E109).

(ii) Now use the following command in Excel to perform matrix multiplication to find the variance of your portfolio

=MMULT(MMULT(B109:E109,$C$98:$F$101),TRANSPOSE(B109:E109))

Press simultaneously CTRL-SHIFT and while holding these two keys, also press ENTER. Suppose that the result of your operation is located in cell G109.

9. Copy everything 10 times (next ten rows).

10. Use Solver to find the weights of the minimum variance efficient (MVE) portfolio of your four chosen stocks in the first row.To do this, you simply minimize the variance of the portfolio, no constraints on the expected return of the portfolio needed.

Steps:

a. Go to Data, find Analysis and click on Solver

b. In Solver window, in "Set Objective", enter G109 (this is where you have your variance function) and click on Min. Your objective is to minimize the variance of the portfolio.

c. In "By Changing Cells" enter the range of weights that Solver can change, i.eB109:E109.

d. Add the constraint on weights: reference cell F109 (sum of all four weights) should be equal to 1.

e. Click OK.

f. In the next cell, H109, find the annualized standard deviation of the MVE portfolio.

11. Calculate the expected return on the MVE portfolio.In matrix form this equation is:

E[R˜p]= E ω'                                                                                 (5)

In (5) E stands for the 1 by 4 row vector of expected returns and w' is a column vector of weights.

To do this in Excel, in cell I109 write:

=MMULT($B$92:$E$92,TRANSPOSE(B109:E109))

where the first array of cells contains annualized expected returns on individual hedge fund strategies. Done forget to press simultaneously CTRL-SHIFT and while holding these two keys, also press ENTER.

12. Use Solver to calculate efficient portfolios for each level of expected returns. That is, increase expected returns above the level of E[RMVE] in small increments (for example, the next portfolio's expected return would be 1% higher than the expected return on the MVE portfolio). This new return enters Solver as your constraint. You need to find a portfolio that has the smallest possible standard deviation and pays your chosen expected return. Mathematically, you solve the following optimization problem:

W1, W2, W3Minσ2p                                                                         (6)

subject to:

E[Rp] = A,

where A is your chosen expected return.

You will need to repeat your optimization with Solver 10 more times, each time increasing return by 1%. Don't use paste and copy at this point.

In Solver, the steps are exactly the same as in Step 10, except that in the "Subject to constraints" window, you now need to enter the return constraint. Click on "Add". The constraint window will open. In the "Cell Reference", enter I110 (in our example the expected return on the next portfolio is located in this cell) and choose =. In the "Constraint" enter =I109+0.01. This means that return on your next portfolio should be equal to the return on MVE plus 1%. Click on "OK."

13. Use Chart menu in Excel to draw the graph of the efficient frontier: expected return (on Y-axis) versus standard deviation (on X-axis). Use XY plot.

Attachment:- Attachments.rar

Applied Statistics, Statistics

  • Category:- Applied Statistics
  • Reference No.:- M91583276
  • Price:- $80

Priced at Now at $80, Verified Solution

Have any Question?


Related Questions in Applied Statistics

Question onea a factory manager claims that workers at

QUESTION ONE (a) A factory manager claims that workers at plant A are faster than those at plant B. To test the claim, a random sample of times (in minutes) taken to complete a given task was taken from each of the plant ...

You are expected to work in groups and write a research

You are expected to work in groups and write a research report. When you work on your report, you need to use the dataset, and other sources such as journal articles. If you use website material, please pay attention to ...

Assignment -for each of the prompts below report the

Assignment - For each of the prompts below, report the appropriate degrees of freedom, t statistic, p-value and plot using the statistical software platform of your choice (R/STATA) 1) A sample of 12 men and 14 women hav ...

Assignment - research topicpurpose the purpose of this task

Assignment - Research topic Purpose: The purpose of this task is to ensure you are progressing satisfactorily with your research project, and that you have clean, useable data to analyse for your final project report. Ta ...

Assessment task -you become interested in the non-skeletal

Assessment Task - You become interested in the non-skeletal effects of vitamin D and review the literature. On the basis of your reading you find that there is some evidence to suggest that vitamin D deficiency is linked ...

Part a -question 1 - an analyst considers to test the order

PART A - Question 1 - An analyst considers to test the order of integration of some time series data. She decides to use the DF test. She estimates a regression of the form Δy t = μ + ψy t-1 + u t and obtains the estimat ...

Medical and applied physiology experimental report

Medical and Applied Physiology Experimental Report Assignment - Title - Compare the working and spatial memory by EEG. 30 students were tested (2 memory games were played to test their memory - a card game and a number g ...

Business data analysis computer assignment -part 1

Business Data Analysis Computer Assignment - PART 1 - Economists believe that high rates of unemployment are linked to decreased life satisfaction ratings. To investigate this relationship, a researcher plans to survey a ...

Question - go to the website national quality forum nqf

Question - Go to the website, National Quality Forum (NQF), located in the Webliography, and download the article by WIRED FOR QUALITY: The Intersection of Health IT and Healthcare Quality, Number 8, MARCH 2008. You are ...

Go to the webliography source for the national cancer

Go to the Webliography source for the National Cancer Institute's Surveillance, Epidemiology, and End Results (SEER) Program. In the Fast Stats, create your own cancer statistical report, "Stratified by Data Type," and u ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As