Write m-function that computes simple returns as formula, MATLAB Programming

Assignment Help:

Your Task: Write an M-function that computes simple returns as formula (1). Use this function to calculate the daily returns for each index. Using MATLAB build-in functions estimate the sample mean, standard deviation, skewness and kurtosis for each index. Your report should include:

1. M-function that computes simple returns as formula (1).

2. Plot of the price levels of the two indices vs the date in one figure. It should include the title, labels and legend (Hint: you might need to use build-in functions such as datetick).

3. Plots of the returns of two indices in one window (including titles, labels and legends). You should use subplot.

4. The proportion of days in which the returns were positive and in which the returns were negative for the two indices. In you MATLAB function for computing the proportion, the input is a vector of returns and the output is the proportion of positive and negative returns.

5. The date and value of: a) Greatest loss , b) Greatest gain, c) Highest price, and d) Lowest price for each index (Hint: you may need to use datestr ).

6. The number of days when the daily returns positive and smaller than 1% for each index?

7. The skewness and kurtosis of daily returns for each index.

8. The proportion of days in which the daily returns were higher/lower than +2:33 σ for each index.


Related Discussions:- Write m-function that computes simple returns as formula

Model of a column loudspeaker system, Use an expression for the far-field r...

Use an expression for the far-field radiation from a plane circular piston to create a more accurate model of a column loudspeaker system - you will need to calculate individual so

Systems modelling and simulation , The purpose of this assignment is to use...

The purpose of this assignment is to use Matlab/Simulink to analyse and simulate a mathematical model of an electromechanical system. This system comprises two component subsystems

Example of referring elements, Example of Referring elements: the vect...

Example of Referring elements: the vector can also be extended. For illustration, the following generates a vector which has three elements. And then referring to the fourth e

Matlab programming, How can I separate a row vector into groups.

How can I separate a row vector into groups.

Matlab project, I would like to ask if its possible to get help programing ...

I would like to ask if its possible to get help programing in matlab. If yes - how can I get help ?

Grid function - plot functions, Grid function: grid shows grid lin...

Grid function: grid shows grid lines on the graph. Called by itself, it is a toggle which turns the grid lines on & off. Alternatively, the commands grid on & grid off can

Write a matlab program to calculate and store, Problem of a projectile bein...

Problem of a projectile being launched at an angle of O at an initial velocity ofv. The equations for the height hand horizontallocation x as functions of time t are as follo

Wavelet transform, Explain how the wavelet transform based on the real bior...

Explain how the wavelet transform based on the real biorthogonal "decomposition" wavelet bior 1.5 (the wavelet shape by typing waveinfo ('bior') at the MATLAB command prompt) can

Calculate the distance between the two cars, Two cars started to move from ...

Two cars started to move from zero position with (φ = 35) as shown. For the next four minutes, do the following: 1. Calculate each car's distance from the zero position (Distanc

Speech recognition using support vector machine, what are data collect th...

what are data collect this topic,how i can create algorithm in mat lab what language support easy to this topic

Write Your Message!

Captcha
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