# 载入模块和数据 import numpy as np import statsmodels.api as sm spector_data = sm.datasets.spector.load() spector_data.exog = sm.add_constant(spector_data.exog, prepend=False) # 汇报拟合OLS模型结果 mod = ...
In the statsmodels tutorial, the out-of-sample forecast values of "Simple Exponential Smoothing" are wrong. In the tutorial, three different fitted models is used to forecast out-of-sample values. In ...