<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Triajeng Nuraisyah on Medium]]></title>
        <description><![CDATA[Stories by Triajeng Nuraisyah on Medium]]></description>
        <link>https://medium.com/@triajengnuraisyah34?source=rss-1fc054355936------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*LJOPAZGKZus7GGha.jpg</url>
            <title>Stories by Triajeng Nuraisyah on Medium</title>
            <link>https://medium.com/@triajengnuraisyah34?source=rss-1fc054355936------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 21:39:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@triajengnuraisyah34/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Applying Apriori and Frequent Pattern-Growth Algorithm to determine Blibli’s sellers’ behavior on…]]></title>
            <link>https://medium.com/bliblidotcom-techblog/applying-apriori-and-frequent-pattern-growth-algorithm-to-determine-bliblis-sellers-behavior-on-a9f990fcaa59?source=rss-1fc054355936------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9f990fcaa59</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[apriori]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[e-commerce-solution]]></category>
            <dc:creator><![CDATA[Triajeng Nuraisyah]]></dc:creator>
            <pubDate>Mon, 28 Oct 2024 08:47:25 GMT</pubDate>
            <atom:updated>2024-11-06T10:27:14.980Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Applying Apriori and Frequent Pattern-Growth Algorithm to determine Blibli’s sellers’ behavior on completing certain events</strong></h3><p><em>In collaboration with </em><a href="https://medium.com/u/363212116cca"><em>Fedric Fernando</em></a></p><p>Apriori and FP-Growth are the most widely used algorithms for mining association rules. It identifies frequent item sets in the dataset, which are then used to generate association rules.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kmJ8-yVOvgAJS0CSNG8h2w.jpeg" /></figure><p><strong>What is The Difference between Apriori and FP-Growth?</strong></p><ul><li>Apriori frequently uses itemsets by performing multiple database scans during the mining process to generate candidate itemsets. As the dataset grows, the number of scans increases, slowing down the mining process significantly. Additionally, it consumes a large amount of memory, the search space for frequent itemsets expands exponentially, and the computational effort and processing time increase accordingly.</li><li>The FP-Growth algorithm offers several advantages over Apriori, especially when dealing with large datasets. It is because of the elimination of repeated database scans. It only scans the database twice, consisting of building a frequency table and constructing a compact FP-tree. As a result, the mining process is faster although using a large dataset. As a further point, FP-Growth reduces the search space and memory usage.</li></ul><p>In both algorithms, support, confidence, and lift are the key metrics used to evaluate the strength and significance of association rules.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*RWh9xe1HBby31C-YoY4JGQ.png" /></figure><p><strong>How Do Association Rules Reveal Seller Behavior Patterns?</strong></p><p>The data used is the activity of the sellers before the certain activity that we want to check. We can identify multiple activities to define an occurrence of an event. As an example<em>, </em><strong><em>case 1 </em></strong><em>— how the seller’s chat activity and their store checks before receiving an order.</em> After getting all the data, we need to convert the data into categories. These are the examples of data grouping that we can do:</p><ul><li><strong>Receiving an order:</strong> categorizing the data into whether an order was received or not</li><li><strong>Seller chat activity:</strong> grouping the data based on whether there was chat activity with the customer or not</li><li><strong>Store checking:</strong> data can be grouped according to whether sellers check their store frequently or not. Another method is to classify the frequency of store checks into three categories: low sessions, medium sessions, and high sessions. However, in the first case, we limit the categorization to just two groups: those who check their store and those who do not.</li></ul><p>After completing the mining process, we obtain results that can be summarized in the following table. Both Apriori and FP-Growth will result in several association rules with support, confidence, and lift. In case we want to check that<em> the activities are done by the seller before having true for activity C</em> <em>(</em><strong><em>case 2</em></strong><em>)</em>, then we will only select all rules that have the consequent [Activity C — True].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/1*Cm9RLKvmg7cIxCrpAJzyhA.png" /></figure><p><strong>Implementation of apriori logic</strong></p><p>Here’s the customized Apriori algorithm for our cases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/224/1*fFvk8jvMJdKBvBOaFEeCOg.png" /></figure><p>By using these implementations, we’re able to gather some of the conclusions, here’s one of them:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*qPjAgkm1K4dvQTZzv-z99w.png" /><figcaption><strong>Using Case 1</strong> — how the seller’s chat activity and their store checks prior to receiving an order</figcaption></figure><p>In the graph above, we use the X-axis as the confidence level, and the Y-axis as the Lift level. Each circle is the activity-set and the circle size is based on the support, the bigger the circle is the bigger the support is.</p><p>As mentioned previously, Lift greater than 1 means all the activity is correlated positively with the consequent that we desired, while 1 means inclusive and lesser than 1 means correlated negatively with the consequent. Therefore, we can group the activity-sets into 3 categories:</p><ul><li><strong>Blue circle:</strong> the Batman &amp; Robin, which means all the activity sets in that category correlate positively and often appear together. For example: chat replies and store checking are correlated positively with orders from sellers.</li><li><strong>Red circle:</strong> team of work, which means all the activity sets in that category correlate positively but rarely appear together. For example: chat replies are correlated positively with orders from sellers.</li><li><strong>Last, Yellow circle:</strong> water &amp; oil, as the name suggests, it’s correlated negatively with the consequent and rarely appear together. For example: store checking is correlated negatively with orders from sellers.</li></ul><p>This result shows that using the Apriori algorithm is possible to get the seller’s behavior/activity pattern before a certain event.</p><p><strong>Implementation of FP-Growth</strong></p><p>After some cases using Apriori, we are getting more issues when we’re using a larger dataset, since Apriori works like brute force, getting all pairing all activity into an activity set. Therefore, we try to use a similar logic but a different flow, which is FP-Growth.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*WozF6XFBTNtyRD-yxNNkBA.png" /></figure><p>As mentioned before, FP-Growth needs to scan the database twice when compared to Apriori, which scans the data rows for each iteration. The pairing of activities is not done in this algorithm, making it faster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*6P0Ncn8MGEumBSmWUdSrdA.png" /><figcaption><strong><em>Using Case 2</em></strong><em> — the activities done by seller prior to have true for activity C</em></figcaption></figure><p>The graph above shows all the activity sets that have supported more than 10%. All the activity sets have lifted more than 1 and confidence quite big, which means all the activity sets above all have positive correlation with the desired result and often appeared together.</p><p>If we’re looking at the best activity sets, maybe we can pick the top left one that is quite big or has big support. There are 3 activity sets:</p><p>[Activity F Very High, Activity E Very High, Activity D High], [Activity F Very High, Activity D High], and [Activity E Very High, Activity D High].</p><p><strong>Conclusions</strong></p><p>Both Apriori and FP-Growth can give us the seller’s behavior/activity pattern before a certain event. But when the dataset becomes bigger, the Apriori algorithm will cost more and probably catch an error, therefore, if you want to try but receive an error like us, we can recommend you try the FP-Growth algorithm, since the output is like Apriori.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9f990fcaa59" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bliblidotcom-techblog/applying-apriori-and-frequent-pattern-growth-algorithm-to-determine-bliblis-sellers-behavior-on-a9f990fcaa59">Applying Apriori and Frequent Pattern-Growth Algorithm to determine Blibli’s sellers’ behavior on…</a> was originally published in <a href="https://medium.com/bliblidotcom-techblog">Blibli.com Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>