The original question:
I have daily daily data:
series <- c(10, 25, 8, 27, 18, 21, 12, 9, 31, 18, 8, 30, 14, 13, 10, 14, 14, 14, 6, 9, 22, 21, 22, 8, 7, 6, 22, 21, 36, 16, 2, 13, 23, 40, 12, 27, 18, 10, 11, 37, 44, 30, 40, 25, 13, 11, 58, 56, 46, 39, 28, 27, 19, 20, 97, 90, 70, 73, 30, 22, 97, 34)
and want to put it using tbats from the R forecasts package. I also want to model it with a weekly correlation:
library(forecast) x.msts = msts(series,seasonal.periods = 7) model <- tbats(x.msts) # shows "--- loading profile ---"
Learning / building a model with str shows a huge variance of 4.9e+17 .
And, making a forecast ahead, we observe massive fluctuations:
> forecast(model)$mean Multi-Seasonal Time Series: Start: 9 7 Seasonal Periods: 7 Data: [1] 1.483789e+44 -1.399297e+42 -2.566455e+44 -1.374316e+43 -1.527758e+38 [6] 2.036194e+42 5.639596e+42 8.231600e+40 -2.578859e+41 -1.355840e+43
Are these estimates the βrightβ solution for the TBATS model selection procedure or is there an error in the forecast package? If not a mistake, can someone help me understand mathematically why this normal time series gives these estimates?
This is my first CV post, so apologize if this should be on SO!
Update after reply:
I posted a github bug report
Also, some people noticed that I do not use several factors of seasonality, so I want to show here that the error is still a problem:
x2.msts <- msts(series,seasonal.periods = c(7,30)) model_x2_1 <- tbats(x2.msts)