简体   繁体   English

MA 模型总是在时间序列中给出相同的输出(python)

[英]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.

相关问题 Keras模型不断提供相同的输出类别? - Keras model giving constantly same output class? if语句始终给出相同的答案python初学者 - if statement always giving same answer python beginner TfLite Model 在 Android 应用程序和 Z23EEEB4347BDD755DDBZA 中给出不同的 output。 对于大多数输入 tflite model 在 android 上给出相同的 output。 为什么? 请修复 - TfLite Model is giving different output on Android app and in python . For most inputs tflite model gives same output on android . Why? Please fix 多输入一输出的Python时间序列 - Python Time Series for Multiple Input and One Output Python 3.5 中的时间序列 - 拟合 ARMA 模型 - Time Series in Python 3.5 - Fitting ARMA model 相同的python函数给出不同的输出 - Same python function giving different output 相同类型的程序在 Python 中给出不同的 output - Same type of programs giving different output in Python 得到一个 keras model 到 output 一个结果和另一个使用权重的 ma - Get a keras model to output a result and another using ma of the weights Keras LSTM多输出模型预测两个特征(时间序列) - Keras lstm multi output model predict two features (time series) 使用python中的statsmodels从AR(MA)模型中删除系数 - Removing coefficient from an AR(MA) model with statsmodels in python
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM