建议为平线时间序列预测添加噪声吗?

问题描述 投票:0回答:1

您能否建议我们如何在时间序列预测中添加噪音?我知道可以添加。我这样做是因为我的大多数客户都喜欢看到固定的预测。我正在使用R。任何有用的线索?

谢谢

r time-series forecasting noise
1个回答
0
投票

我不明白为什么要在时间序列中增加噪音。我已经做到了,但仅用于学术上的演奏。

也许这会有所帮助:

sl <- 24 # Series Length
mn <- 0 # Noise mean
sd <- 1 # Noise sd

nn <- rnorm(sl, mn, sd) # Normal noise

datasets::airmiles + nn # Time series plus Normal noise

© www.soinside.com 2019 - 2024. All rights reserved.