Answered step by step
Verified Expert Solution
Question
1 Approved Answer
INDR 3 7 2 - Spring 2 0 2 4 Fikri Karaesmen HOMEWORK 1 , Due Date: March 1 8 , 2 0 2 4
INDR Spring Fikri Karaesmen
HOMEWORK Due Date: March
Please work in groups of two or individually and submit one file
for each group with both names.
For this homework please perform all computations in a python notebook. Please dont use forecasting packages or functions, you are expected to implement your own forecasts. Please submit one python
notebook file that clearly shows all the computations.
In addition to the the notebook, submit a short typed summary
report that includes the results error tables, prediction intervals etc.
of all exercises. Also add a general assessment of the methods which
method is the best, which should be avoided etc. The report is
part of the overall grade and must be written and formatted
clearly.
Exercises
Forecasting sales of Renault vehicles. The data file contains the monthly
domestic sales of total monthly sales of Renault brand cars in Turkey
from the beginning of to the end of found in the blackboard
page
a Plot the data and visually assess whether there is significant trend
and seasonality.
b To obtain a benchmark for errors, implement the following naive
forecasts i Ft Dt for t and ii Ft Dt for t
Report the Mean Absolute Error MAE Mean Absolute Percentage Error MAPE and Root Mean Squared Error RMSE
of these forecasts for years until the end of These error
measures constitute a simple benchmark for all other approaches
ie hopefully you will obtain lower errors by more sophisticated
methods Note that different methods require different initialization periods. To be consistent, we start forecasting as early
as possible in but start comparing the errors from January
onwards.
c Use a period moving average to forecast the one monthahead
monthly demand. Report the MAE, MAPE and RMSE of the
forecast for years through Report percent prediction intervals using the RMSE estimated in years to
for the onemonth ahead forecasts for year
d Comment on the residual diagnostics ie independence and normality of residuals What is the drawback of this forecast with
respect to this data?
e Use exponential smoothing to forecast the one period ahead monthly
demand. Experiment with at least different smoothing constants alpha and for the best smoothing constant,
report the MAE, MAPE and RMSE of the forecast for years
through Report percent prediction intervals using the
RMSE estimated in years to for the onemonth ahead
forecasts for How do these compare with MA forecasts?
f Use Double Exponential Smoothing to forecast the one period
ahead monthly demand. Experiment with different values of the
smoothing constants alpha beta and
for the best smoothing constants report the MAE, MAPE and
RMSE of the forecast for years through Report
percent prediction intervals using the RMSE estimated in years
to for the onemonth ahead forecasts for
g Comment on the resdual diagnostics ie independence and normality of residuals Comment on the comparison to the previous
forecasts? What is the drawback of this forecast with respect to
this data?
h In part f you must have found the smoothing constants, alpha
and
beta
that leads to the best error performance. Use alpha
and beta
you
found in part f to find month and month ahead forecasts for
year Report the MAE, MAPE and RMSE of these forecasts
for and comment on the differences.
i To take into account the effect of seasonality, perform the following data transformation: Ut Dt Dt Plot the transformed series Ut and visually verify whether seasonality is eliminated. Use simple exponential smoothing to find a forecast Gt
for Ut make sure to test different values of the smoothing parameter to minimize the error To obtain a forecast Ft for
Dt
you can then consider Ft Gt Dt or a smoothed version Ft Gt gamma Dtgamma Ft for a smoothing constant
gamma For the best onemonth ahead forecast, report the
MAE, MAPE and RMSE of the forecast for years through
j Your homework report should include a table similar to the one
below.
Method Spec. RMSE MAPE
Benchmark
Benchmark
MA
ES
DES
Seasonal
Note that the model specification for exponential smoothing is:
alpha
beta
Forecasting sales of domestic sales of beer. The data file contains the
total monthly sales of beer in Turkey from the beginning of to
the end of found in the blackboard page
a Plot the data and visually assess whether there is significant trend
and seasonality.
b To obtain a benchmark for errors, implement the following naive
forecasts i Ft Dt for t and ii Ft Dt for t
Report the Mean Absolute Error MAE
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started