I have around 10000 time series.
I wanted to use auto.arima function http://www.inside-r.org/packages/cran/forecast/docs/auto.arima
I wanted to test the accuracy of my auto.arima model for the 10000 time series. I am holding off 20% of data points (if you see sample out of 40 I will hold off 8) and then let auto.arima predict.
Then I can compare generated 8 values with actual 8 values.
But is there a formal way to test accuracy in ARIMA model? Is my approach correcT?
y=auto.arima(x)
plot(forecast(y,h=8))
Sample time series 1
0.0003748,0.0003929,0.0003653,0.0003557,0.0004463,0.000349,0.0003099,0.0003395,0.0003157,0.0002871,0.0002604,0.0002422,0.0001917,0.0002117,0.0002689
time series 2
0.0003977,0.0003481,0.0002413,0.0002069,0.0002127,0.0002108,0.0002003,0.0002174,0.0002098,0.0002069,0.0001955,0.0001926,0.0002108,0.0002146,0.0002079
auto.arima
function does not return a valid model for some of your time series? Or that you are struggling with coding a loop to auto-fit each of your 8000 time series? – Whitebeardauto.arima
, then yes, you need to fit one model for time series. See the help page, which specifies a univariate time series.?accuracy
for testing cross-validation. Also see thehts
package if you want to fit a hierarchical time series. – Whitebeard