<?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 Şafak Selim Sofioğlu on Medium]]></title>
        <description><![CDATA[Stories by Şafak Selim Sofioğlu on Medium]]></description>
        <link>https://medium.com/@SafakSS?source=rss-d8374d1a2703------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ckv1fkYLAWL43LUCecJHyg.jpeg</url>
            <title>Stories by Şafak Selim Sofioğlu on Medium</title>
            <link>https://medium.com/@SafakSS?source=rss-d8374d1a2703------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 23:39:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@SafakSS/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[RFM Kullanarak Müşteri Segmentasyonu]]></title>
            <link>https://medium.com/@SafakSS/rfm-kullanarak-m%C3%BC%C5%9Fteri-segmentasyonu-e85ddbdb3bd3?source=rss-d8374d1a2703------2</link>
            <guid isPermaLink="false">https://medium.com/p/e85ddbdb3bd3</guid>
            <dc:creator><![CDATA[Şafak Selim Sofioğlu]]></dc:creator>
            <pubDate>Wed, 19 Jan 2022 08:46:28 GMT</pubDate>
            <atom:updated>2022-01-19T08:46:28.923Z</atom:updated>
            <content:encoded><![CDATA[<p>Yenilik, sıklık, parasal değer, bir şirketin veya bir kuruluşun harcama alışkanlıklarını ölçerek ve analiz ederek en iyi müşterilerini belirlemek için kullanılan bir pazarlama analiz aracıdır.</p><ul><li><strong>Recency(Yenilik) :</strong> Son satım alımdan bugüne kadar geçen süreyi gösterir.</li><li><strong>Frequency(Sıklık) : </strong>Müşterinin ne sıklıkla alışveriş yaptığını gösterir.</li><li><strong>Monetary (Parasal Değer) :</strong> Müşterinin tüm yaptığı alışverişler için toplam harcadığı parasal miktar.</li></ul><p>RFM’de bu üç metrikten ortaya çıkar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HiwX6vul8c4PBEueq3yBMw.png" /></figure><h4><strong>RFM analizi, pazarlamacıların şunları anlamalarına yardımcı olur:</strong></h4><ul><li>Sadık müşterileri belirlemeye.</li><li>Yakın zamanda satın alma olasılığı yüksek olan müşterileri belirlemeye.</li><li>Hem eski hem de yeni olanlar dahil olmak üzere işletme için en fazla geliri sağlayan müşterileri belirlemeye.</li><li>Periyodik satın alma yapan ancak sadık ve tekrar eden müşterilere dönüştürülebilen müşterileri tespit etmeye.</li><li>Tek seferlik müşteriler</li></ul><h4>RFM Analizi Neden Önemlidir?</h4><p>RFM analizi, işletmelerin müşterilerini daha iyi anlamalarına ve onlarla daha iyi bir şekilde etkileşim kurmalarına yardımcı olur.</p><p>RFM’den bahsettiğimize göre RFM ile Müşteri Segmentasyonu adlı projemize geçebiliriz.</p><h4>Not : Bu projede aykırı değerler için analiz yapmayacağız.</h4><h3>İş Problemi</h3><p>Bir e-ticaret şirketi müşterilerini segmentlere ayırıp bu segmentlere göre pazarlama stratejileri belirlemek istemektedir.</p><p>Şirket, ortak davranışlar sergileyen müşteri segmentleri özelinde pazarlama çalışmaları yapmanın gelir artışı sağlayacağını düşünmektedir.</p><p>Örneğin şirket için çok kazançlı olan müşterileri elde tutmak için farklı kampanyalar, yeni müşteriler için farklı kampanyalar düzenlenmek istenmektedir.</p><p>Müşterileri RFM yöntemi ile segmentlere ayırınız.</p><h3>Veri Seti Hikayesi</h3><p>Online Retail II isimli veri seti İngiltere merkezli online bir satış mağazasının 01/12/2009–09/12/2011 tarihleri arasındaki satışlarını içermektedir.</p><p>Bu şirketin ürün kataloğunda hediyelik eşyalar yer almaktadır.</p><p>Şirketin müşterilerinin büyük çoğunluğu kurumsal müşterilerdir.</p><h3>Değişkenler</h3><ul><li>InvoiceNo(Fatura Numarası) : Eğer bu kod C ile başlıyorsa işlemin iptal edildiğini ifade eder.</li><li>StockCode(Ürün Kodu) : Her bir ürün için eşsiz numara.</li><li>Description : Ürün ismi.</li><li>Quantity (Ürün Adedi) : Faturalardaki ürünlerden kaçar tane satıldığını ifade etmektedir.</li><li>InvoiceDate : Fatura tarihi.</li><li>UnitPrice : Fatura fiyatı (Sterlin)</li><li>CustomerID : Eşsiz müşteri numarası</li><li>Country : Ülke ismi</li></ul><h4>Adım 1 : Gerekli kütüphaneleri ve veri setini yükleyelim.</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Frfm%2Fv%2F2%26cellId%3D4&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Frfm%2Fv%2F2%26cellId%3D4&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fsafakss%2Fprofile_images%2F8dfd9cc51aed467084a111100ee7b184%2Fmedium.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/497ed7ef077454ce5d421352128ce8b7/href">https://medium.com/media/497ed7ef077454ce5d421352128ce8b7/href</a></iframe><h4>Adım 2 : Eksik gözlemleri silelim.</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Frfm%2Fv%2F2%26cellId%3D5&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Frfm%2Fv%2F2%26cellId%3D5&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fsafakss%2Fprofile_images%2F8dfd9cc51aed467084a111100ee7b184%2Fmedium.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/a9a7a40ae41c991961e1bc8379f6f031/href">https://medium.com/media/a9a7a40ae41c991961e1bc8379f6f031/href</a></iframe><h4>Adım 3 : Faturalardaki ‘C’ iptal edilen işlemleri göstermektedir. İptal edilen işlemleri veri setinden çıkartalım.</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Frfm%2Fv%2F2%26cellId%3D6&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Frfm%2Fv%2F2%26cellId%3D6&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fsafakss%2Fprofile_images%2F8dfd9cc51aed467084a111100ee7b184%2Fmedium.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/b034c115d8c5bed142f41b38a9904b3c/href">https://medium.com/media/b034c115d8c5bed142f41b38a9904b3c/href</a></iframe><h4>Adım 4 : Fatura başına elde edilen toplam kazancı ifade eden ‘TotalPrice’ adında bir değişken oluşturalım.</h4><p>Veri setimizde -price ve -quantity değerleri var bunları atmalıyız.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Frfm%2Fv%2F2%26cellId%3D7&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Frfm%2Fv%2F2%26cellId%3D7&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fsafakss%2Fprofile_images%2F8dfd9cc51aed467084a111100ee7b184%2Fmedium.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/e09b5f775e70253220bdd8ecb0102a9c/href">https://medium.com/media/e09b5f775e70253220bdd8ecb0102a9c/href</a></iframe><h4>Adım 5 : RFM Metriklerini hesaplayalım.</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Frfm%2Fv%2F2%26cellId%3D8&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Frfm%2Fv%2F2%26cellId%3D8&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fsafakss%2Fprofile_images%2F8dfd9cc51aed467084a111100ee7b184%2Fmedium.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/59c5353f56591ae6aa442c9028522d59/href">https://medium.com/media/59c5353f56591ae6aa442c9028522d59/href</a></iframe><p>today_date değişkenimizi en son yapılan işlemden 2–3 gün sonrası seçtik.</p><p>Customer ID’ler unique olduğu için bunları groupby yapıp her bir müşterinin en son ne zaman alışveriş yaptığını, kaç kez alışveriş yaptığını ve alışverişlere harcadığı toplam miktarları tespit ettik.</p><h4>Adım 6 : Oluşturduğunuz metriklerin isimlerini recency, frequency ve monetary olarak değiştirelim.</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Frfm%2Fv%2F2%26cellId%3D8&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Frfm%2Fv%2F2%26cellId%3D8&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fsafakss%2Fprofile_images%2F8dfd9cc51aed467084a111100ee7b184%2Fmedium.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/59c5353f56591ae6aa442c9028522d59/href">https://medium.com/media/59c5353f56591ae6aa442c9028522d59/href</a></iframe><h4>Adım 7 : Recency, Frequency ve Monetary metriklerini qcut ile 1–5 arasında skorlara çevirelim.</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Frfm%2Fv%2F2%26cellId%3D10&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Frfm%2Fv%2F2%26cellId%3D10&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fsafakss%2Fprofile_images%2F8dfd9cc51aed467084a111100ee7b184%2Fmedium.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/97cab9c1119ada26aa9457411a472a19/href">https://medium.com/media/97cab9c1119ada26aa9457411a472a19/href</a></iframe><p>recency_score’u [5,4,3,2,1] diye tanımlamamızın sebebi en küçük recency değerleri en iyi puan olan 5&#39;i almalı. Mesela 10 gün önce alışveriş yapan 5 puan alırken, 270 gün önce alışveriş yapan 1 puan almalı. Çünkü müşterinin yakın zamanda alışveriş yapması bizim için daha iyi.</p><h4>Adım 8 : Oluşan 2 farklı değişkenin değerini tek bir değişken olarak ifade edelim ve RFM_SCORE olarak kaydedelim.</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Frfm%2Fv%2F2%26cellId%3D11&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Frfm%2Fv%2F2%26cellId%3D11&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fsafakss%2Fprofile_images%2F8dfd9cc51aed467084a111100ee7b184%2Fmedium.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/1150fd931b86abd3493202d63802f809/href">https://medium.com/media/1150fd931b86abd3493202d63802f809/href</a></iframe><p>RFM_SCORE’a monetary_score’u almamamızın sebebi ise RFM_SCORE R,F,M’den oluşturursak 125 farklı durum oluyor bu bizim çok fazla. Fakat sadece R ve F’den oluşturursak 25 durum oluyor. Bu daha ölçülebilir. Diğer bir sebep ise az da olsa çokta olsa bize bir şeyler kazandırıyor. Bu sebeplerden dolayı monetary_score’u RFM_SCORE’a eklemedik.</p><h4>Adım 9 : <em>RFM skorlarını segment olarak tanımlayalım.</em></h4><p>RFM skorları belli bir kurala göre segmentlere ayrılır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/617/1*uX21GFUJZY_OXMzjGKiUDw.png" /></figure><p>Bizde yukarıda verilen kurallara göre bu segmentleri tanımlayacağız.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Frfm%2Fv%2F2%26cellId%3D12&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Frfm%2Fv%2F2%26cellId%3D12&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fsafakss%2Fprofile_images%2F8dfd9cc51aed467084a111100ee7b184%2Fmedium.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/d34b5220876dee63a90b96b4a5966406/href">https://medium.com/media/d34b5220876dee63a90b96b4a5966406/href</a></iframe><h4>Adım 10 : Oluşturduğumuz segmentleri inceleyelim.</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Frfm%2Fv%2F2%26cellId%3D13&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Frfm%2Fv%2F2%26cellId%3D13&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fsafakss%2Fprofile_images%2F8dfd9cc51aed467084a111100ee7b184%2Fmedium.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/2cdece71b97bbeaf6302656e0f10743a/href">https://medium.com/media/2cdece71b97bbeaf6302656e0f10743a/href</a></iframe><h4>Adım 11 : Aksiyon Zamanı</h4><ul><li>Hibernating : Uyuyan Grup<br>- Bu grupta 1071 müşterimiz var. Bütün müşteriler imizin %24.6&#39;sı.<br>- Ortalama 217 gündür alışveriş yapmıyorlar.<br>- Ortalama 1.10 kez alışveriş yapmışlar.<br>- Ortalama 488$ kazanmışız.<br>- Hibernating segmenti için kesinlikle bir aksiyon kararı almalıyız.<br>- Çünkü hibernating segmentimiz mevcut müşterilerimizin %24.6&#39;sını temsil ediyor.<br>- Uyuyan bu segmentimizi uyandırmak için ise :<br>- Öncelikle bu segmentimizle tekrar iletişime geçmemiz lazım.<br>- Özel ilgi sunmalıyız ve markamızın değerini onların gözünde tekrar oluşturmalıyız.<br>- Kendimizi mailler, mesajlar vb. gibi yöntemlerle tekrar hatırlatmalıyız.<br>- Geçmiş aramalarına göre özel kampanyalar düzenleyebiliriz.</li><li>Potential_loyalists : Sadık Olmaya Yatkın Grup<br>- Bu grupta 484 müşterimiz var. Bütün müşterilerimizin %11&#39;i.<br>- Ortalama 17 gündür alışveriş yapmıyorlar.<br>- Ortalama 2 kez alışveriş yapmışlar.<br>- Bu sınıf sadık olmaya yakın olduğu için şöyle bir şey denenebilir :<br>- Örneğin davet ettikleri kişiler, kişi başına toplamda 100$ harcama yaptıklarında davet eden sadık müşterimize 5$’lık kupon verebiliriz. Sanki onlara şirketimizde ortakmışız hissiyatı oluşturabilir.</li><li>at_risk : kaybetme ihtimalimizin yüksek olduğu grup, riskli<br>- Bu grupta 593 müşterimiz var. Bütün müşterilerimizin yüzde 13&#39;ü.<br>- Ortalama 153 gündür alışveriş yapmıyorlar.<br>- Ortalama 2.8 kez alışveriş yapmışlar.<br>- Yeniden bağlantı kurmaları için onlara kişiselleştirilmiş kampanyalar göndermeliyiz.<br>- Faydalı ürünler ve çokça indirimler sunarsak geri getirebiliriz bu grubu.</li></ul><p>Proje kodlarına <a href="https://github.com/SafakSS/RFM-and-CLTV-Predict/blob/main/rfm_ile_musteriSegmentasyonu.py">buradan</a> erişebilirsiniz.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e85ddbdb3bd3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pima Indians Diabetes Classification Project]]></title>
            <link>https://medium.com/@SafakSS/pima-indians-diabetes-classification-project-ce4f234bafdf?source=rss-d8374d1a2703------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce4f234bafdf</guid>
            <dc:creator><![CDATA[Şafak Selim Sofioğlu]]></dc:creator>
            <pubDate>Thu, 13 Jan 2022 14:57:45 GMT</pubDate>
            <atom:updated>2022-01-13T15:18:34.213Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NBA8c2rtdUiiWG1c3FVqtw.jpeg" /></figure><h3>Business Problem</h3><p>Predict whether people have diabetes when their characteristics are specified.<br>It is desired to develop a machine learning model that can model data analysis and feature engineering steps required prior to development you are expected to do.</p><h3>Dataset Story</h3><p>The dataset is part of the large dataset held at the National Institutes of Diabetes-Digestive-Kidney Diseases in the USA. Data used for diabetes research on Pima Indian women aged 21 and over living in Phoenix, the 5th largest city of the State of Arizona in the USA.<br>The target variable is specified as “outcome”; 1 indicates positive diabetes test result, 0 indicates negative.</p><h4>Variables</h4><ul><li><strong>Pregnancies</strong> → Indicates the number of pregnancies.</li><li><strong>Glucose </strong>→ Plasma glucose concentration a 2 hours in an oral glucose tolerance test</li><li><strong>BloodPressure →</strong> Diastolic blood pressure (mm Hg)</li><li><strong>SkinThickness →</strong> Triceps skin fold thickness (mm)</li><li><strong>Insulin →</strong> 2-Hour serum insulin (mu U/ml)</li><li><strong>BMI →</strong> Body mass index (weight in kg/(height in m)²)</li><li><strong>DiabetesPedigreeFunction: → </strong>Diabetes pedigree function</li><li><strong>Age →</strong> Age (years)</li><li><strong>Outcome → </strong>Have the disease (1) or not (0)</li></ul><p>Now that we have talked about the dataset in detail, we can start the project.</p><h4>Let’s load libraries</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Fdiabetes%2Fv%2F3%26cellId%3D4&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Fdiabetes%2Fv%2F3%26cellId%3D4&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fsafakss%2Fprofile_images%2F8dfd9cc51aed467084a111100ee7b184%2Fmedium.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/9e5bdd446ec976a14da91adf0f43a1ab/href">https://medium.com/media/9e5bdd446ec976a14da91adf0f43a1ab/href</a></iframe><h4>Let’s load dataset</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Fdiabetes%2Fv%2F3%26cellId%3D5&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Fdiabetes%2Fv%2F3%26cellId%3D5&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fsafakss%2Fprofile_images%2F8dfd9cc51aed467084a111100ee7b184%2Fmedium.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/c0db3cdb014956c707162aa5fd507c03/href">https://medium.com/media/c0db3cdb014956c707162aa5fd507c03/href</a></iframe><h4>Step 1: Check for missing value</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Fdiabetes%2Fv%2F3%26cellId%3D6&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Fdiabetes%2Fv%2F3%26cellId%3D6&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fsafakss%2Fprofile_images%2F8dfd9cc51aed467084a111100ee7b184%2Fmedium.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/c93130a42786515c863e7e06365b503a/href">https://medium.com/media/c93130a42786515c863e7e06365b503a/href</a></iframe><h4>Step 2: Check the number of 0 in the variables</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Fdiabetes%2Fv%2F3%26cellId%3D7&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Fdiabetes%2Fv%2F3%26cellId%3D7&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fsafakss%2Fprofile_images%2F8dfd9cc51aed467084a111100ee7b184%2Fmedium.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/e1f0b0bbe545f8cc410eadbaa8ea5452/href">https://medium.com/media/e1f0b0bbe545f8cc410eadbaa8ea5452/href</a></iframe><p>Under normal conditions, Glucose, Blood Pressure, Skin Thickness, Insulin and BMI cannot be 0. Therefore, the 0 values ​​in the specified variable must be corrected first. These values ​​should be converted to NaN values ​​and missing values ​​should be estimated using the k-nearest neighbor (KNN) algorithm.</p><h4>Step 3: The 0 values ​​are converted to NaN values ​​and the NaN values ​​are filled by estimating with the KNN algorithm.</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Fdiabetes%2Fv%2F3%26cellId%3D8&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Fdiabetes%2Fv%2F3%26cellId%3D8&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fsafakss%2Fprofile_images%2F8dfd9cc51aed467084a111100ee7b184%2Fmedium.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/6a2554945dd6b53be308b4f3399633d9/href">https://medium.com/media/6a2554945dd6b53be308b4f3399633d9/href</a></iframe><h4>Step 4 : Check for Outliers</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Fdiabetes%2Fv%2F3%26cellId%3D9&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Fdiabetes%2Fv%2F3%26cellId%3D9&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fsafakss%2Fprofile_images%2F8dfd9cc51aed467084a111100ee7b184%2Fmedium.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/224b6f5a4d45a29b4ccdc52d81d7d409/href">https://medium.com/media/224b6f5a4d45a29b4ccdc52d81d7d409/href</a></iframe><h4>Step 5 : Feature Engineering</h4><p>Knowledge is required to create a new Feature. Therefore, the correlations of the variables with each other should be examined.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Fdiabetes%2Fv%2F3%26cellId%3D10&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Fdiabetes%2Fv%2F3%26cellId%3D10&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fsafakss%2Fprofile_images%2F8dfd9cc51aed467084a111100ee7b184%2Fmedium.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/e1e4086ca7c12174b9fd0026673e5936/href">https://medium.com/media/e1e4086ca7c12174b9fd0026673e5936/href</a></iframe><p>It is observed that the most important variables affecting OUTCOME are GLUCOSE, INSULIN, BMI, SKINTHICKNESS, AGE, PREGNANCIES, BLOODPRESSURE, DIABETESPEDIGREEFUNCTION, respectively.</p><p>Variables can be re-examined in detail.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Fdiabetes%2Fv%2F3%26cellId%3D11&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Fdiabetes%2Fv%2F3%26cellId%3D11&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fsafakss%2Fprofile_images%2F8dfd9cc51aed467084a111100ee7b184%2Fmedium.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/f8c8e1217cbc0e835beb4000bf125234/href">https://medium.com/media/f8c8e1217cbc0e835beb4000bf125234/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cD5CKA_52if5UxHVnN76uA.png" /></figure><h4>If the graph is examined :</h4><ul><li>There may be a relationship between GLUCOSE and BMI.</li><li>There may be a relationship between GLUCOSE and INSULIN.</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Fdiabetes%2Fv%2F3%26cellId%3D12&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Fdiabetes%2Fv%2F3%26cellId%3D12&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fsafakss%2Fprofile_images%2F8dfd9cc51aed467084a111100ee7b184%2Fmedium.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/ae955cdd8a4a0bff96c734c122351bd4/href">https://medium.com/media/ae955cdd8a4a0bff96c734c122351bd4/href</a></iframe><p>Categorical variables should be created</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Fdiabetes%2Fv%2F3%26cellId%3D13&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Fdiabetes%2Fv%2F3%26cellId%3D13&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fsafakss%2Fprofile_images%2F8dfd9cc51aed467084a111100ee7b184%2Fmedium.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/c961416db3d72fb72e38fdc51228063f/href">https://medium.com/media/c961416db3d72fb72e38fdc51228063f/href</a></iframe><p>The newly created variables are divided into categorical, numeric and cardinal variables. Then only variables with 2 different string values ​​are detected and label coding is applied.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Fdiabetes%2Fv%2F3%26cellId%3D14&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Fdiabetes%2Fv%2F3%26cellId%3D14&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fsafakss%2Fprofile_images%2F8dfd9cc51aed467084a111100ee7b184%2Fmedium.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/c55a25cb438a4abda92214cb55645e0c/href">https://medium.com/media/c55a25cb438a4abda92214cb55645e0c/href</a></iframe><h4>Step 6 : Analysis of rare values</h4><p>The rarity analysis of the values ​​in the categorical variable is performed.</p><p>Afterwards, the classes in all variables are examined and if the rarity ratio is less than 0.01 it is dropped.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Fdiabetes%2Fv%2F3%26cellId%3D15&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Fdiabetes%2Fv%2F3%26cellId%3D15&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fsafakss%2Fprofile_images%2F8dfd9cc51aed467084a111100ee7b184%2Fmedium.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/5a00484e43ca8d67997c3df1c3cd7248/href">https://medium.com/media/5a00484e43ca8d67997c3df1c3cd7248/href</a></iframe><h4>Step 7 : One-Hot Encoding</h4><p>Variables with less than 10 and more than 2 unique values ​​are encoded with one-hot encoding.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Fdiabetes%2Fv%2F3%26cellId%3D16&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Fdiabetes%2Fv%2F3%26cellId%3D16&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fsafakss%2Fprofile_images%2F8dfd9cc51aed467084a111100ee7b184%2Fmedium.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/e5bc04478ce037b5e7cff55c916920d9/href">https://medium.com/media/e5bc04478ce037b5e7cff55c916920d9/href</a></iframe><p>Again, newly created variables are divided into categorical, numerical and cardinal variables. And again, rarity analysis is done for the variables.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Fdiabetes%2Fv%2F3%26cellId%3D17&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Fdiabetes%2Fv%2F3%26cellId%3D17&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fsafakss%2Fprofile_images%2F8dfd9cc51aed467084a111100ee7b184%2Fmedium.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/d657c9140c9341f4456e02863ca2824d/href">https://medium.com/media/d657c9140c9341f4456e02863ca2824d/href</a></iframe><p>A rare value was detected in one of the variables. This value is dropped.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Fdiabetes%2Fv%2F3%26cellId%3D18&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Fdiabetes%2Fv%2F3%26cellId%3D18&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fsafakss%2Fprofile_images%2F8dfd9cc51aed467084a111100ee7b184%2Fmedium.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/763d347da397e8759d896981284bbbcf/href">https://medium.com/media/763d347da397e8759d896981284bbbcf/href</a></iframe><h4>Step 8 : Robust scaling should be implemented.</h4><p>The reason for robust scaling can be considered as a prerequisite for establishing the model.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Fdiabetes%2Fv%2F3%26cellId%3D19&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Fdiabetes%2Fv%2F3%26cellId%3D19&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fsafakss%2Fprofile_images%2F8dfd9cc51aed467084a111100ee7b184%2Fmedium.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/7b4868945d994d6d997e063cda652fc7/href">https://medium.com/media/7b4868945d994d6d997e063cda652fc7/href</a></iframe><h4>Step 9 : Model Building</h4><p>The target variable and independent variables are separated. Then it is divided into two as test and train set. Then the model is built and the accuracy_score is reached.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Fdiabetes%2Fv%2F3%26cellId%3D20&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Fdiabetes%2Fv%2F3%26cellId%3D20&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fsafakss%2Fprofile_images%2F8dfd9cc51aed467084a111100ee7b184%2Fmedium.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/52f024340e85f7402db32ef68e08dffe/href">https://medium.com/media/52f024340e85f7402db32ef68e08dffe/href</a></iframe><h4>Step 10 : The rate of effect of all variables on the outcome is checked.</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Fdiabetes%2Fv%2F3%26cellId%3D21&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Fdiabetes%2Fv%2F3%26cellId%3D21&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Fjvn%2Fassets%2Fsafakss%2Fprofile_images%2F8dfd9cc51aed467084a111100ee7b184%2Fmedium.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/83c59e8712dd3935fc0dbcb007f26f18/href">https://medium.com/media/83c59e8712dd3935fc0dbcb007f26f18/href</a></iframe><p>As you can see, the variables NEW_GLUCOSE_BMI and NEW_GLUCOSE_INSULIN that are created later seem to be very useful for OUTCOME.</p><h4>As a result :</h4><p>New variables are created in the project. The model was established with these variables. The accuracy score of the model result is 0.837 .</p><p>We can predict with 83% success whether people have diabetes or not.</p><p>You can access the project codes <a href="https://github.com/SafakSS/FeatureEngineering/blob/main/diabetes_feature_engineering.py">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce4f234bafdf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A/B Testi Nedir?]]></title>
            <link>https://medium.com/@SafakSS/a-b-testi-nedir-765fe2378a4f?source=rss-d8374d1a2703------2</link>
            <guid isPermaLink="false">https://medium.com/p/765fe2378a4f</guid>
            <dc:creator><![CDATA[Şafak Selim Sofioğlu]]></dc:creator>
            <pubDate>Sun, 02 Jan 2022 13:17:50 GMT</pubDate>
            <atom:updated>2022-01-02T17:39:51.430Z</atom:updated>
            <content:encoded><![CDATA[<p>En basit anlamıyla A/B testi, belirli bir metriğe göre hangisinin daha iyi performans gösterdiğini görmek için iki değişken üzerinde yapılan bir deneydir. Tipik olarak, iki tüketici grubu, oturumlar, tıklama oranı ve/veya dönüşümler gibi metriklerde önemli bir fark olup olmadığını görmek için aynı şeyin iki farklı versiyonuna maruz bırakılır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*xh1AvlRZAApGskuJ.jpg" /></figure><h4>Bilmek neden önemlidir?</h4><p>A/B testinin ne olduğunu ve nasıl çalıştığını bilmek önemlidir, çünkü bir üründeki değişiklikleri veya bir pazarlama stratejisindeki değişiklikleri ölçmek için en iyi yöntemdir. Ve bu, iş kararlarının gerçeklere ve sayılara göre verilmesi gereken veri odaklı bir dünyada giderek daha önemli hale geliyor.</p><p>A/B Testi ile proje gerçekleştirelim.</p><h4><strong>İş Problemi</strong></h4><p>Facebook kısa süre önce mevcut maximum bidding adı verilen teklif <br>verme türüne alternatif olarak yeni bir teklif türü olan average bidding’i <br>tanıttı.</p><p>Müşterilerimizden biri olan Mojo Jojo, bu yeni özelliği test <br>etmeye karar verdi ve averagebidding’in, maximumbidding’den daha <br>fazla dönüşüm getirip getirmediğini anlamak için bir A/B testi yapmak <br>istiyor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*3sueUe62GX7E-p-o.jpg" /></figure><h4>Veri Seti Hikayesi</h4><p>Mojo Jojo’nun web sitesinin bilgilerini içeren bu veri setinde kullanıcıların <br>gördükleri ve tıkladıkları reklam sayıları gibi bilgilerin yanı sıra buradan gelen kazanç bilgileri yer almaktadır. Kontrol ve Test grubu olmak üzere iki ayrı veri seti vardır.</p><h4>Değişkenler</h4><ul><li><strong>Impression</strong> → İzlenme : Reklam görüntüleme sayısı</li><li><strong>Click</strong> → Tıklama : Görüntülenen reklama tıklanma sayısını belirtir.</li><li><strong>Purchase</strong> → Satın alma : Tıklanan reklamlar sonrası satın alınan ürün sayısını belirtir.</li><li><strong>Earning</strong> → Kazanç : Satın alınan ürünler sonrası elde edilen kazanç.</li></ul><p><strong>Veri setlerini yükleyelim.</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Fab-test%2Fv%2F5%26cellId%3D4&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Fab-test%2Fv%2F5%26cellId%3D4&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fc179276f5cde41bf9de445a06734caa0%2Fpreview%2Fa6e486b1e4f741d59e17732a5d0b8420&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/bfa3431c89a9e76f1d8f52f7df256571/href">https://medium.com/media/bfa3431c89a9e76f1d8f52f7df256571/href</a></iframe><p><strong>Görev 1 : A/B testinin hipotezini tanımlayınız.</strong><br>Maximum Bidding ile Average Bidding arasında istatistiki olarak anlamlı bir fark var mı?</p><p><strong>Görev 2 : A/B testini uygulayınız.</strong></p><p><strong>Görev 2 — Adım 1: Normallik Varsayımı</strong></p><ul><li>H0 : Normal dağılım varsayımı sağlanmaktadır.</li><li>H1 : Normal dağılım varsayımı sağlanmamaktadır</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Fab-test%2Fv%2F6%26cellId%3D5&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Fab-test%2Fv%2F6%26cellId%3D5&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fc179276f5cde41bf9de445a06734caa0%2Fpreview%2Ff899acf8f13b4585a6e420e94a262c72&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/8df4d877a6f4c20d1c3e0f582e318ed3/href">https://medium.com/media/8df4d877a6f4c20d1c3e0f582e318ed3/href</a></iframe><p>Control grubu ve Test grubunun p-value &gt; 0.05 olduğu için H0 reddedilemez ve her ikiside normal dağılım varsayımını sağlamaktadır.</p><p><strong>Görev 2 — Adım 2 : Varyans Homojenliği</strong></p><ul><li>H0 : Varyanslar homojendir.</li><li>H1 : Varyanslar homojen değildir.</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Fab-test%2Fv%2F7%26cellId%3D6&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Fab-test%2Fv%2F7%26cellId%3D6&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fc179276f5cde41bf9de445a06734caa0%2Fpreview%2Fccab14563d914973bdbb884a3726b216&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/874da44a97dd4dd3868ccf1f4144fdf1/href">https://medium.com/media/874da44a97dd4dd3868ccf1f4144fdf1/href</a></iframe><p>p-value &gt; 0.05 olduğu için H0 reddedilemez ve varyanslar homojendir.</p><p><strong>Görev 2 — Adım 3: Bağımsız İki Örneklem T Testi</strong></p><p>Normallik varsayımı ve Varyans homojenliği sağlandığına göre bağımsız iki örneklem t testi (parametrik test) uygulanabilir.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Fab-test%2Fv%2F8%26cellId%3D7&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Fab-test%2Fv%2F8%26cellId%3D7&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fc179276f5cde41bf9de445a06734caa0%2Fpreview%2Fb4ee9560a7e940bca6c93e2df7191afe&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/f13d39c68b4f3599fb3848b45a6ef7fc/href">https://medium.com/media/f13d39c68b4f3599fb3848b45a6ef7fc/href</a></iframe><p>equal_var → varyansların homojenliğini temsil ediyor.</p><p>p-value &gt; 0.05 olduğu için H0 reddedilemez ve Maximum Bidding ile Average Bidding arasında istatistiki olarak anlamlı bir fark yoktur deriz.</p><p><strong>Görev 3 : Hangi testleri kullandınız? Açıklayınız.</strong></p><p>İlk olarak normallik varsayımı<strong> </strong>yapmak için <strong>Shapiro-Wilk</strong> testini kullandık ve normallik varsayımının sağlandığını öğrendik. Sonrasında normallik varsayımı sağlandığı için varyans homojenliğini kontrol etmemiz gerekiyordu. Varyans homojenliğini kontrol etmek için ise <strong>Levene</strong> testini kullandık ve varyans homojenliğinin sağlandığını öğrendik. Varsayımlar sağlandığı için<strong> iki örneklem t testi (parametrik test)</strong> kullanıldı ve sonuca ulaşıldı.</p><p><strong>Görev 4 : Müşteriye tavsiyeniz nedir?</strong></p><ul><li>İncelediğimiz veri seti 40 gözlemden oluşuyor. Daha fazla gözlemden daha güvenilir bir sonuç alabiliriz.</li><li>Test veri setindeki gözlemler ve control veri setindeki gözlemler aynı dönemde mi alındı? Eğer aynı dönemleri kapsamıyorsa sonuçlarda bu yüzden bir farklılaşma olabilir. Gözlemlerin aynı dönemde alınması daha doğru bir sonuç için önem taşıyor.</li><li>Gözlemlerimizin içinde kaç tane hafta içi, kaç tane hafta sonu gün var? Müşterilerin hafta içi alışveriş alışkanlığıyla, hafta sonu alışveriş alışkanlığı farklı olabilir. Bu yüzden gözlemlerdeki hafta içi/hafta sonu gün sayısı benzer olursa daha doğru bir sonuç alınabilir.</li></ul><h4>Sonuç olarak :</h4><p>Oluşturduğumuz hipotezi reddedemedik ve Maximum Bidding ile Average Bidding arasında istatistiki olarak bir fark yoktur.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/0*iXI6i1blz4pBvmYt.gif" /></figure><p><strong>Kaynaklar :</strong></p><ul><li><a href="https://datatron.com/a-simple-guide-to-a-b-testing-for-data-science/">https://datatron.com/a-simple-guide-to-a-b-testing-for-data-science/</a></li></ul><p><strong>Teşekkürler :</strong></p><ul><li><a href="https://medium.com/u/3ad8a8b56263">Oğuz Erdoğan</a></li><li><a href="https://medium.com/u/f1d7ab493534">Burak Doğrul</a></li><li><a href="https://www.veribilimiokulu.com/">Veri Bilimi Okulu</a></li></ul><p>Proje kodlarına <a href="https://github.com/SafakSS/AB-Testing/blob/main/ab_testing.py">buradan</a> erişebilirsiniz.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=765fe2378a4f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rating Product & Sorting Reviews]]></title>
            <link>https://medium.com/@SafakSS/rating-product-sorting-reviews-6515e31c0803?source=rss-d8374d1a2703------2</link>
            <guid isPermaLink="false">https://medium.com/p/6515e31c0803</guid>
            <dc:creator><![CDATA[Şafak Selim Sofioğlu]]></dc:creator>
            <pubDate>Sun, 02 Jan 2022 00:42:45 GMT</pubDate>
            <atom:updated>2022-01-02T00:42:45.679Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*CDDvB_GFjXI8hzo-.jpg" /></figure><p>Most people nowadays shop online. We buy many products, but what actually makes a product sell?</p><p>We all pay attention to a number of things when shopping online. We look at the product’s average rating, how many votes it has received, reviews and even youtube videos. In fact, it is the opinion of the community that convinces us to buy the product.</p><p>In today’s topic, we will calculate the ratings of the products and the most useful comments. Let’s get started.</p><h4>Business Problem</h4><p>Purpose: To calculate product ratings more accurately and to rank product reviews more accurately.</p><h4>Dataset Story</h4><p>The user of the product with the most comments in the electronics category It has ratings and reviews.</p><h4>Variables:</h4><ul><li>reviewerID : User ID</li><li>asin : Product ID</li><li>reviewerName : Username</li><li>helpful : Degree of Useful Evaluation (Sample : 2/3)</li><li>reviewText : Review (User-written review text)</li><li>overall : Product Rating</li><li>summary : Evaluation Summary</li><li>unixReviewTime : Evaluation Time</li><li>reviewTime : Review Time</li><li>day_diff : Number of Days Since Evaluation</li><li>helpful_yes : The Number of Times the Review was Found Helpful</li><li>total_vote — Number of Votes Given to the Review</li></ul><p><strong>Let’s load the dataset.</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Frating-product-sorting-reviews%2Fv%2F1%26cellId%3D0&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Frating-product-sorting-reviews%2Fv%2F1%26cellId%3D0&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fa53c833fa1264ba09a8f1be680a0ab2b%2Fpreview%2F16940c8f21f844bf9733aa4d3402feff&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/d7334e0c9fd2cf2b000ea5bfe7ac9a67/href">https://medium.com/media/d7334e0c9fd2cf2b000ea5bfe7ac9a67/href</a></iframe><p><strong>Let’s summarize the dataset.</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Frating-product-sorting-reviews%2Fv%2F1%26cellId%3D1&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Frating-product-sorting-reviews%2Fv%2F1%26cellId%3D1&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fa53c833fa1264ba09a8f1be680a0ab2b%2Fpreview%2F16940c8f21f844bf9733aa4d3402feff&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/49a266cde19b11c589c5fe1bce1e109d/href">https://medium.com/media/49a266cde19b11c589c5fe1bce1e109d/href</a></iframe><h4><strong>Task 1: Calculate the Average Rating according to the current comments and compare it with the existing average rating.</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/248/1*yeoXbOVwh8EGkVAJURN-tw.png" /></figure><p>We found the overall score average, but when calculating it, it could be the votes from 4 years ago. Votes cast 4 years ago may be out of date. Instead, we need to find the recent weighted average. The reason we use the time-weighted average is because we want to give a coefficient to the most recently cast votes. Because the last votes represent the product up to date. For example, there may have been a problem with deliveries recently. That’s why people will give it a lower rating. This scoring method will represent the product much better for customers.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Frating-product-sorting-reviews%2Fv%2F1%26cellId%3D3&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Frating-product-sorting-reviews%2Fv%2F1%26cellId%3D3&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fa53c833fa1264ba09a8f1be680a0ab2b%2Fpreview%2F16940c8f21f844bf9733aa4d3402feff&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/914be74e38d5ccec4d620b4cc783285c/href">https://medium.com/media/914be74e38d5ccec4d620b4cc783285c/href</a></iframe><p>day_diff → Represented the number of days since the evaluation. That’s why we gave more coefficients to those with a small day_diff so that it has a greater effect on the result. The largest day_diff ones show a very distant date, so we lowered their coefficients. These coefficients may vary from person to person. As can be seen, there was an increase of approximately 0.11 in time-weighted scoring.</p><h4>Task 2: Determine the 10 reviews that will be displayed on the product detail page for the product.</h4><p>We will use the Wilson Lower Bound method. In short, we can say that this method works according to the logic of liked/disliked, useful/not useful.</p><p>helpful_yes → indicated that the review was found useful. To use the Wilson Lower Bound method, let’s create a variable called helpful_no.</p><ul><li><strong>Total Votes — Useful Votes = Useless Votes</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/1*xOO7GQVN_I54d9f0r69ijA.png" /></figure><p>Now let’s create the dataframe from the helpful_yes and heplful_no variables.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Frating-product-sorting-reviews%2Fv%2F1%26cellId%3D5&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Frating-product-sorting-reviews%2Fv%2F1%26cellId%3D5&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fa53c833fa1264ba09a8f1be680a0ab2b%2Fpreview%2F16940c8f21f844bf9733aa4d3402feff&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/2cbfffea359c67f9dda6f69a1037541c/href">https://medium.com/media/2cbfffea359c67f9dda6f69a1037541c/href</a></iframe><p>Now let’s create our wilson_lower_bound function and apply it to our comments variable.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Frating-product-sorting-reviews%2Fv%2F1%26cellId%3D6&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Frating-product-sorting-reviews%2Fv%2F1%26cellId%3D6&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fa53c833fa1264ba09a8f1be680a0ab2b%2Fpreview%2F16940c8f21f844bf9733aa4d3402feff&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/111dde0b4d5d491a1f5c17702a55089a/href">https://medium.com/media/111dde0b4d5d491a1f5c17702a55089a/href</a></iframe><p>Finally, let’s see our top 10 reviews.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Frating-product-sorting-reviews%2Fv%2F1%26cellId%3D7&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Frating-product-sorting-reviews%2Fv%2F1%26cellId%3D7&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fa53c833fa1264ba09a8f1be680a0ab2b%2Fpreview%2F16940c8f21f844bf9733aa4d3402feff&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/1176b9d7a74024cec698d525879c2b89/href">https://medium.com/media/1176b9d7a74024cec698d525879c2b89/href</a></iframe><p><strong>As a result:</strong> We have reached the top 10 reviews that best represent the product. We have created the ranking not according to the highest scores, but according to the reviews that best represent the product. A much more objective ranking.</p><p>Thanks :</p><ul><li><a href="https://medium.com/u/3ad8a8b56263">Oğuz Erdoğan</a></li><li><a href="https://medium.com/u/f1d7ab493534">Burak Doğrul</a></li><li><a href="https://www.veribilimiokulu.com/">Veri Bilimi Okulu</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6515e31c0803" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ürün Puanlama & Yorum Sıralama]]></title>
            <link>https://medium.com/@SafakSS/rating-product-sorting-reviews-78e03aaf99b1?source=rss-d8374d1a2703------2</link>
            <guid isPermaLink="false">https://medium.com/p/78e03aaf99b1</guid>
            <dc:creator><![CDATA[Şafak Selim Sofioğlu]]></dc:creator>
            <pubDate>Sat, 01 Jan 2022 16:48:29 GMT</pubDate>
            <atom:updated>2022-01-02T09:03:21.458Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*pe9mfJ9ONB9O7sWx.jpg" /></figure><p>Günümüzde çoğu insan online alışveriş yapıyor. Birçok ürün alıyoruz ama aslında bir ürünü sattıran şey nedir?</p><p>Hepimiz online alışveriş yaparken bir takım şeylere dikkat ederiz. Ürünün ortalama oy derecesine, oylanma sayısına, yorumlarına hatta ve hatta youtube videolarına bile bakarız. Aslında ürünü almamız için bizi ikna eden şey topluluğun kanaatidir.</p><p>Bügünkü konumuzda ürünlerin ratinglerinin ve en faydalı yorumlarının hangileri olduğunu hesaplayacağız.. Hadi başlayalım.</p><h3>İş Problemi</h3><p>Amacımız : Ürün reytinglerini daha doğru hesaplamak ve ürün yorumlarını daha doğru sıralamak.</p><h3>Veri Seti Hikayesi</h3><p>Elektronik kategorisindeki en fazla yorum alan ürünün kullanıcı puanları ve yorumları vardır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/528/1*LFuIeUDQlx2SLSlry02HOA.png" /></figure><p>Veri setini yükleyelim.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Frating-product-sorting-reviews%2Fv%2F1%26cellId%3D0&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Frating-product-sorting-reviews%2Fv%2F1%26cellId%3D0&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fa53c833fa1264ba09a8f1be680a0ab2b%2Fpreview%2F16940c8f21f844bf9733aa4d3402feff&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/d7334e0c9fd2cf2b000ea5bfe7ac9a67/href">https://medium.com/media/d7334e0c9fd2cf2b000ea5bfe7ac9a67/href</a></iframe><p>Veri setini kısaca özetleyelim.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Frating-product-sorting-reviews%2Fv%2F1%26cellId%3D1&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Frating-product-sorting-reviews%2Fv%2F1%26cellId%3D1&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fa53c833fa1264ba09a8f1be680a0ab2b%2Fpreview%2F16940c8f21f844bf9733aa4d3402feff&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/49a266cde19b11c589c5fe1bce1e109d/href">https://medium.com/media/49a266cde19b11c589c5fe1bce1e109d/href</a></iframe><h4><strong>Hedef 1:</strong> Bir ürünün rating’ini güncel yorumlara göre hesaplayınız ve eski rating ile kıyaslayınız.</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Frating-product-sorting-reviews%2Fv%2F1%26cellId%3D2&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Frating-product-sorting-reviews%2Fv%2F1%26cellId%3D2&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fa53c833fa1264ba09a8f1be680a0ab2b%2Fpreview%2F16940c8f21f844bf9733aa4d3402feff&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/ff622e608836bc9218e1a72d21ab3d13/href">https://medium.com/media/ff622e608836bc9218e1a72d21ab3d13/href</a></iframe><p>Genel puan ortalamasını bulduk ama bunu hesaplarken 4 yıl önceki oylar olabilir. 4 yıl önce kullanılan oylar güncelliğini yitirmiş olabilir. Bunun yerine, yakın zamanlı ağırlıklı ortalamayı bulmamız gerekiyor. Zaman ağırlıklı ortalamayı kullanmamızın nedeni, son kullanılan oylara bir katsayı vermek istememizdir. Çünkü son oylar ürünü güncel temsil ediyor. Örneğin, son zamanlarda teslimatlarla ilgili bir sorun olabilir. Bu yüzden insanlar daha düşük bir puan verecek. Bu puanlama yöntemi, ürünü müşteriler için çok daha iyi temsil edecektir.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Frating-product-sorting-reviews%2Fv%2F1%26cellId%3D3&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Frating-product-sorting-reviews%2Fv%2F1%26cellId%3D3&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fa53c833fa1264ba09a8f1be680a0ab2b%2Fpreview%2F16940c8f21f844bf9733aa4d3402feff&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/914be74e38d5ccec4d620b4cc783285c/href">https://medium.com/media/914be74e38d5ccec4d620b4cc783285c/href</a></iframe><p>day_diff → Değerlendirmeden itibaren geçen gün sayısını temsil ediyordu. Bu yüzden day_diff’i küçük olanlara daha fazla katsayı verdik ki sonuca daha çok etki yapsın. day_diff’i en büyük olanlar ise çok uzak bir tarihi gösterdiği için katsayılarını düşürdük. Bu katsayılar kişiden kişiye göre değişebilir. Görüldüğü gibi zaman ağırlıklı puanlamada yaklaşık 0.11 artış oldu.</p><h4>Hedef 2: Ürün için ürün detay sayfasında görüntülenecek 10 review’i belirleyiniz.</h4><p>Wilson Lower Bound metodunu kullanacağız. Bu metod kısaca beğendi/beğenmedi, faydalı bulundu/faydalı bulunmadı mantığına göre çalışır diyebiliriz.</p><p>helpful_yes → değerlendirmenin faydalı bulunduğunu gösteriyordu. Bu metodu kullanmak için helpful_no diye bir değişken oluşturmamız gerekiyor.</p><ul><li>Toplam Oy — Faydalı Bulunan Oy = Faydalı Bulunmayan Oy</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Frating-product-sorting-reviews%2Fv%2F1%26cellId%3D4&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Frating-product-sorting-reviews%2Fv%2F1%26cellId%3D4&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fa53c833fa1264ba09a8f1be680a0ab2b%2Fpreview%2F16940c8f21f844bf9733aa4d3402feff&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/c406c929073fb02f96d5c6cfc1d010d4/href">https://medium.com/media/c406c929073fb02f96d5c6cfc1d010d4/href</a></iframe><p>Şimdi helpful_yes ve heplful_no değişkenlerinden dataframe oluşturalım.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Frating-product-sorting-reviews%2Fv%2F1%26cellId%3D5&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Frating-product-sorting-reviews%2Fv%2F1%26cellId%3D5&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fa53c833fa1264ba09a8f1be680a0ab2b%2Fpreview%2F16940c8f21f844bf9733aa4d3402feff&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/2cbfffea359c67f9dda6f69a1037541c/href">https://medium.com/media/2cbfffea359c67f9dda6f69a1037541c/href</a></iframe><p>Şimdi wilson_lower_bound fonksiyonumuzu oluşturalım ve comments değişkenimize uygulayalım.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Frating-product-sorting-reviews%2Fv%2F1%26cellId%3D6&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Frating-product-sorting-reviews%2Fv%2F1%26cellId%3D6&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fa53c833fa1264ba09a8f1be680a0ab2b%2Fpreview%2F16940c8f21f844bf9733aa4d3402feff&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/111dde0b4d5d491a1f5c17702a55089a/href">https://medium.com/media/111dde0b4d5d491a1f5c17702a55089a/href</a></iframe><p>Son olarak ilk 10 review’imizi görelim.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Frating-product-sorting-reviews%2Fv%2F1%26cellId%3D7&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Frating-product-sorting-reviews%2Fv%2F1%26cellId%3D7&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fa53c833fa1264ba09a8f1be680a0ab2b%2Fpreview%2F16940c8f21f844bf9733aa4d3402feff&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/1176b9d7a74024cec698d525879c2b89/href">https://medium.com/media/1176b9d7a74024cec698d525879c2b89/href</a></iframe><p><strong>Sonuç olarak :</strong> Ürünü en iyi temsil eden ilk 10 yoruma erişmiş olduk. Sıralamayı en yüksek puanlara göre değil ürünü en iyi temsil eden yorumlara göre oluşturduk. Çok daha objektif bir sıralama.</p><p>Teşekkürler :</p><ul><li><a href="https://medium.com/u/3ad8a8b56263">Oğuz Erdoğan</a></li><li><a href="https://medium.com/u/f1d7ab493534">Burak Doğrul</a></li><li><a href="https://www.veribilimiokulu.com/">Veri Bilimi Okulu</a></li></ul><p>Proje kodlarına <a href="https://github.com/SafakSS/Rating-Product-Sorting-Reviews-in-Amazon">buradan</a> erişebilirsiniz.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78e03aaf99b1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Customers Future with CLTV]]></title>
            <link>https://medium.com/@SafakSS/customers-future-with-cltv-31b90e93952f?source=rss-d8374d1a2703------2</link>
            <guid isPermaLink="false">https://medium.com/p/31b90e93952f</guid>
            <dc:creator><![CDATA[Şafak Selim Sofioğlu]]></dc:creator>
            <pubDate>Mon, 20 Dec 2021 18:05:02 GMT</pubDate>
            <atom:updated>2021-12-20T19:53:59.384Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UIT2w01cZood87Ph.jpeg" /></figure><h4>What is customer lifetime value (CLV)?</h4><p>Customer lifetime value is the average amount of money your customers will spend on your business throughout of your relationship.</p><h4>Why should you calculate customer lifetime value (CLV)?</h4><p>One of the main reasons for measuring CLV is customer retention. Marketing Metrics reveal that there is a 5%–20% probability of selling to a new potential customer, and a 60%–70% probability of selling to an existing customer.</p><h4><strong>Advantages of CLV:</strong></h4><ul><li>Helping identify customer segmentation</li><li>Measuring customer loyalty</li><li>Determining the effectiveness of marketing strategies</li><li>Assisting in the evaluation of product quality</li><li>Increased profitability overall</li></ul><p>Now that we have briefly mentioned CLV, we can move on to our project.</p><h4>Business Problem</h4><p>An e-commerce site wants a forward projection for customer actions according to the CLTV values ​​of its customers. With the dataset in your hand, is it possible to identify the customers who can generate the most revenue within 1-month or 6-month periods?</p><h4>Dataset Story</h4><p>The dataset named Online Retail II includes the sales of a UK-based online store between 01/12/2009–09/12/2011.</p><h4>Variables</h4><p><strong>InvoiceNo </strong>: If it starts with C, it means that the operation has been cancelled.<br><strong>StockCode </strong>: Unique number for each product.<br><strong>Description </strong>: Name of product.<br><strong>Quantity </strong>: The number of items that show how many have been sold.<br><strong>InvoiceDate </strong>: Purchased date.<br><strong>UnitPrice </strong>: Product price.<br><strong>CustomerID </strong>: Unique customer number.<br><strong>Country</strong> : Customer’s country.</p><h4>Let’s load libraries</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Fretail-ii%2Fv%2F1%26cellId%3D0&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Fretail-ii%2Fv%2F1%26cellId%3D0&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F56f42aa4973840a28dd8870c69dc8b4f%2Fpreview%2Fa3f65558befd4a7b98451c968a4d787c&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/cb1dd8bc4407a42403c92f37268995d3/href">https://medium.com/media/cb1dd8bc4407a42403c92f37268995d3/href</a></iframe><h4>Let’s load dataset</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Fretail-ii%2Fv%2F1%26cellId%3D3&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Fretail-ii%2Fv%2F1%26cellId%3D3&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F56f42aa4973840a28dd8870c69dc8b4f%2Fpreview%2Fa3f65558befd4a7b98451c968a4d787c&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/03c17621f7bfa1f19a536285ab0e2f44/href">https://medium.com/media/03c17621f7bfa1f19a536285ab0e2f44/href</a></iframe><p>The outlier_thresholds function defines an upper limit for very large values in the data set and a lower limit for very small values.</p><p>The replace_with_thresholds function, on the other hand, suppresses values greater than the upper limit to the upper limit, and values less than the lower limit to the lower limit.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Fretail-ii%2Fv%2F1%26cellId%3D2&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Fretail-ii%2Fv%2F1%26cellId%3D2&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F56f42aa4973840a28dd8870c69dc8b4f%2Fpreview%2Fa3f65558befd4a7b98451c968a4d787c&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/4fc4672ce1364fbd0741faa068f9e18d/href">https://medium.com/media/4fc4672ce1364fbd0741faa068f9e18d/href</a></iframe><p><strong>Now let’s move on to the Data Preprocessing step.</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Fretail-ii%2Fv%2F1%26cellId%3D4&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Fretail-ii%2Fv%2F1%26cellId%3D4&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F56f42aa4973840a28dd8870c69dc8b4f%2Fpreview%2Fa3f65558befd4a7b98451c968a4d787c&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/24eae8a697d0a8bd7a14c81812918837/href">https://medium.com/media/24eae8a697d0a8bd7a14c81812918837/href</a></iframe><p>Since there are multiple Customer IDs in the dataset, we must deduplicate them with .groupby().</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Fretail-ii%2Fv%2F1%26cellId%3D5&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Fretail-ii%2Fv%2F1%26cellId%3D5&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F56f42aa4973840a28dd8870c69dc8b4f%2Fpreview%2Fa3f65558befd4a7b98451c968a4d787c&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/b649e8d015729c4a89b570a3243dbc79/href">https://medium.com/media/b649e8d015729c4a89b570a3243dbc79/href</a></iframe><p>We have to delete the unnecessary naming in cltv_df and rename the remaining ones.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Fretail-ii%2Fv%2F1%26cellId%3D6&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Fretail-ii%2Fv%2F1%26cellId%3D6&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F56f42aa4973840a28dd8870c69dc8b4f%2Fpreview%2Fa3f65558befd4a7b98451c968a4d787c&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/a43714057fbfdb9bb5528565faffb261/href">https://medium.com/media/a43714057fbfdb9bb5528565faffb261/href</a></iframe><p>Required variables have been created. Now it’s time to set up the models.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Fretail-ii%2Fv%2F1%26cellId%3D7&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Fretail-ii%2Fv%2F1%26cellId%3D7&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F56f42aa4973840a28dd8870c69dc8b4f%2Fpreview%2Fa3f65558befd4a7b98451c968a4d787c&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/519ae5e4bd107818328c5e224ac83ff2/href">https://medium.com/media/519ae5e4bd107818328c5e224ac83ff2/href</a></iframe><p>Let’s sort the clv we have obtained and define it in the dataframe.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Fretail-ii%2Fv%2F1%26cellId%3D8&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Fretail-ii%2Fv%2F1%26cellId%3D8&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F56f42aa4973840a28dd8870c69dc8b4f%2Fpreview%2Fa3f65558befd4a7b98451c968a4d787c&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/e4503e9cac5b5dcc965899f266a8816a/href">https://medium.com/media/e4503e9cac5b5dcc965899f266a8816a/href</a></iframe><p>We’ve sorted it out, but it’s not entirely clear what clv’s mean. We must solve this problem.<br>We need to scale the CLV score so we can compare it comfortably.<br>The top 10 customers with the highest CLV score were found.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Fretail-ii%2Fv%2F1%26cellId%3D9&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Fretail-ii%2Fv%2F1%26cellId%3D9&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F56f42aa4973840a28dd8870c69dc8b4f%2Fpreview%2Fa3f65558befd4a7b98451c968a4d787c&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/00a22d61caaf7817294a8fe19b31dce3/href">https://medium.com/media/00a22d61caaf7817294a8fe19b31dce3/href</a></iframe><p>Finally, it is segmented according to scaled_clv and statistics are observed.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Fretail-ii%2Fv%2F1%26cellId%3D10&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Fretail-ii%2Fv%2F1%26cellId%3D10&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F56f42aa4973840a28dd8870c69dc8b4f%2Fpreview%2Fa3f65558befd4a7b98451c968a4d787c&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/fa29c6d8b83d858af080bb1b220ad8cb/href">https://medium.com/media/fa29c6d8b83d858af080bb1b220ad8cb/href</a></iframe><p>As a result :<br>Considering the purchasing behavior of all our customers, we built our models and estimated the individual values of our customers for the future. Thus, we learned which of our customers contribute more to our company. From here we can make decisions based on our potential income.</p><p>Thanks :</p><ul><li><a href="https://medium.com/u/3ad8a8b56263">Oğuz Erdoğan</a></li><li><a href="https://medium.com/u/f1d7ab493534">Burak Doğrul</a></li><li><a href="https://medium.com/u/4e2062de9ac1">Tuba</a></li><li><a href="https://medium.com/u/c3a2b9e421cd">Zeynep</a></li><li><a href="https://www.veribilimiokulu.com/">Veri Bilimi Okulu</a></li></ul><p>You can access the project codes <a href="https://github.com/SafakSS/RFM_AND_CLTVPREDICT/blob/main/cltv_prediction.py">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=31b90e93952f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CLTV ile Müşterilerimizin Geleceğini Görelim]]></title>
            <link>https://medium.com/@SafakSS/cltv-ile-m%C3%BC%C5%9Fterilerimizin-gelece%C4%9Fini-g%C3%B6relim-d443a5bb00ed?source=rss-d8374d1a2703------2</link>
            <guid isPermaLink="false">https://medium.com/p/d443a5bb00ed</guid>
            <dc:creator><![CDATA[Şafak Selim Sofioğlu]]></dc:creator>
            <pubDate>Mon, 20 Dec 2021 14:08:28 GMT</pubDate>
            <atom:updated>2021-12-20T14:08:28.866Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qRjq0dJ_1Jp3GPJuSjZXmA.jpeg" /></figure><h3>Müşteri yaşam boyu değeri (CLV) nedir?</h3><p>Müşteri yaşam boyu değeri, müşterilerinizin ilişkiniz boyunca işinize harcayacağı ortalama para miktarıdır.</p><h3>Müşteri yaşam boyu değerini (CLV) neden hesaplamanız gerekir?</h3><p>CLV’yi ölçmenin temel nedenlerinden biri müşteriyi elde tutmaktır. Pazarlama Metrikleri, yeni bir potansiyel müşteriye satış yapma olasılığının %5–%20, mevcut bir müşteriye satış yapma olasılığının ise %60-%70 olduğunu ortaya koymaktadır.</p><p>CLV’nin avantajları:</p><ul><li>Müşteri segmentasyonunu belirlemeye yardımcı olmak</li><li>Müşteri sadakatinin ölçülmesi</li><li>Pazarlama stratejilerinin etkinliğinin belirlenmesi</li><li>Ürün kalitesinin değerlendirilmesine yardımcı olmak</li><li>Genel olarak artan karlılık</li></ul><p>CLV’den kısaca bahsettiğimize göre artık projemize geçebiliriz.</p><h3>İş Problemi</h3><p>Bir e-ticaret sitesi müşteri aksiyonları için müşterilerinin CLTV değerlerine göre ileriye dönük bir projeksiyon yapılmasını istemektedir. Elinizdeki veriseti ile 1 aylık yada 6 aylık zaman periyotları içerisinde en çok gelir getirebilecek müşterileri tespit etmek mümkün müdür?</p><h3>Veri Seti Hikayesi</h3><p>Online Retail II isimli veri seti İngiltere merkezli online bir satış mağazasının 01/12/2009–09/12/2011 tarihleri arasındaki satışlarını içeriyor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*-acwKfgRj_MtlEYSnyO_5Q.png" /></figure><p><strong>Kütüphanelerimizi yükleyelim</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Funtitled3%2Fv%2F1%26cellId%3D0&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Funtitled3%2Fv%2F1%26cellId%3D0&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fc66acbb5b5a549b7ae238887b26c015c%2Fpreview%2F9309745eea3b40afa29152c80d525a49&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/9d1d2f9f8f96986d62e1f8c0e1980acf/href">https://medium.com/media/9d1d2f9f8f96986d62e1f8c0e1980acf/href</a></iframe><p><strong>Veri setimizi yükleyelim</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Funtitled3%2Fv%2F1%26cellId%3D3&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Funtitled3%2Fv%2F1%26cellId%3D3&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fc66acbb5b5a549b7ae238887b26c015c%2Fpreview%2F9309745eea3b40afa29152c80d525a49&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/56726ae11a70d27034fe99eb8079cea9/href">https://medium.com/media/56726ae11a70d27034fe99eb8079cea9/href</a></iframe><p>outlier_thresholds fonksiyonumuz veri setimizdeki çok büyük değerler için bir üst limit tanımlar ve çok küçük değerler için bir alt limit tanımlar.</p><p>replace_with_thresholds fonksiyonumuz ise üst limitten büyük değerleri üst limite baskılar ve alt limitten küçük değerleri de alt limite baskılar.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Funtitled3%2Fv%2F1%26cellId%3D2&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Funtitled3%2Fv%2F1%26cellId%3D2&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fc66acbb5b5a549b7ae238887b26c015c%2Fpreview%2F9309745eea3b40afa29152c80d525a49&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/a3fe054acc886f732a2c769cc1f3e294/href">https://medium.com/media/a3fe054acc886f732a2c769cc1f3e294/href</a></iframe><p>Şimdi ise Veri Ön İşleme adımlarımıza geçelim.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Funtitled3%2Fv%2F1%26cellId%3D4&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Funtitled3%2Fv%2F1%26cellId%3D4&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fc66acbb5b5a549b7ae238887b26c015c%2Fpreview%2F9309745eea3b40afa29152c80d525a49&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/c8b6c79fcc3d0fb87663280a09ab342b/href">https://medium.com/media/c8b6c79fcc3d0fb87663280a09ab342b/href</a></iframe><p>Veri setinde Customer ID’lerimiz birden fazla olduğu için bunları .groupby() ile tekilleştirmeliyiz.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Funtitled3%2Fv%2F1%26cellId%3D5&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Funtitled3%2Fv%2F1%26cellId%3D5&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fc66acbb5b5a549b7ae238887b26c015c%2Fpreview%2F9309745eea3b40afa29152c80d525a49&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/29a764e5b5c042b5dae0afa83f44991e/href">https://medium.com/media/29a764e5b5c042b5dae0afa83f44991e/href</a></iframe><p>cltv_df içindeki gereksiz isimlendirmeleri silmeliyiz ve kalanları tekrar isimlendirmeliyiz.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Funtitled3%2Fv%2F1%26cellId%3D6&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Funtitled3%2Fv%2F1%26cellId%3D6&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fc66acbb5b5a549b7ae238887b26c015c%2Fpreview%2F9309745eea3b40afa29152c80d525a49&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/001009701ebc19b23db056573ddba328/href">https://medium.com/media/001009701ebc19b23db056573ddba328/href</a></iframe><p>Gerekli değişkenlerimizi oluşturduk. Şimdi modellerimizi kurma zamanı.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Funtitled3%2Fv%2F1%26cellId%3D7&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Funtitled3%2Fv%2F1%26cellId%3D7&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fc66acbb5b5a549b7ae238887b26c015c%2Fpreview%2F9309745eea3b40afa29152c80d525a49&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/c99292a0fc23c2446b654c15f953e1dc/href">https://medium.com/media/c99292a0fc23c2446b654c15f953e1dc/href</a></iframe><p>Bulduğumuz clv’yi sıralayalım ve dataframe’in içine atalım.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Funtitled3%2Fv%2F1%26cellId%3D8&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Funtitled3%2Fv%2F1%26cellId%3D8&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fc66acbb5b5a549b7ae238887b26c015c%2Fpreview%2F9309745eea3b40afa29152c80d525a49&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/074a95fece198d5de0de90d0e8d8700e/href">https://medium.com/media/074a95fece198d5de0de90d0e8d8700e/href</a></iframe><p>Sıraladık fakat clv’lerin ne anlam ettiği ifade edilmiyor. Bu sorunu çözmeliyiz.<br>CLV skorumuzu ölçeklendirmeliyiz ki rahatça kıyas edebilelim.<br>CLV skorumuzun en yüksek olduğu ilk 10 müşterimizi böylece tespit ettik.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Funtitled3%2Fv%2F1%26cellId%3D9&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Funtitled3%2Fv%2F1%26cellId%3D9&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fc66acbb5b5a549b7ae238887b26c015c%2Fpreview%2F9309745eea3b40afa29152c80d525a49&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/01c90ce9e7849b7708ed37b3bc8e9c68/href">https://medium.com/media/01c90ce9e7849b7708ed37b3bc8e9c68/href</a></iframe><p>Son olarak scaled_clv’ye göre segmentleştirilir ve istatistikler gözlemlenir.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fsafakss%2Funtitled3%2Fv%2F1%26cellId%3D10&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fsafakss%2Funtitled3%2Fv%2F1%26cellId%3D10&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Fc66acbb5b5a549b7ae238887b26c015c%2Fpreview%2F9309745eea3b40afa29152c80d525a49&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/3d85390bc1e4fe129efb710fd9a9a00f/href">https://medium.com/media/3d85390bc1e4fe129efb710fd9a9a00f/href</a></iframe><p>Sonuç Olarak :</p><p>Tüm müşterilerimizin satın alma davranışlarını göz önünde bulundurarak modellerimizi kurup geleceğe yönelik müşterilerimizin bireysel anlamdaki değerlerini tahminledik. Böylece şirketimiz için hangi müşterilerimizin daha fazla katkı sağladığını öğrenmiş olduk. Buradan potansiyel gelirimize göre kararlar alabiliriz.</p><p>Teşekkürler :</p><ul><li><a href="https://medium.com/u/3ad8a8b56263">Oğuz Erdoğan</a></li><li><a href="https://medium.com/u/f1d7ab493534">Burak Doğrul</a></li><li><a href="https://www.veribilimiokulu.com/">Veri Bilimi Okulu</a></li></ul><p>Proje kodlarına <a href="https://github.com/SafakSS/RFM_AND_CLTVPREDICT/blob/main/cltv_prediction.py">buradan</a> erişebilirsiniz.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d443a5bb00ed" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kural Tabanlı Sınıflandırma ile Potansiyel Müşteri Getirisi Hesaplama]]></title>
            <link>https://medium.com/@SafakSS/kural-tabanl%C4%B1-s%C4%B1n%C4%B1fland%C4%B1rma-ile-potansiyel-m%C3%BC%C5%9Fteri-getirisi-hesaplama-7b4bf39c94c0?source=rss-d8374d1a2703------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b4bf39c94c0</guid>
            <category><![CDATA[potansiyel-müşteri]]></category>
            <category><![CDATA[veri-bilimi]]></category>
            <category><![CDATA[makine-öğrenmesi]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Şafak Selim Sofioğlu]]></dc:creator>
            <pubDate>Sun, 12 Dec 2021 17:03:30 GMT</pubDate>
            <atom:updated>2021-12-13T08:12:51.327Z</atom:updated>
            <content:encoded><![CDATA[<p>Kural tabanlı sınıflandırma, verilerimizi segmentlere ayırıp bu verilerden daha verimli sonuçlar çıkarmak için kullanılır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e0lNFqjriSNei9FzHaZVWw.jpeg" /></figure><p><strong>Örneğimize geçelim : İş Problemi<br></strong>Şirketimizde müşterilerimizin verilerini kullanarak seviye tabanlı(level based) yeni müşteri tanımları(persona) oluşturmak ve bu yeni müşteri tanımlarına göre segmentler oluşturup bu segmentlere göre yeni gelebilecek müşterilerin şirketimize ortalama ne kadar gelir getirebileceğini tahmin etmek istiyoruz. Örnek olarak Türkiye’den IOS kullanıcısı olan 24 yaşındaki bir erkek şirketimize ne kadar gelir getirebilir?</p><p><strong>Veri Seti Hikayemiz : V</strong>eri setimiz uluslararası bir oyun şirketinin sattığı ürünlerin fiyatlarını ve bu ürünleri satın alan kullanıcıların bazı demografik bilgilerini barındırmaktadır.</p><p><strong>Veri Setimizdeki Değişkenler : </strong><br>- PRICE : Müşterinin şirkete kazandırdığı gelir.<br>- SOURCE : Müşterinin oyuna bağlandığı cihazın türü.<br>- SEX : Müşterinin cinsiyeti.<br>- COUNTRY : Müşterinin ülkesi.<br>- AGE : Müşterinin yaşı.</p><p><strong>Veri Setimize kısaca bir göz atalım :</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fb1a89c1bc52c5a2e7a4ba1d47e65c25/href">https://medium.com/media/fb1a89c1bc52c5a2e7a4ba1d47e65c25/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/306/1*LphNO_EZdP_yDVjWSQUmRQ.png" /><figcaption>Veri setimizin ilk 5 satırını gözlemledik.</figcaption></figure><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c1c5055888b20882143f640476d527bf/href">https://medium.com/media/c1c5055888b20882143f640476d527bf/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/404/1*kVFarWixJgMuofaK3LNlcw.png" /></figure><p>Veri setimizde, hangi değişkende kaç adet NULL değer olmadığı ve bu değişkenlerin veri tiplerini öğrendik df.info() ile.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/58fdedfc7352667920c5c01ea15d9d5a/href">https://medium.com/media/58fdedfc7352667920c5c01ea15d9d5a/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/1*aWSVT6-kYzeSi9vIDbsYsw.png" /></figure><p>Veri setimizdeki sayısal değişkenlerimize ait bilgi edindik. Kaç adet olduğu, ortalaması, standart sapması, minimum değeri maksimum değerini öğrenmiş olduk.</p><p>Veri setimiz hakkında yeterli bilgi edindik. Şimdi sırada problemi çözmek var.<br>Size asıl sorunumuzu göstermek istiyorum :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/273/1*P-mJ0g3mm0E_WpWFR3qx2g.png" /></figure><p>Veri setinin ilk iki satırına baktığımızda tamamen aynı olduğu görüyoruz. <br>Burada amacımız birbirine benzer olan müşterileri aynı segment(grup) altına toplamak olmalı.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/83920030650a873d8549b2e384283893/href">https://medium.com/media/83920030650a873d8549b2e384283893/href</a></iframe><p>Yani SOURCE, SEX, COUNTRY, AGE değişkenlerini grupladık ve PRICE değişkeninin grupladığımız değişkenlere göre ortalamasını aldık. Sonrasında ise PRICE değişkenine göre büyükten küçüğe sıraladık ve agg_df’ e atadık.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/296/1*OpcPX9GkvVnT1WMeKQCzog.png" /><figcaption>agg_df’imiz şu an böyle.</figcaption></figure><p>Ama bir sorunumuz var. COUNTRY, SOURCE, SEX, AGE değişkenlerimiz şu an index durumunda, bunları kolon durumuna getirmeliyiz. Bunun için:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e838d233b67ac3d00afd5f9e1d7afbc5/href">https://medium.com/media/e838d233b67ac3d00afd5f9e1d7afbc5/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/328/1*pQVZtP3RD37CftckNz8gWw.png" /></figure><p>reset_index() işleminden sonra agg_df’imiz üstteki duruma geldi. <br>AGE değişkenimiz sayısal bir değişkendi fakat biz bunu kategorik hale getirmeliyiz. Çünkü AGE değişkeni belli yaşlar aralığındadır örneğin [0, 80] gibi. Biz AGE değişkenlerindeki yaşları genç, yetişkin, orta yaş, yaşlı gibi yaş aralığına getirmeliyiz.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e079f0f0cb8609d144c7745b706e51ba/href">https://medium.com/media/e079f0f0cb8609d144c7745b706e51ba/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/403/1*ktjvhtw3rLn81nP63eUYIQ.png" /></figure><p>Son olarak agg_df’ imiz bu hale geldi. Yaş aralıklarını farklı bir şekilde de belirtebiliriz bu bizim tercihimize bağlı. Şimdi personalarımızı oluşturalım.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4ababfa26a1f031a91ac301fb048981a/href">https://medium.com/media/4ababfa26a1f031a91ac301fb048981a/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/294/1*PXnhHtnM8B79TCPTCA64Fg.png" /></figure><p>Yapılan işlemlerden sonra agg_df’imiz üstteki gibi olmuştur. Fakat şu an customers_level_based değişkenimizde birden fazla aynı değer var. Sorunumuzu çözmek için customers_level_based değişkenimizi groupby yapmamız ve PRICE değişkenimizin gruplara göre ortalamasını almalıyız.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ab56c26423dbe002f09492c41ce273d4/href">https://medium.com/media/ab56c26423dbe002f09492c41ce273d4/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/295/1*iJjzZt5MwTTbWT-DWNvitA.png" /></figure><p>Ve gördüğümüz gibi 348 satır olan agg_df’imiz artık 109 satıra indi. Çünkü customers_level_based içindeki aynı değerlerin ortalamasını alıp tek hale getirdik. Şimdi verilerimizi segmentlere ayıralım :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ef2072b63fb3d57322d9088706b3e5f6/href">https://medium.com/media/ef2072b63fb3d57322d9088706b3e5f6/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/378/1*M8piubWOgv_0k3wxRMKcNQ.png" /></figure><p>PRICE değişkenine göre segmentlere ayırdık. Segmentlerimizi inceleyelim.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/be09b209c1deedb360e3b5d069c944f7/href">https://medium.com/media/be09b209c1deedb360e3b5d069c944f7/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/261/1*ViljZfOZqJgsrLm1hIinyw.png" /></figure><p>Buraya kadar personalarımızı oluşturduk ve segmentlere ayırdık, şimdi geldik sonuç alma kısmına. Şimdi tahminleme yapacağız. Buna geleceği görmekte denebilir.</p><p>“ 35 yaşında IOS kullanan bir Fransız kadın hangi segmente aittir ve ortalama ne kadar gelir kazandırması beklenir? ” sorusunun yanıtı nedir?</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5a1ba78b0f0b8328263cb5bc9f1630c0/href">https://medium.com/media/5a1ba78b0f0b8328263cb5bc9f1630c0/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/326/1*WB1ygb5UyXBivi7TPI-_fA.png" /></figure><p>Cevap : C segmentine aittir ve tahmini kazandıracağı gelir 32.82&#39;dir.</p><ul><li>Eğer hayal edebiliyorsanız, yapabilirsiniz.</li></ul><p>Teşekkürler :</p><ul><li><a href="https://medium.com/u/3ad8a8b56263">Oğuz Erdoğan</a></li><li><a href="https://www.veribilimiokulu.com/">Veri Bilimi Okulu</a></li></ul><p>Proje kodlarına <a href="https://github.com/SafakSS/Rule-Based-Classification-Project">buradan</a> erişebilirsiniz.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b4bf39c94c0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>