Answered step by step
Verified Expert Solution
Link Copied!

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
image text in transcribed
image text in transcribed
image text in transcribed
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

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

Understanding Databases Concepts And Practice

Authors: Suzanne W Dietrich

1st Edition

1119827949, 9781119827948

More Books

Students also viewed these Databases questions

Question

2. Do you exercise? yes no

Answered: 1 week ago

Question

Write down the Fourier integral for an even and an odd function.

Answered: 1 week ago

Question

Prepare an ID card of the continent Antarctica?

Answered: 1 week ago

Question

What do you understand by Mendeleev's periodic table

Answered: 1 week ago