AEM4060/6061 Risk Simulation and Optimization


Hello, if you have any need, please feel free to consult us, this is my wechat: wx91due


AEM4060/6061 Risk Simulation and Optimization
Assignment 2
Due April 16, 2025

Directions:

(1) Submission: Please answer each question in a separate document. Canvas will accept 1 PDF document for each question. Do not copy and paste the questions in your submissions (just submit your answers). You do not need to submit your Excel workbook. Do not copy paste the entire excel calculation into your answers.

(2) All tables and graphs etc. should be cut and paste- do not include a screenshot of the entire screen, as this makes it hard to see the graph. If the question asks for calculated values using Excel functions, pasted images of Excel worksheets are acceptable.

(3) Make sure you show/explain your work including any assumptions you might have made. You can use the assignment worksheet provided.

(4) When you are building the spreadsheet models use a low number of iterations. When you are ready to report results set iterations to at least 5000.

(5) ED discussion will be opened up in CANVAS. Also, we will have at least 1 ZOOM tutorial to answer any questions.

(6) No extensions will be permitted unless for emergencies. We will not respond to any queries after 5pm on April 19. For all extension requests, please email both myself (cgt6) and the TA (jt734) so we can keep track of all waivers for late submission.

This assignment has 3 main features. The worksheet has daily data from S&P500, NASDAQ and DOW from 01/01/2018 to 04/02/2025. The first part is to use this data to compute annualized returns and volatility. These are then used in the 2nd part to compute correlated time series in the construction of a portfolio, assuming that each index can be sold as an ETF (exchange traded fund that tracks the index and is tradeable as with any stock). Three portfolios are considered.

The third part follows from the 1st and 2nd by assuming that portfolio 2 can be purchased as a mutual fund. You will then build a retirement model that invests 10% of after tax income in this mutual fund for 40 years, after which you plan to retire. All three parts are connected so the second part will rely on the 1st part and the 3rd part will rely on the 2nd part.

1. The Stock Indices tab holds weekly data for S&P500, NASDAQ and DOW from 01/01/2018 to 04/02/2025. Suppose that you are a portfolio manager and you wish to create an ETF or mutual fund with a value indexed to a portfolio of the three main indices.

a. Compute the log rate of return for each index and report the mean daily and annualized return and volatility for each. [Provide the Mean daily return, mean daily volatility (standard deviation), annualized return and annualized volatility. ] b. Using the Correlation analysis in Excel DATA/ Data Analysis, provide the correlation matrix for the rate of change between the three indices.
c. Using ‘Define Repeated Correlation’ in @RISK and the correlations obtained in 1(b) create 3 correlated random walks (arithmetic Brownian motion) assuming initial values for S&P500=57.702, NASDAQ=1181.9622 and DOW=428.0172

The following arithmetic processes should be used


d. Assume these values represent the current values of ETF on the indices that you can purchase and combine into a portfolio. You want to investigate 3 portfolio alternatives.
i. Portfolio 1 is a naïve portfolio allocating 1/3 to each ETF. Using a Mean-Variance model this portfolio has an expected return of 10.44% and portfolio standard deviation of 0.213944
ii. Portfolio 2 is a mean-variance efficient portfolio that includes 81.78% S&P500 , 0% NASDAQ and 18.22% DOW and has an expected return of 10% with a standard deviation of 0.19706
iii. Portfolio 3 is a mean-variance efficient portfolio comprised of 8.399% S&P500, 91.6% NASDAQ and 0% DOW with an expected return of 13% and portfolio standard deviation of 0.23186.
iv. NOTE: We have not discussed mean-variance efficiency in class but on the Markowitz tab I have included a ‘quadratic program’ that can be run using SOLVER in Excel by changing the cell in G15 to a desired return. The matrix in cells A1 to D4 is the covariance matrix for the returns. The objective of a quadratic program is to find the best combination of stocks that minimizes risk (variance in cell B9) while achieving the targeted return (in G15). I am making this available for interest only. You do not have to use this, or even look at it to answer this question.

MODEL 1: Build a 40-year annual simulation model for each of the three portfolios using the correlated distributions. Here you will use the correlated arithmetic Brownian motions in 1(c) which is more appropriate for portfolio analysis when correlations are explicitly added to the model . The value of this portfolio for each year is calculated as follows:


