<?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 Ranggajaya Ciptawan on Medium]]></title>
        <description><![CDATA[Stories by Ranggajaya Ciptawan on Medium]]></description>
        <link>https://medium.com/@ranggajaya.c?source=rss-1091a42348a5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*OJGKoe7F5AHafada</url>
            <title>Stories by Ranggajaya Ciptawan on Medium</title>
            <link>https://medium.com/@ranggajaya.c?source=rss-1091a42348a5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 18:27:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ranggajaya.c/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[Recommendation System — Part 1. Introduction]]></title>
            <link>https://medium.com/@ranggajaya.c/recommendation-system-part-1-introduction-9d5d05f1e3df?source=rss-1091a42348a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d5d05f1e3df</guid>
            <category><![CDATA[recommender-systems]]></category>
            <category><![CDATA[recommendation-system]]></category>
            <dc:creator><![CDATA[Ranggajaya Ciptawan]]></dc:creator>
            <pubDate>Wed, 15 Feb 2023 07:26:16 GMT</pubDate>
            <atom:updated>2023-02-15T07:26:16.329Z</atom:updated>
            <content:encoded><![CDATA[<h3>Recommendation System — Part 1. Introduction</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vgehuauUSvv4tJjL4-snTw.jpeg" /><figcaption>image by Anthony Boyd Graphics</figcaption></figure><p>Have you ever found yourself scrolling through an online store or streaming service, unsure of what to buy or watch next? Chances are, the items or videos that were recommended to you were selected by a <em>recommendation system</em>. These powerful tools are changing the way we discover new products, music, and movies, making our lives easier and more enjoyable.</p><p>In this article, we will learn about what recommendation system is, how it works, and recommendation system techniques. Detail explanation and example of each recommendation system techniques will be given on the next parts of the series.</p><h3>What is Recommendation System?</h3><p>Recommendation system is an information filtering system that filters a vast amount of information and recommends items based on a user’s preferences, interests, or observed behavior about the item (Isinkaye et al, 2015). This system is beneficial for both customers and sellers since it reduces the time needed for customers to find preferable items, and it also helps seller to easily advertise items based on customer’s interests.</p><p>You may have been wondering what the difference is between a recommendation system and a search engine. Actually, both are information filtering systems, but in a search engine, you must explicitly tell the engine what you are looking for, while in a recommendation system, you don’t have to. The system will automatically learn your transaction behavior and recommend items based on that information.</p><h3>How does Recommendation System work?</h3><p>In general, recommendation system works by following these three phases. Let’s discuss it one by one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*HFLGDJivn680pufnLyLfbg.png" /><figcaption>Three phases of how recommendations systems work (by Isinkaye, et al (2015))</figcaption></figure><h4>1. Information Gathering Phase</h4><p>Well, I think this is the most obvious one. How come a system can recommend items without any information about users? Information about user’s profile or behavior is absolutely needed for the recommendation system to recommend items. Those information can be obtained through explicit and implicit feedback given by users.</p><p>In explicit feedback, user will explicitly tell their preferences on the items. This type of feedback can be obtained when users create an account or give ratings on several items. As such, system can easily determine which items are suitable for the users. However, it requires an effort for the user to provide the feedback.</p><p>In contrary, implicit feedback means that users don’t need to explicitly tell their preferences to the system. System will automatically learn their preferences through their activities on the platform, such as number of clicks on a item, their search history, and many other things. This will minimize user’s effort to provide any feedback on items. However, it’s important to remember that it is not a guarantee of what a user may like. While implicit feedback can indicate user interest, it doesn’t necessarily capture the full picture of their preferences.</p><p>Based on the explanation above, it is better to include both types of feedback to give items recommendations to user. Both types can overcome each other weaknesses and will increase the recommendations quality.</p><h4>2. Learning Phase</h4><p>Based on the information acquired in the previous phase, system will learn user’s preferences using recommendation algorithm. We will discuss the algorithms in the next section.</p><h4>3. Prediction/Recommendation Phase</h4><p>After learning user’s preferences, system will recommend or predict items that user may like.</p><h3>Types of Recommendation System</h3><p>There are so many ways to recommend items. However, it can be categorized into 3 types. In this post, we will only give short overview for each types while the details will be given on the next part of the series.</p><h4>1. Content-Based Filtering</h4><p>In content-based filtering, the system attempts to match the items’ characteristics with the user’s profile. For example, if a 12-year-old girl named Lily likes to watch movies about princesses, and Cinderella is a Disney movie that fits that description and is suitable for kids, the system will recommend Cinderella to Lily.</p><h4>2. Collaborative Filtering</h4><p>In collaborative filtering, the system attempts to identify similarities in users’ behaviors. Unlike content-based filtering, it doesn’t rely on user’s profile or item characteristics. For example, if Tony likes to eat pizza, burger, and salad, and Steve also likes to eat pizza, burger, and sandwich, the system will recommend a sandwich to Tony and recommend salad to Steve.</p><h4>3. Hybrid Filtering</h4><p>This type of filtering combines various algorithms to recommend items. It’s not limited to only combining content-based filtering and collaborative filtering, but different types of filtering can be combined as well. The details about hybrid filtering will be explained in a later post.</p><h3>How to Evaluate Recommendation System Performance?</h3><p>Evaluating the performance of a recommendation system is crucial to ensure that it is providing accurate and relevant recommendations. There are various metrics used to measure the effectiveness of a recommendation system. These metrics provide insight into the performance of the system, and help identify areas for improvement. Let’s explore different types of metrics used to evaluate the performance of a recommendation system.</p><h4>1. Mean Absolute Error (MAE)</h4><p>This metric calculates the difference between real ratings and predicted ratings. The lower the MAE, the more accurate the system in predicting the ratings. The formula to calculate MAE is shown as follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/457/1*YKNad98uAiis8Ne6MRdarw.png" /></figure><h4>2. Root Mean Square Error (RMSE)</h4><p>This metric is similar with MAE, but the value is bigger than MAE. However, the rule is still the same that the lower the RMSE, the more accurate the system in predicting the ratings. The formula is shown as follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*07uQG470YPrVkqeCSeEeUg.png" /></figure><h4>3. Accuracy</h4><p>The first two metrics mentioned before calculate the “error” or the difference between the real ratings and predicted ratings. This metric however (and also the rest of the metrics below) will calculate the ration between the number of correct predicted ratings and all predictions. The higher the Accuracy, the more accurate the system in predicting the ratings. The formula to calculate Accuracy is shown as follows. I assume that you are already familiar with those terms. In case you forget, you can review again regarding <em>confusion matrix</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/340/1*rriD3Zu4_sOCftnKa9XAtA.png" /></figure><h4>4. Precision</h4><p>This metric will calculate the ratio between the number of correct predicted ratings that is labeled as positive and all predicted ratings that is labeled as positive. The formula is shown as follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/259/1*JtJrUssNuw_jOOtBMY3j6Q.png" /></figure><h4>5. Recall</h4><p>This metric will calculate the ratio between the number of correct predicted ratings that is labeled as positive and all real ratings that is labeled as positive. The formula is shown as follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*hJfy4wrpPmnaX_EZ_froww.png" /></figure><h4>6. F1-Score</h4><p>This metric only simplifies the Precision and Recall. It can be calculated as follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/439/1*kzir6DPyqLl6X1bCyZ0xLg.png" /></figure><h3>Conclusion</h3><p>From this post, we now have a basic understanding of what recommendation system is, how it works, the different types of filtering methods, and the different metrics for evaluating recommendation system performance. In future posts, we’ll deep dive into the specific algorithms and techniques used in recommendation systems and the impact they are having on businesses and consumers alike. Stay tuned!</p><h3>References</h3><p>Isinkaye, F.O., Folajimi, Y.O. and Ojokoh, B.A., 2015. Recommendation systems: Principles, methods and evaluation. Egyptian informatics journal, 16(3), pp.261–273.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d5d05f1e3df" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>