These questions use R. Any help is greatly appreciated and
please provide the relevant code as well. Thank you.
Show transcribed image text This assignment is best done in R. All of the functions and the data you need are in the R package "tpp which can be installed using the usual methods 1. Data set baoks contains the daily sales of paperback and hardcover books at the same store. The task is to forecast the next four days' sales for paperback and hardcover books (data set books). a. Plot the series and discuss the main features of the data b. Use simple exponential smoothing with the ssafunction (setting initial "simple") and explore different values of α for the paperback series. Record the within-sample SSE for the one-step forecasts. Plot SSE against α and find which value of α works best. What is the effect of α on the forecasts? c. Now let sa select the optimal value of a. Use this value to generate forecasts for the next four days. Compare your results with 2 d. Repeat but with initialoptinal". How much difference does an optimal initial evel make? 2. Apply Holt's lincar method to the paperback and hardback series and compute four-day forecasts in cach case. Compare the SSE measures of Holt's method for the two series to those of simple exponential smoothing in the previous question. Discuss the merits of the two forecasting methods for these data sets. a. b. Compare the forecasts for the two series using both methods. Which do you think is best? 3. For this exercise, use the monthly Australian short-term overseas visitors data, May 1985- April 2005. (Data set: visitors.) a. Make a time plot of your data and describe the main features of the scries b. Forecast the next two years using Holt-Winters' multiplicative method. c. Why is multiplicative scasonality necessary here? d. Experiment with making the trend exponential and/or damped. e. Compare the RMSE of the one-step forecasts from the various methods. Which do you prefer?
This assignment is best done in R. All of the functions and the data you need are in the R package "tpp which can be installed using the usual methods 1. Data set baoks contains the daily sales of paperback and hardcover books at the same store. The task is to forecast the next four days' sales for paperback and hardcover books (data set books). a. Plot the series and discuss the main features of the data b. Use simple exponential smoothing with the ssafunction (setting initial "simple") and explore different values of α for the paperback series. Record the within-sample SSE for the one-step forecasts. Plot SSE against α and find which value of α works best. What is the effect of α on the forecasts? c. Now let sa select the optimal value of a. Use this value to generate forecasts for the next four days. Compare your results with 2 d. Repeat but with initialoptinal". How much difference does an optimal initial evel make? 2. Apply Holt's lincar method to the paperback and hardback series and compute four-day forecasts in cach case. Compare the SSE measures of Holt's method for the two series to those of simple exponential smoothing in the previous question. Discuss the merits of the two forecasting methods for these data sets. a. b. Compare the forecasts for the two series using both methods. Which do you think is best? 3. For this exercise, use the monthly Australian short-term overseas visitors data, May 1985- April 2005. (Data set: visitors.) a. Make a time plot of your data and describe the main features of the scries b. Forecast the next two years using Holt-Winters' multiplicative method. c. Why is multiplicative scasonality necessary here? d. Experiment with making the trend exponential and/or damped. e. Compare the RMSE of the one-step forecasts from the various methods. Which do you prefer?