Question: Give me the r code to solve this problem Problems A souvenir shop in a beach resort town in Queensland, Australia is attempting to forecast

Give me the r code to solve this problem
Problems
A souvenir shop in a beach resort town in Queensland, Australia is attempting to forecast sales for the 12 months of the year 2002. The forecast will be based on the shop's monthly sales data, in Australian dollars, from 1995 to 2001. This historical sales data is available in the SouvenirSales.csv file.
1)
Create a time plot of monthly sales for the souvenir shop. Provide your screenshot of the plot here. (1 point)
2)
Based on the plot, do you see a trend in the data? If so, what kind of trend do you expect? (1 point)
3)
Based on the plot, do you see a seasonality in the data? If so, how many months are in one season1?(1 point)
Partition the data into training and validation sets, with the validation set containing the last 12 months of data (year 2001). Remember to fit only the training data.
4)
Perform a nave forecast with seasonal mean values (Note: nave with seasonal mean is different from nave forecast). Remember to fit only the training data. (1 point) What is the RMSE for the forecast on the validation data (Note: Look at the RMSE under the test set, not the training set)?(1 point)
5)
Run a regression model with a linear trend and monthly seasonality. Remember to fit only the training data.
a.
What is the estimated trend coefficient? (1 point) What does this mean? (1 point)
b.
What is the RMSE for the forecast on the validation data? Does this model perform better or worse than the nave forecast in Question 4?(1 point)
1 Dont confuse the time series term season, which is the period over which a cyclical pattern repeats (e.g. a year), with the standard English seasons of the year (fall, winter, etc.)
2
6)
Use Holt-Winters exponential smoothing approach to make a prediction. Remember to fit only the training data.
a.
What is the RMSE for the forecast on the validation data? Does this model perform better or worse than the nave forecast in Question 4?(1 point)
b.
Plot the predicted values and actual values of the validation data. Provide your screenshot of the plot here. (1 point)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!