Consider monthly sales and advertising data for an automotive parts company (data set advert ).
a. Plot the data using autoplot . Why is it useful to set facets=TRUE ?
b. Fit a standard regression model yt= a + bxt+ ηtwhere ytdenotes sales and xtdenotes advertising using the tslm() function.
c. Show that the residuals have signicant autocorrelation.
d. What dierence does it make you use the Arima function instead:
e. Ret the model using auto.arima() . How much dierence does the error model make to the estimated parameters? What ARIMA model for the errors is selected?
f. Check the residuals of the tted model.
g. Assuming the advertising budget for the next six months is exactly 10 units per month, produce and plot sales forecasts with prediction intervals for the next six months.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here