1. a) Create a Matlab code modeling trajectories of a constant elasticity of variance process dXt = 0.03Xtdt+0.2XtadWt where a=0.8. Process starts at 100. Consider a period T=1 year with 250 steps per...

This is a finance related assignment which needs to be done in matlab and excel


1. a) Create a Matlab code modeling trajectories of a constant elasticity of variance process dXt = 0.03Xtdt+0.2XtadWt where a=0.8. Process starts at 100. Consider a period T=1 year with 250 steps per trajectory and 10,000 trajectories. Plot the trajectories and submit the printout. b) Assume that interest rate is 3% and a non-dividend paying stock in a risk neutral world follows such process. Write a Matlab code calculating price C of a European call maturing in 1 year with strike 49 with 100,000 trajectories. How long does the code runs on your computer. Write the number of seconds and milliseconds. 2. Explain the difference between VaR and CVaR. (CVaR is also called Expected Shortfall, Average Value at Risk or AVaR, Expected Tail Loss or ETL.) 3. On March 31, 2021 portfolio had 100,000 dollars in cash and was long 500 shares of MSFT, long 300 Shares of AAPL and short 100 shares of SPY at a closing prices on that day. Look for closing prices at Yahoo finance. a) What is the Net Asset Value (NAV) of portfolio on the close of March 31, 2021, i.e. value of money left if portfolio is liquidated. b) What is the gross and net leverage of portfolio on close of March 31, 2021? (See leverage explanation example at the end of the homework, on page 2) c) Using historical data from Yahoo and assuming cash earned 1% annually with daily compounding, simulate in spreadsheet portfolio NAV and leverage from January 4, 2010 to March 31, 2021. (Calculate portfolio NAV and portfolio leverage for every business day. Use split and dividend adjusted price, adj. close, last column on Yahoo.) 4. For portfolio described in the problem 3 make a spreadsheet: download data from January 4, 2010 to March 31, 2021. For each day from June 1, 2010 to March 31, 2021, calculate 90 days rolling volatility of portfolio for 1day and annualized: AnnualizedVol=1dayVol * sqrt(250) Print a plot of AnnualizedVol, 1dayVol, 5. For portfolio described in the problem 4 based on rolling 1 day volatility calculate 95% VaR for each day from June 1, 2010 to March 31, 2021. VaR=1.645 * 1dayVol. Print a plot of VaR as a function of time. Leverage explanation and example. Portfolio: Long 1000 Shares AAPL with price 171.00 Long1000 shares of IBM with price 154.00 Short 500 Shares of SPY with price 264.00 and have Cash 150,000 USD (that includes cash received from short sale). NAV of Portfolio is the value of portfolio if it is liquidated: Longs sold, Shorts bought back. NAV=1000*171 + 1000*154 - 500*264 + 150,000 = 343,000 GROSS LEVERAGE is calculated as: (VALUE OF Long Stocks + ABS(VALUE of Short Stocks) / NAV (1000*171 + 1000*154 + Abs(- 500*264) )/343,000 = 1.33 = 133% NET LEVERAGE is calculated as: (VALUE OF Long Stocks - ABS(VALUE of Short Stocks) / NAV (1000*171 + 1000*154 - Abs(- 500*264) )/343,000 = 0.56 = 56%
Apr 09, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here