Comparative Analysis of the Implementation of Classical Statistical Models for Univariate Time Series Forecasting in Python, R, and Julia

Keywords: time series forecasting, Python, R, Julia, ETS, Auto-ARIMA, RMSE, MASE, sMAPE

Abstract

This study presents a comparative analysis of the implementation of classical statistical models for univariate time series forecasting in the programming environments Python, R, and Julia. The research examines naïve and seasonal naïve methods, exponential smoothing (ETS), as well as the automatic parameter selection of autoregressive integrated moving average models (Auto-ARIMA). Two datasets were used for the experiments: daily Brent crude oil prices and monthly average wage indicators in Ukraine. Forecast accuracy was evaluated using three metrics — RMSE, MASE, and sMAPE — across different forecasting horizons. The results demonstrate that modeling outcomes depend not only on the mathematical nature of the algorithms but also on the specifics of their implementation in the respective ecosystems. It was found that Python and R provide full support for all the models under consideration, whereas Julia, at the time of the study, lacked stable implementations of ETS and Auto-ARIMA, which partially limited the possibilities for comparison. The findings are relevant both for assessing the maturity of software ecosystems in the field of time series analysis and for guiding the practical selection of tools in applied forecasting tasks.

References

1. Hyndman R. J., Khandakar Y. Automatic Time Series Forecasting: The forecast package for R. Journal of Statistical Software. 2008. Vol. 27, No. 3. P. 1–22.
2. Seabold S., Perktold J. Statsmodels: Econometric and Statistical Modeling with Python. Proceedings of the 9th Python in Science Conference (SciPy 2010). 2010. P. 57–61.
3. Saavedra R., Bodin G., Souto M. StateSpaceModels.jl: a Julia Package for Time-Series Analysis in a State-Space Framework. arXiv preprint. 2019.
4. Hyndman R. J., Koehler A. B. Another look at measures of forecast accuracy. International Journal of Forecasting. 2006. Vol. 22, No. 4. P. 679–688.
5. Hyndman R. J., Athanasopoulos G. Forecasting: Principles and Practice (3rd ed.). Melbourne: OTexts, 2021.

Abstract views: 15
PDF Downloads: 10
Published
2025-09-19
How to Cite
Papka О., & Oliinyk , R. (2025). Comparative Analysis of the Implementation of Classical Statistical Models for Univariate Time Series Forecasting in Python, R, and Julia. COMPUTER-INTEGRATED TECHNOLOGIES: EDUCATION, SCIENCE, PRODUCTION, (60), 224-232. https://doi.org/10.36910/6775-2524-0560-2025-60-24
Section
Computer science and computer engineering