简体   繁体   English

预测在时间序列数据中始终保持不变

[英]Forecasts are constant all the time in time series data

I'm working on hierarchical time series forecasting(python) and when I'm trying to fit the model with the entire data that I have I could see that the forecasts are constant all the time for some features.我正在研究分层时间序列预测(python),当我尝试将 model 与我拥有的全部数据相匹配时,我可以看到对于某些功能的预测一直是恒定的。 I couldn't able to understand where exactly the problem is and what are the possible approaches to fix this issue.我无法理解问题到底出在哪里以及解决此问题的可能方法是什么。 Any sort of help would be great.任何形式的帮助都会很棒。

Thanks in Advance!!提前致谢!!

I have faced a similar issue recently with hierarchical time series forecasting with no seasonality, where one of the 90 forecasts had no trend and no change in level over time, an exception in my set of predictions.我最近在没有季节性的分层时间序列预测中遇到了类似的问题,其中 90 个预测中的一个没有趋势,并且随着时间的推移没有变化,这是我的一组预测中的一个例外。

I have implemented Statsmodels Exponential Smoothing and I have tuned the hyperparameters roughly following Jason Brownlee's super helpful guide on How to grid search exponential smoothing .我已经实现了 Statsmodels Exponential Smoothing并且我已经大致按照 Jason Brownlee 关于如何网格搜索指数平滑的超级有用指南调整了超参数。

No matter the grid search, this particular forecast remained flat.无论网格搜索如何,这个特定的预测都保持不变。

I've added some extra parameters to the grid search, for instance, to identify the optimum amount of data points to train each of the 90 models in my hierarchical forecast and I've calculated the Z-scores of the year-on-year percentage change of the predictions, to skip predictions that were less than 5% likely given a reference period, even when they have the lowest error scores (this was needed because 2020 is probably an outlier in my dataset - time will tell).我在网格搜索中添加了一些额外的参数,例如,为了确定在我的分层预测中训练 90 个模型中的每一个的最佳数据点数量,并且我计算了同比的 Z 分数预测的百分比变化,跳过在给定参考期间的可能性小于 5% 的预测,即使它们的错误分数最低(这是必要的,因为 2020 年可能是我数据集中的异常值 - 时间会证明一切)。

And again, it was flat.再一次,它是平坦的。

Well, maybe I should indeed do as Rob Hyndman suggests in his article and add random noise to this prediction so that the users are happier with what they see, even though this would increase the error.好吧,也许我确实应该像 Rob Hyndman 在他的文章中建议的那样做,并在这个预测中添加随机噪声,以便用户对他们看到的内容更满意,即使这会增加错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM