STATISTICAL DATA PROCESSING IN ECONOMICS USING THE PYTHON PROGRAMMING LANGUAGE

Faculty of Business Economics Bijeljina, University of East Sarajevo, Republic of Srpska, BiH
Bosnia and Herzegovina

Faculty of Business Economics Bijeljina, University of East Sarajevo, Republic of Srpska, BiH
Bosnia and Herzegovina

CEOS.PP, ISCAP, Polytechnic of Porto, Portugal
Portugal

Vilnius Gediminas Technical University, Vilnius, Lithuania
Lithuania


Abstract

This paper examines the use of the Python programming language for statistical processing of economic data, with a particular focus on its role in financial analysis and education. In the context of increasing data availability and the growing importance of data-driven decision-making, Python has emerged as a practical and flexible environment for performing statistical analysis. The study highlights the use of key Python libraries — including NumPy, Pandas, SciPy, and Matplotlib — for data collection, preprocessing, analysis, and visualization. The empirical part of the paper illustrates how Python can be used to retrieve real-world financial data from online sources and perform both descriptive and inferential statistical analyses. Using daily closing stock price data for selected companies over the period 2019–2025, the paper demonstrates the application of basic statistical measures, hypothesis testing methods (paired t-test and chi-square test), and correlation analysis (Pearson correlation matrix). The results indicate the practical utility of Python in handling economic datasets and supporting the interpretation of quantitative findings. The paper also emphasizes the importance of integrating programming skills into economics education in order to bridge the gap between theoretical statistical knowledge and practical data analysis. By enabling economists to conduct the full analytical workflow independently, Python can support more efficient and timely data-driven decision-making.

Keywords



Full Text


References


Bilina, R., & Lawford, S. (2012). “Python for unified research in econometrics and statistics,” Econometric Reviews, vol. 31 (5), 558–591.

Damjanović, S., & Katanić, P. (2025). “Comparison of Four Programming Languages Used for Communication with Measuring Instruments,” Regionalni razvoj i demografski tokovi zemalja jugoistočne evrope, vol. 30, 461–473.

Hashimzade, N., Kirsanov, O., & Kirsanova, T. (2025). “Integrating Programming into the Modern Undergraduate Economics Curriculum,” International Review of Economics Education, vol. 49 (3), 1–12.

Ho, M. (2024). “Application of statistical techniques using Python and MYSQL,” Applied and Computational Engineering, vol. 178 (1), 226–235.

Holmana, J. O., & Hacherl, A. (2023). “Teaching Monte Carlo Simulation with Python,” Journal of Statistics and Data Science Education, vol. 31 (1), 33–44.

Katanic, P., & Damjanovic, S. (2025). Python za ekonomiste, (1st ed., Ch. 6, pp. 281–360) Fakultet poslovne ekonomije Bijeljina.

Ponagantiadarsh, & Vada, V. P. (2025). “Real-Time stock market analytics using Python and Big Data Tools,” International Journal of Research Publication and Reviews, vol. 6 (8), 5113–5120.

Qiao, Y. (2025). “Research on the Application of Python Big Data in Financial Analysis,” Financial Economics Research, vol. 2 (2), 7–19.

Riyantoko, P., Funabiki, N., Brata, K. C., Mentari, M., Damaliana, A. T., & Prasetya, D. A. (2025). “A Fundamental Statistics Self-Learning Method with PythonProgramming for Data Science Implementations,” Information MDPI, vol. 16(7), 1–23.

Riyantoko, P., Funabiki, N., Wai, K., Aung, S., Muhaimin, A., & Trimono (2024). “A proposal of Python programming exercise problems for basic statistics learning,” In Proceedings of the 2024 Seventh International Conference on Vocational Education and Electrical Engineering (ICVEE), 289–295.

Schwarz, J. (2025). “The use of generative AI in statistical data analysis and its impact on teaching statistics at universities of applied sciences,” Teaching statistics, vol. 47, 118–128.

Tang, S. (2026). “Creating a Python platform for students to learn full-stack development of financial applications,” Financial Innovation, vol. 12 (1), 1–29.

Wei, R. (2025). “Data Analysis with Python: Methods, Tools and Practices-Data Processing, Visualization and Prediction Based on Python,” Applied and Computational Engineering, vol. 178 (1), 226–235.

Yi, J. (2025). “The Application of Python in Financial Big Data Management and Teaching,” Management, vol. 8 (3), 52–60.