Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

question 1. using Rstudio pul u nei generale sing knit titled homework-2.pdf. You are required to: Add your name to the author information in Rmd

image text in transcribed
image text in transcribed
question 1. using Rstudio
pul u nei generale sing knit titled homework-2.pdf. You are required to: Add your name to the author information in Rmd header section Answer the questions below by adding your R code to the code chunk areas provided. Remember to use the course's R Style Guide. Knit the Rmd file to a pdf document. Submit your completed Rmd file and Knited pdf document to Canvas by the due date (no extensions will be granted). Note: Changes to this document, such as due date or otherwise, will be communicated via Canvas. Question 1 1. From Yahoo! Finance, download the Facebook (FB) historical prices from 03/01/2019 to 03/01/2020 using daily frequency to a CSV file named FB.csv. Load the file into a dataframe in your workspace. # Answer 1 2. How many observations does this dataframe contain? What variables does it include? # Answer 2 3. What is the highest closing price in this time frame? On what date did this price occur? # Answer 3 4. Add a column to the dataframe that contains the average price of daily high and low prices. Plot the histogram of this variable. What are the mean and variance of this column? # Answer 4 5. Report the statistical correlation between all the variables in a table, hint: use Google if necessary # Answer 5 6. Plot the closing price vs opening price. Is the plot in accordance with the correlation table? # Answer 6 Add a column to the dataframe that includes log returns. Plot the returns. Do you see a trend? # Answer 7 Question 2 1. Define the following function 16)-{. for the for 2 0 for x = 0 # Answer 2. Plot f(x) for all integers between -10 and 10. * Answer a

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Finance questions

Question

identify current issues relating to equal pay in organisations

Answered: 1 week ago