statsmodels.tsa.vector_ar.vecm.VECMResults.预测

VECMResults.predict(steps=5, alpha=None, exog_fc=None, exog_coint_fc=None)[source]

计算时间序列的未来值。

Parameters:
stepsint

预测范围。

alphafloat, 0 < alpha < 1 or None

如果为 None,则仅计算点预测。 如果为浮点数,则还会计算置信区间。在这种情况下, 参数表示置信水平。

exogndarray (steps x self.exog.shape[1])

如果 self.exog 不为 None,则关于 exog 未来值的信息必须通过此参数传递。ndarray 在其第一个维度上可能更大。在这种情况下,只会考虑前 steps 行。

Returns:
forecast - ndarray (steps x neqs) or three ndarrays

在点预测的情况下:返回的ndarray的每一行表示对neqs变量在特定时期的预测。第一行(索引[0])是下一期的预测,最后一行(索引[steps-1])是提前steps期的预测。


Last update: Oct 16, 2024