✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
A student uses the following code to fit and evaluate Holt-Winters forecasting on monthly demand data:
from statsmodels.tsa.holtwinters import ExponentialSmoothing
from sklearn.metrics import mean_squared_error
model = ExponentialSmoothing(
data,
trend="add",
seasonal="add",
seasonal_periods=12
).fit()
forecast = model.forecast(6)
rmse = mean_squared_error(data[-6:], forecast) ** 0.5
Assume data contains 60 monthly observations, and the objective is to evaluate the model on the final six months.
What is the most serious methodological problem?