<?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 Emre Ateş on Medium]]></title>
        <description><![CDATA[Stories by Emre Ateş on Medium]]></description>
        <link>https://medium.com/@emre_ates?source=rss-1f0e0dfbe4d5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*6ojlAE-mt1Ju5FfH.jpg</url>
            <title>Stories by Emre Ateş on Medium</title>
            <link>https://medium.com/@emre_ates?source=rss-1f0e0dfbe4d5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 05:55:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@emre_ates/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[A/B Testing — The Mathematics Behind Data-Oriented Decision-Making]]></title>
            <link>https://medium.com/@emre_ates/a-b-testing-the-mathematics-behind-data-oriented-decision-making-1b31762a9093?source=rss-1f0e0dfbe4d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b31762a9093</guid>
            <category><![CDATA[p-value]]></category>
            <category><![CDATA[a-b-testing]]></category>
            <category><![CDATA[anova]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Emre Ateş]]></dc:creator>
            <pubDate>Thu, 24 Aug 2023 15:09:29 GMT</pubDate>
            <atom:updated>2023-08-25T08:20:26.976Z</atom:updated>
            <content:encoded><![CDATA[<h3>A/B Testing — The Mathematics Behind Data-Oriented Decision-Making</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PuckKalhoL6HHP7R_J5Shw.png" /><figcaption>by author</figcaption></figure><p>You could be working at a pharmaceutical company, an e-commerce website, or a video gaming company — actually, it doesn’t really matter which company you work for 😊 What matters is whether your company makes decisions based on data. A/B Testing represents the mathematics behind this data-driven decision-making process. In other words, it’s an experimental method where two different situations are compared.</p><p>In general, A/B tests are a powerful tool in both the business world and scientific research to understand relationships between variables, test hypotheses, and make more informed decisions. The goal is to measure the effectiveness of a new drug about to be introduced to the market and determine whether there’s a placebo effect or if it genuinely treats the condition. Similarly, it helps evaluate whether a headline increases or decreases click-through rates, or if a sales campaign positively impacts sales… and so on. In essence, it’s used to rigorously test the accuracy of our hypotheses in various areas of interest, leaving no room for chance.</p><h3>How to Run an A/B Test?</h3><p>In A/B testing, we usually compare either the averages of two groups or the ratios related to the groups. These comparisons are done using either the <strong>Independent Samples T-Test</strong> or the <strong>Two-Sample Proportion Test</strong>, or if we have more than two groups to compare, we use the <strong>Analysis of Variance (ANOVA) method</strong>.</p><h3>1- Independent Samples T-Test:</h3><p>We map the distribution information of our two samples to a distribution space based on a proven theorem.</p><p>In simple terms, it allows us to compare apples to apples. Considering the sample means, standard deviations, and observation counts, we standardize the two samples internally to bring them to the same apple-to-apple level, enabling us to make comparisons.</p><p>For this comparison level to be applicable, two conditions must be met:</p><ul><li><strong>Normality Assumption:</strong> The distribution of both samples should resemble a bell curve, in other words, it should be normally distributed.<br> — The normality or skewness of the samples is checked using the <strong>Shapiro Test</strong>.</li><li><strong>Homogeneity of Variance:</strong> The structures of the distributions (variances) of the two samples should be similar in terms of deviation from the mean.<br> — The similarity of the structures between samples is examined using the<strong> Levene Test</strong>.</li></ul><p>Samples:</p><ul><li><strong>If both normality assumption and homogeneity of variance are met:</strong> A parametric test is conducted, the <strong>Independent Samples T-Test</strong>.</li><li><strong>If the normality assumption is not met, meaning data doesn’t follow a normal distribution:</strong> A non-parametric test is performed, the<strong> Mann Whitney U Test</strong> (used for non-standard cases).</li><li><strong>If the normality assumption is met but the homogeneity of variance is not met:</strong> A corrected form of T-Test called <strong>Welch Test</strong> is applied.</li></ul><h4><strong>Steps to Follow for an A/B Test:</strong></h4><ol><li><strong>Formulate Hypotheses:</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*D3IGO8BO6Yx-VdaK3OQAaQ.png" /><figcaption>by author</figcaption></figure><p><strong>2. Assumption Checks:</strong></p><ul><li><strong>Normality Assumption: </strong>Indicates that both groups follow a normal distribution separately.</li><li><strong>Homogeneity of Variance:</strong> Assesses whether the distributions of both groups are similar.</li></ul><p><strong>3. Application of Hypothesis Testing:</strong></p><ul><li><strong>If normality is not met:</strong> Independent Samples T-Test (parametric test)</li><li><strong>If normality is met but homogeneity of variance is not met: </strong>Welch Test</li><li><strong>If normality is not met:</strong> Mann Whitney U Test (non-parametric test)</li></ul><p><strong>4. Interpret Results Based on the p-Value.</strong></p><h4>What is p-value and how to interpret it?</h4><figure><img alt="The p-value is a number that indicates how likely events occurred by chance." src="https://cdn-images-1.medium.com/max/1024/1*LDi7b-yWV5J5xuF9sJYVJQ.jpeg" /><figcaption>by author</figcaption></figure><p>The p-value is a number that indicates how likely events occurred by chance.</p><p>It’s often taken as 0.05 and referred to as the alpha level. The alpha level determines the significance level of a hypothesis test. If the p-value is less than 0.05, it generally means “I can reject the null hypothesis (H<strong>₀</strong>)” and the result is considered statistically significant. A lower alpha level (e.g., 0.01) sets a stricter threshold for significance, while a higher alpha level (e.g., 0.10) provides a wider region of significance.</p><p>Let’s say you worked on a recommendation system project for 3 months, 6 months, or 7 months, maybe even developed a model. You integrated this model into your live system, and it makes product recommendations to your customers based on certain predictions. Suppose that before implementing this system, the revenue for a month and a half was $100K, and with the system in place, the revenue for the same period increased to $110K. At first glance, there seems to be a difference between the two values. So, what do we need to do to say “there is a statistically significant difference” between the old and new systems? We need to apply an A/B Test and look at the p-value. Let’s formulate our hypothesis and carry out the test.</p><ol><li>Formulate hypotheses</li></ol><ul><li><strong>H₀ (µ₁ = µ₂):</strong> There is no significant difference between sales before and after the model.</li><li><strong>H₁ (µ₁ ≠ µ₂): </strong>There is a difference between the two periods.</li></ul><p>2. Conduct assumption checks and decide which tests to apply based on the results.</p><p>3. Apply the chosen tests and calculate the p-value.</p><p>4. If the p-value is greater or less than 0.05, make the following interpretations:</p><ul><li><strong>When the p-value is &lt; 0.05: </strong>We reject H<strong>₀</strong> because the p-value is smaller than an acceptable error rate. Our hypothesis was: “There is no significant difference between sales before and after the model.” This means that <strong>there is a statistically significant difference</strong> in sales between the two periods.</li><li><strong>When the p-value is &gt; 0.05:</strong> We cannot reject H<strong>₀</strong>. We conclude that “There is no significant difference between sales before and after the model.” This indicates that the 10K revenue <strong>difference occurred by chance</strong>, and we provide evidence that this difference happened by random chance from a scientific standpoint (for example, there might have been a seasonal effect). The time spent has not added value. 😒</li></ul><p><strong>What if the p-value is 0.051 or 0.049?</strong></p><ul><li>The error margin can be relaxed from 0.05 to 0.1.</li></ul><p>— If you don’t want to relax it to 0.1:</p><ul><li>I continue to observe the data.</li><li>I conduct a seasonality analysis.</li><li>I try to increase the sample size.</li><li>If available, I examine outliers in the data.</li></ul><p>— In short, prefer not to conclude <em>“this experiment has failed”</em> and continue to observe the data without manipulating it.</p><h3>2- Two-Proportion Test:</h3><p>This involves examining the probabilities of two events of interest occurring. Unlike the previous test where we had averages, in this test, we’ll be working with proportions and formulating hypotheses based on these proportions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*Bzks5MtluBufsjCn4d7bhw.png" /><figcaption>by author</figcaption></figure><p>After formulating hypotheses, we use the <strong>Proportion Z Test</strong> to calculate and interpret the resulting p-value. Similar to the previous test:</p><ul><li>If the p-value is &lt; 0.05, H<strong>₀</strong> is rejected.</li><li>If the p-value is &gt; 0.05, H<strong>₀</strong> cannot be rejected.</li></ul><p>For instance, consider a company running an advertising campaign and wanting to assess the impact of a new advertising strategy and an old one. In this case, we have two different groups, one subjected to the old strategy and the other to the new strategy.</p><p>Number of individuals in the old strategy group: 200 <br>Number of individuals in the new strategy group: 220 <br>Number of individuals purchasing a product in the old strategy group: 40 Number of individuals purchasing a product in the new strategy group: 60</p><p>Whether there is a statistically significant difference between the old and new strategies can be determined through the results of the Sample Proportion Test (<strong>Proportion Z Test)</strong>.</p><h3><strong>3- ANOVA — Analysis of Variance and A/B Testing:</strong></h3><p>This method is used to test whether the means are equal among multiple groups and it examines the ratio of within-group variance to between-group variance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/991/1*7b0x1hfeljoY0WJGGQYtQg.png" /><figcaption>by author</figcaption></figure><p>For instance, a food producer wants to determine if different production methods affect product weight. Three different production methods are used, and 10 product samples are taken from each method. By using ANOVA — Analysis of Variance, they aim to determine if there’s a significant difference among these production methods. If there’s a significant difference, methods like Tukey’s HSD test can be employed to identify which production methods differ from one another. This way, you can determine which groups are statistically significantly different from each other.</p><p>In summary, A/B tests are a powerful tool used in both the business world and scientific research to understand relationships between variables, test hypotheses, and make more informed decisions. However, they should be approached as a repeated and reliable process rather than a one-time experiment. The results obtained through A/B tests will contribute to your business achieving its goals and paving the way for a successful future. Remember, a data-driven approach is the key to your success.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b31762a9093" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Powering Strategic Decisions with Data: Senior Leaders’ Roadmap to CRM Analytics]]></title>
            <link>https://medium.com/@emre_ates/powering-strategic-decisions-with-data-senior-leaders-roadmap-to-crm-analytics-9f6f47b4a9b3?source=rss-1f0e0dfbe4d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f6f47b4a9b3</guid>
            <category><![CDATA[strategy]]></category>
            <category><![CDATA[crm]]></category>
            <category><![CDATA[customer-lifetime-value]]></category>
            <category><![CDATA[rfm-analysis]]></category>
            <category><![CDATA[crm-analytics]]></category>
            <dc:creator><![CDATA[Emre Ateş]]></dc:creator>
            <pubDate>Tue, 08 Aug 2023 15:34:03 GMT</pubDate>
            <atom:updated>2024-02-20T06:26:21.689Z</atom:updated>
            <content:encoded><![CDATA[<p>CRM, RFM, CLV… These terms might not be unfamiliar to you, and you might even be crafting strategies using these data points. Fantastic! Maybe these concepts aren’t entirely new to you, but you’re diving into customer segmentation and strategy formation based on it. Or perhaps this is entirely new territory, and you’re keen on starting from scratch…</p><p>Regardless, in this piece, I’ll break down CRM analytics for you simply and understandably. By the end, you’ll uncover how to harness customer data effectively. Let’s dive right in!</p><h3><strong>CRM — Customer Relationship Management</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*CEfNZEowSGPft7TA06EhSQ.jpeg" /><figcaption>source: PowerPoint creative content booklet</figcaption></figure><p>No matter the size of your business, if you’re an owner making sales, the first thing you need to tackle is Customer Relationship Management. <strong>It’s a general concept that expresses the art of handling customers. </strong>A simple term encompassing the customer management of companies, be they with products or services, and their sales processes.</p><p>This covers all processes related to customers:</p><p>· <strong>Customer lifecycle optimizations:</strong> This involves the strategies or funnels that need to be tracked from the first contact with the customer to the first purchase. UX and UI are crucial in this step.<br>· <strong>Communication:</strong> The tone when speaking with customers, or the tonality applied in written forms. The choice of colors and visuals on your website or banners, and so on.<br>· <strong>Customer acquisition</strong> efforts.<br>· <strong>Customer retention</strong> or <strong>churn</strong> campaigns.<br>· <strong>Cross-selling, upselling</strong>.<br>· <strong>Segmentation</strong> studies.</p><p>Based on these steps, you create various groups/segments/personas. For example, you can form segments like “buyers,” “new members,” or “non-purchasers.” Then, you focus on these segments separately, crafting strategies to increase sales, prevent customer churns, or win back customers.</p><p>In essence, <strong>if a company has products and is involved in sales, the first place to analyze should be its own CRM.</strong></p><h3><strong>CRM Analytics</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dK5c8v-wbUs5bDeYgrY3xw.png" /><figcaption>source: <a href="https://www.linkedin.com/in/emreates/">https://www.linkedin.com/in/emreates/</a></figcaption></figure><p><strong>CRM Analytics is the data-driven approach to handling the customer communication processes</strong> I’ve listed above in bullet points.</p><p>Virtually all companies touching on CRM analytics kick off with the following three core practices:</p><p><strong>1- Customer segmentation with RFM</strong> (Recency, Frequency, Monetary)<br><strong>2- Customer Lifetime Value</strong> (CLV or CLTV)<br>3<strong>- Customer Lifetime Value Prediction</strong></p><p>The fundamental drive behind CRM Analytics:</p><p>• To segment customers,<br>• To devise distinct strategies for these segments,<br>• To make projections for campaigns, sales, or budgeting efforts.</p><p>Or with <a href="https://www.linkedin.com/in/vahitkeskin/"><em>Vahit Keskin</em></a><em>’</em>s one-sentence explanation:</p><blockquote><strong>CRM Analytics helps us make decisions among uncertainties with the least error.</strong></blockquote><p>Let’s delve into how we can achieve these motivations.</p><h3><strong>1- Customer Segmentation with RFM</strong></h3><figure><img alt="A template describing RFM analysis. Recency, Frequency, Monetary and RFM Score definitions were made, respectively." src="https://cdn-images-1.medium.com/max/1024/1*7Va4lCVHRYvZJi3hR9oPRw.png" /><figcaption>source: <a href="https://www.linkedin.com/in/emreates/">https://www.linkedin.com/in/emreates/</a></figcaption></figure><p><strong>RFM is a rule-based method for customer segmentation.</strong> This concept is represented by the initials of recency, frequency, and monetary</p><ul><li><strong>Recency</strong> — <em>How recently did the customer purchase?</em></li><li><strong>Frequency</strong> — <em>How often does the customer purchase?</em></li><li><strong>Monetary</strong> — <em>How much does the customer spend?</em></li></ul><p>Let’s say your boss says, “Prepare an action plan (or campaign) for our highest-paying customers.” What would you do? To find the highest payers, you would examine the purchase amounts for each customer, rank them from highest to lowest, and identify who has contributed the most. Now, how many of these high-payers are there? How many individuals are you planning to take action for? To determine this, you might consider the following:</p><p>1- Progress with a ratio. You could aim for the top 3% or 5% of the highest payers.<br> 2- You might use the Pareto principle (the rule 80/20) or,<br> 3- You can segment all your customers by conducting RFM analysis.</p><p>Consider having a sales dataset like the one below and let’s segment them using RFM analysis:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DT5KHbiO_Tiz2xd0yVRN6g.png" /><figcaption>source: <a href="https://www.linkedin.com/in/emreates/">https://www.linkedin.com/in/emreates/</a></figcaption></figure><p><strong>Step 1: Calculating Recency Score</strong></p><p>• Determine the most recent purchase date for each customer.<br>• Subtract the most recent purchase date from a specific date you want to analyze. This will give you the “Recency” value for each customer.<br>• <strong>Assign a score of 5 to customers who made the most recent purchases </strong>and a score of 1 to those who made purchases long ago. For instance, customers who made a purchase one day before the analysis date would receive a score of 5 (max score), while customers who made a purchase 100 days ago would receive a score of 1 (min score).</p><p><strong>Step 2: Calculating Frequency Score</strong></p><p>• Determine the total number of purchases for each customer.<br>• Give a score of 1 to customers with the lowest purchase frequency and a score of 5 to those with the highest purchase frequency.</p><p><strong>Step 3: Calculating Monetary Score</strong></p><p>• Determine the total purchase amount for each customer.<br>• Assign a score of 1 to customers with the lowest spending and a score of 5 to those with the highest spending.</p><p>For all these steps, you can use the <strong>qcut</strong> function.</p><p><strong>But what is qcut function? </strong><em>It’s a function from the Pandas Library that divides a dataset into groups of equal size. Imagine you have a dataset of 100 elements and you want to divide it into 5 groups of equal size. The qcut function would split this dataset into 5 groups, each containing 20 elements. This ensures that each group has the same size. This way, we can continue our operations, maintaining a scale where the highest score is 5 and the lowest score is 1.</em></p><p><strong>Step 4: Calculating RFM Score</strong></p><p>• Concatenate each customer’s Recency, Frequency, and Monetary scores side by side to obtain the RFM score. For instance, if a customer has a Recency score of 5, a Frequency score of 3, and a Monetary score of 4, their RFM score would be 534.</p><figure><img alt="a sales data sample that the R, F, and M scores were calculated" src="https://cdn-images-1.medium.com/max/1024/1*CPtOmmGD4La8Ea1fEWKoWQ.png" /><figcaption>source: <a href="https://www.linkedin.com/in/emreates/">https://www.linkedin.com/in/emreates/</a></figcaption></figure><p>RFM scores are ready! Now it’s time for segmentation. Let’s segment your customers by placing their recency and frequency scores on separate axes.</p><figure><img alt="RFM segmentation table and the segments’ names: Can’t Lose Them, Loyal Customers, Champions, At Risk, Need Attention, Potential Loyalists, Hibernating, About to Sleep, Promising, New Customer" src="https://cdn-images-1.medium.com/max/1024/1*xBWfKLOym-_hfVz99jG62A.png" /><figcaption>source: <a href="https://www.linkedin.com/in/emreates/">https://www.linkedin.com/in/emreates/</a></figcaption></figure><p>You might wonder why we didn’t consider the monetary value when creating the table above. The reason is that we are interested in the “frequent” customers — those who keep coming back for more. A customer who frequently purchases from us is more valuable than someone who makes a one-time large purchase and never returns. Think of that customer as a tourist passing by. This is why we use the two-dimensional aspect of the RFM axes.</p><p>We’re also adding the segment names from the RF table to our sales data, and the final view of our data takes the following shape:</p><figure><img alt="a sales data sample that the R, F, M and RFM scores were calculated" src="https://cdn-images-1.medium.com/max/1024/1*8oA9Hy4KjmV6Q009mSgtzw.png" /><figcaption>source: <a href="https://www.linkedin.com/in/emreates/">https://www.linkedin.com/in/emreates/</a></figcaption></figure><p>Coming back to our initial question, our most profitable customers are those in the “<strong>Champions</strong>” segment. Within the analyzed period, they’ve made purchases both frequently and recently.</p><p>— Now, the second question: which other segments in the RF table should we focus on?<br>• The segments with the highest value of Frequency.</p><p>— But why?<br>• Customers in these segments (“Can’t Lose Them”, “Loyal Customer”, and “Champions”) have made purchases from us very often. It’s well-known that acquiring new customers is more costly than retaining the ones we already have.</p><p>On the other hand, even though “Can’t Lose Them” customers haven’t purchased from us recently, they used to do so frequently in the past. In this case, we should aim to win these customers back and develop new strategies to move them into the “Loyal Customer” segment.</p><p>Similarly, specific strategies can be devised for each segment in the table.</p><h3><strong>2-</strong> <strong>Customer Lifetime Value (CLV or CLTV)</strong></h3><p>Customer Lifetime Value is the product of the average purchase amount and the total number of purchases for each of your customers.</p><p>So, what benefits does knowing the CLV (or CLTV) value of each customer bring us?</p><p>1- <strong>Strategic Decision Making:</strong> CLV is used to support strategic decisions of our business. Companies use CLV data to devise strategies that better reach their business objectives.</p><p>2- <strong>Increasing Customer Loyalty</strong>: By offering special deals and promotions to customers with high CLV, you can increase customer loyalty. Loyal customers shop more frequently and tend to remain customers for a longer period.</p><p>3- <strong>Efficient Marketing Expenses</strong>: Focusing on customers with high CLV allows you to use marketing expenses more efficiently.</p><p>4- <strong>Product and Service Development</strong>: Analyzing high CLV customers can help determine which of your products or services sell better and what types of products or services our customers prefer. This information is crucial for improving products and services to meet customer demand.</p><p>5- <strong>Measuring Financial Performance</strong>: You can use CLV to understand the value of our customer database and evaluate our financial performance. Having a high number of high CLV customers indicates long-term success while having a high number of low CLV customers signals a need to review customer retention strategies.</p><p>6- <strong>Reducing Customer Churn Rate</strong>: Developing strategies to transform low CLV customers into more valuable ones helps reduce your customer churn rate.</p><p>In summary, <strong>Customer Lifetime Value helps you embrace a customer-centric approach and is a tool that assists you in achieving your KPIs.</strong></p><h3><strong>3- Customer Lifetime Value Prediction</strong></h3><p>Customer Lifetime Value Prediction is the estimation of the total expected spending over a customer’s long-term relationship with a business.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*ktjvD_24dOd77xlbt7jRkg.png" /><figcaption>source: <a href="https://www.analyticsvidhya.com/blog/2022/01/rfm-and-cltv-to-know-your-customers-better/">https://www.analyticsvidhya.com/blog/2022/01/rfm-and-cltv-to-know-your-customers-better/</a></figcaption></figure><p>We use the <strong>BG-NBD</strong> (Beta Geometric/Negative Binomial Distribution) and <strong>Gamma-Gamma models</strong> for Customer Lifetime Value (CLTV) prediction because they offer a comprehensive approach to understanding and forecasting customer behavior and value. Here’s why these models are valuable for CLTV prediction:</p><p>BG-NBD (Beta Geometric/Negative Binomial Distribution):</p><ul><li>BG-NBD is used to predict customer loyalty and purchase frequency.</li><li>It helps forecast how often new customers will make purchases and how long they will remain loyal.</li><li>This model combines “geometric distribution” and “negative binomial distribution.”</li></ul><p>Gamma-Gamma:</p><ul><li>The Gamma-Gamma model is used to estimate the average purchase value of customers.</li><li>It predicts the average spending value based on a customer’s purchase frequency and average spending.</li><li>When combined with the BG-NBD model, it enables CLTV prediction.</li></ul><p>By utilizing these two models together, it becomes possible to forecast the future value of customers based on both their purchase frequency and spending behavior. <strong>These predictions assist businesses in developing personalized strategies for customers and optimizing their marketing efforts.</strong> For instance:</p><p>1- <strong>Personalized Marketing Strategies:</strong> It can be used to create personalized marketing strategies for your customers.</p><p>2- <strong>Reducing Churn Rate</strong>: By predicting how long your customers might stay connected to your business, you can develop strategies to reduce the churn rate.</p><p>3- <strong>Return on Investment (ROI) Analysis</strong>: It helps you evaluate the return on investment for your marketing and customer relationship efforts.</p><p><strong>Summing Up the Whole Article:</strong></p><p>— The initial data a company often possesses is its sales data. One of the first analyses that can be applied to this data is <strong>CRM analytics</strong>. The fundamental goal here is:</p><ul><li>Determining how much each customer has paid,</li><li>Can we create segments/personas? RFM analysis is one of these methods.</li></ul><p><strong>— What is CLTV</strong> and why do we need such a concept:</p><ul><li>CLTV is the revenue a customer will generate for us.</li><li>It’s essential for taking action or positions. While assessing our company’s revenue could provide some positioning, if we want to take actions/positions specifically tailored to individual customers, we can segment individuals and conduct campaigns based on these segments. So, it holds crucial significance for delving into individual specifics.</li></ul><p><strong>— CLTV Prediction</strong>, on the other hand, is used to calculate the return on strategies we develop for customer-focused actions. If we aren’t achieving the anticipated revenues, it signals the need to refine our strategy.</p><p>In the ever-evolving landscape of business, where uncertainties often cloud decision-making, the power of data-driven insights cannot be underestimated. CRM Analytics emerges as a guiding light, illuminating the path for senior leaders seeking clarity in strategy crafting. By unraveling the complexities of customer relationship management, understanding the nuances of customer segments, and harnessing the predictive potential of CLTV, senior leaders are equipped to not only make informed decisions but also steer their organizations toward growth and success. With CRM Analytics as a compass, the journey through uncertainties transforms into a strategic voyage towards excellence. So, let’s embrace the wealth of data at our fingertips and set sail on the transformative journey that CRM Analytics promises.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f6f47b4a9b3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What are recommendation systems in simple words?]]></title>
            <link>https://medium.com/@emre_ates/what-are-recommendation-systems-in-simple-words-4e4334e8326b?source=rss-1f0e0dfbe4d5------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e4334e8326b</guid>
            <category><![CDATA[recommendation-system]]></category>
            <category><![CDATA[simple-recommendation]]></category>
            <category><![CDATA[content-based-filtering]]></category>
            <category><![CDATA[collaborative-filtering]]></category>
            <category><![CDATA[association-rule-learning]]></category>
            <dc:creator><![CDATA[Emre Ateş]]></dc:creator>
            <pubDate>Sat, 29 Jul 2023 13:02:13 GMT</pubDate>
            <atom:updated>2023-07-31T15:10:34.510Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever received recommendations for products that have nothing to do with your previous purchases? If so, it means that the recommendation systems on the website where you shop are not working properly.</p><p>In this article, I tried to explain what recommendation systems are, how many different types of recommendation systems exist, and how these recommendation systems are used or can be used, in a simple manner. The article became a bit long due to the four different recommendation systems, but I wanted to prepare a flowing text with examples we might encounter in our daily lives, so that you can read it without getting bored.</p><p>I also touched upon a topic that you may encounter in job interviews. Without further ado, let’s get into the subject 😊</p><p>Recommendation systems are designed to filter abundant content (movies, series, books, clothes, electronics, etc.) based on the user’s preferences. They offer significant advantages for businesses and users alike. Companies can enhance customer satisfaction, strengthen customer loyalty, and increase sales by providing accurate recommendations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bTqtZG34hf6zKj2LRoUpsQ.jpeg" /></figure><p>Let’s say I have a grocery store, and you are one of my customers. This system is a technology that helps me suggest suitable products to you. Essentially, it tailors personalized recommendations based on your interests and past purchases.</p><p>It analyzes what you have previously bought and what types of products you have shown interest in. Then, based on this data, assists me in suggesting similar products that you might like or find appealing.</p><p>Let’s delve a bit deeper into the topic.</p><h3><strong>1. Simple Recommendation System</strong></h3><p>Let’s consider a scenario where you are making your first purchase from me. I am also seeing you for the first time, and I have no information about you. The products I can recommend to you are either seasonal items or the best-selling products in my store. For example, if it’s summer and you visit my shop, I can suggest strawberries to you. Or maybe I have a delicious homemade yogurt that all my customers love, and I can offer it to you.</p><p>I want to share an example from today that may help illustrate your point. Let’s think of it this way: Imagine you are a new Netflix user, and you are about to watch something for the first time. Netflix doesn’t know you; it has no data about you. In that case, it can initially recommend the following to you:</p><ul><li>Most-watched movies/series based on your geographical location. <em>Similar to how Grocery Store owner Emre recommended homemade yogurt, as it’s the most popular item among customers in your area.</em></li><li>Most liked movies/series in the last week. <em>Similar to how Grocery Store owner Emre recommended the seasonal strawberries, as they are currently the trendiest/most popular products.</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gn6g_Z_DKDOeu6vBytdjvg.png" /></figure><p>The Simple Recommendation System is <strong>straightforward </strong>yet <strong>highly effective</strong>. It is often used by businesses that do not have a dataset or prefer to provide suggestions to new customers.</p><h3><strong>2. Association Rule Learning</strong></h3><p>In this scenario, let’s assume you are an old or regular customer of Grocery Store Emre. For example, if you often buy fruits, our recommendation system will suggest fruit options to you. Similarly, if another customer of mine usually buys snacks, the system will offer snack options to that customer.</p><p><strong>Association Rule Learning is simply a basket analysis</strong>. It analyzes the products you have previously purchased from me and allows me to make personalized recommendations based on that analysis. In this basket analysis, the <strong>Apriori algorithm</strong> is applied, which analyzes which products are frequently sold together or which products increase the likelihood of sales. Based on this analysis, we can create a sales strategy to enhance your shopping experience.</p><p><strong>How does the Apriori algorithm work?</strong></p><p>One day, you went to my grocery store. Let’s say you bought sourdough bread and fresh cheese. I noticed that you and other customers who bought fresh cheese usually also purchased sourdough bread. This is where Association Rule Learning comes into play. The Apriori algorithm helps to discover such relationships by analyzing the shopping data of customers. The algorithm identifies combinations of items that are often purchased together, revealing these relationships.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*uF1ONtJisrTQJfdzBL0UHw.jpeg" /></figure><p>I, thanks to the Apriori algorithm, automatically suggest sourdough bread to a customer who is buying fresh cheese based on their shopping behavior. In the next step, I place the fresh cheese and sourdough bread shelves side by side, saving customers from wandering among other shelves, thereby saving their time and increasing my own profits 😊</p><p>Many e-commerce companies implement such shelf arrangements in their warehouses to deliver orders to customers faster.</p><p>When we examine the Apriori algorithm from a technical perspective, we can see that it has three fundamental metrics:</p><ol><li><strong>Support:</strong> It represents the probability of selling fresh cheese in a shopping. For example, if the support metric is 0.2, it means that fresh cheese is sold in 20 out of 100 shopping transactions.</li><li><strong>Confidence:</strong> It is the probability of both fresh cheese and sourdough bread being sold together. For instance, if the confidence metric is 0.75, it means that 75% of the customers who buy fresh cheese also buy sourdough bread.</li><li><strong>Lift</strong>: It indicates how much X the sale of cottage cheese increases the sale of cheddar cheese. If the lift metric is <strong>10</strong>, it means that cheese sales increase <strong>10x</strong> in baskets that contain fresh cheese.</li></ol><p>These metrics are essential in the Apriori algorithm as they help us analyze the relationships between different products and make accurate recommendations based on customer behavior.</p><p>I can use the Apriori algorithm in the following ways:</p><ol><li><strong>Based on the Confidence metric</strong>, I can make recommendations to customers by suggesting products that are compatible with their shopping baskets. This can lead to increased customer satisfaction as they receive personalized recommendations and<strong> individualized promotions</strong>.</li><li><strong>Using the Lift metric</strong>, I can recommend products that have a strong association with the items that customers usually purchase. By encouraging <strong>cross-selling</strong> and suggesting complementary products, I can enhance the shopping experience for customers and potentially increase sales.</li></ol><p>The Association Rule Learning and Apriori algorithm facilitates me in analyzing the preferences of my customers and making suitable product recommendations or proposing products with strong associations. This intelligent decision-making method enables me to better understand the needs of my customers and make them happier with their shopping experiences.</p><h3><strong>3. Content-Based Filtering</strong></h3><p>In this method, we focus on the unique characteristics of the products rather than looking at customers’ past shopping preferences. These characteristics may include product descriptions, product tags, a name of a film’s directors/actors, a singer, or the features of a product. All these contents are referred to as external information/meta-information.</p><p><strong>Content-based filtering is used in situations where we do not have access to user information and interactions</strong>, and we only have a content-based structure.</p><p>Content-based filtering is a recommendation method that focuses on the characteristics of the products. On my online store, I already offer simple recommendation and association rule learning (basket analysis) methods for sales. Now, I want to add personalized recommendations to customers by focusing on the attributes of the products. In content-based filtering, the crucial aspect is having meta-information for each product, which means determining specific attributes of the products.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/1*WoI1EpSm-QT51uAjm0fYjg.png" /></figure><p>For example, the dessert “Magnolia” can have attributes or tags such as <em>‘light sweet’</em>, <em>‘fruity’</em>, and <em>‘milky dessert’</em>. Similarly, a cake can have attributes like <em>‘chocolatey’</em>, <em>‘fruity’</em>, and <em>‘light sweet’</em>. Using the meta-information of all products, I can mathematically represent all the products in his online store. This mathematical representation process is called <strong>vectorization</strong>. The vectorization process can be performed using methods such as “<strong>count vector</strong>” and “<strong>TF-IDF</strong> (term frequency-inverse document frequency),” and L2 normalization is applied. To put it simply:</p><ol><li><strong>Count Vector:</strong> Count Vector is a method that converts text-based data into numerical vectors. It represents the text by counting how many times each word occurs in the text and converting it into a vector.</li><li><strong>TF-IDF (Term Frequency-Inverse Document Frequency):</strong> TF-IDF is a statistical method used to calculate the importance of a term in a document. It determines the importance of a term based on its frequency in the document (TF) and its frequency across all documents (IDF).</li></ol><p>By using Count Vector and TF-IDF methods, I can effectively convert the meta-information of all products on my online store into numerical vectors and provide more efficient product recommendations based on the importance of terms in the documents.</p><p><strong>If we go back to our example</strong> of cakes and magnolia dessert, if a customer has purchased a cake, Content-Based Filtering will also recommend the magnolia dessert to this customer. Why? Because the magnolia dessert has similar attributes (<em>“light sweet” </em>&amp; <em>“fruity”</em>) to the cake that the customer purchased.</p><p>Thus, <strong>Content-Based Filtering provides recommendations based solely on the attributes of the products, without looking at the customer’s past purchase preferences.</strong> This helps you understand the individual preferences of customers.</p><p><strong><em>Job review tip:</em></strong></p><p>Let’s say you went for an interview at a company, and you received the following question: “We are a new e-commerce site selling toys. We want to set up a recommendation system for our customers. If you were in charge, how would you design a recommendation system?”</p><ul><li>If there is no customer data available: I would use Simple Recommendation System + Content-Based Filtering. Because in both of these recommendation systems, I don’t need to know the specific preferences of the customers.</li><li>If there is customer basket information available: Association Rule Learning recommendation system + Content-Based Filtering.</li></ul><h3><strong>4. Collaborative Filtering</strong></h3><p>Collaborative Filtering Collaborative Filtering is a method that relies on users’ preference patterns rather than the specific products they purchase. <strong>In other words, it uses techniques that reflect the collective opinions of the community, either at the user or item level.</strong> It is used when there are interactions available, such as likes or dislikes, from users.</p><p>Collaborative Filtering is commonly implemented in three ways:</p><ol><li><strong>Item-based collaborative filtering</strong></li><li><strong>User-based collaborative filtering</strong></li><li><strong>Model-based collaborative filtering</strong></li></ol><p>Let me explain these filtering methods with examples again. Let’s say grocery store owner Emre, I, after using recommendation systems, expanded my business and started selling books and movies in his online store.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9tJTWBawpzlTRAkBAOmmiA.png" /></figure><p>In <strong>User-Based Collaborative Filtering</strong>, when my customer, Liv Tyler, purchases a book titled “Harry Potter,” the method analyzes her preference for this book and looks at other customers. It investigates which books other customers who liked “Harry Potter” generally prefer and can recommend those books to Liv Tyler. Through this analysis, it may be determined that customers who liked “Harry Potter” also tend to prefer “The Lord of the Rings” series. In this case, the User-Based Collaborative Filtering method can recommend “The Lord of the Rings” book series to Liv Tyler.</p><p>Similarly, in <strong>Item-Based Collaborative Filtering</strong>, when my customer, Leonardo DiCaprio, purchases a movie titled “Interstellar,” the method analyzes his preference for this movie and looks at other customers. It investigates which movies other customers who liked “Interstellar” generally prefer and can recommend those movies to Leonardo DiCaprio. For instance, through this analysis, it may be determined that customers who liked “Interstellar” also tend to prefer sci-fi movies like “Inception.” In this case, the Item-Based Collaborative Filtering method can recommend the movie “Inception” to Leonardo DiCaprio.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dcnFqPeODGafpAoL1VbyQA.png" /></figure><p>It is essential to note that <strong>Item-Based Collaborative Filtering does not focus on user details </strong>but develops recommendations based on the properties of liked<em> </em>items<em>.</em></p><p><strong>Model-Based Collaborative Filtering</strong>, on the other hand, makes product recommendations based on customer preferences using mathematical models. This method typically analyzes customer-item matrices and discovers hidden relationships using techniques such as matrix factorization.</p><p>For example, Mehmet, a customer of mine, has previously purchased books in the “Science Fiction” genre. Model-Based Collaborative Filtering creates a matrix based on Mehmet’s past preferences, which includes information related to “Science Fiction” books.</p><p>Afterward, Model-Based Collaborative Filtering utilizes techniques like matrix factorization to discover hidden relationships within this matrix. For instance, it may observe that customers who bought books in the “Science Fiction” genre also tend to like books in the “Fantasy” genre.</p><p>Using these hidden relationships, Model-Based Collaborative Filtering can recommend “Fantasy” genre books to Mehmet. This allows Mehmet to explore books of a genre he hasn’t tried before but might enjoy based on his past preferences.</p><p>The Collaborative Filtering method can provide personalized recommendations to customers for books and movies on my online store, enhancing their overall shopping experience.</p><p>Although recommendation systems may involve complex algorithms, their fundamental logic is to offer customers tailored product suggestions based on their interests. This, in turn, leads to improved customer satisfaction and increased customer loyalty. Both I and my customers benefit from this approach, as I can enhance customer satisfaction while customers enjoy a more convenient shopping experience with personalized recommendations.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e4334e8326b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>