<?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 Prabhmit Chadha on Medium]]></title>
        <description><![CDATA[Stories by Prabhmit Chadha on Medium]]></description>
        <link>https://medium.com/@prabhmit-chadha?source=rss-5b69cf725689------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*VZcm_wc1lzy_XAdW.jpg</url>
            <title>Stories by Prabhmit Chadha on Medium</title>
            <link>https://medium.com/@prabhmit-chadha?source=rss-5b69cf725689------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 06:13:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@prabhmit-chadha/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[Bertelsmann-Arvato customer segmentation and supervised learning models]]></title>
            <link>https://prabhmit-chadha.medium.com/bertelsmann-arvato-customer-segmentation-and-supervised-learning-models-753571153a04?source=rss-5b69cf725689------2</link>
            <guid isPermaLink="false">https://medium.com/p/753571153a04</guid>
            <dc:creator><![CDATA[Prabhmit Chadha]]></dc:creator>
            <pubDate>Wed, 10 Feb 2021 00:33:11 GMT</pubDate>
            <atom:updated>2021-02-11T01:03:56.759Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*I6LQ36yqx2VmjPTb" /><figcaption>Photo by <a href="https://unsplash.com/@kees_streefkerk?utm_source=medium&amp;utm_medium=referral">Kees Streefkerk</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>Introduction</strong></p><p>This post is for a Udacity project undertaken by me to analyze demographics data for customers of Bertelsmann-Arvato, a mail-order sales company in Germany. Bertelsmann-Arvato have substantial customer data and access to German population data which they intend to leverage to acquire new customers efficiently via their marketing program.</p><p>To acheive this goal, I compared their customer data against demographics information for the general population in Germany and used unsupervised learning to perform customer segmentation to describe customer features.</p><p>I used this knowledge to model predicting outcome of their marketing campaign to assist Bertelsmann-Arvato in acquiring new clients efficiently.</p><p><strong>Analysis</strong></p><p>The project includes the following four primary components:</p><p>Part 1: Get to know the data</p><p>Part 2: Customer segmentation report</p><p>Part 3: Supervised Learning Model</p><p>Part4: Kaggle competition</p><p>Now we will cover each of the above components.</p><p><strong>Part 1: Get to know the data</strong></p><p>The project includes four datasets with the following description:</p><ul><li>Demographics data for the <strong>general population</strong> of Germany; 891,211 persons (rows) x 366 features (columns).</li><li>Demographics data for <strong>customers</strong>; 191,652 persons (rows) x 369 features (columns). The customers data set includes three extra columns (CUSTOMER_GROUP, ONLINE_PURCHASE, and PRODUCT_GROUP), which provide customer shopping information. The general population and customers data are used in the customer segmentation component.</li><li>Demographics data for individuals who were targets of Bertelsmann-Arvato marketing campaign; 42,982 persons (rows) x 367 (columns). The data set includes a RESPONSE column indicating if the recipient became a customer. This is the training dataset which is used to build the Supervised Learning Model.</li><li>Demographics data for individuals who were targets of a marketing campaign; 42,833 persons (rows) x 366 (columns). The data set does not include the RESPONSE column. This is the testing dataset which is used to make predictions to participate in the relevant Kaggle competition.</li><li>The project includes two additional files, which include attribute information and detailed mapping of data values for the data.</li></ul><p><strong>Exploring, Transforming and Loading the general population and customers data</strong></p><p>The general population data has 891,211 persons (rows) x 366 features (columns). It primarily includes numerical and categorical (ordinal or nominal) columns. A glimpse of the data is as following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*EEYu5LPLdHvmEeq2nCwCRA.png" /></figure><p>It is explored and cleaned in the following steps:</p><p>· The attribute files indicates that several categorical columns in the general population data have inconsistent ‘not a number’ (NaN) encodings wherby NaN were encoded as ‘unknown’, ‘no transaction known’, ‘no transactions known’ or ‘unknown/no main age detectable’. As there are 366 columns, completing this task manually would be a fairly tedious and time consuming process. To replace these values as NaN in a speedier fashion, the attribute file is read and transformed using pandas. Its first ten rows are as following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*_Ji8pn1BfelK8XHVKggsdg.png" /></figure><p>The column names with the above encodings is extracted using which the missing values in the general population data is replaced with NaN.</p><p>· The numerical columns for the general population data includes the following sevencolumns:</p><p>ANZ_HAUSHALTE_AKTIV, ANZ_HH_TITEL, ANZ_PERSONEN, ANZ_TITEL, GEBURTSJAHR, KBA13_ANZAHL_PKW, MIN_GEBAEUDEJAHR</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/915/1*CDc_jqbLskmhglAHDyPEyQ.png" /></figure><p>Their descriptions from the attribute files indicate that they have 0 used for no information, which were replaced with NaN. Their summary measures are as following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*ujL_u4z47CW7hObfGivXsQ.png" /></figure><p>· The data include six object type columns, which are following:</p><p>CAMEO_DEU_2015, CAMEO_DEUG_2015, CAMEO_INTL_2015, D19_LETZTER_KAUF_BRANCHE, EINGEFUEGT_AM, OST_WEST_KZ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*PRXpAX6a889VW21f9vHGMQ.png" /></figure><p>These are inspected and cleansed as following:</p><p>o CAMEO_DEU_2015 and D19_LETZTER_KAUF_BRANCH are detailed description categorical columns requiring dummy variables for their categories. CAMEO_DEU_2015 has X for missing values which are replaced with NaN.</p><p>A glimpse of CAMEO_DEU_2015 value counts:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/116/1*O29hjQsx-K_HqjKZiEc-Bw.png" /></figure><p>A glimpse of D19_LETZTER_KAUF_BRANCH value counts:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/258/1*yUne3QMk1hxybvQQefNaeA.png" /></figure><p>o CAMEO_DEUG_2015 and CAMEO_INTL_2015 are ordinal categorical variable columns with a mix of int and float values and X for missing values. To clean them, X is replaced with NaN and the column data type is changed to numeric.</p><p>A glimpse of CAMEO_DEUG_2015 value counts:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/106/1*hKFh_4UQxyOg2n3v77NrBA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*VlkNOPmEaXsMvPtgyguVCA.png" /></figure><p>A glimpse of CAMEO_INTL_2015 value counts:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/113/1*n41BuQpJblXnOy7waamVvQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/467/1*I1ZVN0ez0eHzz0KJjFubpw.png" /></figure><p>o EINGEFUEGT_AM column provides data recording time information from 1991 to 2016. This column has more than 10% missing values. Imputing the missing data recording information would be challenging and perhaps lead to inconsistencies. Therefore, this column is dropped.</p><p>A glimpse of EINGEFUEGT_AM:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/231/1*WtYJjLhlP2DmnZ6OFnd49g.png" /></figure><p>Its value counts are:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/234/1*CFbMmmvjH0m2AMjQjyc4Vw.png" /></figure><p>o OST_WEST_KZ is a binary categorical variable requires dummy variables. Its value counts are:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/98/1*5_PRZk2cDLdJuRUZ_bwvDw.png" /></figure><p>· The data has significant NaN in some columns. The top fifteen columns with NaN are as following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/1*l8QHMfS-41usNTPKg0UwnA.png" /></figure><p>The following 53 columns, which have more than 30% NaN are dropped:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*JqTJhIX_63JQfGMdq0I-eg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/1*l8QHMfS-41usNTPKg0UwnA.png" /></figure><p>· The data does not include any blank or duplicate rows or duplicate person identity (LNR column) values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/319/1*LPgAj82gDXgdRqHbH5QqoQ.png" /></figure><p>· NaN for numerical and categorical data is imputed with median and mode respectively following which dummy variables are created for CAMEO_DEU_2015, D19_LETZTER_KAUF_BRANCH and OST_WEST_KZ.</p><p>· The remaining columns were viewed/explored and were of the correct type/encoding and did not require any changes.</p><p>The above steps complete cleaning of the general population data. Customers data, which has 191,652 persons (rows) x 369 features (columns) is also cleaned using the above steps. A glimpse of the customers data is as following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/859/1*2pmr_AfSNob5kMo5QUZrhg.png" /></figure><p>Customer data has three extra columns (CUSTOMER_GROUP, ONLINE_PURCHASE, and PRODUCT_GROUP).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/481/1*gTPkjI86qN8wzVZ1vrkzXw.png" /></figure><p>These columns have no null values and are removed before applying the above cleaning steps to the customer data.</p><p><strong>Part 2: Customer segmentation report</strong></p><p>In this component, unsupervised learning is applied to describe the relationship between the demographics of the company’s existing customers and the general population of Germany.</p><p>The cleaned general population data is scaled and feature scaling is applied to it without the customer identity column (LNR).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/629/1*yU6OaeJt1z33WrA96IEgkw.png" /></figure><p>The captured variance with respect to increasing dimensionality indicates that the first 223 dimensions capture approximately 90% variance in the data. The general population data dimensions is reduced to 223 accordingly.</p><p>K-means clustering is then applied and by using the elbow method graph, as it is determined that ten clusters are ideal for the data as the drop in sum of squared distances after 10 clusters (2.64e+08) has smaller intervals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*AFADYQmPFJQH3SH1T47i_g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/470/1*tTAnG9N0O5z8PGNJqQJC1Q.png" /></figure><p>K-means clustering is used to segment general population in ten clusters and a clusters column is added to the data which provides the predicted cluster for each person.</p><p>The same scaling, dimension reduction and K-means objects are applied to the customer data without the three customer information columns and the customer identity column. In a similar way, the customers are segmented in ten clusters and a clusters column is also added to the customer data.</p><p>The top ten features by explained variance for the first principal component is as following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*YH0_W9swxLyygM90cqdOlw.png" /></figure><p>A difference in proportions of cluster representation between customer and general population data indicates the customer population is most over-represented in clusters 10 and 2 by 12.8% and 11% respectively. The customer population is most under-represented in cluster 7 and 5 by -13.8% and -10.6%.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/403/1*zrHYQDW26xu8uoubDl954Q.png" /></figure><p>A further analysis of the clusters indicate that Cluster 10, which is the most over-represented cluster, has a count of 36,566. Of all customers, cluster 10 customers who are multi-buyer and single buyer are 14.3% and 4.8% respectively. Cluster 10 customers who have shopped and not shopped online represent 0.8% and 18.3% of the customer population. The same customers who have purchased food, cosmetic, and cosmetic and food represent 3.8%, 4% and 11.3% of the customer population.</p><p>Cluster 7, which is the most under-represented cluster has a count of 1424. Of all customers, cluster 7 customers who are multi-buyer and single buyer are 0.5% and 0.2% respectively. Cluster 7 customers who have shopped and not shopped online represent 0.05% and 0.7% of the customer population. Cluster 4 customers who have purchased food, cosmetic, and cosmetic and food represent 0.15%, 0.2% and 0.4% of the customer population. These figures indicate a signficant difference in size and representation between these two clusters.</p><p><strong>Part 3: Supervised Learning Model</strong></p><p>The data cleaning steps undertaken to clean the general population and customers data are collated in a function which is used to clean the training and testing sets. The training data set columns are similar to the general population data except the extra RESPONSE column. The training data has 42, 982 persons (rows) x 367 (columns).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/851/1*A6UhY4dcMAwC3bP0jhvsiw.png" /></figure><p>A plot of the response and no response proportions indicates that individuals who became customers have very low proportion in 1% of the count and that the target variable is highly imbalanced.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*TWaG3VksBFPE2Y6kyuajbw.png" /></figure><p>For this component, CAMEO_DEU_2015 and D19_LETZTER_KAUF_BRANCH are dropped. They are detailed description categorical columns and combined would add more than 70 columns in dummy variables and would increase sparsity in the data and likely longer processing times.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*VlkNOPmEaXsMvPtgyguVCA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/467/1*I1ZVN0ez0eHzz0KJjFubpw.png" /></figure><p>To build a prediction model, the training data is split into train and test sets with a split of 70% and 30% respectively. As this is a classification problem, four widely used classifiers, namely Naive Bayes, Random Forest, AdaBoost and Logistic Regression classifiers are used in this project.</p><p>The primary metric used is Area Under the Receiver Operating Characteristic Curve (ROC AUC) score, which is computed from prediction scores. This metric is chosen as the data has a large number of features; is noisy; and has imbalanced target class.</p><p>In this project, the prediction outcome would be one classification (positive or negative) which could be:</p><p>True positive: correct prediction is made as the model predicts the individual will become a customer.</p><p>True negative: correct prediction is made as the model predicts the individual will not become a customer.</p><p>False positive: incorrect prediction is made as the model predicts the individal will become a customer but in fact they do not.</p><p>False negative: incorrect prediction is made as the model predicts the individal will not become a customer but in fact they do.</p><p>There are different costs associated with correct classification (true positive or true negative) and incorrect classifications (false positive or false negative). ROC curve accomodates uncertainity by capturing entire space of the model’s performance possibilities, which are false positive rate (cost) on x axis and true positive rate (benefits) on y axis. F-score has also been used for model descriptive purposes.</p><p>Initially the models are run without any hyper-parameter tuning due to which an auc score of approximately 0.5 is achieved for all of them with a low f-score.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*FV25qpPZNDuOUypvjMbFCw.png" /></figure><p>To improve the above models, a pipeline and parameter grid are declared for tuning as per following.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*aSps6KLAqSg5PeX7yp4YNw.png" /></figure><p>The pipelines include standard scaler and a range of allowed values for the selected paramaters. Based on research, I used a limited but the most effective hyperparameters for tuning to control time constraints and model overfitting. The grid-search also uses 8-fold cross validation and is set up to use all processors for speedier output.</p><p>A decision to drop CAMEO_DEU_2015 and D19_LETZTER_KAUF_BRANCH from the data was made at a later stage as models built without these two columns had marginally improved auc scores over the initial models which included them.</p><p>During initial stages, I also attempted to include Gradient Boosting and Support Vector classifiers, but did not pursue them due to their high processing times for this data.</p><p><strong>Gaussian Naive Bayes classifier</strong>, which is the fastest model in this project, correctly classifies 115 customers out of 162. It has 7997 false positives and 47 false negatives. It has a low precision score of 0.01 and a low f-score of 0.03. The model has auc score of 0.61 indicating that in this case the classifier is marginally better than a dummy classifier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/386/1*eIr422q6opWTzj0uP1Vviw.png" /></figure><p><strong>AdaBoost classifier </strong>is a biased classifier as it does not classify any positive customers and classifies majority of customers as negative. As a result it has a precision, recall and f-score of 0 for the positive class. Its auc score is 0.77. However it is un-helpful in predicting positive outcomes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/386/1*0vYlk4Rpg_xseQzg4YuiWw.png" /></figure><p><strong>Logistic Regression classifier </strong>correctly classifies 57 customers out of 162. It mis-classifies 3347 customers as false positives and 105 customers as false negatives and has a low f-score of 0.03. Its auc score is 0.59, which is lower than Gaussian Naive Bayes classifier and is a marginal improvement from the model without any parameter tuning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/388/1*5WnhxMuGVgvCMLlt6oBMqQ.png" /></figure><p><strong>Random Forest classifier </strong>correctly classifies 90 customers out of 162. It mis-classifies 2817 customers as false positives and 72 customers as false negative and has a f-score of 0.06. Its auc score is 0.75, which is better than the other classifiers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/401/1*q9ry28_t1GbrWgNbTqAopA.png" /></figure><p>The Random Forest model has the following best parameters acheived via tuning:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*mZZjMOZQvaxiZJ79wXGYzQ.png" /></figure><p>The models uses 250 trees (estimators) with a complexity parameter (ccp alpha) of 0.005 to prune them. It uses 3 samples to split an internal node (min sample split) and has minimum 4 samples at a leaf node (min samples leaf). The applied weights associated with classes was balanced as well. These values have provided the best results without the model over-fitting the training data and to be able to generalize well. The auc and f scores for all models are as following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/282/1*xXXPbuaOgz2W8YdmoqlmxA.png" /></figure><p>Therefore Random Forest classifier is the best performing classifier among the four classifier due to its auc_score, f-score and superior generalization. Therefore, it will be used for the next project component. Random Forest is an ensemble model that combines decisions from multiple weak learners to improve overall performance by using bootstrapping. It is a robust and widely used algorithm and in this case where the dataset is large and noisy , it provides the best performance.</p><p>The model was also run with the dataset with lesser features (226) achieved by dropping columns with more than 20% NAN compared to 293 features for the above model. This had minimal improvement in auc score and therefore, it was not pursued.</p><p><strong>Part4: Kaggle competition</strong></p><p>The testing dataset used for the Kaggle competition has 42,833 persons (rows) x 366 (columns). The data set does not include the RESPONSE column.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/849/1*BrQuvAJHr3_gp5kHaDaqXA.png" /></figure><p>The Random Forest model was used to make predictions on the testing set and the results (customer identity column and prediction probabilities) were submitted to the Kaggle competition. A glimpse of the submission is as following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/147/1*O6UOa7XAuy4Ra3w__4K_WA.png" /></figure><p>A score of 79.3% and 79.4% respectively were acheived for the two submissions which are close to the auc score acheived by the Random Forest model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*7EBAemEwpSC_WDIY3wh6GA.png" /></figure><p><strong>Summary</strong></p><p>· In this project, I explored the provided data extensively and identified columns that require cleaning and/or conversions. I identified the data has large number of missing values which were dealt by dropping columns over certain threshold; imputing missing values; or conversion of data types to improve the data quality.</p><p>· I then applied un-supervised learning to segment Bertelsmann-Arvato customers and described the customer core base of the company in over and under representation of the company customers among general population.</p><p>· I applied supervised learning to model predictions for individuals likely to become customers for the company. The metric was chosen carefully relevant to the business problem and the data. Four widely used algorithms were implemented and iteratively tuned to improve their performance.</p><p>· Finally, I used the best model to make predictions on the testing set and submit the results to Kaggle. The model’s best score and rank were 79.4% and 129 respectively.</p><p>· The solution could be improved by trying advanced classifier algorithms such as Gradient Boosting or XGBoost. Other techniques that could be applied are feature engineering; dimensionality reduction; feature selection; and stacking.</p><p>· This project provides a beginning to end data science experience using real world data wherby the data is explored and cleaned using a variety of techniques. The project involves application of un-supervised and supervised machine learning techniques. The project also provided valuable exposure to participate in a Kaggle competition. I would like to thank Udacity, their tutors and mentors and Bertelsmann-Arvato to provide me with this opportunity.</p><p>The project GIT repository can be accessed <a href="https://github.com/Prabhmit/Arvato_Financial_Services/blob/main/README.md">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=753571153a04" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Trends in Computer Science]]></title>
            <link>https://prabhmit-chadha.medium.com/trends-in-computer-science-4c6ec3e78695?source=rss-5b69cf725689------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c6ec3e78695</guid>
            <dc:creator><![CDATA[Prabhmit Chadha]]></dc:creator>
            <pubDate>Sat, 07 Nov 2020 22:57:57 GMT</pubDate>
            <atom:updated>2020-11-09T00:16:45.373Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KRhIQW2ontMvEpgz" /><figcaption>Photo by <a href="https://unsplash.com/@kmuza?utm_source=medium&amp;utm_medium=referral">Carlos Muza</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>Introduction</strong></p><p>Big data, artificial intelligence, machine learning, 5G, the matrix are some of the buzz words of the current times. Technology is being seen as and used as a major tool in solving many challenges in different domains and I have been interested to explore any trends in Computer Science, both within and outside the field.</p><p>I am interested to explore and present findings if computer science has steadily gained popularity over the last ten years worldwide; is there a greater representation of candidates from un-related Major or Undergraduate qualifications than the past; and what has been the choice of programming language for the participants year after year.</p><p>To explore these questions, I have used data from Stack Overflow Annual Developer Surveys from 2011 to 2020. Overall, there total participants exceeded 400,000. The participation and survey questions have continued to be developed or changed since 2011 and vary from year to year. 2011 survey had nearly 2800 participants with 65 survey questions compared to nearly 65000 participants with nearly 60 survey questions in 2020.</p><p>The survey datasets were individually explored, data for relevant questions was extracted, cleansed and combined to answer the following questions.</p><p><strong>Part 1: Has the participant country representation increased over the decade?</strong></p><p>I am interested to find if there was an increase in participants from different countries which would be an indicator of increasing popularity of computer science around the world and greater presence of an online community. The below chart provides total number of countries per year for the participants.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/389/1*msS0HHn66QM7J3JlcFJf5w.png" /></figure><p>As we can see that 2011 to 2013 had a relatively low number as regions and countries were put under the same survey question grouping countries together. Therefore 2011 to 2013 have a lower count. However, since 2014 the number of countries has risen steadily and over the last three years has been just under 200 indicating a broader online community.</p><p><strong>Part II: Is there any noticeable trend in participant Major or Undergraduate representation from non-computer science disciplines especially fine arts, health science or natural science?</strong></p><p>With technology making its presence in various fields and domains, I was interested to know if there is an increase in candidates from un-related studies to enter computer-science. The fields I intuitively selected to explore based on being distant from computer science were fine arts, health science and natural science. This data was available from 2017 survey onwards. The below chart provides a proportion of participants from each of the three fields per year.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/1*wEPrDazf13Sh2cgqqRLgbg.png" /></figure><p>As we can see that the proportions are relatively low at nearly 3.5%, 1.5% and 0.25% for Natural Sciences, Fine Arts and Health Science respectively which has remained consistent over the last four years which do not indicate any noticeable trend.</p><p><strong>Part III: Have the top five popular programming languages changed from year to year since 2011?</strong></p><p>I have explored if there are any the trends in popular programming languages in the last decade. Now the number of programming languages used by participants exceeded 40 and for a clearer analysis, I have visualized the eight programming languages that had registered in yearly top five. The below chart provides a yearly ratio of participants using the eight languages listed on the right of the figure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*fd2rl06Mw05sE08ZD2slww.png" /></figure><p>We see that C# and Java have been consistently popular programming languages from 2011 to 2020. C programming language has been consistently popular, however its popularity has decreased slightly 2016 onwards but is still the most popular programming language in 2020.</p><p>CSS and HTML are closely related probably due to their inter-dependent use. Their popularity has improved significantly over the last two years indicating their greater use in web content development and other web related services. It is noted that 2013 to 2015 surveys did not have CSS and HTML as a response option and therefore we see a flat line for that period.</p><p><strong>Conclusion</strong></p><p>In this article I discovered some trends within computer science. I used data from Stack Overflow Annual Developer Surveys from 2011 to 2020 to explore and present the answers to the raised questions.</p><p>Since 2014 the participants from different countries has risen steadily and over the last three years has been just under 200 indicating a broader online community.</p><p>The candidates from the chosen fields namely Natural Sciences, Fine Arts and Health Science has remained relatively low at nearly 3.5%, 1.5% and 0.25% respectively since 2017 and is not indicating any noticeable trend.</p><p>C, C# and Java have been consistently popular programming languages over the last decade. Since 2018 CSS and HTML have steadily gained popularity and are among the top five languages in 2020.</p><p>To further explore the data and the analysis, follow this link to my <a href="https://github.com/Prabhmit/Udacity-Project1">Github</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c6ec3e78695" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>