Perbandingan Kinerja Algoritma Apriori dan FP-Growth pada Pola Pembelian Konsumen
Abstract
The development of the retail sector generates a vast amount of transaction data, requiring effective processing methods to understand consumer behavior. This study aims to compare the performance of two popular Association Rule Mining algorithms, namely Apriori and Frequent Pattern Growth (FP-Growth), in extracting purchase patterns using the Market Basket Analysis (MBA) method. The data used is the secondary dataset Market Basket Optimization from Kaggle, which consists of 7,501 transactions. The research method includes stages of data preprocessing, application of one-hot encoding, and implementation of the algorithm using the Mlxtend library in Python with minimum support parameter of 0.01 and minimum confidence of 0.3. The research results show that both algorithms produce an identical number of association rules, namely 63 rules, which validates their accuracy. However, in terms of computational efficiency, FP-Growth shows a significant advantage with an execution time of 0.1547 seconds, approximately 3.7 times faster than Apriori, which takes 0.5731 seconds. The strongest association pattern was found in the relationship between Herb and Pepper and Ground Beef with a lift ratio of 3.29. The conclusion of this study is that FP-Growth is more recommended for large-scale retail data analysis due to its better procedural efficiency without compromising the quality of the generated data.
References
[2] E. W. Pujiharto, K. Kusrini, and A. Nasiri, “Analisis Perbandingan Kinerja Algoritma Apriori, FP-Growth dan Eclat dalam menemukan Pola Frekuensi pada Dataset INA-CBG’S,” CogITo Smart J., vol. 9, no. 2, pp. 340–354, Dec. 2023, doi: 10.31154/cogito.v9i2.547.340-354.
[3] D. Rachmawati, Y. Cahyana, E. E. Awal, and S. Faisal, “Perbandingan Algoritma Apriori dan Algoritma FP-Growth dalam Menentukan Pola Penjualan Pupuk,” J. Resist. (Rekayasa Sist. Komputer), vol. 7, no. 1, pp. 21–31, Apr. 2024, doi: 10.31598/jurnalresistor.v7i1.1527.
[4] Stanley, “Penerapan Data Mining Menggunakan Algoritma FP-Growth Pada Data Penjualan PT CML BATAMINDO,” J. Ilm. Bin. STMIK Bina
Nusant. Jaya Lubuklinggau, vol. 7, no. 2, pp. 142–148, Nov. 2025, doi: 10.52303/jb.v7i2.165.
[5] R. Dian Widyarini, A. Suharso, and A. Solehudin, “ASSOCIATION RULE PENGOLAHAN DATA TRANSAKSI TOKO BUNGA MENGGUNAKAN ALGORITMA APRIORI DAN FP-GROWTH UNTUK
MENENTUKAN PROMOSI PAKET BUNGA,” JATI (Jurnal Mhs. Tek. Inform., vol. 7, no. 3, pp. 1461–1466, Oct. 2023, doi: 10.36040/jati.v7i3.7037.
[6] N. M. Meyzia Sabrina Yunika Putri, I. N. Yudi Anggara Wijaya, and M. Irma Dwiputranti, “ANALISIS POLA PEMBELIAN PELANGGAN DENGAN TEKNIK MARKET BASKET ANALYSIS (MBA) BERBASIS KNOWLEDGE DISCOVERY PADA DATA TRANSAKSI PENJUALAN TOKO BALI AMENITIES,” JATI (Jurnal Mhs. Tek. Inform., vol. 10, no. 2, pp. 2917–2924, Mar. 2026, doi: 10.36040/jati.v10i2.17834.
[7] S. Wijayanti, M. Yosep, and T. Sulistyono, “ASSOCIATION RULE MINING PADA POLA PEMBELIAN FURNITURE ONLINE STUDI KASUS DATASET SPARSE TAHUN 2025,” vol. 11, no. 1, pp. 1934–1946, 2026.
[8] C. Tri and M. Ilham, “Perbandingan Kinerja Algoritma Apriori dan FP- Growth dalam Analisis Pola Pembelian Produk pada Timmy Store,” vol. 10, no. 2, pp. 134–138, 2025.
[9] A. Anggrawan, M. Mayadi, and C. Satria, “Menentukan Akurasi Tata Letak Barang dengan Menggunakan Algoritma Apriori dan Algoritma FP-Growth,” MATRIK J. Manajemen, Tek. Inform. dan Rekayasa Komput., vol. 21, no. 1, pp. 125–138, Nov. 2021, doi: 10.30812/matrik.v21i1.1260.
[10] F. Syah Zikri and M. Ikhsan, “The Comparison Between The Apriori Algorithm And The FP-Growth Algorithm In Determining Frequent Pattern,” INOVTEK Polbeng - Seri Inform., vol. 10, no. 2, pp. 615–625, Apr. 2025, doi: 10.35314/s1yanj03.
[11] M. Arifin, F. Helmi, and Iddrus, “Analisis Perbandingan Algoritma Asosiasi Data Mining Pada Minimarket Adi Poday Dengan Google Collab,” J. Algoritm., vol. 22, no. 1, pp. 103–114, May 2025, doi: 10.33364/algoritma/v.22- 1.2177.
[12] Mitha Rosadi and Muhammad Siddik Hasibuan, “Comparison of Apriori and FP-Growth Algorithms in Analyzing Association Rules,” PIKSEL Penelit. Ilmu Komput. Sist. Embed. Log., vol. 12, no. 2, pp. 399–408, Sep. 2024, doi: 10.33558/piksel.v12i2.9965.
[13] I. F. Rahman and D. Riana, “Market Basket Analysis untuk Penjualan Retail: Perbandingan Akurasi Algoritma Apriori dan FP-Growth Berbasis CRISP-DM,” J. Algoritm., vol. 22, no. 1, pp. 468–479, May 2025, doi: 10.33364/algoritma/v.22-1.2303.
[14] kaggle, “Market_Basket_Optimisation.” Accessed: Apr. 02, 2026. [Online]. Available: https://www.kaggle.com/datasets/rupakroy/mar ket-basket-optimization/data?select=Market_Basket_Opti misation.csv
[15] K. M. H. Muhimmatul Arofah, Mohammad Idhom, “Analisis perbandingan algoritma apriori dan fp- growth dalam menentukan pola pembelian konsumen toko bangunan,” vol. 9, no. 1, pp. 90–101, 2026.
[16] A. Nur Rahmi and Yosaphat Ananda Mikola, “IMPLEMENTASI ALGORITMA APRIORI UNTUK MENENTUKAN POLA PEMBELIAN PADA CUSTOMER (STUDI KASUS : TOKO BAKOEL SEMBAKO),” Inf.Syst. J., vol. 4, no. 1, pp. 14–19, May 2021, doi: 10.24076/infosjournal.2021v4i1.561.
[17] Yusuf Husain, Enny Dwi Oktaviyani, and Sherly Christina, “Analisis Perbandingan Algoritma Apriori, FP-Growth, Dan Eclat dalam Menemukan Pola Pembelian Konsumen,” KONSTELASI Konvergensi Teknol. dan Sist. Inf., vol. 3, no. 2, pp. 231–243, Dec. 2023, doi: 10.24002/konstelasi.v3i2.7007.
[18] A. P. Ritonga, S. Z. Harahap, and M. Masrizal, “Comparative Analysis of Incoming Goods Patterns Using FP-Growth and Apriori Algorithms: A Case Study in Retail,” J. Comput. Networks, Archit. High Perform. Comput., vol. 7, no. 3, pp. 1007–1020, Aug. 2025, doi: 10.47709/cnahpc.v7i3.6776.







