Question: Please use R studio ( R code ) to answer. If you load fpp 3 library, all info for this question is available: Consider Australian
Please use R studio R code to answer. If you load fpp library, all info for this question is available:
Consider Australian tobacco production from the ausproduction tsibble included in the fpp package. The code below will help you isolate the time series for tobacco production from the dataset.
tobacco ausproduction
selectcBeerBricks,Cement,Electricity,Gas
Create a training set that includes all data up to Q of and use data from on as your test set. The following code will help:
productiontrain tobacco
filteryearQuarter
Using the training data, fit the benchmark methods naive mean, seasonal naive, drift to the training set and forecast the periods covered by the test set. Which model performs best based on RMSE, MAE, MAPE and RMSSE?
a
Mean
b
Naive
c
Seasonal naive
d
Drift
For the "winning" forecasting model from the previous questions, calculate the pvalue of the LjungBox test including lags Round your answer to decimals.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
