[英]MA model is always giving same output in time series(python)
Does MA model can be used for prediction? MA模型可以用于预测吗? In time series analysis, my ARIMA order is (0,1,7),which indicates that it is a MA model, unfortunately I am always getting a straight line for my prediction.在时间序列分析中,我的 ARIMA 顺序是 (0,1,7),这表明它是一个 MA 模型,不幸的是我的预测总是得到一条直线。 Only first 7 values are different, as the lag is 7 here.只有前 7 个值不同,因为这里的滞后是 7。 And after that it predicts the same value.之后它预测相同的值。
my question is " is it normal that the model is predicting like that or there is a solution to overcome this problem. I would be grateful if anyone could help.我的问题是“模型像这样预测是否正常,或者有解决这个问题的解决方案。如果有人能提供帮助,我将不胜感激。
Yes, for a simple MA model it's normal to have a straight line for the prediction.是的,对于简单的 MA 模型,预测有一条直线是正常的。 Simple AR and MA models are intended to perform one-step-ahead predictions.简单的 AR 和 MA 模型旨在执行提前一步预测。 In your case, you have a MA
order of 7
, so after your first seven "step ahead" the predictions start to repeat since you don't have new data.在您的情况下,您的MA
订单为7
,因此在您的前七个“领先”之后,由于您没有新数据,预测开始重复。
One way to avoid this would be to treat the predictions as ground-truth values and retrain the model with them.避免这种情况的一种方法是将预测视为真实值并用它们重新训练模型。 But don't expect this to improve your results significantly.但是不要指望这会显着改善您的结果。
For a more detailed explanation, I suggest reading this section from the Forecast: Principles And Practices by Hyndman.有关更详细的解释,我建议您阅读 Hyndman 的Forecast:Principles And Practices 中的这一部分。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.