Highlights
Background information
The objective of this assignment is to learn how the Modern Portfolio Theory works in practice. The portfolio theory shows that an investor can construct a portfolio of multiple assets that will maximize returns for a given level of risk. Likewise, given a desired level of expected return, an investor can construct a portfolio with the lowest possible risk. Portfolio constructions rely on statistical measures such as mean returns, variance, and correlation.
You are given six stocks in this assignment. Based on their historical data, you will first compute summary statistics and variance-covariance matrix for the stocks. You will then draw efficient frontier, identify global minimum variance portfolio, tangent portfolio and simulate portfolios with different weights. You are required to use VBA and advanced Excel features to create a dynamic portfolio model.
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 variance-covariance 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 variance-covariance 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 risk-free interest rate is 0.2% (return per month). Identify the global minimum variance portfolio and the tangent portfolio based on the given risk-free rate on the efficient frontier. Draw the efficient frontier and Capital Market Line.
Extend Questions 3 & 4 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 risk-free rate.
The Capital Market Line connects the risk-free rate with the tangency point (i.e. a portfolio with the highest Sharpe ratio)
The Sharpe ratio is defined as (portfolio return – risk-free rate) / portfolio standard deviation. In the lecture, we use a constant to represent risk-free rate. Different constant values result in different optimal portfolios.
B. Simulating feasible portfolios
C. User interface and layout
D. Comments and structure
Provide instructions and highlight features (other than those required) of your model. Write your comments in the textbox (insert->textbox).
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.
This BAFI3252 – Statistics has been solved by our PHD Experts at My Uni Paper.
© Copyright 2026 My Uni Papers – Student Hustle Made Hassle Free. All rights reserved.