<?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 Mario Camacho on Medium]]></title>
        <description><![CDATA[Stories by Mario Camacho on Medium]]></description>
        <link>https://medium.com/@mariocamacho93?source=rss-e4fa67778963------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Pg7bjm8o-Nq9sonXbz3Dhg@2x.jpeg</url>
            <title>Stories by Mario Camacho on Medium</title>
            <link>https://medium.com/@mariocamacho93?source=rss-e4fa67778963------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 03:57:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mariocamacho93/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[Logistic Regression model to classify binary response with Python]]></title>
            <link>https://medium.datadriveninvestor.com/logistic-regression-model-to-classify-binary-response-with-python-1412a28fa62b?source=rss-e4fa67778963------2</link>
            <guid isPermaLink="false">https://medium.com/p/1412a28fa62b</guid>
            <category><![CDATA[regression]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Mario Camacho]]></dc:creator>
            <pubDate>Thu, 09 May 2019 18:21:51 GMT</pubDate>
            <atom:updated>2019-05-10T20:38:40.435Z</atom:updated>
            <content:encoded><![CDATA[<figure><a href="http://www.track.datadriveninvestor.com/1B9E"><img alt="" src="https://cdn-images-1.medium.com/max/700/0*GjkatfmCEwziMeo2" /></a></figure><p>When the data response falls into two categories (Yes or No), the Logistic Regression helps to resolve this classifier problem and predict in which category the data is classified.</p><p>The logistic regression model is intended for binary classification problems, predicting the probability of an instance belonging to the default class, which can be snapped into a 0 or 1 classification. It is a linear algorithm and assume’s a linear relationship between the input variables and the output variables. Input variables that better expose this linear relationship can result in a more accurate model. One of the major concern’s when applying this kind of predictive models is overfitting, which mostly happens when the data set is very small.</p><p><a href="https://www.datadriveninvestor.com/2019/03/03/editors-pick-5-machine-learning-books/">DDI Editor&#39;s Pick: 5 Machine Learning Books That Turn You from Novice to Expert | Data Driven Investor</a></p><p>Mathematically it is represented with this formula:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/295/0*A9dFwxTv5rEDEMVl.gif" /></figure><p>y is the predicted output, a is the interception, b is the coefficient for the input variable(x).</p><p>After this brief introduction, I’m going to show you an example with credit card data to identify fraud. The feature in the dataset related to the fraud is ‘Class’, which is going to be the response variable in the logistic regression and it takes value 1 in case of fraud and 0 otherwise.</p><p>first, we import the libraries we are going to use in Jupyter Notebook,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6i27NUzSyixNjLyX0q4Wrw.png" /></figure><p>then, we are going to explore the data,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7HqgPGtfRKGAHhUTA8KR0Q.png" /><figcaption>Descriptive Statistics</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d2inqTynh3YbJUwpFp4pmA.png" /><figcaption>Number of Fraud Transactions</figcaption></figure><p>Drop variables that aren’t needed and scale the input variable for the prediction</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gPBRZDTRCINj7GbwvbyNdw.png" /><figcaption>Response and Predictors</figcaption></figure><p>Normalized de Variables with Tensorflow,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AMI-QQNSLoYw02ytbanAYA.png" /><figcaption>Tensorflow Normalized outputs</figcaption></figure><p>Then we determined how we gonna trained our model,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wjm9qB6jnKyE042j1qyEdA.png" /><figcaption>x variables scale, 75% of data trained</figcaption></figure><p>With Tensorflow we created our model and then test the training data</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fyl4PE_5SJxEaJVANby7eQ.png" /><figcaption>Build a Binary Classification Model</figcaption></figure><p>know we print the result of the model and how good it was,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tbXWXjjhmz1pSQgNb96b4A.png" /><figcaption>Model Result</figcaption></figure><p>We find a good model with an accuracy of 0.99 and AUC of 0.88 which it’s a reasonable 88% of true predictions.</p><p>Finally, we review the test data to see the results, and we have similar results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MYspSrLGfjUD-_ATz39bmQ.png" /><figcaption>Test Data Model Result</figcaption></figure><p>With the logistic regression, we can work with non-normal data, and it helps understand independent variables influences, so in the case of fraud cases, detect what are the most influential events that occur in fraud transactions.</p><p>G. James, D. Witten, T. Hastie, and R.Tibshirami. “An Introduction to Statistical Learning with Applications in R” 2017</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fb2a0d6%3Fas_embed%3Dtrue&amp;dntp=1&amp;display_name=Upscribe&amp;url=https%3A%2F%2Fupscri.be%2Fb2a0d6%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href">https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1412a28fa62b" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/logistic-regression-model-to-classify-binary-response-with-python-1412a28fa62b">Logistic Regression model to classify binary response with Python</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Classification using the Tree-based method in R]]></title>
            <link>https://medium.datadriveninvestor.com/classification-using-the-tree-based-method-in-r-17e2e873c4b5?source=rss-e4fa67778963------2</link>
            <guid isPermaLink="false">https://medium.com/p/17e2e873c4b5</guid>
            <category><![CDATA[r]]></category>
            <category><![CDATA[facebook]]></category>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[classification]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Mario Camacho]]></dc:creator>
            <pubDate>Thu, 13 Dec 2018 21:26:14 GMT</pubDate>
            <atom:updated>2019-10-07T16:50:18.006Z</atom:updated>
            <content:encoded><![CDATA[<figure><a href="http://www.track.datadriveninvestor.com/1B9E"><img alt="" src="https://cdn-images-1.medium.com/max/700/0*Xnbgu6w6OgpvkpNj" /></a></figure><p>One of the biggest problems in different industries is the classification of customers to create more segmented marketing campaigns.</p><p>The importance of a segmented marketing campaign is the ability to get a better conversions rate, which can become a real challenge.</p><p>Following the previous idea, through this article, we are going to make an introduction of how to use the decision tree method for the classification of customers, users, and publications in R.</p><p>First of all, it is important to understand the concept and purpose of using a “Decision Tree Method”. The tree-based method segments an observation in a number of regions, to make this prediction it uses the mean or the mode of the training observations in the respective region. For example, a tree-based method could help us to segment a customer by their qualitative variables, like income, age, gender, preferences, helps us see different relations that we can’t see by observing the data.</p><p>For example, with a <a href="https://archive.ics.uci.edu/ml/machine-learning-databases/00368/">Facebook dataset</a> in which there are 500 publications on Facebook of a cosmetics company with the following data of likes, shares, comments and the most important, a variable name “category”, which we don’t know what it’s meaning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mLB9Q3-c5_cvbLvmRWEYQA.png" /><figcaption>figure 1 Facebook dataset in R</figcaption></figure><p>First of all, we need to understand how to identify the variables that determine each category.</p><p>As a first step, we Install and use our libraries to work with</p><pre>#facebook Data ----</pre><pre>install.packages(&quot;digest&quot;)<br>install.packages(&quot;parsnip&quot;)<br>install.packages(&quot;rsample&quot;)<br>install.packages(&quot;yardstick&quot;)<br>install.packages(&quot;rpart&quot;)<br>install.packages(&quot;xgboost&quot;)<br>install.packages(&quot;rpart.plot&quot;)<br>install.packages(&quot;tidyverse&quot;)<br>install.packages(&quot;Ckmeans.1d.dp&quot;)<br># LIBRARIES ----</pre><pre>library(parsnip)    # machine learning<br>library(rsample)  # testing/training splits<br>library(recipes)     # preprocessing<br>library(yardstick)   #  ROC/AUC<br>library(xgboost)    # xgboost<br>library(Ckmeans.1d.dp)  # feature importance plot<br>library(rpart)      # decision tree<br>library(rpart.plot) # decision tree plot<br>library(ggplot2) # Graphic<br>library(tidyverse)  </pre><p>Next, clean the data by deleting de NA fields using the following code.</p><pre>fb_data &lt;- na.omit(fb_data)</pre><p>It’s important to preprocess data where we will have our training and test data to see how it goes our model.</p><pre>set.seed(1)<br>split_rsample &lt;- fb_data %&gt;%<br> rsample::initial_split(prop = 0.80)</pre><pre>train_tbl &lt;- rsample::training(split_rsample) <br>test_tbl &lt;- rsample::testing(split_rsample)</pre><pre>preprocessing_pipeline &lt;- recipe(Category ~ ., data = train_tbl) <br>#to implement the decision Tree</pre><pre>#design a matrix with the preprocess Data<br>train_processed_tbl &lt;- bake(preprocessing_pipeline, train_tbl)<br>test_processed_tbl  &lt;- bake(preprocessing_pipeline, test_tbl)</pre><p>Once we prepare data, we define our machine learning model, that in this case is boosting our classification model.</p><pre>set.seed(123)<br>model_xgb &lt;- boost_tree(<br>           mode = &quot;classification&quot;, <br>           mtry = 80, <br>           trees = 1000, <br>           min_n = 3, <br>           tree_depth = 8, <br>           learn_rate = 0.01, <br>           loss_reduction = 0.01) %&gt;%<br>  # runs xgboost under the hood<br>    set_engine(&quot;xgboost&quot;) %&gt;%<br>  # model_spec is an object.  fit similar to bake, in the sense<br>  # That it is applying the fit to the training data<br>    fit.model_spec(as.factor(Category) ~ ., data = train_processed_tbl)</pre><p>After having our model created, we create our prediction variable to see if our model is good for classified our facebook posts.</p><pre>predictions_test_tbl &lt;- model_xgb %&gt;%<br>    predict.model_fit(new_data = test_processed_tbl, type = &quot;prob&quot;) %&gt;%<br>    bind_cols(test_tbl) %&gt;%<br>   mutate(Category = as.factor(Category))</pre><p>Then, we create our decision tree with our model and plot it</p><pre>fit &lt;- rpart(as.factor(Category) ~ ., method = &quot;class&quot;, data = train_processed_tbl)</pre><pre>###  prune tree<br>pfit&lt;-prune(fit, cp=0.015)</pre><pre>rpart.plot(pfit, extra=104, <br>           main=&quot;Category Tree - Facebook&quot;)</pre><p>We got this result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aPaTWzI8Q3LO7VNuGTs_kA.png" /><figcaption>Decision Tree</figcaption></figure><p>Finally we test our model with ROC,</p><pre>predictions_test_tbl %&gt;% <br>    roc_auc(Category, .pred_1, .pred_2, .pred_3)</pre><pre>predictions_test_tbl %&gt;%<br>    roc_curve(Category, .pred_1,  .pred_2, .pred_3) %&gt;%<br>    ggplot(aes(x = 1-specificity, y = sensitivity)) +<br>    geom_path() +<br>    geom_point() +<br>    labs(title = &quot;ROC Curve&quot;)</pre><p>And we got the next result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hzytqVEekLegB4SCNaqjWQ.png" /><figcaption>ROC Curve</figcaption></figure><p>We got a 0.828 which gives a really good result to predict our results, reducing false positives and false negatives.</p><p>In conclusion, this is one method to make the classification of users, customers, publications, it’s really helpful to segment our marketing campaign, like in our example, we can classify our publications and see which ones are getting more engagement with the Facebook user.</p><p>Later on, I will be writing about other classification methods, let me know if you like to know about a specific method and any other conclusion you could get in the comment section.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fb2a0d6%3Fas_embed%3Dtrue&amp;dntp=1&amp;display_name=Upscribe&amp;url=https%3A%2F%2Fupscri.be%2Fb2a0d6%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href">https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=17e2e873c4b5" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/classification-using-the-tree-based-method-in-r-17e2e873c4b5">Classification using the Tree-based method in R</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to make a Churn Analysis using Data Science]]></title>
            <link>https://medium.datadriveninvestor.com/how-to-make-a-churn-analysis-using-data-science-bddda7c87e05?source=rss-e4fa67778963------2</link>
            <guid isPermaLink="false">https://medium.com/p/bddda7c87e05</guid>
            <category><![CDATA[digital-marketing]]></category>
            <category><![CDATA[google-analytics]]></category>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[churn-rate]]></category>
            <dc:creator><![CDATA[Mario Camacho]]></dc:creator>
            <pubDate>Tue, 30 Oct 2018 16:48:21 GMT</pubDate>
            <atom:updated>2019-05-10T14:51:33.045Z</atom:updated>
            <content:encoded><![CDATA[<p>As we know, data science can be used in a broad range of fields and industries, and as exciting it can be, it is as well pretty challenging.</p><p>As a matter of fact, I’d like to extend the phases and methodologies exposed in the article “<a href="https://medium.com/datadriveninvestor/applications-of-data-science-in-marketing-3f132a47c863">Applications of Data Science in Marketing</a>” to a very narrow and common case of study.</p><p>For the case of study, I´m going to talk about the Churn Calculation and its implications in the technology, media, and telecom(TMT) industry.</p><p>For marketing analysis, it’s important to understand the concept of churn analysis. Churn analysis born from the necessity of applying creative ideas and marketing tactics focused on user satisfaction to produce better campaigns and improve customer retention.</p><p>In TMT companies, churn is a critical KPI which will require rigorous data collection to avoid biased analyses and decision making.</p><p>As follows, according to the data nature of TMT companies (such as CRM, Call center, web analytics, call associated data, payment, and financial data) this information should be set in one centralized data hub, which will import several characteristics from fixed data sources and mix it in only one data set.</p><p>Following the previous ideas, I´m going to explain the steps to do a churn analysis using Python.</p><p>First of all, we have to identify the data source with the client, user or customer id. Let’s set an example using Google Analytics as our data source. Figure 1 shows the data of the users categorized by month from a TMT company, the table shows us the number of sessions that the user enters in the respective month.</p><p>The first step for the churn analysis is to identify data source with the client, user or customer id. In this example, I´m going to use Google Analytics as our data source, we get a spreadsheet with the data of the users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/278/1*WsdAsCVlDnr8CZ9kSLbDgA.png" /><figcaption>Figure 1 Google Analytics Users</figcaption></figure><p>Then we extract an incidence matrix that gives us the relation between the user and its sessions per month. For this incidence matrix, we are going to use python script for GA which got data from this <a href="http://www.ryanpraski.com/python-google-analytics-api-unsampled-data-multiple-profiles/">API</a>, for the ones who doesn´t know an API is an application program interface, used as<br>an interface by software components to communicate with each other. in this case is to communicate Python with Google Analytics.</p><p>The code must be modified in order to get the proper dimensions and metrics.</p><p>With this code, we get the incidence matrix in Figure 3.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/332/1*-41FWZt3i6VBazUP-IF1JA.png" /><figcaption>Figure 2. change in the API, metrics=’ga:sessions’,<br> dimensions=’ga:USERID,ga:month’,<br> sort=’-ga:sessions’,</figcaption></figure><p>With this code, we get the incidence matrix needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*2rvFr8CeVj1KxNTfPGk-rQ.png" /><figcaption>figure 3. Incidence matrix</figcaption></figure><p>Once we calculate our incidence matrix we need to generate a centered matrix for churn calculation using python. Our information must be centered around user’s first month of experience, no matter in which month he has his first session.</p><p>To generate the centered matrix we are going to use the next python script</p><pre>#!/usr/bin/python<br># -*- coding: utf-8 -*-<br># Script for Centered Matrix in Python<br><br>import csv<br>import numpy as np<br>import pandas as pd<br>import more_itertools as mit<br><br><br>def left(aString, howMany):<br>    if howMany &lt; 1:<br>        return <strong>&#39;&#39;</strong><br>    else:<br>        return aString[:howMany]<br><br><br>def right(aString, howMany):<br>    if howMany &lt; 1:<br>        return <strong>&#39;&#39;</strong><br>    else:<br>        return aString[-howMany:]<br><br><br>def mid(aString, startChar, howMany):<br>    if howMany &lt; 1:<br>        return <strong>&#39;&#39;</strong><br>    else:<br>        return aString[startChar:startChar + howMany]<br><br><br># reader = csv.reader(open(&quot;python.csv&quot;, &quot;rb&quot;), delimiter=&quot;,&quot;)<br># x = list(reader)<br># print(x)<br><br>df = pd.read_csv(<strong>&#39;CHURN_MIDTV_AR.csv&#39;</strong>)<br><br># print(df)<br># df2 = df.fillna(0)<br># df2.sort_values(by=[&quot;201801&quot;,&quot;201802&quot;,&quot;201803&quot;,&quot;201804&quot;,&quot;201805&quot;,&quot;201806&quot;,&quot;201807&quot;,&quot;201808&quot;,&quot;201809&quot;,&quot;201810&quot;,&quot;201811&quot;,&quot;201812&quot;],ascending=True, na_position=&#39;first&#39;)<br># df3 = pd.DataFrame(columns=[&#39;1&#39;,&#39;2&#39;,&#39;3&#39;,&#39;4&#39;,&#39;5&#39;,&#39;6&#39;,&#39;7&#39;,&#39;8&#39;,&#39;9&#39;]);<br><br>df3 = pd.DataFrame()<br><br># df3 = df2[:2-8];<br># this line creates a loop for<br># big loop for iterating each row.<br><br>finallist = []  # all the data required<br>for ind in range(2, 886292):<br><br>    tempvect = []  # container for loading the row as it is<br>    tempvect2 = []  # container for swtiching the row to be 1 at first<br>    aa = df.iloc[ind, [<br>        1,<br>        2,<br>        3,<br>        4,<br>        5,<br>        6,<br>        7,<br>        8,<br>        9,<br>        10,<br>        11,<br>        12,<br>        13]]<br>    #print(aa)<br>    flag1 = True<br>    <br><br>    # loop for shifting from first &quot;1&quot; position<br><br>    for jnd in range(0, 13):<br>        sh = False<br>        tempvect.append(aa[jnd])<br>        if flag1 == True and aa[jnd] &gt; 1 and sh == False:<br>            sh = True  # print(tempvect[jnd])<br>            tempvect2.append(aa[jnd])  # adding the first vector -- THE ID -- element in 1<br>        if flag1 == True and aa[jnd] == 1 and sh == False:  # if the flag is true, then it wont be adding anything unless it founds a zero<br>            sh = True<br>            flag1 = False  # turning flag to false<br>            tempvect2.append(aa[jnd])  # adding the first vector element in 1<br>        if flag1 == False and sh == False:  # if the flag is false, the loop must add anything whether is 0 or 1<br>            sh = True<br>            tempvect2.append(aa[jnd])  # appending..<br><br>    tempvect2 = list(mit.padded(tempvect2, 0, 13))  # once it ends, it must be filling the missing elements of the vector to zeroes<br><br>    #print(tempvect2)<br><br>    finallist.append((tempvect2))<br><br># print(finallist)<br><br>csvfile = <strong>&#39;./arg_right_churn.csv&#39;</strong><br><br># Assuming res is a flat list<br><br>with open(csvfile, <strong>&#39;w&#39;</strong>) as output:<br>    writer = csv.writer(output, lineterminator=<strong>&#39;\n&#39;</strong>)<br>    for val in finallist:<br>        writer.writerow(val)</pre><p>Finally, we get our centered matrix and calculated the churn by diving the total sessions over the expected sessions in each month, shown in Figure 5.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*8rByd-mgsU9EejEQwCrmIg.png" /><figcaption>Figure 4. Centered Matrix for Churn Calculation</figcaption></figure><p>As we obtain our churn results we need to analyze and interpret the information in order to understand why customer retention is decreasing or increasing in specific periods of time. This way we will manage to understand our client behavior. For example, why our client is not coming back, the satisfaction of the client with the service, the perception of the price, and all these in order to improve the churn rate.</p><p>Concluding our churn interpretation, there are some actions to improved our churns rates like:</p><p>· Engage with customers to foster relationships</p><p>· Implement effective programs for customer retention</p><p>· Utilize these insights to predict customers who are likely to churn</p><p>· Potential Attributes (i.e. customer behavior, transactions, demographics data) to study the churners and not churners.</p><p>Following the actions mentioned before, the next step for a robust analysis is applying the clustering method, which will be the topic of the third volume of this article.</p><p>Special Mention to <a href="https://medium.com/u/b23201c0d072">Juan D. Núñez Aljure</a>, who instructed me in the construction of this article.</p><p>Any other information, contact me or email Juan <a href="/service/mailto:juan.d.nunez.aljure@gmail.com">juan.d.nunez.aljure@gmail.com</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bddda7c87e05" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/how-to-make-a-churn-analysis-using-data-science-bddda7c87e05">How to make a Churn Analysis using Data Science</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Applications of Data Science in Marketing]]></title>
            <link>https://medium.datadriveninvestor.com/applications-of-data-science-in-marketing-3f132a47c863?source=rss-e4fa67778963------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f132a47c863</guid>
            <category><![CDATA[clustering]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[social-media]]></category>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[segmentation]]></category>
            <dc:creator><![CDATA[Mario Camacho]]></dc:creator>
            <pubDate>Mon, 17 Sep 2018 04:07:59 GMT</pubDate>
            <atom:updated>2018-09-21T15:27:41.633Z</atom:updated>
            <content:encoded><![CDATA[<p>Everyone is talking about data science and how it is changing the world, but what is data science? we are going to tell you all you need to know about data science and the applications in marketing.</p><p><strong>What is Data Science?</strong></p><p>First of all, is important for the reader to understand the concept of data science. <em>Will Van der Aalst (2016) </em>states that “For this aim, we defined Data Science as an interdisciplinary field aiming to turn data into real value” which allows predicting the behavior of a specific market and all the different stages it goes through. In these terms, Data Science is able to identify the result of a process, the effect that causes that result, the future reactions the result will follow and what is the best case scenario this process will turn out in.</p><p>Taking into account the above, Data Science must go through a 5 stage cycle, that includes the correct <strong>data capture </strong>from the source, the <strong>storage</strong> of data, in order to get it into an efficient <strong>process</strong> so we can <strong>analyze</strong> and <strong>report</strong> it. All these, so we can make valid and strong conclusions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/437/0*EEf4VlJTm1uH6AnR" /></figure><p>Following the process is shown in Figure, first of all, you will need to collect the data by entry, and extraction. Second, store it by data architecture in which is define the data requirements. Then, process it through data mining and, modeling, this stage could happen before or after the store stage, depending on the data. After processing the data, the next stage is to analyzed data by statistics principals, doing predictive analysis, regression analysis, text mining, and qualitative analysis. Finally, data presentation delivering insights, generating reports, and making decisions or recommendations.</p><p>By completing the Data Science cycle, you should be able to answer this questions, What happened? Why did it happen? What will happen? What is the best that can happen?.</p><p><strong>Segmentation: Clustering to Make Data-Based Decisions</strong></p><p>In Marketing, to develop a strategy to enter a market with specific characteristics, we need to segment the potential customers and understand their needs. Data science could help us develop predictive and descriptive methods by using different techniques of clustering that give us leverage information about the segment. For example, the ward method a hierarchical method in which you get the group of clusters in a hierarchy, by using a dendrogram (tree-like diagram) and the K-means algorithm which forms groups based on distance from the centroid. We can apply these methods of clustering by using R.</p><p>Alternatively, we could use attributes different from the demographic characteristics(e.g. Age, weight, gender) to make conclusions about the study population using distinct clustering methodologies from the given above. With the constant digital transformation and methods to understand the infinitive data given by the consumers, it is necessary to learn how to apply methodologies based on the use of new type of data to explore different segments.</p><p>Following the previous idea, based on mathematical models, we can use the techniques of neural networks. These models primary purpose is to understand how a user has more affinity to segments, which are defined by attributes of the study population, transferring information from one node to another in the neural network. It is important to identify the possible variables of confusion during the study in order to assure that the conclusions are bias-free and are exclusively made over the attribute (directly related to the segment) in study.</p><p><strong>Social Media Data Analysis: Studying Human Interaction Online</strong></p><p>As we already know, digital data is derived from a lot of sources and social media is particularly characterized for collect information based on human interactions from content that is shared by users. With data science we could collect data and analyze this type of information, understanding the behavior of users and aiming to structure a marketing strategy that satisfies people needs. Some of the marketing strategies could be using an advertising plan, A/B testing and content marketing.</p><p>Social media is useful to understand the facts that affect a customer decision while purchasing a product, which helps the analyst to identify what information does the user needs in order to make a conversion. An example of this is, using A/B testing to establish in an ads strategy, which is the most effective and profitable ad for your business goal.</p><p><strong>References</strong></p><ol><li><em>Will Van der Aalst (2016). Process Mining</em></li><li><em>Derrick S. Boone et Michelle Roehm (2002). Evaluating the Appropriateness of Market Segmentation Solutions Using Artificial Neural Networks and the Membership Clustering Criterion.</em></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f132a47c863" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/applications-of-data-science-in-marketing-3f132a47c863">Applications of Data Science in Marketing</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>