Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Task Part A The basics 1 . Use Excel functions to compute monthly summary statistics for the six stocks - mean return, sample standard deviation,
Task
Part A The basics
Use Excel functions to compute monthly summary statistics for the six stocks mean return, sample standard deviation, sample variance, and correlations VBA not required
Write your own VBA function to compute the variancecovariance matrix for the six stocks. The function needs to be able to handle matrices of different size. Note: If you are unable to complete the VBA function, generate the sample variancecovariance matrix using Covariance in Data Analysis so you can complete the other tasks. Full marks are earned if your program does not rely on calling Excel worksheet functions like COVAR from VBA.
Generate an efficient frontier allowing for short sales. You will need to use matrix multiplications to compute portfolio risk and return.
Assume the riskfree interest rate is return per month Identify the global minimum variance portfolio and the tangent portfolio based on the given riskfree rate on the efficient frontier. Draw the efficient frontier and Capital Market Line.
Extend Questions & not allowing for short selling. You need to use Excel Solver for this task. VBA is not required. Note: Optimal portfolios are those with the highest Sharpe ratio given the riskfree rate.
Extend Questions & by using considerable VBA programming calling Solver from VBA is a suitable solution to automate the process.
Part B Simulating feasible portfolios
Write a VBA subroutine to generate at least feasible portfolios. In your subroutine:
a Generate six random numbers
b Assign the jth random number divided by the sum of the six random numbers as the weight for stock j
Plot the simulated portfolios as a scatter graph in the riskreturn diagram together with efficient frontier previously generated in Part A Both the minimum variance and highest Sharpe ratio portfolios should be highlighted on your graph.
The user has a choice for basically an unlimited number of simulations. Improve the efficiency and speed of your model is crucial, and we intend to test this feature with more than portfolios.
Part C User interface and layout
Design a friendly user interface with Excel form controls and allow users to choose:
a Different level of interest rates. Note: This will affect the Capital Market Line and the tangent portfolio.
b The user is able to choose whether to allow short selling.
c All inputs and outputs are clearly labelled and shown on the same Excel worksheet and the model is well structured without excess options.
Formulas and subroutines are linked so the model can handle changes in data assuming replacing one stock with another with the same number of observations
Think about other additional features you want to add and improve your portfolio model.
Part D Comments and structure
Provide instructions and highlight features other than those required of your model. Write your comments in the textbox inserttextbox
Add comments to your VBA code, especially on any special techniques employed.
Properly formatting and indenting your code. To indent code, simply press the TAB key. Press the tab key again to add a second code indention. Generally, you want to add one indentation for each code block such as IF statements and Loops.
Stock Stock Stock Stock Stock Stock
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started