Comparison of Apriori and FP-Growth Algorithms in Market Basket Analysis for Online Book Sales
DOI:
https://doi.org/10.30871/jaic.v10i1.11921Keywords:
Association Rule Mining, Apriori, FP-Growth, Market Basket Analysis, Book SalesAbstract
This research aims to compare the performance of the Apriori and FP-Growth algorithms in the process of data mining association patterns in the online sales transaction data of a bookstore. The dataset used consists of 74.090 transactions resulting from data cleaning from the period January-June 2025. The analysis was conducted through the stages of data collection, followed by data preparation consisting of data cleaning and data transformation, and then continued to the modeling stage of the two algorithms. The results of the experiment show that Apriori tends to be faster on small-scale datasets with simple transaction patterns, while FP-Growth has more stable memory usage and shows more efficient processing time on parameters that analyze larger data. Both algorithms produce identical numbers and contents of association rules for each parameter variation, indicating that the significant difference lies in performance efficiency, and not in the knowledge patterns produced. Rules with the highest lift values, such as the association between the books "Rumah Kaca" and "Jejak Langkah" (lift: 183,306 & confidence 0,903) and between the books "Namaku Alam" and "Pulang" (lift: 34,062 & confidence: 0,51) indicate strong purchasing patterns between titles with the same author and theme. These findings have the potential to support cross-selling strategies and product recommendations in online sales systems. This research is still limited to a relatively small and homogeneous dataset, so further using a broader data coverage is recommended to test the algorithm's performance more comprehensively.
Downloads
References
[1] Caroline, Yuswardi, and Y. U. Rofi’i, “Analysis of E-Commerce Purchase Patterns Using Big Data : An Integrative Approach to Understanding Consumer Behavior,” Int. J. Softw. Eng. Comput. Sci., vol. 3, no. 3, pp. 352–364, 2023, doi: 10.35870/ijsecs.v3i3.1840.
[2] A. I. Idris et al., “Comparison of Apriori , Apriori-TID and FP-Growth Algorithms in Market Basket Analysis at Grocery Stores,” IJICS (International J. Informatics Comput. Sci., vol. 6, no. 2, pp. 107–112, 2022, doi: 10.30865/ijics.v6i2.4535.
[3] D. S. Nugroho, N. Islahudin, V. Normasari, and S. Z. Al Hakiim, “Application of Market Basket Analysis (MBA) Data Mining using the Apriori and FP-Growth Association Methods for Bundling Strategies at Wan Caffeine Addict Yogyakarta,” JISI J. Integr. Sist. Ind., vol. 11, no. 1, pp. 121–134, 2024, doi: 10.24853/jisi.11.1.121-134.
[4] A. F. Haqqi, W. Purnomo, and A. N. Rusydi, “Market Basket Analysis menggunakan Algoritma FP-Growth untuk Strategi Penjualan (Studi Kasus : PT XYZ),” J. Pengemb. Teknol. Inf. dan Ilmu Komput., vol. 9, no. 7, pp. 1–14, 2025, [Online]. Available: https://j-ptiik.ub.ac.id/index.php/j-ptiik/article/view/15107
[5] R. A. Machfudiyanto, J.-H. Chen, Y. Latief, T. S. N. Rachmawati, A. M. Arifai, and N. Firmansyah, “Applying Association Rule Mining to Explore Unsafe Behaviors in the Indonesian Construction Industry,” Sustain. J., vol. 15, no. 6, 20023.
[6] D. Dwiputra, A. M. Widodo, H. Akbar, G. Firmansyah, and U. E. Unggul, “Evaluating the Performance of Association Rules in Apriori and FP-Growth Algorithms: Market Basket Analysis to Discover Rules of Item Combinations,” JWS J. World Sci., vol. 2, no. 8, pp. 1229–1248, 2023, doi: 10.58344/jws.v2i8.403.
[7] E. W. Pujiharto, Kusrini, and A. Nasiri, “Comparative Analysis of The Performance of The Apriori, FP-Growth and Eclat Algorithms In Finding Frequency Patterns In The Ina-Cbg’s Dataset,” Cogito Smart J., vol. 9, no. 2, pp. 340–354, 2023, doi: 10.31154/cogito.v9i2.547.340-354.
[8] M. Rosadi and M. S. Hasibuan, “Comparison Of Apriori And Fp-Growth Algorithms In Analysing Consumer Behavior Towards The Purchase Of Electronic Data,” PIKSEL Penelit. Ilmu Komput. Sist. Embed. Log., vol. 12, no. 2, pp. 399–408, 2024.
[9] K. I. Lestari, S. Putra, and E. Rilvani, “The Efficiency Problem of the Apriori Algorithm and FP-Growth Evaluation Based on Literature Studies,” J. Media Akad., vol. 3, no. 7, pp. 1–15, 2025, doi: 10.62281.
[10] M. Raihan and Sutisna, “Comparative Analysis of the Apriori and FP-Growth Algorithms to Determine Sales Strategies at Maestro Jakarta Cafe & Space,” J. Indones. Manaj. Inform. dan Komun., vol. 5, no. 3, pp. 3147–3157, 2024, doi: 10.35870/jimik.v513.994.
[11] U. M. Wulandari, A. T. Suseno, and M. Kholilurrahman, “Market Basket Analysis Using FP-Growth and Apriori on Distro Store Sales Transaction,” MATICS J. Ilmu Komput. dan Teknol. Inf., vol. 17, no. 1, pp. 12–18, 2025, doi: 10.18860/mat.v17i1.28820.
[12] R. Regulagadda et al., “Customer Personality Analysis using Segmentation and Exploratory Data Analysis,” IJISAE Int. J. Intell. Syst. Appl. Eng., vol. 12, no. 4s, pp. 794–800, 2024, [Online]. Available: https://ijisae.org/index.php/IJISAE/article/view/3864
[13] A. F. Achmad, A. Rahim, and N. A. Verdikha, “Implementasi Data Mining Algoritma Appriori pada Data Transaksi PIK Store,” JIP (Jurnal Inform. Polinema), vol. 11, no. 2, pp. 203–212, 2023, [Online]. Available: https://pdfs.semanticscholar.org/a3a6/719520863011cd35a933b303ebcb41b4e04f.pdf
[14] A. Rahmadsyah and N. Mayasari, “Grouping Goods With The Association Rule Method Using A Priori Algorithms In Modern Retail Stores,” Int. J. Sci. Technol. Manag., vol. 3, no. 6, pp. 1527–1532, 2022, doi: 10.46729/ijstm.v3i6.637.
[15] I. D. Hunyadi, N. Constantinescu, and O.-A. Ticleanu, “Efficient Discovery of Association Rules in E-Commerce : Comparing Candidate Generation and Pattern Growth Techniques,” Appl. Sci., vol. 15, no. 5498, pp. 1–20, 2025, doi: 10.3390/app15105498.
[16] L. Ahmedi, E. Rexhepi, and E. Bytyçi, “Using Association Rule Mining to Enrich User Profiles with Research Paper Recommendation,” Int. J. Comput. Digit. Syst., vol. 11, no. 1, pp. 1141–1146, 2022, doi: 10.12785/ijcds/110192.
[17] A. H. Wibowo, M. Andivas, D. Harits, H. Windyatri, and D. S. Nugraha, “A Pattern Analysis on Goods Purchase Relationship for Minimarket ’ s Customers by Using Association Rule - Market Basket Analysis Method ( AR-MBA ),” J. Inf. Technol. Ampera, vol. 4, no. 3, pp. 195–206, 2023, [Online]. Available: https://journal-computing.org/index.php/journal-ita/index
[18] S. A. Miranda, Fahrullah, and D. Kurniawan, “Implementasi Association Rule Dalam Menganalisis Data Penjualan Sheshop dengan Menggunakan Algoritma Apriori,” Metik J., vol. 6, no. 1, pp. 30–36, 2022, doi: 10.47002/metik.v6i1.342.
[19] M. C. Sugianto, A. M. S, and I. A. Musdar, “Implementasi Data Mining Menggunakan Algoritma Apriori pada Toko Rumah Skincare 88,” JTRISTE, vol. 11, no. 1, pp. 25–38, 2024.
[20] R. Wahyuningsih, A. Suharsono, and N. Iriawan, “Comparison of Market Basket Analysis Method Using Apriori Algorithm, Frequent Pattern Growth (FP-Growth) and Equivalence Class Transformation (ECLAT) (Case Study: Supermarket ‘X’ Transaction Data for 2021),” Bus. Financ. J., vol. 8, no. 2, pp. 192–201, 2021, doi: 10.33086/bfj.v8i2.5226.
[21] F. Petry and R. Yager, “Data Mining Using Association Rules for Intuitionistic Fuzzy Data,” Information, vol. 14, no. 7, p. 372, 2023, doi: https://doi.org/10.3390/info14070372.
[22] J. M. Luna, M. Ondra, H. M. Fardoun, and S. Ventura, “Optimization of Quality Measures in Association Rule Mining : An Empirical Study,” Int. J. Comput. Intell. Syst., vol. 12, no. 1, pp. 59–78, 2018, doi: 10.2991/ijcis.2018.25905182.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Sofia Rizkal Karimah, Erika Devi Udayanti

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License (Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) ) that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).








