Competency Employ advanced data structures. Scenario You are interested in building a more sophisticated set of examples for your code repository to support the implementation of grouping, filtering,...

1 answer below »

Competency


Employ advanced data structures.


Scenario


You are interested in building a more sophisticated set of examples for your code repository to support the implementation of grouping, filtering, and index based techniques upon frame data structures. In the interest of supporting extended modeling in the area of financial analytics, you are interested in creating examples of advanced techniques to perform side-by-side comparisons between the stock-based examples without having to manipulate the entire data structure. In this case you will apply an advanced grouping technique in order to reference stocks between each other without having to physically reconstruct the module.


Instructions


Using Python, take theKaggle GAFA Stock prices. You will have to read in the four stocks and associated attributes into separate columns for each stock from a single data frame. Create an output file to be read in read in by R.


Using R, use the Lattice or ggplot. Create plots of the stocks side-by-side. Additionally, calculate the mean and standard deviation of each stock between Amazon, Facebook, and Apple.


Your specific deliverables areyour source codes in a plain text file, including plots of each stock price (all in the same plot), and means and standard deviation of the stock.

Answered Same DaySep 18, 2021

Answer To: Competency Employ advanced data structures. Scenario You are interested in building a more...

Pooja answered on Sep 18 2021
147 Votes
Code:
Book1 <- read_excel("C:/Users/HP/Desktop/Book1.xlsx")
View(Book1)
boxplot(close~Name,data=B
ook1, main="boxplot", xlab="Name", ylab="Close Price")
library(psych)
describe.by(Book1$close, Book1$Name)
Output:
Descriptive statistics by group
group: AAPL
vars n mean sd median trimmed mad min max range skew kurtosis se
X1 1 1259 109.07 30.56 109.01 107.82 27.9 55.79 179.26...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here