我将一个幼稚的模型拟合到一个时间序列中,并为 ACF1 列获得了空值。我认为它应该总是有一个数字结果,因为它只是一个相关性?为什么这是空的?以下是我的代码:
library('fable')
library('feasts')
library('dplyr')
df = data.frame("t" = 1:7, "value" = c(12, 12, 0, 0, 0, 0, 0))
tsb = df %>%
as_tsibble(index = t)
train = tsb %>% filter(t < 6)
md = train %>% model(naive = NAIVE(value))
fc = md %>% forecast(h = 4)
accuracy(fc, tsb)
谢谢!
Ps:这是这个问题的后续问题: Getting null results from the accuracy function in fabletools package