Compute the portfolio maximizing the sharpe ratio

Assignment Help MATLAB Programming
Reference no: EM133414584

Question 1
Briefly introduce the theoretical framework and the computational approach.
You have a budget of £ 100,000 to invest. By investing on the following:
i. Standard & Poor 500
ii. Nikkei 225
iii. NASDAQ Composite Index
iv. NASDAQ 100 index
v. Down Jones Industrial Average
vi. Coinbase Ethereum
vii. Coinbase Bitcoin
find the asset allocation for the optimal portfolio, i.e. efficient and maximizing the Sharpe Ratio, within the mean-variance Markowitz approach.

Use daily data on prices on a time window starting the 2nd of February 2021 and ending the 27th March 2023.
Find also the risk and gross return (without transaction costs) for the optimal portfolio. Finally, compute 15 efficient portfolios and plot the efficient frontier to be compared with the profile of the Sharpe ratios.
Find the budget allocation for all the efficient portfolios and the number of shares for the optimal portfolio.
Automate the entire algorithm by using a commented Matlab Live file and automate the procedure to produce a figure comparing the efficient frontier and the corresponding Sharpe ratio profile.
Comment each step of the procedure as well as the results. Add also short comments regarding each Matlab command used for coding.
Propose, and possibly implement, possible improvements to the in-class approach.
Hint (on coding):
• Download daily prices from the database FRED for the given indices (use a cycle to download the time series all at once) in the given time window.
• Convert the prices into returns.
• Create a Portfolio object in which the tickers for the different indices are collected.
• Compute the proxies for risk and return using the mean-variance Markowitz approach.
• Set the constraint for a long, fully-invested portfolio
• Compute the portfolio maximizing the Sharpe ratio
• Extrapolate risk and return of the efficient portfolio maximizing the Sharpe ratio (optimal portfolio)
• Plot the efficient frontier by optimizing 15 portfolios together with the optimal portfolio
• Recover the weights for the efficient portfolios and multiply by the budget.
• Recover the weights for the optimal portfolio, multiply by the budget and divide by the current prices of the securities.
• Create a function to compare the efficient frontier and the profile for the Sharpe ratio and call this function into the code to create the figure that compares the two profile (add markers for the portfolios, the title for each of the two subplot and x-labels.

Question 2

Briefly introduce the theoretical framework and the computational approach.

Use the Monte Carlo simulation technique to evaluate the 30 days 5% VaR and the 30 days 5% CvaR (or Expected Shortfall) for S&P500 and the Coinbase Bitcoin by using the data of the last 2 years up to today (use 10000 simulations).
Show the simulated prices and returns.

Comments each step of the procedure as well as the results. Add also short comments regarding each Matlab command used for coding.
Propose, and possibly implement, improvements to the in-class approach.

Hint (on coding):
• Download daily prices from the database FRED.
• Set the number of replications and the number of simulated days.
• Evaluate continuously compounded returns, mean and standard deviation.
• Code the Geometric Brownian Motion, trying to lower the computational costs.
• Evaluate the 5% VaR.
• Plot the histogram of returns by showing also the VaR
• Use the distribution Fitter App to fit a normal distribution of the frequency of returns.
• Generate the code that is fitting the normal distribution on the data.
• Save the fitted normal distribution.
• Invert the cumulative of the fitted normal distribution to compute the CvaR
• Comment on possible improvements

 

Reference no: EM133414584

Questions Cloud

Expansionary or contractionary monetary policy : Should the FOMC pursue expansionary or contractionary monetary policy? Make sure you provide reasons for your advice
Identify the six hearsay exceptions : Identify the six hearsay exceptions listed in Federal Rule 804 that are only available when a declarant is unavailable.
Brutal climate of late capitalism : Describe some of the ways that the brutal climate of late capitalism in the USA contributes to crime and victimization.
Common type of motivation for both men and women homicides : What is likely to trigger a female homicide of her intimate partner? What is the most common type of motivation for both men's and women's homicides?
Compute the portfolio maximizing the sharpe ratio : Create a Portfolio object in which the tickers for the different indices are collected. • Compute the proxies for risk and return using the mean-variance Markow
Hate crime perpetrated by members of extremist movement : Describe at least one example of a hate crime perpetrated by members of this extremist movement.
Find the budget allocation for all the efficient portfolios : find the asset allocation for the optimal portfolio, i.e. efficient and maximizing the Sharpe Ratio, within the mean-variance Markowitz approach
Discovering intended target for these weapons : How many agencies do you think will ultimately be involved with discovering the intended target for these weapons?
What can citizens do to decrease : What can citizens do to decrease their chances of being a victim of a robbery? Do you employ any of these techniques?

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Provide matlab code as per the research paper

Provide MATLAB code as per the research paper. Research paper - Decimeter-Level Localization with a Single WiFi Access Point

  Create a row vector for theta with the values zero and pi

All points with coordinates x = r cos (θ) and y = r sin (θ), where r is a constant, lie on a circle with radius r, i.e.  satisfy the equation x2 + y2  = r2.  Create a row vector for θ with the values 0, π/4 , π/2 , 3π/4, π, and 5π/4.

  Integration and random numbers

assemble 1,000 bolt + hole combinations. The bolts have a mean diameter of 1.000 cm, normally distributed with standard deviation of 0.010 cm. The holes have a mean diameter of 1.030 cm, normally distributed with standard deviation of 0.015 cm.

  Make a three dimensional matrix

It will be better if you can make a three dimensional matrix (365, 40, 135*129) so that we can get wet and dry conditions

  Multimedia write the code in matlab use of publicly code

MultimediA You need to write the code yourself in Matlab Use of publically available code (e.g., from online sources) is not permitted

  Evaluate the maximum value of the time constant

Evaluate the maximum value of the time constant - Compute the coding efficiency of above Huffman code and Compute the average length of codewords

  Calculate the response of the system to a unit step input

Use the Matlab command conv to calculate the response of the system to a unit step input, x[n]=u[n]. Consider . Show what you type into the Matlab command window. Also, submit a plot of the output.

  Frequency response analysis and root locus pid design

Obtain the step response timed output data from an instrumented, linear and time invariant open loop control system and Draw a block diagram of the measured

  Approximate the solution to the above initial value problem

dydt te3t - 2y 0 le t le 1 y0 0approximate the solution to the above initial value problem usinga modified-euler

  Compare filter with that given by matlab function bilinear

Compare your filter with that given by the Matlab function ‘bilinear' for the same conditions. Manually design a second order digital filter, with the damping ratio given in the table.

  Write a function called halfsum

Write a function called small_elements that takes as input an array named X that is a matrix or a vector. The function identifies those elements of X that are smaller than the product of their two indexes

  Multidisciplinary design and engineering optimisation

Design optimisation problem from the attached list of design problems. Write a report with no more than 6500 words and no more than 15 A4 pages in the main

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd