Solve the following problem in R and print out the commands and outputs.
3. The data set fancy (you need to library the fpp package to get the dataset) concern the monthly sales figures of a shop which opened in January 1987 and sells gifts, souvenirs, and novelties. The sales volume varies with the seasonal population of tourists.
(a) Produce a time plot of the data and describe the patterns in the graph. Identify any unusual or unexpected fluctuations in the time series.
(b) Use R function tslm to fit a regression model to the logarithms of these sales data with a linear trend and seasonal component.
(c) Use multiple regression with trend variable and seasonal dummy variables to redo the regression as shown in the lecture example. Check to see that you obtain the same results as tslm.
Solve the following problem in R and print out the commands and outputs. 3. The data...
olve the following problem in R and print out the commands and outputs. 3. The data set fancy (you need to library the fpp package to get the dataset) concern the monthly sales figures of a shop which opened in January 1987 and sells gifts, souvenirs, and novelties. The sales volume varies with the seasonal population of tourists. (a) Produce a time plot of the data and describe the patterns in the graph. Identify any unusual or unexpected fluctuations in...
This question requires using Rstudio. This is following commands to install and import data into R: > install.packages("ISLR") > library(ISLR) > data(Wage) The required data installed and imported, now this is description of the data: This dataset contains economic and demographic data for 3000 individuals living in the mid-Atlantic region. For each of the 3000 individuals, the following 11 variables are recorded: year: Year that wage information was recorded age: Age of worker maritl: A factor with levels 1. Never...
Which one of the following is a good candidate to forecast the cyclical component for the future? HES SES WES All of the above In OLS, deviations of predicted values from actual values are called Residuals Population errors Random deviations All of the above When computing the MAt, _________ is(are) removed Seasonality and irregular fluctuations Seasonality, irregular fluctuations, and cyclical movements Seasonality and cyclical movements Irregular fluctuations and cyclical movements A common source of unusual coefficient estimate signs and statistical...