<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: M.ngugi</title>
    <description>The latest articles on DEV Community by M.ngugi (@mngugi).</description>
    <link>https://dev.to/mngugi</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1171756%2F9ce1415e-1674-4619-9968-f478e2b47f0c.png</url>
      <title>DEV Community: M.ngugi</title>
      <link>https://dev.to/mngugi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mngugi"/>
    <language>en</language>
    <item>
      <title>Correlation of Claim Amount and Flag for Fraud</title>
      <dc:creator>M.ngugi</dc:creator>
      <pubDate>Sat, 16 Dec 2023 06:22:54 +0000</pubDate>
      <link>https://dev.to/mngugi/correlation-of-claim-amount-and-flag-for-fraud-30jc</link>
      <guid>https://dev.to/mngugi/correlation-of-claim-amount-and-flag-for-fraud-30jc</guid>
      <description>&lt;p&gt;&lt;strong&gt;Question :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;What does the correlation of claim amount and flag for fraud at 0.86 and 1.0 respectively mean ? (See Figure 1.0 below)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---LC2oQOQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y9t4s1oa4sfl06wvnv8t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---LC2oQOQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y9t4s1oa4sfl06wvnv8t.png" alt="Image description" width="800" height="713"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The linear relationship of positive 1 shows a perfect relationship that if the claim amount increases the likelihood&lt;br&gt;
of the fraud increases. &lt;/p&gt;

&lt;p&gt;However more analysis need to be done using different Data science methods to find out the causation for fraud. &lt;/p&gt;

&lt;p&gt;In conclusion the larger the amount of claim the more likely to be assosciated with fraud.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>RFM Analysis System Project</title>
      <dc:creator>M.ngugi</dc:creator>
      <pubDate>Mon, 09 Oct 2023 10:32:52 +0000</pubDate>
      <link>https://dev.to/mngugi/rfm-analysis-system-project-4doc</link>
      <guid>https://dev.to/mngugi/rfm-analysis-system-project-4doc</guid>
      <description>&lt;p&gt;&lt;strong&gt;Problem Statement&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;RFM analysis is a powerful technique used by companies to better understand customer behavior and optimize engagement strategies. It revolves around three key dimensions:recency, frequency, and monetary value. These dimensions capture essential aspects of customer transactions, providing valuable information for segmentation and personalized marketing campaigns.&lt;/p&gt;

&lt;p&gt;The given dataset is provided by an e-commerce platform containing customer transaction data including customer ID, purchase date, transaction amount, product information, ID &lt;br&gt;
command and location. The platform aims to leverage RFM (recency, frequency, monetary value) analysis to segment customers and optimize customer engagement strategies.&lt;/p&gt;

&lt;p&gt;Your task is to perform RFM analysis and develop customer segments based on their RFM scores.The analysis should provide insights into customer behaviour and identification of high-value customers,at-risk customers, and potential opportunities for personalized marketing &lt;br&gt;
campaigns.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Understanding  RFM Analysis System.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;According to G.Wright(n.d). &lt;/p&gt;

&lt;p&gt;“RFM anlysis is a marketing technique used to quantitatively rank and group customers based on the recency, frequenc and monetary total of their recent transactions to identify the best customers and perform targeted marketing campaigns.”&lt;/p&gt;

&lt;p&gt;RFM The system assigns each customer numerical scores based on these factors to provide an objective analysis. RFM analysis is based on the marketing adage that "80% of your business comes from 20% of your customers."_&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;RFM Analysis&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;“RFM analysis scores customers on each of the three main factors. Generally, a score from 1 to 5 is given, with 5 being the highest.”&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Definitions:&lt;/strong&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;• **Recency** is the most recent time a customer purchased an item and it is measured in days, weeks, hours and years.

• Frequency is how often a customer purchase an item.

• Monetary this is how much a customer spends in a given period of time. 

