Seasonal Modeling and Forecasting of California Milk Production: A Comparative Evaluation of ARIMA, SARIMA, ARIMAX, and SARIMAX Models. is an open-access, peer-reviewed research paper by Kajol Bala, Chayan Halder, published in Volume 15, Issue 6 of the International Journal of Advanced Research in Science and Technology (IJARST), a UGC-approved journal (Print ISSN 2319-1783, Online ISSN 2320-1126).
Kajol Bala, Chayan Halder
Reliable forecasts of agricultural commodity production underpin planning decisions across supply chains, from farm-level resource allocation to regional policy. This study examines monthly California milk production from 1995 to 2013 to identify the most suitable time series model for forecasting. The data exhibit a clear long-term upward trend alongside strong annual seasonal fluctuation. After applying both regular and seasonal differencing, ACF and PACF patterns were examined to guide model identification, and four non-seasonal ARIMA models were built, three specified manually and one selected automatically via auto.arima(). The automated ARIMA (4,1,1) model achieved the best AIC and BIC values, but its residuals failed the Ljung-Box test, indicating that important structure, most likely seasonality, remained unaccounted for. This led to the development of SARIMA, ARIMAX, and SARIMAX models. Evaluated on a 12-month holdout period, SARIMA clearly outperformed the alternatives (RMSE = 0.053, MAE = 0.045, MAPE = 1.30%), far surpassing the base ARIMA model (RMSE = 0.158, MAPE ≈ 3.78%), while the exogenous-regressor variants offered little additional benefit. The findings demonstrate that a model favored by AIC can still be structurally inadequate, and that overlooking seasonality in agricultural time series leads to substantially biased forecasts.
DOI: https://doi.org/10.62226/ijarst20262708
Data and Code Availability: The dataset and analysis code used in this study are publicly available at the following locations: California Dairy Production data: https://github.com/petershahlevlnow/DataAnalytics/blob/master/CADairyProduction.csv
The following R code was used for data preprocessing and model building. Code Download Link: https://drive.google.com/file/d/1Tidtc0UEA28CVsTA8kpxxohC0DD9Ue9H/view?usp=sharing
References:
[1] G. M. J. G. C. R. a. G. M. L. G. E. P. Box, Time series analysis: Forecasting and control (5th ed.), Hoboken, NJ, USA:: John Wiley & Sons, 2015, pp. Time Series Analysis: Forecasting and Control, 5th ed. Hoboken, NJ, USA: John Wiley & Sons, 2015, pp. 712, ISBN: 978-1-118-67502-1. doi: 10.1111/jtsa.12194..
[2] R. J. H. &. G. Athanasopoulos, Forecasting: Principles and practice (3rd ed.), Monash University group: OTexts, 2021.
[3] U. H. P.-G. e. al., " Seasonal autoregressive integrated moving average (SARIMA) time-series model for milk production forecasting in pasture-based dairy cows in the Andean highlands," PLOS ONE, vol. vol. 18, no. no. 11, 2023.
[4] K. J. K. K. C. S. V. Punyapornwithaya, "“Forecasting of milk production in northern Thailand using seasonal autoregressive integrated moving average, error trend seasonality, and hybrid models,," Frontiers in Veterinary Science, vol. 8, Nov. 2021.
[5] S. S. D. a. R. Paramasivam, "Forecasting of milk production in India with ARIMA and VAR time series models," Journal of Dairying, Foods & Home Sciences, vol. vol. 35, no. no. 1, p. 17–22, Mar. 2016.
[6] D. S. A. S. a. R. K. A. Patil, " “Forecasting prices of agricultural commodities using machine learning for global food security: Towards Sustainable Development Goal 2," International Journal of Engineering Trends and Technology, vol. vol. 71, no. no. 12, p. 277–291, Dec. 2023.
[7] R. H. Shumway and D. S. Stoffer, Time Series Analysis and Its Applications: With R Examples, 4th ed., vol. 71, New York, NY, USA: Springer, 2017, p. 277–291.
[8] P. J. B. a. R. A. Davis, Introduction to Time Series and Forecasting, 3rd ed., Cham, Switzerland: Springer, 2016.
[9] R. M. K. a. N. H. U. A. A. Arifin, " Comparison of SARIMA and SARIMAX methods for forecasting harvested dry grain prices in Indonesia,," Barekeng: Jurnal Ilmu Matematika dan Terapan, vol. 19, no. 1, p. 319–330, Jan. 2025,.
[10] M. Y. P. K. P. K. M. B. H. S. R. A. P. A. G. a. A. D. R. K. Paul, "Machine learning techniques for forecasting agricultural prices: A case of brinjal in Odisha, India,," PLOS ONE,, vol. vol. 17, no. 7, 022.
[11] N. Vithitsoontorn and P. Chongstitvatana, " A comparative study of ARIMA and LSTM models for dairy product demand forecasting across multiple production sites," 2023.
[12] O. A. O. a. A. O. A. A. J. Adeyemo, "“A hybrid machine learning framework for daily dairy demand forecasting: Integrating SARIMAX and XGBoost for seasonal production optimization,," IEEE Access, vol. 13, pp. 1-14, 2025.
[13] R. J. Hyndman and Y. Khandakar, “Automatic time series forecasting: The forecast package for R,” Journal of Statistical Software, vol. 27, no. 3, pp. 1–22, 2008.
[14] F. X. Diebold and R. S. Mariano, “Comparing predictive accuracy,” Journal of Business and Economic Statistics, vol. 13, no. 3, pp. 253–263, 1995.
[15] P. Mishra, C. Fatih, G. K. Vani, S. Tiwari, D. Ramesh, and A. Dubey, “Time series investigation of milk production in major states of India using ARIMA modeling,” Journal of Animal Research, vol. 10, no. 1, pp. 77–84, Feb. 2020.
[16] P. Pandit, B. Bakshi, M. Paul, and B. S. Pooja, “ARIMA-genetic algorithm approach for forecasting milk production in India,” Asian Journal of Dairy and Food Research, vol. 43, no. 4, pp. 784–789, 2024, doi: 10.18805/ajdfr.DR-1782.
[17] W. Grzesiak, D. Zaborski, I. Szatkowska, and K. Królaczyk, “Lactation milk yield prediction in primiparous cows on a farm using the seasonal auto-regressive integrated moving average model, nonlinear autoregressive exogenous artificial neural networks and Wood’s model,” Animal Bioscience, vol. 34, no. 4, pp. 770–782, 2021, doi: 10.5713/ajas.19.0939.
https://doi.org/10.62226/ijarst20262708
PAGES : 2336-2344 | 10 VIEWS | 2 DOWNLOADS
Kajol Bala, Chayan Halder — “Seasonal Modeling and Forecasting of California Milk Production: A Comparative Evaluation of ARIMA, SARIMA, ARIMAX, and SARIMAX Models..” International Journal of Advanced Research in Science and Technology (IJARST), Volume 15, Issue 6. DOI: https://doi.org/10.62226/ijarst20262708.
Kajol Bala, Chayan Halder | Seasonal Modeling and Forecasting of California Milk Production: A Comparative Evaluation of ARIMA, SARIMA, ARIMAX, and SARIMAX Models. | DOI : https://doi.org/10.62226/ijarst20262708
| Journal Frequency: | ISSN 2320-1126, Monthly | |
| Paper Submission: | Throughout the month | |
| Acceptance Notification: | Within 6 days | |
| Subject Areas: | Engineering, Science & Technology | |
| Publishing Model: | Open Access | |
| Publication Fee: | USD 60 USD 50 | |
| Publication Impact Factor: | 6.76 | |
| Certificate Delivery: | Digital |