Pemodelan dan Prediksi Pengeluaran Bulanan Mahasiswa Berbasis Algoritma Ordinary Least Squares dalam Bahasa Pemrograman C++

Authors

  • Alisha Zulfa Salsabila UIN K.H. Abdurrahman Wahid Pekalongan, Pekalongan, Indonesia
  • Talitha Falakh Tasya UIN K.H. Abdurrahman Wahid Pekalongan, Pekalongan, Indonesia
  • Lina Azaria UIN K.H. Abdurrahman Wahid Pekalongan, Pekalongan, Indonesia
  • Ilham Dwijokangko UIN K.H. Abdurrahman Wahid Pekalongan, Pekalongan, Indonesia
  • Imam Prayogo Pujiono UIN K.H. Abdurrahman Wahid Pekalongan, Pekalongan, Indonesia

DOI:

https://doi.org/10.53863/kst.v8i01.2356

Keywords:

C++, financial prediction, linier regression, OLS, student expenditure

Abstract

Financial management is a common challenge faced by students living away from home, especially those who often run out of pocket money before the end of the month. This condition is not always caused by consumptive behavior, but also due to a lack of planning and a structured expenditure prediction system. This study developed a financial analysis program based on the C++ programming language with an object-oriented programming (OOP) approach that implements the Ordinary Least Squares (OLS) algorithm to model and predict students' monthly expenses based on the amount of pocket money they receive. The research data were obtained from 30 students with pocket money ranging from Rp 1,100,000 to Rp 3,500,000 per month, which reflects the real conditions of students in medium-large cities in Indonesia. Descriptive statistical analysis shows that on average, students spend approximately 82.9% of their pocket money each month. The modeling results show a regression equation Ŷ = Rp 119,867 + 0.8221 × X with a correlation coefficient of r = 0.9979 and a determination coefficient of R² = 0.9957, meaning that the pocket money variable is able to explain 99.57% of the variation in student expenditure. The F-test produces F-calculated = 6,732.45, which far exceeds F-table = 4.20 at a significance level of 5%, proving the model is statistically significant. Accuracy evaluation using MAE produces a value of Rp 18,142 (approximately 1% of the average expenditure) and an RMSE of Rp 23,457. It was also found that the marginal propensity to consume (MPC) phenomenon decreases with increasing pocket money, consistent with the economic theory of consumption. This study proves that the OLS algorithm implemented in C++ is an effective, accurate, and efficient tool for analyzing and predicting student financial patterns computationally.

References

Ashar, K., & Azriana, F. H. (2024). Analisis Faktor-Faktor Yang Mempengaruhi Pola Pengelolaan Keuangan Mahasiswa Ekonomi. Kompak: Jurnal Ilmiah Komputerisasi Akuntansi, 17(2), 374–387.

BadanPusatStatistik. (2025). Rata-rata pengeluaran per kapita sebulan menurut kelompok komoditas dan klasifikasi desa (rupiah), 2024. In BPS-Statistics Indonesia. https://www.bps.go.id/id/statistics-table/3/VTJaSFFtWklXVnBYZVdSREwyczJlbm93UWpVM1FUMDkjMw%3D%3D/rata-rata-pengeluaran-per-kapita-sebulan-menurut-kelompok-komoditas-dan-klasifikasi-desa--rupiah---2024.html?year=2024%0A

Dilla, D., & Pasulu, I. (2024). Analisis Pola Pengeluaran Pada Mahasiswa Program Studi Manajemen Universitas Kristen Indonesia Toraja. EKOMA: Jurnal Ekonomi, Manajemen, Akuntansi, 3(3), 260–269.

Febrianti, A., Wardani, K., Verlandes, Y., & Timur, J. (2024). Pengaruh Literasi Keuangan, Uang Saku dan GayaHidup terhadap Perilaku Menabung pada Siswa-Siswi Kelas 11 SMKSThoriqul Ulum Pacet. 4.

Info, A. (2024). Kusumawati, E., & Setiawan, B. (2023).* Financial Literacy, Financial Behavior, and Financial Attitude: A Case Study of University Students. International Journal of Economics and Management Studies, 10(3), 112-120 Z ). 5(12), 1087–1106. https://doi.org/10.47153/jbmr.v5i12.1242

Keuangan, D. A. N. L. (2024). Pengelolaan keuangan mahasiswa, tri-kon dan literasi keuangan. 13(04), 1367–1375.

Luni, A., Sari, A., & Widoatmodjo, S. (2023). PENGARUH LITERASI KEUANGAN , GAYA HIDUP , DAN LOCUS OF CONTROL TERHADAP PERILAKU KEUANGAN MAHASISWA DI. 05(02), 549–558.

