Let us worry about your assignment instead!

We Helped With This R Language Programming Homework: Have A Similar One?

SOLVED
CategoryProgramming
SubjectR | R Studio
DifficultyUndergraduate
StatusSolved
More InfoApplied Statistics Homework Help
246011

Short Assignment Requirements

Please let me know the approximate cost. All questions plus the bonus should be completed.

Assignment Description

FE515A4

Due: April 9th, 2018 11:59 PM

Question 1: Stationarity and normality test (20 Points)

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(Ture 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 (40 Points)

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 equitiesas 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 (40 Points)

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, youshould 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? (30 Points)

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.

    (10 Points)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?

    (20 Points)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.

Frequently Asked Questions

Is it free to get my assignment evaluated?

Yes. No hidden fees. You pay for the solution only, and all the explanations about how to run it are included in the price. It takes up to 24 hours to get a quote from an expert. In some cases, we can help you faster if an expert is available, but you should always order in advance to avoid the risks. You can place a new order here.

How much does it cost?

The cost depends on many factors: how far away the deadline is, how hard/big the task is, if it is code only or a report, etc. We try to give rough estimates here, but it is just for orientation (in USD):

Regular homework$20 - $150
Advanced homework$100 - $300
Group project or a report$200 - $500
Mid-term or final project$200 - $800
Live exam help$100 - $300
Full thesis$1000 - $3000

How do I pay?

Credit card or PayPal. You don't need to create/have a Payal account in order to pay by a credit card. Paypal offers you "buyer's protection" in case of any issues.

Why do I need to pay in advance?

We have no way to request money after we send you the solution. PayPal works as a middleman, which protects you in case of any disputes, so you should feel safe paying using PayPal.

Do you do essays?

No, unless it is a data analysis essay or report. This is because essays are very personal and it is easy to see when they are written by another person. This is not the case with math and programming.

Why there are no discounts?

It is because we don't want to lie - in such services no discount can be set in advance because we set the price knowing that there is a discount. For example, if we wanted to ask for $100, we could tell that the price is $200 and because you are special, we can do a 50% discount. It is the way all scam websites operate. We set honest prices instead, so there is no need for fake discounts.

Do you do live tutoring?

No, it is simply not how we operate. How often do you meet a great programmer who is also a great speaker? Rarely. It is why we encourage our experts to write down explanations instead of having a live call. It is often enough to get you started - analyzing and running the solutions is a big part of learning.

What happens if I am not satisfied with the solution?

Another expert will review the task, and if your claim is reasonable - we refund the payment and often block the freelancer from our platform. Because we are so harsh with our experts - the ones working with us are very trustworthy to deliver high-quality assignment solutions on time.

Customer Feedback

"Thanks for explanations after the assignment was already completed... Emily is such a nice tutor! "

Order #13073

Find Us On

soc fb soc insta


Paypal supported