<?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 Ayse Yaman on Medium]]></title>
        <description><![CDATA[Stories by Ayse Yaman on Medium]]></description>
        <link>https://medium.com/@ayseyaman?source=rss-ac23212a3a2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*zrtGp1X7A76jPHe6.jpg</url>
            <title>Stories by Ayse Yaman on Medium</title>
            <link>https://medium.com/@ayseyaman?source=rss-ac23212a3a2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 09:14:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ayseyaman/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 Systems: The Power of Shaping Personal Experience]]></title>
            <link>https://ayseyaman.medium.com/recommendation-systems-the-power-of-shaping-personal-experience-d658672e1906?source=rss-ac23212a3a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/d658672e1906</guid>
            <dc:creator><![CDATA[Ayse Yaman]]></dc:creator>
            <pubDate>Sat, 07 Sep 2024 12:38:27 GMT</pubDate>
            <atom:updated>2024-09-08T21:15:28.063Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m0UzCwUVrFrwpGVgMJNETg.png" /></figure><p>Our everyday actions reveal a lot about our preferences and tastes: how long it takes us to watch a 10-minute video, how often we buy the same product, how much time we spend on a website, and how frequently we visit a specific store. <strong>These behaviors indicate our individual interests and can help predict future preferences. </strong>Such data can be applied across various industries to deliver personalized recommendations. <strong>For instance, we spend money when purchasing a product and time when watching a video.</strong></p><p>Each user’s behavior is different, and these differences also differentiate their value in the system. For example, one user may give five stars to a product or campaign, while another may give two stars to the same product. One user may click on a news item in category X, while another may be interested in category B. <strong>At this point, it becomes critical to analyze and interpret the data correctly and shape it in appropriate ways.</strong> At the end of these processes, there is a win-win situation for both the user and the service provider. The user gets a service that suits their tastes, while the service provider increases its profitability. Mathematically, this relationship can be expressed in a directly proportional graph.</p><p>Differences in user behavior can be based on many factors: personal tastes, cultural differences, living standards, demographic characteristics (age, gender, etc.). <strong>Modern recommendation systems evaluate this diversity using machine learning and data science techniques</strong>, analyze users’ behavior in more depth and provide them with the most relevant results.</p><p>Recommendation systems are often based on complex machine learning models that analyze user behavior and recommend relevant content or products, and are found in many industries.</p><p><strong>For example:</strong><br> Netflix: Recommends movies and series based on viewing habits.<br> Google Search: Tailors search results based on search history.<br> Amazon: Offers “Customers who bought this also bought…” suggestions.<br> YouTube: Suggests videos based on watch time and clicks.</p><p>These platforms use user feedback (such as star ratings, frequency of purchases, video watch times, click-through data) to continuously improve their recommendation engines. <strong>A good recommendation system requires high quality and sufficient data sets, which are processed by machine learning algorithms.</strong> These systems are constantly renewing themselves not only with the suggestions provided to users, but also with the feedback they give to these suggestions.</p><h4>What Makes a Good Recommendation System?</h4><p>A successful recommendation system requires both quality and quantity in its data sets. User ratings, purchase frequency, video viewing time, and click-through data form the foundation. “Star reviews” are particularly important, as they directly reflect user opinions. Thus, not only the system’s recommendations but also the feedback users provide become part of the improvement process.</p><h4>Different Approaches and Methodologies in Recommendation Systems</h4><p>When implementing recommendation systems, various approaches and methodologies can be applied:</p><h4><strong>Top-N Recommenders:</strong></h4><p>This method focuses on the most popular choices. These are the products, campaigns, news, or videos that are most frequently purchased, rated, or commented on. Popularity can be assessed across the entire dataset or within a specific time period.</p><p><strong>Components:</strong><br> Candidate Generation: Creating a list of potential items to recommend.<br> Filtering: Narrowing down the candidates based on relevance.<br> Ranking: Ordering the filtered items to provide the best recommendations.</p><h4><strong>Collaborative Filtering:</strong></h4><p>If we consider a user’s previous choices as a dataset, recommendations are made by selecting items that users with similar preferences have liked. Filtering is done based on the similarity between the target user and others. Additionally, filtering can be applied by analyzing the popularity and purchase/like outcomes of the preferred items to provide stronger recommendations.<br>Once the Top-N items are identified, their internal ranking is also crucial for delivering optimal suggestions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*AYoym4KiVSbr6ss3_IBv2g.png" /><figcaption>Collaborative Filtering Architecture</figcaption></figure><p>Amazon and Netflix are examples of companies that use the Top-N methodology.</p><h4><strong>Content-Based Filtering:</strong></h4><p>This method relies on the characteristics of items and user preferences. Each item (e.g., product, video, article) is described by specific attributes or features. The system recommends items with similar features to those the user has liked or interacted with in the past. Filtering occurs by matching the features of items to the user’s profile, which is built based on their previous behavior.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/521/1*tqnlgFsb7xtGoTKVFMVvUQ.png" /><figcaption>Content-Based Recommendation System Architecture</figcaption></figure><p>Once the most relevant items are identified, they are ranked according to how well they match the user’s preferences.</p><h3>Accuracy Metrics</h3><p>We use several mathematical calculations to measure the accuracy of our recommendation systems:</p><ul><li><strong>MAE (Mean Absolute Error)</strong>: The error is calculated by taking the average of the absolute differences between predicted and actual values.</li><li><strong>RMSE (Root Mean Squared Error)</strong>: The error is measured by taking the square root of the average of the squared differences between predicted and actual values. The winning algorithm in the Netflix Prize competition was determined using the RMSE metric.</li></ul><p>We aim for low error terms, as this indicates that the recommendation system is performing more accurately.</p><h3>Performance Metrics</h3><p>Various metrics are used to assess the success of recommendation systems:</p><ul><li><strong>Hit Rate</strong>: Measures whether the user’s desired item is present in the recommendation list.</li><li><strong>ARHR (Average Reciprocal Hit Rate)</strong>: Evaluates how early the correct recommendation appears in the list.</li><li><strong>Coverage and Diversity</strong>: Measure how broad the system’s recommendation pool is and how varied the recommendations are.</li><li><strong>Novelty</strong>: Indicates how much new and undiscovered content is being suggested to the user.</li></ul><h3>A/B Testing and Algorithm Optimization</h3><p>A/B testing is essential for continuously improving recommendation systems. Measuring how users respond to recommendations generated by different algorithms is crucial for evaluating and enhancing system performance.</p><p>As highlighted in a YouTube article,<strong> ‘There is more art than science in selecting the surrogate problem for recommendations.’ </strong>This reminds us that data should not be approached solely through scientific methods, but also through artistic and creative solutions. <strong>Finding the right data points and drawing meaning from them is a process where creativity and analysis go hand in hand.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d658672e1906" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Öneri Sistemleri (Recommender System): Kişisel Deneyimi Şekillendiren Güç]]></title>
            <link>https://ayseyaman.medium.com/%C3%B6neri-sistemleri-recommender-system-ki%C5%9Fisel-deneyimi-%C5%9Fekillendiren-g%C3%BC%C3%A7-90769c2183f6?source=rss-ac23212a3a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/90769c2183f6</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[recommendation-system]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Ayse Yaman]]></dc:creator>
            <pubDate>Fri, 06 Sep 2024 21:26:36 GMT</pubDate>
            <atom:updated>2024-09-08T21:15:00.178Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m0UzCwUVrFrwpGVgMJNETg.png" /></figure><p>Günlük hayatımızda yaptığımız birçok eylem tercih ve zevklerimizi yansıtır: 10 dakikalık bir videoyu kaç dakikada izlediğimiz, aynı ürünü kaç kez satın aldığımız, bir web sitesi, haber ya da ürün üzerinde ne kadar zaman harcadığımız ya da X mağazasını kaç kez ziyaret ettiğimiz gibi. <strong>Bu tür davranışlar, bireysel zevklerimizin ve ilgi alanlarımızın birer göstergesi olup, gelecekte neyi tercih edebileceğimizi de tahmin etmemize yardımcı olabilir.</strong> Tüm bu veriler, her sektörde farklı şekillerde kullanılarak kişiye özel öneriler sunabilir. <strong>Örneğin, bir ürün satın alırken maddi kaynaklarımızı, bir video izlerken ise zamanımızı tüketiriz.</strong></p><p>Her kullanıcının davranışları birbirinden farklıdır ve bu farklılıklar, kullanıcıların sistemdeki değerini de farklılaştırır. Örneğin, bir kullanıcı bir ürüne ya da kampanyaya beş yıldız verirken, bir diğeri aynı ürüne iki yıldız verebilir. Bir kullanıcı X kategorisindeki bir habere tıklarken, bir diğeri B kategorisindekine ilgi gösterebilir. <strong>İşte bu noktada,</strong> <strong>veriyi doğru analiz etmek, yorumlamak ve uygun yöntemlerle şekillendirmek kritik hale gelir.</strong> Bu süreçlerin sonunda, hem kullanıcı hem de hizmet sağlayıcı için bir kazan-kazan durumu doğar. Kullanıcı, kendi zevklerine uygun hizmet alırken, hizmet sağlayıcı da karlılığını artırır. Matematiksel olarak baktığımızda, bu ilişki doğru orantılı bir grafikle ifade edilebilir.</p><p>Kullanıcı davranışlarındaki farklılıklar birçok faktöre dayanabilir: kişisel zevkler, kültürel farklılıklar, yaşam standartları, demografik özellikler (yaş, cinsiyet vb.). <strong>Modern öneri sistemleri, bu çeşitliliği makine öğrenmesi (machine learning) ve veri bilimi (data science) teknikleri kullanarak değerlendirir</strong>, kullanıcıların davranışlarını daha derinlemesine analiz eder ve onlara en uygun sonuçları sunar.</p><p><strong>Öneri sistemleri</strong> genellikle kullanıcı davranışlarını analiz ederek, onlara uygun içerikler veya ürünler öneren kompleks makine öğrenimi modellerine dayanır ve birçok sektörde karşımıza çıkıyor.</p><p><strong>Örneğin:</strong></p><p>Netflix: İzleme alışkanlıklarına göre film ve dizi önerileri sunar.<br> Google Arama: Arama geçmişine dayalı arama sonuçlarına odaklanır.<br> Amazon: “Bu ürünü alanlar şunları da aldı…” önerileri.<br> YouTube: İzleme süresine ve tıklamalara göre önerilen videolar sunar.</p><p>Bu platformlar, kullanıcıların verdiği geri bildirimleri (yıldızlı derecelendirmeler, satın alma sıklıkları, video izleme süreleri, tıklama verileri gibi) kullanarak, sürekli olarak öneri motorlarını geliştirir.</p><p><strong>İyi bir öneri sistemi, yüksek kalitede ve yeterli miktarda veri seti gerektirir ve bu veriler, machine learning algoritmaları tarafından işlenir</strong>. Bu sistemler, sadece kullanıcılara sunulan önerilerle değil, kullanıcıların bu önerilere verdikleri geri bildirimlerle de sürekli olarak kendini yeniler.</p><h4>İyi Bir Öneri Sistemi Nasıl Olmalıdır?</h4><p>İyi bir öneri sistemi oluşturmak için <strong>hem kaliteli hem de yeterli miktarda veri setine</strong> ihtiyaç vardır. Kullanıcıların yıldızlı derecelendirmeleri, satın alma sıklıkları, video izleme süreleri ve tıklama verileri gibi unsurlar sistemin temelini oluşturur. Özellikle “yıldızlı derecelendirmeler” (star reviews) kritik bir veri türüdür çünkü kullanıcılar burada doğrudan görüşlerini bildirirler. Yani sadece sistemin sunduğu öneriler değil, kullanıcıların bu önerilere verdikleri geri bildirimler de sürecin bir parçasıdır.</p><h4>Öneri Sistemlerinde Farklı Yaklaşımlar ve Metodolojiler</h4><p>Öneri sistemlerini uygularken birçok farklı yaklaşım ve metodoloji kullanılabilir.</p><h4>Top-N Recommenders:</h4><p>Bu yöntem, en popüler tercihlere odaklanır. En çok satın alınan, en yüksek puan ya da yorum alan ürünler, kampanyalar, haberler veya videolar önerilir. Popülerlik durumu, tüm veri setine göre değerlendirilebileceği gibi belirli bir zaman dilimine de odaklanılabilir.</p><p><strong>Bileşenler:</strong><br> Aday Üretimi (Candidate Generation): Önerilecek öğelerin aday listesinin oluşturulması.<br> Filtreleme (Filtering): Aday öğeler arasından uygun olanların seçilmesi.<br> Sıralama (Ranking): Seçilen aday öğelerin kullanıcılara en iyi öneri olacak şekilde sıralanması.</p><h4><strong>Collaborative Filtering (İşbirlikçi Filtreleme)</strong>:</h4><p>Kullanıcının önceki tercihleri bir veri kümesi olarak değerlendirilir. Aynı öğeleri tercih eden diğer kullanıcıların ilgilendiği ürünler arasından seçim yapılarak öneriler oluşturulur. Kullanıcı ile diğer kullanıcılar arasındaki benzerlik oranına göre bir filtreleme yapılır. Güçlü öneriler sunabilmek için ayrıca önerilen ürünlerin beğeni ve satın alma sonuçları da dikkate alınarak bir eleme süreci gerçekleştirilir. Top-N öğelerini belirledikten sonra, bu öğelerin kendi içinde nasıl sıralandığı da büyük önem taşır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*AYoym4KiVSbr6ss3_IBv2g.png" /><figcaption>Collaborative Filtering Architecture</figcaption></figure><p>Amazon ve Netflix, Top-N metodolojisine örnek olarak gösterilebilir.</p><h4><strong>Content-Based Filtering (İçerik Tabanlı Filtreleme):</strong></h4><p>Aşama: Bu yöntem, öğelerin özelliklerine ve kullanıcının tercihine dayanır. Her öğe (ürün, video, makale gibi) belirli niteliklerle tanımlanır. Sistem, kullanıcının daha önce beğendiği veya etkileşime geçtiği öğelerle benzer özelliklere sahip öğeleri önerir. Filtreleme, öğelerin özelliklerinin kullanıcının profilindeki tercihlerle eşleşmesi yoluyla yapılır. Kullanıcının profili ise önceki davranışlarına dayanarak oluşturulur.<br>En alakalı öğeler belirlendikten sonra, kullanıcının tercihleriyle ne kadar uyuştuklarına göre sıralanırlar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/521/1*tqnlgFsb7xtGoTKVFMVvUQ.png" /><figcaption>Content-Based Recommendation System Architecture</figcaption></figure><p>Content-Based Filtering, kullanıcının dinleme geçmişine dayalı olarak müzik öneren Spotify ve Pandora gibi platformlarda yaygın olarak kullanılır.</p><h3>Accuracy Metrics</h3><p>Öneri sistemlerimizin doğruluğunu ölçmek için çeşitli matematiksel hesaplamalar kullanılır:</p><ul><li><strong>MAE (Mean Absolute Error)</strong>: Tahmin edilen ve gerçek değerler arasındaki farkların mutlak değerlerinin ortalaması alınarak hata hesaplanır.</li><li><strong>RMSE (Root Mean Squared Error)</strong>: Tahmin edilen ve gerçek değerler arasındaki farkların karelerinin ortalamasının karekökü alınarak hata ölçülür. Netflix Prize yarışmasında, birincilik ödülü RMSE metriğine göre belirlendi.</li></ul><p>Hata terimlerinin olabildiğince düşük olmasını hedefleriz, çünkü bu, öneri sisteminin daha doğru çalıştığını gösterir.</p><h3>Performans Ölçütleri ve Metikler</h3><p>Öneri sistemlerinin başarısını ölçmek için çeşitli metrikler kullanılır:</p><ul><li><strong>Hit Rate</strong>: Kullanıcının ilgilendiği ürünün öneri listesinde bulunup bulunmadığını ölçer.</li><li><strong>ARHR (Average Reciprocal Hit Rate)</strong>: Doğru önerinin listede ne kadar erken sunulduğunu değerlendirir.</li><li><strong>Coverage ve Diversity</strong>: Öneri sisteminin ne kadar <strong>geniş bir öğe yelpazesi </strong>sunduğunu ve önerilerin ne kadar çeşitli olduğunu ölçer.</li><li><strong>Novelty</strong>: Kullanıcıya ne kadar <strong>yeni ve keşfedilmemiş </strong>içeriklerin sunulduğunu gösterir.</li></ul><h3>A/B Testleri ve Algoritma İyileştirmeleri</h3><p>Öneri sistemlerini sürekli olarak iyileştirmek için <strong>A/B testleri</strong> yapılmalıdır. Farklı algoritmaların nasıl çalıştığını ve kullanıcının önerilere nasıl tepki verdiğini ölçmek, sistemlerin başarısı için önemlidir.</p><p>YouTube’un bir makalesinde vurgulandığı gibi, <strong>“Öneri sistemleri için yedek problemi seçmede bilimden çok sanat vardır.”</strong> Bu, bize veriye sadece bilimsel yöntemlerle değil, aynı zamanda sanatsal ve yaratıcı çözümlerle yaklaşmamız gerektiğini hatırlatıyor. <strong>Doğru veri noktalarını bulmak ve onlardan anlam çıkarmak, yaratıcılık ve analizin el ele yürüdüğü bir süreçtir.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90769c2183f6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[K-Means Clustering Algorithm]]></title>
            <link>https://ayseyaman.medium.com/k-means-clustering-algorithm-dc485a734d10?source=rss-ac23212a3a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc485a734d10</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[clustering]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Ayse Yaman]]></dc:creator>
            <pubDate>Tue, 26 Apr 2022 10:52:50 GMT</pubDate>
            <atom:updated>2022-04-28T14:35:17.855Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/548/1*BYfsD4ZVehbLRjsSDJbd0g.png" /><figcaption>In the <a href="https://aws.amazon.com/tr/blogs/machine-learning/k-means-clustering-with-amazon-sagemaker/">image</a> given below K=3</figcaption></figure><p>In this article, I’ll mention K-means algorithm is one of the commonly used unsupervised learning algorithms. The algorithm is a method for finding clusters and cluster centers in a set of unlabeled data.</p><p>The aim is to ensure that the clusters obtained at the end of the process have <strong><em>maximum similarities within clusters</em> </strong>and <strong><em>minimum similarities between clusters</em></strong>. With K-means, it can be said that clustering is correct as long as the similarity within the cluster is large and the similarity between the clusters is small.</p><p>N objects are randomly selected to represent the center point or mean of each cluster. The remaining objects are included in the clusters with which they are most similar, taking into account their distance from the mean values of the clusters.</p><h3>Working of K-Means Algorithm</h3><p><em>K: number of clusters needed before starting the algorithm</em></p><ol><li><em>Determination of cluster centers</em></li><li><em>Clustering the data outside the center according to their distance</em></li><li><em>Determination of new centers according to the clustering (or shifting of old centers to the new center)</em></li><li><em>Repeating steps 2 and 3 until stable state is reached.</em></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/442/1*2xNpUm5FEP2XDQo5f4PN5g.png" /><figcaption>In the <a href="https://www.researchgate.net/figure/K-means-clustering-algorithm-An-example-2-cluster-run-is-shown-with-the-clusters_fig3_268880805">image</a> given below K=2</figcaption></figure><p>The K-means algorithm tries to detect K clusters that will make the squared error the smallest.</p><p><em>Given a set of observations (x1, x2, …, xn)</em></p><p><em>Goal: Find C={µ1, …,µk }, a set of k cluster centers, that minimize the expression.</em></p><p><em>Otherwise, k-means clustering aims to partition the n observations into k (≤ n) sets </em><strong><em>S</em></strong><em> = {S1, S2, …, Sk} so as to minimize the within-cluster sum of squares.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*z-Wt8IU9iubirkqXYmK7CA.png" /><figcaption><a href="https://hastie.su.domains/Papers/ESLII.pdf">image</a></figcaption></figure><p>The k-means algorithm attempts to find discrete groupings within data, where members of a group are as similar as possible to one another and as different as possible from members of other groups.</p><h3>K-Means Clustering Algorithm Applications</h3><ul><li>Behavioral segmentation</li><li>Market segmentation</li><li>Document Clustering</li><li>Image segmentation</li><li>Image compression</li><li>Customer segmentation</li></ul><p>Thank you!</p><h3>References:</h3><p><a href="https://hastie.su.domains/Papers/ESLII.pdf">https://hastie.su.domains/Papers/ESLII.pdf</a></p><p><a href="https://en.wikipedia.org/wiki/K-means_clustering">https://en.wikipedia.org/wiki/K-means_clustering</a></p><p><a href="https://aws.amazon.com/tr/blogs/machine-learning/k-means-clustering-with-amazon-sagemaker/">https://aws.amazon.com/tr/blogs/machine-learning/k-means-clustering-with-amazon-sagemaker/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc485a734d10" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Temporary Tables in SQL Server and # vs ##]]></title>
            <link>https://ayseyaman.medium.com/temporary-tables-in-sql-server-vs-9f4d74254eeb?source=rss-ac23212a3a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f4d74254eeb</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Ayse Yaman]]></dc:creator>
            <pubDate>Tue, 18 Jan 2022 20:49:24 GMT</pubDate>
            <atom:updated>2022-01-19T17:52:17.964Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vxn4cmylSba5gE9BMEWh3g.png" /><figcaption><a href="https://study.com/academy/lesson/sql-drop-temp-table-tutorial-explanation.html">image</a></figcaption></figure><p>In this article, I’ll mention temporary tables in SQL Server and differences between Local Temporary Tables (#) and Global Temporary Tables (##).</p><p>When additional tables are needed on the database, temporary tables are created and used with T-SQL. Especially when working on large databases and working with a small part of the data, we filter the data to create subsets with temporary tables and return faster query results.</p><p>At the same time, when writing critical queries on necessary tables, tests are made on temporary tables, and then they are applied to real tables. It is pretty standard and highly performance, especially in writing complex queries.</p><p>** We can use “select * into …” or “create table …” statements for creating a table.</p><p>Temporary tables are stored inside “tempdb” which is a system database in SQL Server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/239/1*iJASgVaM02Wc-tXy-KtOTA.png" /></figure><p>There are two separate groups which are Local Temporary Table (#tempTable) and Global Temporary Table (##tempTable).</p><p>A Local Temporary Table’s name starts with single hash value “<strong>#</strong>” and has a random value at the end of the table name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*NV4T6aL3AXXWWWSs9Yp8rw.png" /><figcaption>random value at the end of the table name</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/280/1*_KIJltxnMhnruOZmQF7rvA.png" /></figure><p>Global Temporary Tables start with ‘<strong>##</strong>’, its name is always unique, and there is no random number appended to the name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/1*8UJr1qg5abUzOZdzctkokA.png" /><figcaption>no random number appended to the name</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/314/1*URslU_4g6vH6oCveA7UtsA.png" /></figure><p>A local temporary table is visible only in the current session. It’s automatically dropped when the creator closes the existing connection to SQL Server.</p><p>Global temporary tables are visible to all connections of SQL Server as soon as the last active connection is closed. In other words, more than one session, along with the session who created the temporary table, can connect to SQL Server at that time.</p><p>In this case, after the person who created the table closes his connection with SQL Server, the temporary table is stored until there is no one connected to SQL Server, and the table is deleted when the last connected session terminates the connection.</p><p>Additionally, we can also drop with the following statements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/237/1*GxfyqFnnLpYkstuUz5d7fw.png" /></figure><p>Thank you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f4d74254eeb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Supervised and Unsupervised Learning?]]></title>
            <link>https://ayseyaman.medium.com/what-is-supervised-and-unsupervised-learning-5717f419a9da?source=rss-ac23212a3a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/5717f419a9da</guid>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Ayse Yaman]]></dc:creator>
            <pubDate>Sun, 23 May 2021 14:45:11 GMT</pubDate>
            <atom:updated>2021-05-25T18:46:57.428Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*eFJ1n7JCh8KcLtLJ-PtZtg.png" /><figcaption><a href="https://www.researchgate.net/figure/Examples-of-Supervised-Learning-Linear-Regression-and-Unsupervised-Learning_fig3_336642133">image</a></figcaption></figure><p>In this article, we’ll explore the basics of two data science approaches and these relationship with machine learning.</p><h3><strong>Supervised Learning</strong></h3><p><strong><em>Supervised learning</em></strong> is a machine learning approach that’s defined by its use of labeled datasets and it’s important to note that the data is labeled. These datasets are designed to train or “supervise” algorithms into classifying data or predicting outcomes accurately.</p><p>The goal is to use the inputs to predict the values of the outputs. In supervised learning, the algorithm “learns” from the training dataset by iteratively making predictions on the data and adjusting for the correct answer. <br>It is called supervised learning because the process of an algorithm learning from the training dataset can be thought of as a teacher supervising the learning process.</p><p><em>Supervised learning can be separated into two types of problems:</em></p><p><strong><em>Classification:</em></strong> A classification problem is when we predict qualitative outputs. Qualitative variables are typically represented numerically by codes. The easiest case is when there are only two classes or categories, such as “success” or “failure,” “survived” or “died.”<br>Naive bayes, logistic regression, decision trees and K-nearest neighbors are popular classification algorithms.</p><p><strong><em>Regression:</em></strong> A regression problem is when we predict quantitative outputs. It is commonly used to make projections, such as for sales revenue for a given business. <br>Linear regression, logistic regression, and polynomial regression are popular regression algorithms.</p><h3><strong><em>Unsupervised Learning</em></strong></h3><p><strong><em>Unsupervised learning</em></strong> is a type of algorithm that learns patterns from unlabeled data. The goal for unsupervised learning is to model the underlying structure or distribution in the data in order to learn more about the data.</p><p>In the context of unsupervised learning, there is no such direct measure of success. It is difficult to ascertain the validity of inferences drawn from the output of most unsupervised learning algorithms. One must resort to heuristic arguments not only for motivating the algorithms, as is often the case in supervised learning as well, but also for judgments as to the quality of the results. Algorithms are left to their own devises to discover and present the interesting structure in the data.<br>These algorithms discover hidden patterns in data without the need for human intervention (hence, they are “unsupervised”).</p><p>Unsupervised learning can be separated into two main of methods these are clustering and association.</p><p><strong><em>Cluster analysis</em></strong>, also called data segmentation, has a variety of goals. All relate to grouping or segmenting a collection of objects into subsets or “clusters,”.<br>The goal is sometimes to arrange the clusters into a naturalhierarchy. (such as grouping customers by purchasing behavior.)<br>Cluster analysis is also used to form descriptive statistics to ascertain whether or not the data consists of a set distinct subgroups, each group representing objects with substantially different properties.</p><p><strong><em>Association analysis</em></strong> has emerged as a popular tool for mining commercial data bases. <br>It is most often applied to binary-valued data Xj ∈ {0,1}, where it is referred to as “market basket” analysis.<br>Those variables that frequently have joint values of one represent items that are frequently purchased together. (such as people that buy X also tend to buy Y.)<br>This information can be quite useful for stocking shelves, cross-marketing in sales promotions, catalog design, and consumer segmentation based on buying patterns.</p><h3>Semi - Supervised Learning</h3><p><strong><em>Semi-supervised learning</em></strong> is an approach to machine learning that combines a small amount of labeled data with a large amount of unlabeled data during training. Semi-supervised learning falls between unsupervised learning (with no labeled training data) and supervised learning (with only labeled training data).</p><p>Unlabeled data, when used in conjunction with a small amount of labeled data, can produce considerable improvement in learning accuracy. The acquisition of labeled data for a learning problem often requires a skilled human agent (e.g. to transcribe an audio segment) or a physical experiment (e.g. determining the 3D structure of a protein or determining whether there is oil at a particular location). The cost associated with the labeling process thus may render large, fully labeled training sets infeasible, whereas acquisition of unlabeled data is relatively inexpensive. In such situations, semi-supervised learning can be of great practical value.</p><h3>Difference Between Supervised and Unsupervised Learning</h3><p>The biggest difference between Supervised and Unsupervised Learning is that supervised learning deals with labeled data while Unsupervised Learning deals with unlabeled data.</p><p>Supervised learning model uses training data to learn a link between the input and the outputs. In contrast that, Unsupervised learning algorithm does not use output data.</p><p>The goal of supervised learning is to train the model so that it can predict the output when it is given new data. <br>The goal of unsupervised learning is to find the hidden patterns and useful insights from the unknown dataset.</p><p>Supervised learning needs supervision to train the model. <br>Unsupervised learning models, in contrast, work on their own to discover the inherent structure of unlabeled data.</p><p><strong>References:</strong></p><p><a href="https://web.stanford.edu/~hastie/Papers/ESLII.pdf">The Elements of Statistical Learning — Stanford University</a></p><p><a href="https://www.ibm.com/cloud/blog/supervised-vs-unsupervised-learning#:~:text=The%20main%20distinction%20between%20the,unsupervised%20learning%20algorithm%20does%20not.&amp;text=Unsupervised%20learning%20models%2C%20in%20contrast,inherent%20structure%20of%20unlabeled%20data.">https://www.ibm.com</a></p><p><a href="https://machinelearningmastery.com/supervised-and-unsupervised-machine-learning-algorithms/">https://machinelearningmastery.com</a></p><ul><li><a href="https://en.wikipedia.org/wiki/Supervised_learning">Supervised learning - Wikipedia</a></li><li><a href="https://en.wikipedia.org/wiki/Unsupervised_learning">Unsupervised learning - Wikipedia</a></li></ul><p><a href="https://en.wikipedia.org/wiki/Semi-supervised_learning#:~:text=Semi%2Dsupervised%20learning%20is%20an,with%20only%20labeled%20training%20data).">https://en.wikipedia.org/wiki/Semi-supervised_learning</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5717f419a9da" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hybrid Recommender System-Netflix Prize Dataset]]></title>
            <link>https://medium.com/codex/hybrid-recommender-system-netflix-prize-dataset-e9f6b4a875aa?source=rss-ac23212a3a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9f6b4a875aa</guid>
            <category><![CDATA[recommendation-system]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Ayse Yaman]]></dc:creator>
            <pubDate>Mon, 22 Mar 2021 20:13:10 GMT</pubDate>
            <atom:updated>2021-03-30T18:34:40.194Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AwGii3XDAUX-2eP-" /><figcaption>Photo by <a href="https://unsplash.com/@alexbemore?utm_source=medium&amp;utm_medium=referral">Alexander Shatov</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4><a href="http://medium.com/codex">CODEX</a></h4><p><em>With the development of technology, our habits are also changing. Mostly used in digital space, eBay, Amazon, Alibaba, etc. As such, most of today’s E-Commerce sites use their own proprietary recommendation algorithms to better serve customers with the products they have to like. There are many examples such as </em><strong><em>Netflix</em></strong><em>’s movies, Spotify’s music, Facebook recommending friends, product recommendations of Amazon, etc. One of the reasons why these companies are so popular can be shown that their business structures are based on recommendation systems.</em></p><h3><strong>What is Recommendation System?</strong></h3><p>A recommendation engine is a filtering system that analyzes this data from heterogeneous sources belonging to different users and produces solutions to anticipate their interest and recommend the relevant products to the right users accordingly. However, the Recommendation system is a machine learning algorithm that offers users suggestions on what they might like based on their past preferences.</p><p>Most recommender systems now use a hybrid approach, combining collaborative filtering, content-based filtering, and other approaches.</p><p><strong>There are three main types of techniques for Recommendation engines:</strong></p><ul><li>Collaborative filtering</li><li>Content-Based Filtering</li><li>Hybrid Recommendation Systems</li></ul><p><a href="https://www.kaggle.com/netflix-inc/netflix-prize-data"><strong>Netflix </strong></a>is a good example of the use of hybrid recommender systems. The website makes recommendations by comparing the watching and searching habits of similar users (i.e., collaborative filtering) as well as by offering movies that share characteristics with films that a user has rated highly (content-based filtering).</p><p>One of the events that energized research in recommender systems was the Netflix Prize. We will discuss these topics with the data set discussed in this contest.</p><p>The dataset I used here comes directly from Netflix. It consists of 4 text data files, each file contains over 20M rows, i.e. over 4K movies and 400K customers. Altogether over 17K movies and 500K+ customers!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*SONz1WiSc-B8i1xFwkKNcw.png" /></figure><p>For example, we initially select a random user and focus on the movies that that user watches.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/893/1*dW46B2QOCHeIOBkM9_aBDA.png" /></figure><p>the number of movies watched by the user we determined is 455.</p><h3><strong>Collaborative Recommendation System</strong></h3><p>Collaborative recommendation systems aggregate ratings or recommendations of objects, recognize partnerships between users based on their ratings and generate new recommendations based on user-to-user comparisons. Usually, it is based on collecting and analyzing information about the user’s behavior, activities, or preferences and predicting what they will like based on similarity with other users. Collaborative systems analyze user and/or item similarities.</p><p><em>Determining the most similar users to the user to be recommended We look at the relationship (similarity) between the user and the users, which we determined by correlation.</em></p><p><em>Further, there are several types of collaborative filtering algorithms:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/0*PCZeW5TphSgtkIqm.png" /><figcaption><a href="https://predictivehacks.com/item-based-collaborative-filtering-in-python/">image</a></figcaption></figure><p><em>1- User-User Collaborative Filtering:</em> It is based on searching for similar customers and offering suggestions based on similar ones. This algorithm is very effective but takes a lot of time and resources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zZy1idheDB_vmdGXCSk38g.png" /></figure><p>Determined the users who watch at least 60 percent (subject to change) of the movies the user watches.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/1*uAK3URD6PL917cvTC5OfWQ.png" /></figure><ul><li><em>We bring together users who watch the same movies with the user. (most similar users to the user to be recommended)</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DuISsZua2MHJG12207HYPQ.png" /></figure><p><em>2-Item-Item Collaborative Filtering: </em>It is a type of recommendation method that searches for similar items based on items users have previously liked or positively interacted with. It requires fewer resources and time compared to user-user collaboration filtering.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*-zXbdO9P8xD7XbIxJOdLoQ.png" /></figure><ul><li><em>We can recommend other movies watched by users who are at least 60 percent similar to the user we selected.</em></li></ul><h3><strong>Content-Based Filtering System</strong></h3><p>The filtering system is based on a single user’s interactions and preferences. It is based on metadata gathered from a user’s history and interactions. A <strong>Content-Based </strong>suggestion learns a profile of the new user’s interests based on existing properties in the objects the user has graded. The algorithms are such that they suggest similar items to users that they have liked in the past or are currently viewing.</p><p>To create a user profile, the system mostly focuses on two types of information:</p><ol><li>A model of the user’s preference.</li><li>A history of the user’s interaction with the recommender system.</li></ol><p>The more information the user provides, the higher the accuracy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7rVI7mk6e8ntjFmV.png" /><figcaption><a href="https://towardsdatascience.com/recommendation-system-series-part-1-an-executive-guide-to-building-recommendation-system-608f83e2630a">image</a></figcaption></figure><h3><strong>Hybrid Recommender Systems</strong></h3><ul><li>We can make recommendations according to the last watched and high-rated movie titles of the user.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nINn6RXF_0ofG6wxuYvwWw.png" /></figure><p>Most recommender systems now use a hybrid approach, combining collaborative filtering, content-based filtering, and other approaches.</p><p>The hybrid recommendation system can be used to overcome common problems such as data</p><p>insufficiency. Some hybridization techniques include:</p><p>Weighted: Combining the score of different recommendation components numerically.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TRxdG0OvTjtLlbA5jf1xBA.png" /></figure><p>Switching: Choosing among recommendation components and applying the selected one.</p><p>Mixed: Recommendations from different recommenders are presented together to give the recommendation.</p><p>Feature Combination: Features derived from different knowledge sources are combined and given to a single recommendation algorithm.</p><h4><strong>Code source:</strong></h4><p><a href="https://www.kaggle.com/ayseymn/hybrid-recommender-system-netflix">kaggle.com/ayseymn</a></p><h4><strong>References:</strong></h4><p><a href="https://en.wikipedia.org/wiki/Recommender_system">https://en.wikipedia.org/wiki/Recommender_system</a></p><p><a href="https://help.netflix.com/en/node/100639">How Netflix&#39;s Recommendations System Works</a></p><p><a href="https://www.veribilimiokulu.com/">https://www.veribilimiokulu.com/</a></p><ul><li><a href="https://www.sciencedirect.com/science/article/pii/S1110866515000341">Recommendation systems: Principles, methods and evaluation</a></li><li><a href="https://medium.com/voice-tech-podcast/a-simple-way-to-explain-the-recommendation-engine-in-ai-d1a609f59d97">A simple way to explain the Recommendation Engine in AI</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9f6b4a875aa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codex/hybrid-recommender-system-netflix-prize-dataset-e9f6b4a875aa">Hybrid Recommender System-Netflix Prize Dataset</a> was originally published in <a href="https://medium.com/codex">CodeX</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rating Products & Sorting Reviews with Amazon Dataset]]></title>
            <link>https://ayseyaman.medium.com/rating-products-sorting-reviews-with-amazon-dataset-f3d7c67f31d?source=rss-ac23212a3a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/f3d7c67f31d</guid>
            <category><![CDATA[amazon]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-analysis]]></category>
            <dc:creator><![CDATA[Ayse Yaman]]></dc:creator>
            <pubDate>Mon, 15 Feb 2021 21:53:17 GMT</pubDate>
            <atom:updated>2021-03-19T21:18:32.952Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/626/0*xqeHsgPVLV9t8shX.jpg" /><figcaption><a href="https://www.freepik.com/premium-vector/hand-holding-thump-up-thumbs-down-paddle_12620704.htm">https://www.freepik.com/premium-vector/hand-holding-thump-up-thumbs-down-paddle_12620704.htm</a></figcaption></figure><p>Feedback and comments based on customers’ experiences are valuable sources of information. Reviews and ratings are highly effective on whether potential customers will buy the product.</p><p>The visibility of the comments is very important for the customers to find their increasing needs and get the right answers to the questions. Well, according to what we can do the order. Time? Rating? sum of Vote? … All of these variables are measurably important.</p><p><em>We expect rating to be higher. But we doesn’t must ignore its reliability. <br>ex: <br>up: 20 down: 2 <br>to up: 4020 down: 870<br>Which scenario do we choose? or how much time has passed?</em></p><p>Many questions can be asked such as.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*LMaidDzQ13p1FeNhJMgIsw.png" /><figcaption>An example of Amazon’s ranking methods for user rated items, adapted fromEvan Miller’s online article</figcaption></figure><p>Scoring with many variables is very valuable, rather than just using the product or service as a quality criterion. How effective we make the ranking increases the availability of that product.</p><p>With the Amazon dataset, we’ll deal a few methods in python.</p><p>There are some ways you can find sorting and rating products:</p><blockquote><em>Score = Average rating of products</em></blockquote><blockquote><em>Score = Weighted rating calculation according to the quartiles</em></blockquote><blockquote><em>Score = Positive rating - Negative rating</em></blockquote><blockquote><em>Score = Proportion of Positive rating</em>s</blockquote><blockquote>The Lower Bound of Wilson Score Confidence Interval</blockquote><p>As I mentioned above, the correct order is important and we can say that this method is the most reliable among those I have discussed.</p><p>In the case of binary up / down ratings, this uncertainty can be ranked via the Lower Bound of Wilson Score Confidence intervals.</p><p>This is the Wilson scoring formula given in Miller’s post, which we’ll use to get 95% confidence interval lower bounds:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/1*XfeemVOIysC8tEc2MI8t0w.png" /><figcaption>Wilson Lower Bound on binomial confidence interval</figcaption></figure><p>n (total_vote)=n↑ (up)+n↓ (down) is the total number of user-votes, ˆp=n↑/n is the observed proportion of ups.</p><p>With the default parameter value α= 0.10</p><p>Evan Miller’s <a href="https://www.evanmiller.org/how-not-to-sort-by-average-rating.html">How Not To Sort By Average Rating</a> post explains why the first and second methods are wrongs to rate the product or sort a product.</p><p>Let’s get to know our data set:</p><pre>reviewerID - UserID. <br>asin – ProductID. ex: 0000013714<br>reviewerName – User name<br>helpful – Useful comment rating<br>reviewText – Users&#39; review text<br>overall – Products of rating<br>summary - Review summary<br>unixReviewTime – Reviewing time (unix time)<br>reviewTime – Reviewing time (raw)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*RV9rCAXl0Pm2Mdloz9R6TA.png" /></figure><pre><em># numbers of Rows (observation unit) in our data set, columns (variables).</em><br>df.shape</pre><pre><em>***Output: </em>(4915, 9)</pre><pre><em># </em><strong><em>First:</em></strong><em> Average rating of products</em><br>df[&quot;overall&quot;].mean()</pre><pre><em>***</em><strong><em>Output:</em></strong><em> 4.587589013224822</em></pre><pre><em># </em><strong><em>Second: </em></strong><em>Weighted rating calculation according to the quarters - according to dates </em><br>c = df[&quot;day_diff&quot;].quantile(0.75)<br>b = df[&quot;day_diff&quot;].quantile(0.50)<br>a = df[&quot;day_diff&quot;].quantile(0.25)<br><br>df.loc[df[&quot;day_diff&quot;] &lt;= a, &quot;overall&quot;].mean() * 28 / 100 + \<br>df.loc[(df[&quot;day_diff&quot;] &gt; a) &amp; (df[&quot;day_diff&quot;] &lt;= b), &quot;overall&quot;].mean() * 26 / 100 + \<br>df.loc[(df[&quot;day_diff&quot;] &gt; b) &amp; (df[&quot;day_diff&quot;] &lt;= c), &quot;overall&quot;].mean() * 24 / 100 + \<br>df.loc[(df[&quot;day_diff&quot;] &gt; c), &quot;overall&quot;].mean() * 22 / 100</pre><pre><em>***</em><strong><em>Output:</em></strong> 4.595593165128118</pre><p>Average rating:</p><p>This is the model we use as a baseline measure. The estimated quality of an object is the average rating</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/967/1*tUIma8mDHxAsnTdncl74LQ.png" /></figure><p>Difference: The third method is to use the difference between the number of ups and the number of downs as the score function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/605/1*f8g8M_t9g-LvGOdz3NbYSg.png" /></figure><p>Proportion The fourth method is to use the proportion of ups in all comments rating as the score function.</p><p>“Say what: We need to balance the proportion of positive ratings with the uncertainty of a small number of observations. What we want to ask is: Given the ratings I have, there is a 95% chance that the “real” fraction of positive ratings is at least what? Wilson gives the answer. Considering only positive and negative ratings (i.e. not a 5-star scale), the lower bound on the proportion of positive ratings is given by:”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*nKwjD2rI5FGzmVmvrkxINA.png" /></figure><blockquote>The Lower Bound of Wilson Score Confidence, among these methods it is best to calculate a useful review sorting score.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*eRKeTlcGPYyX0BjeBaQRDA.png" /></figure><p>We can analyze and decide how many comments will be on the top, how to sort..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*Jiop-WOtUnEuEWndta9ZOQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/1*VLmvltAMlPnIaga7l_z1kg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mt5JH1d2YV75ealn.jpg" /></figure><h3><strong>Dataset and code source:</strong></h3><p><a href="https://www.kaggle.com/ayseymn/sorting-reviews-amazon-dataset">https://www.kaggle.com/ayseymn/sorting-reviews-amazon-dataset</a></p><p><strong>References:</strong></p><ul><li><a href="https://www.evanmiller.org/how-not-to-sort-by-average-rating.html">How Not To Sort By Average Rating</a></li><li><a href="https://en.wikipedia.org/wiki/Binomial_proportion_confidence_interval">Binomial proportion confidence interval - Wikipedia</a></li><li><a href="https://medium.com/@gattermeier/calculating-better-rating-scores-for-things-voted-on-7fa3f632c79d">Calculating Better Rating Scores For Things Voted On</a></li></ul><p><a href="https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/36265.pdf">https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/36265.pdf</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f3d7c67f31d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[RFM Analizi İle Müşteri Segmentasyonu]]></title>
            <link>https://ayseyaman.medium.com/rfm-analizi-i%CC%87le-m%C3%BC%C5%9Fteri-segmentasyonu-9fb4b20989dd?source=rss-ac23212a3a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/9fb4b20989dd</guid>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Ayse Yaman]]></dc:creator>
            <pubDate>Mon, 25 Jan 2021 19:28:00 GMT</pubDate>
            <atom:updated>2021-02-27T09:23:00.173Z</atom:updated>
            <content:encoded><![CDATA[<h3>RFM Analizi İle Satışlarınızı Nasıl Artırırsınız?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*G1k3xz8JDj2eEINvlEY09w.png" /><figcaption><a href="https://www.retailreco.com/blog/rfm-analysis-for-customer-segmentation-in-ecommerce/">https://www.retailreco.com/blog/rfm-analysis-for-customer-segmentation-in-ecommerce/</a></figcaption></figure><p>RFM analizini Python programlama dilini kullanarak ele alacağız. Kodlar için link ekliyor olacağım.</p><h3><strong>RFM Nedir?</strong></h3><p>RFM analizi, müşterileri segmentlere ayırmak için geçmiş satın alma davranışlarını baz alan bir müşteri segmentasyon tekniğidir.</p><p>Bu analiz ile aşağıdaki başlıkları ele alacağız;</p><ul><li>Müşterimiz kim?</li><li>Onları kaybediyor muyuz? Nasıl kazanabiliriz?</li><li>Hangi müşterileriniz en karlı?</li><li>Hangi müşterileriniz yakın zamanda sizi ziyaret etti?</li><li>Hangi müşterileriniz en sadık?</li><li>Hangi kampanyalara hangi müşteriler nasıl tepki verdi?</li></ul><p><strong>RFM Açılımı</strong></p><p><em>Recency </em>— Yenilik (R) — Son satım alımdan bugüne kadar geçen süre</p><ul><li><em>Formül = Bugünün tarihi — Son satın alma tarihi</em></li></ul><p><em>Frequency </em>— Sıklık (F) — Toplam satın alım sayısı</p><p><em>Monetary </em>— Parasallık (M) — Tüm satın alımların parasal toplamı</p><p><strong>RFM Analizi İle Müşteri Segmentasyonu</strong></p><p>RFM analizine başlarken müşterilerimizi yenilik (R), sıklık (F) ve parasal (M) değer dağılımlarına göre gruplara ayırmaktayız.</p><p><strong>RFM Analizinin Faydaları</strong></p><ul><li>Yanıt oranlarında artış.</li><li>Dönüşüm oranlarında artış.</li><li>Hedefleme üzerinden gerçekleştirilen dijital pazarlama çalışmalarından elde edilen gelirde artış</li></ul><p><strong>Veri Setinin Hikayesi</strong><br>Bir şirketin 01/12/2010 ve 09/12/2011 tarihleri arasında gerçekleşen, e-ticaret kapsamındaki müşterilerin satınalma geçmişini içerir. (‘Online Retail II’)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*NDpMl0O35v7hGTXvwlw_wA.png" /></figure><p><strong>Değişkenler:</strong><br><em>InvoiceNo: Fatura numarası.<br>StockCode: Ürün (item) kodu. <br>Description: Ürün (item) adı. <br>Quantity: İşlem başına her bir ürünün (kalem) miktarı.<br>InvoiceDate: Fatura tarihi ve saati. Sayısal. Bir işlemin oluşturulduğu gün ve saat.<br>UnitPrice : Birim fiyatı. Sayısal. Birim başına ürün fiyatı (£).<br>CustomerID: Müşteri numarası. <br>Country: Ülke adı.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*XYL1G16bUeRcQ714QqfOSA.jpeg" /></figure><p><strong>RFM Analzinde Puanlama Nasıl Oluyor ?</strong></p><p>Bu kriterleri çıkartarak 1 ile 5 arasında puanlar veriyoruz. Örneğin recency değeri 1 olan kullanıcıya 5 puan veriyoruz.</p><p>(<em>Bugünün tarihi — Son satın alma tarihi</em>)</p><p>Burada bu kişiye 1 puan vererek de değerlendirme yapılır. 1–3, 1–4 , 1–10, 1–20 arasında gibi istediğiniz rakamları kullanabilirsiniz. Aralığı açtıkça değerlendirme daha sağlıklı olacaktır.</p><p><em>Yaptığım çalışmada Recency değerinin yüksek olması, son satınalma tarihinin bugüne yakınlaşmasını ifade eder. Frequency ve Monetary değerlerinin de 5 e yakın olmasını bekleriz.</em></p><p><strong>RFM Analizinde Segmentler Neler?</strong><br><br>RFM analizi kapsamında segmentleri istediğiniz gibi belirleyebilirsiniz. 3–4 segment oluşturabileceğiniz gibi 10–15 segmentte<br>oluşturabilirsiniz. <br>Örneğin müşterimiz geçmiş alışveriş işlemleri nedeniyle En İyi Müşteriler, segmentine ( 5–5–5 (R=5, F=5, M=5) ) girmektedir.</p><p>RFM analizinde aşağıdaki segment ve puanlamaları kullandım. <br> r’[1–2][1–2]’: ‘Hibernating’,<br> r’[1–2][3–4]’: ‘At Risk’,<br> r’[1–2]5′: ‘Can\’t Loose’,<br> r’3[1–2]’: ‘About to Sleep’,<br> r’33’: ‘Need Attention’,<br> r’[3–4][4–5]’: ‘Loyal Customers’,<br> r’41’: ‘Promising’,<br> r’51’: ‘New Customers’,<br> r’[4–5][2–3]’: ‘Potential Loyalists’,<br> r’5[4–5]’: ‘Champions’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*jlcWIYwjC0Qm0lEzy8UWag.jpeg" /><figcaption>Örneğin; champions segmenti : ( 5–5–5 (R=5, F=5, M=5) ) — en iyi müşteri</figcaption></figure><p><strong>RFM Analizi Nasıl Yapılır?</strong></p><p>RFM analizi yapabilmek için tüm müşterilerinizin satın alma geçmişini içeren bir veritabanına ihtiyacınız olacaktır. Bu veritabanı, müşterilerinizin yaptığı tüm alışveriş işlemlerini içeren bir dosya da olabilir.<br>Bu veriler genellikle muhasebe yazılımınızdan veya CRM gibi kaynaklardan elde edilir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RdujqPBsnjul2IptGhCPcA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*0tH5j3SRFyu0stvkbv659A.jpeg" /></figure><p>Örneğin;</p><ul><li>Hibernating segmentte 1080 kişi bulunmakta,</li><li>en son alışverişleri ortalama 209 gün önce gerçekleşmiş,</li><li>alışveriş sıklıkları 13.65,</li><li>ortalama 534.68 kazanç</li></ul><p><strong>RFM Analiz Sonrası Aksiyom Planları</strong></p><p><strong><em>Hibernating ( Uykuda ) Segmenti</em></strong></p><p>Bu segmentteki kullanıcılar bizden hem çok uzun zamandır alışveriş yapmamışlar (Recency : 203).</p><p>Müşterinin son temasından bugüne kadar geçen ortalama süre(gün)<br> hem de bizi yeterince tanımıyorlar (Frequency : 13).</p><p><strong><em>Bu segmente yönelik nasıl aksiyomlar alabiliriz?</em></strong></p><p>⦁ Bizi daha iyi tanımaları için bizim ürünlerimizi anlatan bir marketing çalışması yapabiliriz.<br><br>⦁ Üyeliği olan kullanıcılar için mail ya da sms düzenlenebilir. (Kampanya-Kupon -İndirim)</p><p>⦁ Mailde attığımız kupon kodlarını bu segmente reklamlarda da göstererek uykudan uyanmalarını ve yakın zamanda alışveriş yapmalarını sağlayabiliriz.</p><p>⦁ Bu çalışmaların yanı sıra buradaki kitleyi reklam kanallarımıza ekleyerek onlara sosyal medyada reklam gösterebiliriz. ( kampanya oldu, böyle yeni ürünlerimiz çıktı, şunu alana yüzde 20 indirim mesajları…)</p><p>⦁ Bu kitle hassastır çok fazla alışveriş odaklı değil de bizi tanıyın , şans verin odaklı bilinirlilik çalışmaları yapılmalıdır.</p><p><strong><em>New Customer Segmenti</em></strong></p><ul><li>Yeni müşteriler bu gruptadır. Çok yakın zamanda alışveriş yapmış olup mağazayı az ziyaret edenlerdir.</li><li>Uygun promosyonlarla bu gruptaki müşterilerin potansiyel sadık ya da şampiyon sınıfa doğru yönlendirilmesi gerekir.</li><li>Örneğin, 100 TL alışverişe 20 XX puan ile bu grubun geliş sıklığı ve bıraktığı para artırılabilir.</li><li>*Analizleri müşteri bazında ya da çeşitli kırılımlarda detaylı incelemeler de yapılabiliriz.</li><li>**İnceledik, analiz ettik ve aksiyomlar için grubun müşteri ID’lerini ilgili birimlere iletiyoruz.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*7wpIc1tSsbwPXm3uCBOZKQ.jpeg" /></figure><p>Projenin kaynak kodlarına <a href="https://www.kaggle.com/ayseymn/rfm-analysis-ays?scriptVersionId=52626381"><strong>buraya</strong> </a>tıklayarak ulaşabilirsiniz.</p><p>Kaynak: <a href="https://archive.ics.uci.edu/ml/datasets/Online+Retail+II">https://archive.ics.uci.edu/ml/datasets/Online+Retail+II</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9fb4b20989dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>