Analysis of E-Commerce Consumer Purchasing Patterns Using the Naïve Bayes Algorithm
DOI:
https://doi.org/10.30865/ijics.v10i1.9531Keywords:
E-commerce, Consumer Purchasing Patterns, Naïve Bayes, Transaction Data, Classification.Abstract
The rapid growth of e-commerce has generated a large volume of transactional data; however, its utilization is often limited to sales reports. In fact, transaction data holds significant strategic potential to be analyzed in order to understand customer purchasing patterns. This study aims to analyze consumer purchasing behavior in e-commerce by applying the Naïve Bayes algorithm as a probabilistic classification method. The dataset used in this research consists of 30 transaction records, including attributes such as purchase frequency, transaction value, product type, payment method, and promotion, with the purchasing decision (buy or not buy) as the class attribute. The research stages include calculating prior probabilities and conditional probabilities for each attribute with respect to the purchasing decision classes. The results indicate that the majority of transactions belong to the buy class with a probability of 0.63, while the not-buy class has a probability of 0.37. Purchase frequency and transaction value are identified as the most influential factors, where medium to high purchase frequency and medium to large transaction values show a strong tendency toward buying decisions. Furthermore, electronic products and non-cash payment methods, particularly e-wallets and credit cards, exhibit high probabilities associated with purchase decisions. Promotions also contribute positively to encouraging purchases, although they are not the sole determining factor. Overall, this study demonstrates that the Naïve Bayes algorithm is effective in identifying customer purchasing patterns and can support strategic decision-making in e-commerce businesses.
References
[1] I. T. Laiya and D. Fahriani, “Analisis Penggunaan E-Commerce terhadap Peningkatan Pendapatan UMKM Pengrajin Tas,” vol. 8, no. 2, pp. 185–193, 2025.
[2] N. Sutisna and Sutrisna, “Implementasi Sistem Informasi dalam Mendukung Perilaku Pembelian Terhadap Keputusan Pembelian E-Commerce,” vol. 2, no. 1, pp. 20–30, 2023.
[3] P. Salsabila, E. Wahyudin, G. Dwilestari, K. Kaslani, and F. Subhiyanto, “Penerapan Algoritma Fp-Growth Untuk Mengetahui Pola Pembelian Konsumen Di Warung Makan Dede,” JATI (Jurnal Mhs. Tek. Inform., vol. 8, no. 1, pp. 1221–1128, 2024, doi: 10.36040/jati.v8i1.8964.
[4] V. C. Nisa and F. N. Khasanah, “Algoritma Apriori Dalam Identifikasi Pola Pembelian Konsumen Pada Produk Minuman,” vol. 8, no. 2, pp. 156–164, 2023.
[5] L. Sasabone, E. Sudarmanto, and S. Adiwijaya, “Pengaruh E-commerce dan Kemudahan Transaksi Terhadap Perubahan Pola Konsumsi Dalam Era Digital Di Indonesia,” vol. 1, no. 01, pp. 32–42, 2023.
[6] N. S. Fauzia and R. D. Dana, “Implementasi Algoritma Naive bayes dalam Klasifikasi Status Kesejahteraan Masyarakat Desa Gunungsari,” 2023.
[7] Rayuwati, H. Gemasih, and I. Nizar, “IMPLEMENTASI AlGORITMA NAIVE BAYES UNTUK MEMPREDIKSI TINGKAT,” 2022.
[8] M. Z. Haq et al., “Algoritma Naïve Bayes untuk Mengidentifikasi Hoaks di Media Sosial,” vol. 13, pp. 2020–2025, 2024.
[9] E. Laia and M. Yamin, “Penerapan Algoritma Naïve Bayes dalam Menganalisis Sentimen pada Review Pengguna E-Commerce,” vol. 4, no. 1, pp. 305–316, 2023, doi: 10.30865/klik.v4i1.1186.
[10] M. Wahyudi and M. S. Novelan, “PERBANDINGAN KINERJA K-NN DAN NAIVE BAYES DALAM TATA KELOLA TEKNOLOGI INFORMASI UNTUK MENGANALISA TINGKAT KEPUASAN PENGGUNA APLIKASI SHOPEE,” J. Sci. Soc. Res., vol. 8, no. 3, pp. 3424–3431, 2025.
[11] A. D. Kuswanto, S. I. Puro, J. Hariyan, R. Rafliansyah, M. R. Aziz, and P. V. Rajagukguk, “Analisa Data Shopping Trends Menggunakan Algoritma Klasifikasi Dengan Metode Naive Bayes,” vol. 2, no. 3, 2024.
[12] P. A. Saputra, S. S. Irawan, and R. Prianto, “Analisis Faktor Dominan Minat Beli Generasi Z di Shopee Menggunakan Algoritma Naïve Bayes,” 2025.
[13] B. Z. Ramadhan, I. Riza, and I. Maulana, “Analisis Sentimen Ulasan Pada Aplikasi E-Commerce Dengan Menggunakan Algoritma Naïve Bayes,” vol. 6, no. 2, pp. 220–225, 2022.
[14] A. N. Puspitasari, Y. Findawati, and Y. Rahmawati, “ANALISIS SENTIMEN TWEET PENGGUNA E-COMMERCE DENGAN MENGGUNAKAN METODE KLASIFIKASI NAÏVE BAYES,” vol. 9, no. 3, pp. 1123–1132, 2024.
[15] M. S. Mauludin, A. D. Saputra, A. Z. Sari, and I. Munawaroh, “Analisis Perilaku Konsumen Dalam Transaksi Di e-Commerce,” vol. 1, no. 1, 2022.
[16] A. Zhalifunnas, A. Fauzi, M. Z. Augestri, and R. Rahman, “Analisis Peluang Bisnis Melalui Pemahaman Perilaku Konsumen dengan Pendekatan Matematika Ekonomi,” vol. 2, no. 1, pp. 29–35, 2024.
[17] G. Oktavia, “ANALISIS POLA PEMBELIAN KONSUMEN BERDASARKAN DATA HISTORIS DENGAN METODE ASOSIASI DI PT EXCELLINDO PERKASA,” Comput. Sci. Ind. Eng., vol. 10, no. 3, pp. 88–98, 2024.
[18] T. F. Mustafa and H. Alfianti, “KLASIFIKASI BERITA PALSU BERBAHASA INDONESIA MENGGUNAKAN ALGORITMA NAIVE BAYES BERBASIS WEB,” pp. 657–663, 2025.
[19] F. A. Indriyani, A. Fauzi, and S. Faisal, “Analisis sentimen aplikasi tiktok menggunakan algoritma naïve bayes dan support vector machine Tiktok application sentiment analysis using naïve bayes algorithm and support vector machine,” vol. 10, pp. 176–184, 2023, doi: 10.37373/tekno.v10i2.419.
[20] B. Ramadhani and R. R. Suryono, “Komparasi Algoritma Naïve Bayes dan Logistic Regression Untuk Analisis Sentimen Metaverse,” vol. 8, no. April, pp. 714–725, 2024, doi: 10.30865/mib.v8i2.7458.