(HINT: to calculate the value of the portfolio in each of the 40 years you can use the
Sumproduct Excel function like =SUMPRODUCT($B$12:$D$12,B21:D21) where (in my case) $B$12:$D$12 are the fixed α portfolio weights, and the B21:D21 are the floating values of xt . Or you can simply add =  directly into each cell for each year (again making sure the α are fixed.

MODEL 2: An alternative approach (based on Ito’s Lemma) is to use a geometric Brownian motion using the portfolio means and standard deviations provided in d(i), d(ii) and d(iii). This model is of the form

In addition to the portfolio returns simulated in 1(d), build a Monte Carlo model using this gBm.

For each portfolio complete the following Table for

v. Initial value of portfolio at t=0 (V0) assuming initial values for S&P500=57.702, NASDAQ=181.9622 and DOW=428.0172
vi. The future value of each portfolio using 

vii. The mean correlated portfolio value in year 40 (Model 1)
viii. Standard deviation of correlated portfolio in year 40 (Model 1)
ix. The mean gBm portfolio value in Year 40. (Model 2)
x. Standard deviation of gBm portfolio in year 40. (Model 2)
xi. Average annual Monte Carlo % return on each correlated portfolio. (Model 1)
Use arithmetic  . (Hint: for xi to xiv create a returns column for Model 1 and Model 2. Add all to output. For each year use RiskMean() and RiskStdDev(). Take average of each using Excel Average())
xii. Standard deviation of Monte Carlo annual returns on each correlated portfolio (Model 1)
xiii. Average annual Monte Carlo % return on each gBm portfolio. (Model 2). Use arithmetic 
xiv. Standard deviation of Monte Carlo annual return on each gBm portfolio (Model 2)

Place answers in the Table below



Portfolio 1
Portfolio 2
Portfolio 3
Target return
provided
10.44%
10%
13%
Target Std Dev
provided
20.3944%
19.706%
23.19%
Initial value of portfolio
Part v



Future value of portfolio at t=40
Part vi



Mean Year 40 value
Model 1, vii



Year 40 Std Deviation
Model 1, viii



Mean Year 40 value
Model 2, ix



Year 40 Std Deviation
Model 2, x



Monte Carlo mean Return
Model 1, xi



Monte Carlo Return Std Dev
Model 1, xii



Monte Carlo mean Return
Model 2, xiii



Monte Carlo Return Std Dev
Model 2, xiv



e. In general terms how close do your simulated portfolio returns and standard deviations correspond to the targeted returns and standard deviations?
f. In general, how do the portfolio values in Year 40 compare with V40 ?
g. Provide an overlay of the probability distributions from Model 1 and Model 2 for Year 40, Portfolio 3. Comment on how the distributions resemble each other in terms of mean, standard deviation, and skewness.
h. Based on the two models in (d) and (e) answer the following questions.
i. Using output from Year 40 in model (d), use the RiskCorrel() function and record
1. the correlation matrices for the ETF prices and
2. the log (Ln()) change in prices between year 40 and year 39 and report these in the following Table.


Correlation Actual Prices

S&P500
NASDAQ
DOW
S&P500
1


NASDAQ

1

DOW


1





Correlation Percent change
S&P500
1


NASDAQ

1

DOW


1

ii. Comment on the accuracy of simulated correlations on percentage change to actual correlations.
iii. Provide a cross-tab figure between S&P500 and DOW for year 40.

2. You cannot decide upon which of the portfolio mutual funds to invest in and decide to build a Monte Carlo simulation to investigate risk and return tradeoffs. Use the gBm model 2 above for your simulations. 

You decide that you will use the 10% rule which sets aside 10% of your after-tax income each year for investment. Under the 10% rule if the price of the portfolio increases you buy less and if the price falls you buy more. Since the portfolio is sold as a mutual fund it can be purchased in fractions. Your starting income is $90,000 and you expect that the income will grow on average by 3.5%/year with a standard deviation of 1.25% (normally distributed). You start earning income at t=0, but your first investment takes place at t=1. The tax rate is 20% so net income willbe reduced by 20%. You will then invest 10% of the remainder in the portfolio each year. The  value of the portfolio in any year will be the accumulated number of shares times the market value of the portfolio. You plan to retire in 40 years.

a. What is the mean (expected) value of your portfolio after 40 years?
b. What is the standard deviation of the portfolio after 40 years?
c. What is the probability that your portfolio exceeds $1 million? (Hint: You can read the probabilities directly from output graph, or you can use the RiskXtoP(output cell, reference value) or 1-RiskXtoP(output cell, reference value) .)
d. What is the probability that the portfolio will be less than $500,000?
e. What is the probability that the portfolio will be greater than $2 million?
f. What is the probability that the portfolio will fall between $500,000 and $2 million?
g. What is the maximum value of the portfolio?
h. What is the minimum value of the portfolio?


Portfolio 1
Portfolio 2
Portfolio 3
Mean retirement



Std Dev retirement



Prob(x>1,000,000)



Prob(x<500000)



Prob(x>2000000)



Prob(500000<x<2000000)



Max



Min



i. Based on the results in (h) what portfolio would you invest in and briefly explain why.

3. A question was asked in class about the stability of volatility used in Monte Carlo analysis. I responded by stating that the longer a time series of returns the more volatility events are captured. In financial economics this is often referred to as the ‘stochastic volatility’ problem… when the volatility is in itself volatile. For example, The (CBOT) VIX index value quotes the expected annualized change in the S&P 500 index over the following 30 days, as computed from options-based theory and current options-market data. Example events that contribute to stochastic volatility include trade wars, COVID-19, the Ukraine-Russia war and other economically destabilizing events.

Return to the original Stock Indices sheet where you have already computed the daily change in index (ETF) prices. Using the EXCEL STDEV.S(Range) function compute rolling 30 day standard deviations. The first calculated standard deviation would include days 1-30, and then 2-31, 3-33 and so on. ( For example in my solution the percentage change for S&P500 is in column E (yours may be different). I then have E4:E33 as the 30-day range starting day 1, i.e. =STDEV.S(E4:E33)*SQRT(250). This can be copied down to the last day (4/2/25). Repeat for the other 2 indices. In other words, the k-days rolling average of volatility is calculated by calculating the (sample) standard deviation of the last 30 days of % change in index values, and multiplied by SQRT(250) to annualize. )

a. Plot all three indices on a single line graph.

b. Compute the average annualized 30-day volatility for each index.

c. Compute the standard deviation across all annualized 30-day rolling average volatilities (use STDEV.P because of large sample size).

d. Using your answers to a), b) and c) comment on what you observe about stochastic volatility, including a comparison of the mean volatility computed here and the annualized volatility in question 1(a).

发表评论

电子邮件地址不会被公开。 必填项已用*标注