Luruk, P. S., Metom, E. D. E., & Manbait, F. Y. (2026). POLA PENGELUARAN MAHASISWA KOST FAKULTAS EKONOMIKA DAN BISNIS UNIVERSITAS KATOLIK WIDYA MANDIRA KUPANG. Ekonis: Jurnal Ekonomi Dan Bisnis, 28(1).

Pasa, S. A. N. S. P. P. M. (2024). ANALISIS HUBUNGAN SELF CONTROL KEUANGAN DAN PENGELUARAN BERLEBIHAN E-WALLET: STUDI KASUS PADA MAHASISWA JURUSAN AKUNTANSI UNIVERSITAS NEGERI PADA MAHASISWA PENGGUNAAN SURABAYA. Musytari : Jurnal Manajemen, Akuntansi, Dan Ekonomi, Vol. 12 No. 12 (2024): Musytari : Jurnal Manajemen, Akuntansi, dan Ekonomi, 121–130.

Posi, S. H., & Kaiyeli, N. (2024). Literasi Keuangan dalam Pengelolaan Keuangan Pribadi Mahasiswa. 2(2), 2817–2820.

Prasetyandari, C. W. (2025). Manajemen Keuangan Mahasiswa di Era Digital : Dampak Penggunaan E- Wallet terhadap Pola Konsumsi. September.

Rabbani, A. A., Tubastuvi, N., Rahmawati, I. Y., Widyaningtyas, D., Manajemen, P. S., Muhammadiyah, U., Ekonomi, S. S., Sosial, L., Kontrol, L., Purwokerto, U. M., Soedirman, U. J., Ekonomi, S. S., Sosial, L., Hidup, G., & Mahasiswa, P. K. (2024). JIMEA | Jurnal Ilmiah MEA ( Manajemen , Ekonomi , dan Akuntansi ) PENGARUH LITERASI KEUANGAN , STATUS SOSIAL EKONOMI , LINGKUNGAN SOSIAL , LOCUS OF CONTROL DAN GAYA HIDUP TERHADAP PENGELOLAAN KEUANGAN JIMEA | Jurnal Ilmiah MEA ( Manajemen , Ekonomi , dan Akuntansi ). 8(1), 456–475.

Riana, P. O., & Kristianto, D. (2025). Pengaruh literasi keuangan, gaya hidup dan pemanfaatan financial technology terhadap perilaku pengelolaan keuangan mahasiswa dengan pendapatan orang tua sebagai variabel moderasi. Jurnal Nirta: Studi Inovasi, 4(2), 572–592.

Sandi, A. T., Husmaruddin, H., & Firmanzah, A. (2026). HUBUNGAN ANTARA FINANSIAL STRESS DAN GAYA HIDUP TERHADAP PENGELOLAAN KEUANGAN MAHASISWA DIKOTA PALOPO. Jurnal Pendidikan Ekonomi (JURKAMI), 11(1), 109–120.

Saputra, D. A., Ramadhani, M. S., & Failandri, M. A. (n.d.). PERILAKU KONSUMTIF DENGAN KONTROL DIRI SEBAGAI VARIABEL MEDIASI ( STUDI PADA MAHASISWA FEB UNIVERSITAS DIAN NUSWANTORO ) Pengunjung E-commerce 2018-2024PERILAKU KONSUMTIF DENGAN KONTROL DIRI SEBAGAI VARIABEL MEDIASI ( STUDI PADA MAHASISWA FEB UNIVERSITAS .

Savitri, K. T., Wayan, N., & Santi, A. (2025). Pengaruh Literasi Keuangan dan Sikap Keuangan Terhadap Pengelolaan Keuangan pada Pengusaha Perempuan Desa Sembiran Universitas Pendidikan Ganesha. 17(1), 245–257. https://doi.org/10.23887/jjpe.v17i1

Stroustrup, B. (2022). A Tour of C++. Addison-Wesley Professional.

Wahyuni, S. F., & Prasetyo, W. S. (2024). Influence of Financial Literacy, Hedonic Lifestyle and Locus of Controls Against Behavior Finance Mediated by Attitude Finance on Student Major Management University Economics and Business Muhammadiyah Sumatra North. Proceeding Medan International Conference on Economic and Business, 2, 282–305.

Published

2026-06-30

How to Cite

Salsabila, A. Z., Tasya, T. F., Azaria, L., Dwijokangko, I., & Pujiono, I. P. (2026). Pemodelan dan Prediksi Pengeluaran Bulanan Mahasiswa Berbasis Algoritma Ordinary Least Squares dalam Bahasa Pemrograman C++. Jurnal Kridatama Sains Dan Teknologi, 8(01), 233–243. https://doi.org/10.53863/kst.v8i01.2356

Similar Articles

<< < 1 2 3 4 5 

You may also start an advanced similarity search for this article.