How hard is it to forecast commodity prices?
As previously mentioned, making money in commodities is not easy. To see a difficulty in predicting a commodity, you will forecast the price of chicken to five years in the future. When you complete your forecasts, you will note that even just a few years out, the acceptable range of prices is very large. This is because commodities are subject to many sources of variation.
Recall that you previously fit an SARIMA(2,1,0, 1,0,0)12 model to the monthly US chicken price series chicken
. You will use this model to calculate your forecasts.
The astsa package is preloaded for you and the monthly price of chicken data (chicken
) are plotted.
Este exercício faz parte do curso
ARIMA Models in R
Instruções do exercício
- Refit the SARIMA model from the earlier exercise and convince yourself that it fits well. Check parameter significance and residual diagnostics.
- Use
sarima.for()
to forecast the data 5 years into the future.
Exercício interativo prático
Experimente este exercício completando este código de exemplo.
# Fit the chicken model again and check diagnostics
# Forecast the chicken data 5 years into the future