Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use R Studio To start, a. Make sure you install and library below two packages: - forecast - ggplot 2 b. Import plantpot. x ls
Use R Studio
To start, a. Make sure you install and library below two packages: - forecast - ggplot 2 b. Import plantpot. x ls x to RStudio c. Convert the imported dataset to data frame d. Create time series object of the quantity column from the dataset. Note: Recall the excel file carries data between November 2017 and Q ctober 2022 , so the "start" and "end" arguments inside the ts() function need to be customized to past data. See code hint below: quantityTS =c(2017,11), end =c(2022,10). frequency =12) Then, please proceed to explore answers for below questions. (1) Visualize the time series object using the autoplot f function. What pattern(s) can you tell from the plot? ( 1 point) Note: put your response in the comment starting with "\#" (2) Visualize the autocorrelation of the time series object using the ggAcfO function. Do you see any autocorrelation carried in the data? ( 1 point) Note: put your response in the comment starting with "\#" (3) Partition the time series into training and validation periods, with the validation set containing the last 12 months of data. (1 point) Note: you create the "validation" and "train" objects first. Then, see below code hint for creating the train_data and validation_data objects, assuming the created time series object name is quantityTS in your script. train_data Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started