• Segmentation of customers in RFM analysis.  This is identifying clusters of customers with similar attributes.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Customer Types&lt;/strong&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;1. Whales : These are customers that tick all the three attributes with a high score of (5,5,5).
2. New Customers: Customers with a high recency but a low frequency and obviously low monetary value. (5. 1 , x)
3. Lapsed Customers: Customers with low recency but high value (1,X,5) were once valuable customers but have since stopped.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;References and Resources:&lt;/strong&gt;&lt;br&gt;
G.Wright(n.d). RFM analysis (recency, frequency, monetary). TechTarget, Data Management. &lt;a href="https://www.techtarget.com/searchdatamanagement/definition/RFM-analysis"&gt;https://www.techtarget.com/searchdatamanagement/definition/RFM-analysis&lt;/a&gt;&lt;br&gt;
Reference link:&lt;br&gt;
&lt;a href="https://statso.io/rfm-analysis-case-study/"&gt;https://statso.io/rfm-analysis-case-study/&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Week 1 Project : Churn Prediction for Sprint.</title>
      <dc:creator>M.ngugi</dc:creator>
      <pubDate>Thu, 28 Sep 2023 18:21:22 +0000</pubDate>
      <link>https://dev.to/mngugi/week-1-project-churn-prediction-for-sprint-46ja</link>
      <guid>https://dev.to/mngugi/week-1-project-churn-prediction-for-sprint-46ja</guid>
      <description>&lt;p&gt;&lt;strong&gt;2023-09-28&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Churn Prediction for Sprint Telecom&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Week1 Write up :&lt;/strong&gt; Lux Academy Data Science Bootcamp&lt;br&gt;
&lt;strong&gt;Project Name :&lt;/strong&gt; Churn Prediction for Sprint Telecom&lt;br&gt;
&lt;strong&gt;Author: Peter Mwangi Ngugi&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Problem Defination:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Problem Description:&lt;/strong&gt;&lt;br&gt;
Sprint Telecom one of the biggest Telecom companies in the USA are keen on figuring out how many customers might decide to leave them in the coming months. &lt;/p&gt;

&lt;p&gt;Luckily, they’ve got a bunch of past data about when customers have left before, as well as info about who these customers are, what they’ve bought, and other things like that. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Objectives:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;So, if you were in charge of predicting customer churn how would you go about using machine learning to make a good guess about which customers might leave? Like, what steps would you take to create a machine learning model that can predict if someone’s going to leave or not?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Solution&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Review Existing Customer Data:&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;The first step is to ’assemble’ all the existing data that pertains the customers who have left Churn Sprint and the currently existing Customers. Then categorize the data into two groups , Customers who have left and the Current Customers.Start by analyzing Customer usage patterns , observe Customer communication for example Customer complaints and feedback support given back to&lt;br&gt;
the Customer and review Customer payment plans. In a nutshell these three attributes are the major reasons why a Customer would leave Sprint Telecom.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Start Processing the Data:&lt;/strong&gt; Once step 1 above is thoroughly done the next step is to process data by cleaning the data ambiguity including data inconsistencies in order to have accurate data to work with. This processing involves data encoding that is ensuring all the data required is in numerical format and that a metric function can be used to process .&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Identify important elements that impact on Customers:&lt;/strong&gt; At this step it is important to identify which features impacts on the Customer to leave Spirit Telecom services. For example identifying relationships, correlations and models that are of impact to customers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Identify and Select a Model:&lt;/strong&gt; &lt;br&gt;
At this stage it important to identify which algorithm is suitable for prediction of the datasets obtained from step 1 and step 2 above. Some of the known Machine Learning algorithms are logistic regression, decision trees, random forests, gradient boosting , and neural networks.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Model Training and Evaluate the Model:&lt;/strong&gt; &lt;br&gt;
Train the model according to the dataset obtained using the necessary algorithm. Evaluate the model performance using data tests cross validating on the accuracy of the results&lt;br&gt;
produced.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. Interpretation, Visualization and Representation of Results:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This step ensures that the results obtained are readable, repeatable and such can be interpretative, and visually represented to the consumer in this case Sprint Telecom.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;7. Project Execution and Deployment:&lt;/strong&gt; &lt;br&gt;
The algorithm is ready for deployment and needs to be implemented on real time customer data for continuous data retraining and continuous improvement as well tracking on the&lt;br&gt;
results.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;8. Maintenance and Feedback:&lt;/strong&gt; Continuous re-evaluation of the process against feedback from the customers is import for customer retention and to identify solutions as to why they customers want to leave.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Question 2 .&lt;/strong&gt;&lt;br&gt;
Let’s say you’re a Product Data Scientist at Instagram. How would you measure the success of the Instagram TV product?&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
