Calculate daily return and test its stationarity

Assignment Help Applied Statistics
Reference no: EM131930985

Question 1: Stationarity and normality test

XLF is an ETF constructed by SPDR using equities from Financial Select Sector. For this question, you are required to download following equities from Yahoo Finance.

  • XLF
  • BAC
  • C
  • JPM
  • WFC
  • GS

For all the equities above, you need to download 5 year length of daily data and do following tasks:

1. Calculate daily return (either type) and test its stationarity and normality. In the end, you should construct a table which contains three columns (Equity name (character), Stationary result (True or false), normality result (True or false)).

2. Calculate monthly return (either type) and repeat step 1. In the end, what's your observation when comparing the result for tests of daily return and tests of monthly return?

Question 2: Linear regression

For this question, you need to use the data from question 1 and construct a portfolio.

1. Build a linear model using XLF as respond variable and remaining equities as explanatory variables. Denote this model as Model 1.

2. Obtain the summary report from the linear model and explain all variables (α and β). Are they significant?

3. Calculate the correlation between XLF and remaining equities. Select three equities which has the highest correlation and construct another linear model. Denote this model as Model 2.

4. Compare Model 1 and Model 2, which model has better performance?

Question 3: Gradient descent

Use gradient Descent to find local minimum of the function:

f(x) = (x2 + 3x - 5) * cos(x) (1)

To solve question, you need to use following parameters

  • Set α = 0:001 as step size, you can decrease this number if necessary.
  • Define the ∈ value by yourself.

For this question, you need to finish following tasks:

1. Calculate the differential equation df of f(x).

2. Make a plot for the f(x) and set the value range of x as [0, 100]

3. Try at least 10 different starting points between [0, 100]. In the end, you should obtain 20 local minimum values.

4. Add these local minimum values to the plot from Step 2. Additionally, put proper X label, Y label, title and legend to your plot.

5. As you may notice, the alpha value (step size) is critical for gradient descent. When you decrease the alpha value, it may increase the calculation time. When you increase this number, it may shorten the calculation but fail to return you the right estimation. Try three different alpha values and compare the calculation time and accuracy. Which alpha value has the best performance? Write down your comments.

Bonus question: What is the right time interval?

As we mentioned during class. In most case, we assume the return of the equity is normal distributed. However, this case may not be true when using the real data. In this question, we going to investigate more on this using HFT data.

Using SPY.csv to calculate the log return for each minute and set the time window into 15 minutes (9:30 ∼ 9:45, 9:45 ∼ 10:00, ...). For each data sets, are they normal distributed?

Instead of using the fixed time interval, can you think another method to divide this time interval depends on the data? For example, when you using this data set, you may find the returns from 9:30 to 10:00 are apply to normal distribution. However, it may not when using data from 9:30 to 10:01. Therefore, the first time interval is from 9:30 to 10:00, the second time interval starts from 10:00 to another time.

Additional information: To do this task, you need to have a basic data set as bench mark. For example, you can set the initial 5 points as the initial data set.

Please only use R-Studio software and include the bonus question.

Attachment:- Assignment Files.rar

Reference no: EM131930985

Questions Cloud

The difference between mediation and binding arbitration : What is the difference between mediation and binding arbitration?Why might parties in a dispute choose alternative dispute resolution instead of litigating.
What is nafta and write detail information about nafta : What is NAFTA? Detail information about NAFTA. I don't need a summarize of NAFTA. I wanna see that different point on NAFTA in my homework!
What are the data collection methods : The evaluation plan document should address each of the sections described below. Required Sections & DescriptionsPossible PointsProgram Description.
Who is potentially legally liable for the pilots injuries : Is the pilot legally liable for the passenger's injuries and to the FBO for destroying its airplane? Explain.
Calculate daily return and test its stationarity : Question 1: Stationarity and normality test - Calculate daily return (either type) and test its stationarity and normality
Identify the available alternative forms of business : What person or group within the corporation would have the authority to approve this fleet change? Explain.
What is the global experience with exploitation of resources : What is the global experience with the exploitation of natural resources? Have increased oil exports, for example, resulted in increased economic growth?
Discuss concerns about the tests and issues that could arise : Choose some of the tests we have learned about and discuss how you would use each one. Discuss concerns about the tests and issues that could arise.
How to deal with abusive patients : As a medical provider how to deal with abusive patients? How do you provide workplace safety to your employee from these abusive patients?

Reviews

Write a Review

Applied Statistics Questions & Answers

  Hypothesis testing

What assumptions about the number of pedestrians passing the location in an hour are necessary for your hypothesis test to be valid?

  Calculate the maximum reduction in the standard deviation

Calculate the maximum reduction in the standard deviation

  Calculate the expected value, variance, and standard deviati

Calculate the expected value, variance, and standard deviation of the total income

  Determine the impact of social media use on student learning

Research paper examines determine the impact of social media use on student learning.

  Unemployment survey

Find a statistics study on Unemployment and explain the five-step process of the study.

  Statistical studies

Locate the original poll, summarize the poling procedure (background on how information was gathered), the sample surveyed.

  Evaluate the expected value of the total number of sales

Evaluate the expected value of the total number of sales

  Statistic project

Identify sample, population, sampling frame (if applicable), and response rate (if applicable). Describe sampling technique (if applicable) or experimental design

  Simple data analysis and comparison

Write a report on simple data analysis and comparison.

  Analyze the processed data in statistical survey

Analyze the processed data in Statistical survey.

  What is the probability

Find the probability of given case.

  Frequency distribution

Accepting Manipulation or Manipulating

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