Professional Documents
Culture Documents
Assignment 2 PAO I 2023
Assignment 2 PAO I 2023
Specific objectives:
Activities
1. Forecast the sales on “EX.1” on the “Assignment 2 data.xlsx” file (25 marks).
a. Plot the sales.
b. Determine the best forecasting method. Justify your answer.
c. Depending on the forecasting method you chose, determine the initial states (level, slope,
seasonality) and the smoothing parameters (alpha, beta) using R.
d. Forecast the sales with the given data, additionally, forecast the sales for the next 5 years.
e. Obtain the residuals and discuss about them. Is this model suitable for the data?
2. Forecast the sales on “EX.2” on the “Assignment 2 data.xlsx” file (25 marks).
a. Plot the sales.
b. Determine the best forecasting method. Justify your answer.
c. Depending on the forecasting method you chose, determine the initial states (level, slope,
seasonality) and the smoothing parameters (alpha, beta) using R.
d. Forecast the sales with the given data, additionally, forecast the sales for the next 5 years.
e. Obtain the residuals and discuss about them. Is this model suitable for the data?
3. Forecast the sales on “EX.3” on the “Assignment 2 data.xlsx” file (25 marks).
a. Plot the passengers.
b. Determine the best forecasting method. Justify your answer.
c. Depending on the forecasting method you chose, determine the initial states (level, slope,
seasonality) and the smoothing parameters (alpha, beta, gamma) using R.
d. Forecast the sales with the given data, additionally, forecast the sales for the next 12 months of
the next year.
e. Obtain the residuals and discuss about them. Is this model suitable for the data?
4. Explain the moving average smoothing technique and apply a moving average smoothing of order
5 to the following dataset, substract the trend and plot both time series, the original and the
smoothed one, and discuss the results (25 marks).
For convention we are going to say that a m order moving average smoothing is given by:
+𝑞
𝑦𝑡 = ∑ 𝑥𝑡+𝑟
𝑟= −𝑞
Where 𝑚 = 2𝑞 + 1.
I have put the first value of the smoothed time series so you can guide yourself!