<?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 Adlef on Medium]]></title>
        <description><![CDATA[Stories by Adlef on Medium]]></description>
        <link>https://medium.com/@adlef01?source=rss-4388afd163f7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*hcc4iifc6GLr5TZGdgJkoA.jpeg</url>
            <title>Stories by Adlef on Medium</title>
            <link>https://medium.com/@adlef01?source=rss-4388afd163f7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 21:51:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@adlef01/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[The NBA Under Data Analysis]]></title>
            <link>https://medium.com/analytics-vidhya/the-nba-under-data-analysis-4e2e726038b0?source=rss-4388afd163f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e2e726038b0</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[nba]]></category>
            <category><![CDATA[lebron-james]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[basketball]]></category>
            <dc:creator><![CDATA[Adlef]]></dc:creator>
            <pubDate>Thu, 22 Oct 2020 10:51:22 GMT</pubDate>
            <atom:updated>2020-10-28T12:51:25.712Z</atom:updated>
            <content:encoded><![CDATA[<p>a project based on Data provided by Basketball-Reference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*gFvKsDWVwqOeTwt9.jpg" /><figcaption>Spalding — NBA Game ball</figcaption></figure><h3>Introduction</h3><p>The NBA (National Basketball Association) was founded in 1949, after the merge of 2 leagues; the <a href="https://en.wikipedia.org/wiki/Basketball_Association_of_America">Basketball Association of America</a> (BAA) and the <a href="https://en.wikipedia.org/wiki/National_Basketball_League_(United_States)">National Basketball League</a> (NBL). It is the most publicised league of the world.</p><p>Thanks to a huge and detailed dataset covering statistics of players from 1950 until 2017 (from <a href="https://www.kaggle.com/drgilermo/nba-players-stats">Kaggle</a>) and as a huge fan of basketball (especially about the NBA), I always wanted to investigate into the statistics of the league to showcase trends or even to answer specific questions.</p><p>Here some examples:</p><blockquote>“The 3-Pointer has become fundamental.”</blockquote><blockquote>“Did Stephen Curry revolutionize Basketball?”</blockquote><blockquote>“Is Michael Jordan the GOAT (Greatest Of All Time)?”</blockquote><p><strong>Even though such questions could not be answered only via statistics and should consider unmeasurable factors</strong> (as the mindset, the mentality of the player, the investment out of basketball courts, …) I took it as challenge to reveal aspects that do not lie.</p><h3>Part I. The 3-Pointer has become fundamental.</h3><p>To remind readers what the basketball is, it is a team sport. Two teams of five players each try to score by shooting a ball through a hoop elevated 10 feet above the ground. It is quite easy then to understand that <strong>the closer to the basket you are, the easier it would be to score. However, recent trends show that players are more willing to shoot from far.</strong></p><p>A shot is considered as a 3-Points instead of 2-Points if it is beyond <strong>the three</strong>-<strong>point</strong> <strong>line</strong>, a designated arc surrounding the basket (7.24 m from its center). It was officially introduced for the 1979–1980 season. It brings 3 points to the team score, compared to the 2 points of a normal shot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rVxss68cbqRyc9lAswejsQ.png" /><figcaption>Fig 1 — Average 3 Points-Attempts By the League Over Years</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lPpIvUkl5Y12cYEHYmQD0A.png" /><figcaption>Fig 2— Average 2 Points-Attempts By the League Over Years</figcaption></figure><p>Between 1980 and 2017, the number of <strong>3-Points Attempts was multiplied by 8 (from 16 attempts to 128)</strong>!</p><p>Moreover, the largest increase is visible since 2012 and the NBA seems to head towards a game more focused on the 3-Points Shot. In fact, since 1960 <strong>the 2-Points Attempts decrease (from 689 to 273)</strong>. Year after year defence has been reinforced leaving less possibilities to the players to go to the basket.</p><p>Normally, I would expect the further a shot is, the less accurate it would be. However, statistics recorded from the players over years showed me I was wrong.</p><p>The Effective Field Goal Percentage (%)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/1*lE2m0r-LtC5DpOHtl6Wwww.png" /><figcaption>Fig 3 — Effective Field Goal Percentage Formula</figcaption></figure><p>represents the efficiency of a player to bring points to his team. This statistic adjusts for the fact that a 3-point field goal is worth one more point than a 2-Point field goal.</p><p>For example, suppose Player A goes 4 for 10 with 2 threes, while Player B goes 5 for 10 with 0 threes. Each player would have 10 points from field goals, and thus would have the same effective field goal percentage (50%).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mTIA_DoLlrt-Ly2Y5JglZQ.png" /><figcaption>Fig 4 — Average Effective Field Goal Percentage By the League Over Years</figcaption></figure><p>From the chart above, I could understand that <strong>players have become more and more accurate</strong>. It can be also explained by the fact NBA became more and more selective, which could only consequently raise up the whole level of the league.</p><p><strong>As Shooters (but actually all players) have become more accurate, why not then trying to score more 3-Points instead of 2-Points (because 3 is greater than 2!), as the main goal in basketball still remains to score more points than the opposite team?</strong></p><h3>Part 2. Stephen Curry revolutionized Basketball.</h3><p>And here comes the transition to Stephen Curry. After having seen that the 3-Pointer has become essential, one player is considered the bearer of this new style of play.</p><p>Stephen Curry is known to be an excellent Shooter (some discussions consider him as the best one All-Time). He plays as Point Guard (PG) and as Shooting Guard (SG) (but mainly PG). He entered the league in 2010 and he is still active today (2020).</p><p>Here is an image representing the positions in basketball.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*Z0Ts0dbf16O6-GFrnpCfVw.png" /><figcaption>Fig 5 — The Positions in Basketball</figcaption></figure><p>The Point Guard is the playmaker which puts his teammates into the scoring Position. It drives often to the basket to open spaces to his team mates or to score, but it stays most of time outside of the arc.</p><p>In past, the game was more focus on Big Men (Power Forward / Center positions), because Basketball is a game of tall players. The easiest way to score remains in being close to the basket.</p><p>However, since around 2010, the game started to be more centered on the Point Guard, which showed that more than a playmaker, it could be a scorer too.</p><p>I just proved that the trend heads to shoot further, and <strong>the 3 Points Attempts is increasing strongly since 2010</strong>. Let’s dig out some valuable data on the long distance best Shooters All-Time in:</p><ul><li>3 Points-Attempts Over Years</li><li>3 Points Percentage (%) Over Years (Field Goals Over Attempts)</li><li><a href="https://www.basketball-reference.com/about/per.html">Player Efficient Rating</a> (from the best 3 Points Shooters) — a rating developed by ESPN.com columnist <a href="http://sports.espn.go.com/keyword/search?searchString=John_Hollinger">John Hollinger</a></li></ul><p>To consider the best 3 Points Shooters, a minimum of 4 Seasons is requested, as a minimum of 300 Attempts for the career in average.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*MVKLkTPTLUGXG2RLWdyUuA.png" /><figcaption>Fig 6 — The Best Shooters All-Time</figcaption></figure><ul><li>Most of the top <strong>3-Point Shooters in Attempts are from the last decade</strong>.</li><li><strong>Ray Allen </strong>and <strong>Reggie Miller</strong> seem to be the <strong>precursors of the long distance shooting</strong> (the only players, except Kyle Korver not from the last decade). That’s also one among many reasons why they are considered within the best shooters; precursors, stable statistics, longevity as a shooter, ...</li><li><strong>Stephen Curry leads the ranking from attempts (in relation to the number of active years)</strong> and has a <strong>very high % of conversion</strong> (rank 2, after Kyle Korver). He is currently ranked as second All Time in 3-Pointer Field Goals made, behind Ray Allen.<br>Notice that Kyle Korver doesn’t belong to the top 10 of attempts.</li><li>Last but not least, even if he shoots a lot from far (3 Points-Attempts around 6 times more the mean of the league), <strong>his Efficiency Rating remains to the top level, which means that his long shooting is valuable to his team</strong>. The shape of its curve follows that of LeBron James (who enters in the debate of Greatest Of All Time).</li></ul><p><strong>Ray Allen and Reggie Miller might have started to introduce the 3-Point game but Curry brought it to another level</strong> with crazy high numbers in attempts and in percentage conversion. He also demonstrates, visible via his “Player Efficiency Rating”, that this kind of play was possible in order to win.</p><p>More than him alone, the whole team Golden State Warriors made the 3-point Shooting as basis of their play. In fact, another shooter in the discussion is Klay Thompson who is Stephen Curry’s team player.</p><p>Together, they went to finals 5 years in a row, gaining 3 NBA championships. Even though they did not win the title in 2016, they did the best record in regular season of NBA History, 73 Victories / 9 Defeats, that people would say it has no value as the championship in the end was not won.</p><p>This philosophy of play created a dynasty and changed the way of playing from the NBA.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*Onk01RygXwCsZnL6w9zSyg.png" /><figcaption>Fig 7 — The Evolution of the ‘SG’ Position Over Years</figcaption></figure><p>We can notice too that it impacts the number of SG joining the league since 2010.</p><p><strong>In other words, as a leader from a group of players, Stephen Curry brought the Combo Guard (Point Guard / Shooting Guard) to the most important role in NBA since the last decade, as a playmaker but as a Shooter too.</strong></p><h3>Part 3. Is Michael Jordan the GOAT ?</h3><p>And here it is the question that everyone would like to answer: is Michael Jordan the Greatest Of All Time?</p><p><strong>Obviously, the answer is limited to statistics and many external factors are not considered</strong> (which have certainly a huge impact on the discussion).</p><p>First of all, I defined a simple algorithm, based on the provided statistics. The minimum of seasons considered is 8.</p><p>I considered features about:</p><ul><li>the value of a player to his team such as the ‘Win-Shares’ — an estimate of the number of wins contributed by a player.</li><li>the ‘Player Efficiency Rating.</li><li>and among other statistics factors, personal awards given to the player, added by myself to the data (only for the best players considered in the discussion by experts). It concerns the numbers of titles, the number of finals reached, the number of “best player of the regular season” and of “the finals”, …</li></ul><p>Further info can be found <a href="https://www.basketball-reference.com/about/glossary.html">here</a> regarding the definition of the Statistics used.</p><p>From a GOAT ranking of size 10, the best player in his statistic category gets 10 points when the last one gets 1 point (ranked 10). I sum up all points attributed to the player per category and I came up with the below chart:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wbr3JNTTBafSbuvudONe2A.png" /><figcaption>Fig 8 — The Top 10 GOAT of All Time</figcaption></figure><ul><li>it is interesting to notice that it exists a real gap between Michael Jordan / LeBron James and the rest of the top 10 players. Today, a discussion about the GOAT really exists between both of them.</li><li>Only a selection of Statistics variables were taken in consideration. Chris Paul should not be in the top 10 of the GOAT. Even though he has no personal awards, he is known to be one of the best playmaker / game organizer of All-Time (his nickname is Point God, from Point Guard). Therefore, his contribution to the success of his team is important.</li><li>On the contrary, Shaquille O’Neal or Kobe Bryant should be included in the top 10 (observations given by many experts).<br>Kobe Bryant was seen as a lonely wolf, strong but not so close to his team mates. He was taking and forcing a lot of difficult shots. On the other side, his mentality defined him as one of the most impressive and respected player. However, it could be that from statistics points of view he was not so much contributing to his team.</li></ul><p><strong>Surprisingly, with just considering some important factors (which remains statistics) and although basketball is not just about statistics, our ranking is somehow close to the current debate of “who is the Greatest Of All Time”.</strong></p><p>For my personal top 3, I would go with Michael Jordan — for his exemplary effectiveness; 6 championships / 6 NBA finals, LeBron James — for his domination over 16 years in all the possible fields of Basketball, and Kareem Abdul-Jabbar — to me the best Center in NBA History and the best scorer of NBA in cumulative Points.</p><h3>Conclusion</h3><p>I was interested in investigating about the evolution of the NBA, in some aspects.</p><ul><li>I find out that the <strong>players have become more accurate</strong> that they used to be in the past.</li><li><strong>The long distance shot has become fundamental in the NBA</strong>. Actually, since the last generation, it is hard to “survive” in NBA if you do not develop a good shot. As the Defence has improved, it is not so easy any more to go to the basket.</li><li>Something which was not revealed in this analysis is that <strong>the game has become faster</strong>, and often finishes with a long distance shot.</li><li><strong>Stephen Curry</strong>, among another list of players from his generation, <strong>introduced “officially” this new way of playing</strong>, although it was already there with players such as <strong>Ray Allen</strong> or <strong>Reggie Miller.</strong></li></ul><p>And I also tried to answer, from Statistics point of view, the question about the Greatest Of All Time. It came up from my simple implementation that Michael Jordan is ahead followed by LeBron James.</p><p>I leave you now making your own opinion!</p><p>For further info and to see the whole project, it is available <a href="https://github.com/Adlef/NBA_Analysis">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*FhBzlGJlbBN4ekF7" /><figcaption>Michael Jordan [<a href="https://www.nytimes.com/2015/05/04/sports/basketball/decades-after-a-famous-shot-the-fall-guy-is-still-recovering.html">source image</a>]</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e2e726038b0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/the-nba-under-data-analysis-4e2e726038b0">The NBA Under Data Analysis</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Starbucks Promotion Strategy]]></title>
            <link>https://adlef01.medium.com/starbucks-promotion-strategy-741f2a591ab?source=rss-4388afd163f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/741f2a591ab</guid>
            <dc:creator><![CDATA[Adlef]]></dc:creator>
            <pubDate>Sat, 03 Oct 2020 12:08:05 GMT</pubDate>
            <atom:updated>2020-10-22T17:02:04.924Z</atom:updated>
            <content:encoded><![CDATA[<p>an analysis based on the <a href="https://github.com/Adlef/Starbucks/blob/master/Copy%20of%20Take_Home_Assignment.docx">Take Home Assignment</a> exercise for Starbucks job candidates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/1*jSGbEY3z49ceMNWcO_Rmdw.jpeg" /><figcaption>[<a href="https://buscreative.blogspot.com/2016/12/the-marketing-mix-promotion.html">source picture</a>]</figcaption></figure><h3>Introduction</h3><p>A randomized experiment was conducted by Starbucks. An advertising promotion was tested to see if it would bring more customers to purchase a specific product priced at $10. Since it costs the company $0.15 to send out each promotion, it would be best to limit that promotion only to those that are most receptive to it.</p><p>The goal of this exercise is to build a model to select the best customers to target, maximizing the two following metrics:</p><ul><li><strong>Incremental Response Rate (IRR)</strong></li></ul><p>IRR depicts how many more customers purchased the product with the promotion, as compared to if they didn’t receive the promotion.</p><p>Mathematically, it’s the ratio of the number of purchasers in the promotion group to the total number of customers in the promotional group (treatment) minus the ratio of the number of purchasers in the non-promotional group to the total number of customers in the non-promotional group (control).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/265/1*AFicWwteDSUFAGlsFwy4gQ.png" /><figcaption>Fig 1 — IRR definition</figcaption></figure><ul><li><strong>Net Incremental Revenue (NIR)</strong></li></ul><p>NIR depicts how much is made (or lost) by sending out the promotion.</p><p>Mathematically, this is 10 ($10) times the total number of purchasers that received the promotion minus 0.15 ($0.15) times the number of promotions sent out, minus 10 ($10) times the number of purchasers who were not given the promotion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/438/1*BzvkUJ8Ssk8UGLnqow5qFw.png" /><figcaption>Fig 2 — NIR definition</figcaption></figure><p>The data for this exercise consists of about 120,000 data points split in a 2:1 ratio among training and test files. The training dataset will be referred as the dataset to set up models. Each data point includes one column indicating whether or not an individual was sent a promotion for the product, and one column indicating whether or not that individual eventually purchased that product. Each individual also has seven additional features associated with them, which are provided abstractly as V1-V7.</p><p>In order to answer the following question:</p><blockquote>Can we build a model to select the best customers to target for the promotion?</blockquote><p>I will try 2 different approaches.</p><ul><li>Thanks to the experiment done on two groups of people (A/B testing), I will establish one one hand a model to predict if a customer who received a promotion is willing to purchase and I will do the same but on customers not in the promotional group.<br>Therefore, our final model will be the combination of 2 predicting models.<br>This will be the <strong>Two Model Approach</strong>.</li><li>The second approach is simply to consider all customers, whether in the promotional group or not, and to predict if they are willing to purchase.<br>As in the end we are only concerned in finding out if the promotion works, I added a new feature called ‘receptive’ which gives the value 1 to customers who received promotions and made purchases, and labels of 0 to everyone else. The objective will be to predict these ‘receptive’ customers.<br>This will be the <strong>One Model Approach</strong>.</li></ul><p>However, before talking about implementing models, we must have a look to the data itself.</p><h3>Part I. The Data Overview</h3><p>I started by analyzing its structure itself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/467/1*p0NbzFV70JxgULF_yIlOnA.png" /><figcaption>Fig 3–Five first rows of the data</figcaption></figure><ul><li>The data has no missing values.</li><li>I found out that “V1”, “V4”, “V5”, “V6” and “V7” are categorical features. I transformed them into dummies variables via the <strong>OneHotEncoding</strong>. <br>Below is a picture explaining in a simple way the concept.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Au4WgiW_4yncmmwA" /><figcaption>Fig 4 — One Hot Encoding concept</figcaption></figure><ul><li>At first glance, “purchase” is seen as what we are interested in predicting; knowing if a customer is likely to buy or not the product.</li><li>“V2”, “V3” are respectively perfectly normally and uniformly distributed, without extreme values.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*dOZs8O556P4bPdK7LtVD6A.png" /><figcaption>Fig 5 — V2 distribution</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/883/1*8Wed1IViSzuNPYQFUoQtfw.png" /><figcaption>Fig 6 — V3 distribution</figcaption></figure><ul><li>Number of customers in experiment: 42364 / Purchasers: 721<br>Number of customers not in experiment: 42170 / Purchasers: 319<br>The Data is imbalanced; <strong>the non-purchaser class is dominant</strong>.</li></ul><p>This ends up generating a p-value of 0.506 (z = -0.66), which is within a reasonable range under the null hypothesis. Since we lack sufficient reason to reject the null, we can move on to performing a hypothesis test on the evaluation metrics and setting up models.</p><p><a href="http://resources.esri.com/help/9.3/arcgisdesktop/com/gp_toolref/spatial_statistics_toolbox/what_is_a_z_score_what_is_a_p_value.htm">Here</a> a link to understand the concept of p and z values.</p><h3>Part 2. Determining the Sample Size</h3><p>So, we have a dataset. We would need to sample parts of it for some qualitative analyzes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*Yn_O5NRBE9y6tTvPZK5QlA.jpeg" /><figcaption>Fig 7 — Sampling a population [<a href="https://medium.com/@memegha24k/sampling-techniques-7f90275b25af">source picture</a>]</figcaption></figure><ol><li>Statistically, our sample size must be large enough to be able to represent accurately the original population. This is called <strong>the confidence level</strong>. The most common value is 95%.</li><li>Next to that, analyzes shouldn’t be too much sensitive to differences, we accept a degree of flexibility, called <strong>margin of error</strong> or <strong>type error rate</strong>, closed to ~5%. <br>Putting both together, we can be 95% confident that our calculated sample is equals to the original population within a range of ±5% of error.</li><li>The <strong>Statistical power</strong> in a hypothesis test is the probability that the test will detect an effect that actually exists. I will go with a power of 80%, meaning in other words that it has an 80% chance of detecting an effect that exists (we expect a difference between the promotional group and the non).</li></ol><p><strong>Our desired minimum IRR is 1.5%</strong>, and we want to detect this change with a type 1 error rate of 5% and a power of 80%.</p><p>I used the Statistical Power calculations for z-test for two independent samples method to come up with a necessary sample size of 5089 entries in order to reach the target. The dataset is made of 120,000 data points.</p><p>Hence, we have enough data to play with different models and approaches.</p><h3>Part 3. Handling the imbalanced Data</h3><p>As already stated, the goal of this exercise is to build a model to select the best customers to target, maximizing the NIR and IRR metrics.</p><p>However, the data is imbalanced, there is largely more “no purchase” than “yes purchase”. Therefore, the classification of these data is biased towards the majority class, which practically means that it tends to attribute a mistaken “non-purchaser” status even to “purchaser”.<br>One of the method to balance it is the <a href="https://machinelearningmastery.com/smote-oversampling-for-imbalanced-classification/"><strong>SMOTE</strong></a><strong> </strong>method. It will be applied on the <strong>training data set </strong>(the dataset to train our models).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oL2Do9SJ52_Tlcqo.png" /><figcaption>Fig 8 — SMOTE concept [<a href="https://heartbeat.fritz.ai/resampling-to-properly-handle-imbalanced-datasets-in-machine-learning-64d82c16ceaa">source picture</a>]</figcaption></figure><p>SMOTE is an <strong>over-sampling method</strong>. It creates synthetic (not duplicate) samples of the minority class. Hence making the minority class equal to the majority class. SMOTE does this by selecting similar records and altering that record one column at a time by a random amount within the difference to the neighbouring records.</p><p>Thanks to the over-sampling method, we end up with the same number of purchasers and non-purchasers.</p><h3>Part 4. The Two Models Approach</h3><p>Even if finding out who can buy is our target, ensuring also that we don’t send a promotion to someone who is not willing to buy is crucial, as it would be costly for the company. As the likelihood goes with being not a purchaser, I establish an optimal scorer function:</p><ul><li>where 80% of the scorer is focus on <strong>minimizing false positives</strong> (real non-purchasers seen as purchasers). This is the <strong>Specificity </strong>(the higher it is, the less false positives are found). Additionally, if the value is below a given threshold, a penalty is given to it.</li><li>where 20% of the scorer is focus on <strong>maximizing true positives</strong> (real purchasers). This is called <strong>Recall</strong>.</li></ul><p>In consequence, models with a high value of Specificity are kept, and run for the best Recall possible.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4751a1100ea1837e7d3c65e511a20cc5/href">https://medium.com/media/4751a1100ea1837e7d3c65e511a20cc5/href</a></iframe><p>Our first approach would be to train 2 models.</p><ul><li>on the customers involved in the experiment (promotional group), and finding out its profile to purchase.</li><li>on the customers not involved in the promotional group, and finding out its profile to purchase.</li></ul><p>The positive reception to the promotion will be found by comparing the two models, built on customer belonging to the promotional group and non-promotional.</p><p>To be exact, the difference in the probabilities, which we will call the lift:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*j_WBPJ84isVCoYTMhFhYOw.png" /><figcaption>Fig 9 — The Lift definition</figcaption></figure><p>will tell us the probability that sending a promotion to an individual will increase his or her willingness to make a purchase vs not sending a promotion. We can then send promotions to individuals with lift values, higher than a predefined cutoff percentile. For example, we can send promotions to individuals in the top 3 deciles.</p><p>This approach has been written by Victor S. Y Lo in 2002, in his paper “<a href="https://www.researchgate.net/profile/Victor_Lo3/publication/220520042_The_True_Lift_Model_-_A_Novel_Data_Mining_Approach_to_Response_Modeling_in_Database_Marketing/links/00463530681bd8f8de000000/The-True-Lift-Model-A-Novel-Data-Mining-Approach-to-Response-Modeling-in-Database-Marketing.pdf"><strong>The True Lift Model — A Novel Data Mining Approach to Response Modeling in Database Marketing</strong></a>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/216/1*5nyl1Gq1lTfK1JvhXBoPfw.png" /><figcaption>Fig 10— Victor S. Y Lo proposed methodology, 2002 [<a href="https://www.researchgate.net/publication/220520042_The_True_Lift_Model_-_A_Novel_Data_Mining_Approach_to_Response_Modeling_in_Database_Marketing">source picture</a>]</figcaption></figure><p>For this dataset, we can manually try a few cutoff percentiles or perform a grid search to find the optimal cut-off percentile.</p><p>Different classification models were considered. However, thanks to the ‘<a href="https://scikit-learn.org/stable/tutorial/machine_learning_map/index.html">scikit-learn algorithm cheat-sheet</a>’ (that I really appreciate to give you hints in finding your model):</p><ul><li>my first pick was with the <strong>LinearSVC Model</strong>. I was really concerned about timing to train models as my computer started to be really slow. A <strong>Linear classifier</strong> is relatively <strong>faster</strong> <strong>than a non-linear classifier</strong>, it has mainly one parameter to tune (C: the regularization parameter), and it is <strong>memory efficient (</strong>again advantages for my Laptop…).<br>Besides, the dataset is not so big and it is known that Support Vector Machines algorithm is not suitable for large ones. <br>However, it requests a clear margin of separation between classes and it has been found later that this limit is actually not so clearly delimited…</li><li>Secondly, the <strong>Gradient Boosting Classifier</strong> model. It produces a prediction model in the form of weak prediction models, typically decision trees. It combines weak “learners” into a single strong learner in an iterative fashion. <br>Unlike the LinearSVC Model, the <strong>training takes longer</strong> because of the fact trees are built sequentially. <br>One of its disadvantage is its <strong>possibility to overfit</strong>. Therefore, more parameters would be taken in consideration during the tuning such as the <strong>learning rate (shrinkage)</strong> or <strong>depth of three</strong> to avoid this problem.</li><li>Last but not least, I picked up the <strong>Logistic Regression</strong> model. It is one of the simplest machine learning algorithms. Consequently, training a model neither require high computation level nor many parameters to tune (C: the regularization parameter). <br>Logistic Regression <strong>outputs well-calibrated probabilities</strong> along with classification results, which is needed for our determination of our lift.<br>Nevertheless, it is as LinearSVC Model highly dependent on a clear linear separation between classes since it has a linear decision surface.</li></ul><p>My expectation would be then that the Gradient Boosting Classifier Model outperforms according to our metrics (balanced accuracy, specification and scorer optimized), even though has a risk to overfit.</p><p>After splitting the data into a training and a test datasets (ratio 2.5:1), to get the best models possible, I implemented a GridSearchCV on tuning the parameters described previously.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d067e81f68a6b0252b60200ea2048a33/href">https://medium.com/media/d067e81f68a6b0252b60200ea2048a33/href</a></iframe><p>Results below are the best models found out after the tuning process. As expected, the Gradient Boosting Classifier finished first in all the metrics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jczE3Ib_jHy85Y0H0fhTyw.png" /><figcaption>Fig 11— Results from the trained models</figcaption></figure><ul><li><strong>The Balanced accuracy</strong> is calculated as the average of the proportion corrects of each class individually; real purchasers / real non purchasers.</li><li>The closer to 1 in the criteria the model is, the better it is.</li><li>“Optimize” corresponds to the score given by the optimal established scorer function.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/463/1*klYTguMRx-OCjrzCdOAdaA.png" /><figcaption>Fig 12 — Confusion matrix</figcaption></figure><p>3 customers from 80 were only found as real purchasers, which explains a really low Recall from the model.</p><p>Our remaining step is then to try our Two Model Approach (using the Gradient Boosting Classifier Model as base) to verify if we could possibly targeting the right customers for our promotion. Let’s define first the ‘lift’:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e12dfb1bfaf6cea32b67769d5a9d4b96/href">https://medium.com/media/e12dfb1bfaf6cea32b67769d5a9d4b96/href</a></iframe><p>Then if the probability to be a purchaser has been found on the customer, he will be append to the group receiving the promotion. A test dataset to this promotion strategy has been provided. It will compare our candidates from our predicted promotion group to the real test group. It came up that the performance of this model was worse than expected. If we take reference to our Promotion metrics IRR and NIR:</p><ul><li><strong>an IRR of 1.16%</strong></li><li><strong>a NIR of $-21.35</strong></li></ul><p>are achieved, which is not as good as the Starbuck’s model. <br>As reference figures, the company came up with:</p><ul><li>an <strong>IRR of 1.88%.</strong></li><li>a <strong>NIR of $189.45</strong>.</li></ul><p>It should also be noted that this method is extremely sensitive to changes in the cut-off percentile used for this dataset. Both the addition or subtraction of a few percentiles resulted in drastically different NIR. Hence, the two model approach is not recommended for this data set.</p><h3>Part 5. The One Model Approach</h3><p>In this approach, we will add a new label (new feature: “receptive”) which consists in assigning labels of 1 to customers who received promotions and made purchases, and labels of 0 to everyone else. In other words, we want the model to find the individuals who are likely to purchase only after they received a promotion. Our task is to see if the new promotion has a positive impact on customers.</p><p>Instead of implementing a model which tries to find purchasers (attribute “purchase”), we will try this time to find receptive customers (attribute “receptive”).</p><p>After splitting the data into a training and a test datasets (ratio 2.5:1), from 3 different classifier models, the GradientBoostingClassifier outperforms the LinearSVC and LogisticRegression, after a research of optimal hyperparameters via GridSearchCV:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3gt6A0Zsf7WEsTr7Ki0CNA.png" /><figcaption>Fig 13 — Results from the trained models</figcaption></figure><p>Compared to the two models approach, the Recall is higher (+0.43) but the Specificity lower (-0.25).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/431/1*1149a_frxMMQpVd1DFEFXg.png" /><figcaption>Fig 14 — Confusion matrix</figcaption></figure><p>99 customers over the 214 were correctly detected as real receptives (115 not detected). However, 6758 were wrongly classified. In overall, the classification works quite good, which is explained by the balanced accuracy of 0.59.</p><p>This unique model approach outperforms Starbucks’ strategy with:</p><ul><li>an <strong>IRR of 2.0%.</strong></li><li>a <strong>NIR of $296</strong>.</li></ul><p>The assigning of this “receptive” label to some users might have been luck but overall results are very optimistic.</p><h3>Conclusion</h3><p>After having prepared the data, we have proved that we had enough data to come up with qualitative analysis. We have also handled its imbalanced propriety and we have trained models based on two different approaches.</p><p>The simplest approach showed optimistic results, and even did better than the Starbuck’s model. We definitely reached our fixed target and our model predicted profiles of receptive customers. On the other hand, the complexity of the Two Model Approach, combined with its sensitiveness regarding the cut-off, could not work.</p><p>The biggest challenge was to handle the imbalanced data. It is true that SMOTE helped us to overcome this issue but it has also disadvantages; while generating synthetic examples, SMOTE does not take into consideration neighboring examples can be from other classes. This can increase the overlapping of classes and can introduce additional noise. And as found before, the decision limit between our two classes is not so clearly defined, therefore it might have biased our results.</p><p>However, many other approaches could have been checked too. For instance, taking back the one model approach but without assigning the receptive label and predicting purchasers. More hyperparameters from the GradientBoostingClassifier algorithm could have been trained thanks to GridSearchCV, or simply comparing these results to other classifier algorithms.</p><p>For more detailed information, the project is available <a href="https://github.com/Adlef/Starbucks">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*krGouUCfjedlXpm2.jpg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=741f2a591ab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[May the New Year bring YOU Happiness!]]></title>
            <link>https://adlef01.medium.com/may-the-new-year-bring-you-happiness-1436eff46ccf?source=rss-4388afd163f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/1436eff46ccf</guid>
            <category><![CDATA[world]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[happiness]]></category>
            <category><![CDATA[analysis]]></category>
            <dc:creator><![CDATA[Adlef]]></dc:creator>
            <pubDate>Wed, 26 Aug 2020 17:38:08 GMT</pubDate>
            <atom:updated>2020-08-27T10:30:26.282Z</atom:updated>
            <content:encoded><![CDATA[<h4>A data based approach using World Happiness Reports from 2015 until 2019.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*rx8WZqGrH1epE_uwB-Gczg.jpeg" /><figcaption>The Simpsons — The Happy World</figcaption></figure><h4>Introduction</h4><p>Once a year comes a survey about the global happiness, the World Happiness Report. It ranks 156 countries by how their citizens <br>perceive themselves to be, thanks to a referenced value called ‘<strong>Happiness Score</strong>’.<br>This index is being defined as a ‘Life Ladder’, with steps numbered from 0 at the bottom to 10 at the top. The top of the ladder<br>represents the best possible life for you. It is simply calculated by averaging the answers to a single number.</p><p>In addition, the authors have found a number of key factors that could likely explain the variance in happiness:</p><ul><li>the <strong>Gross Domestic Product (GDP)</strong> — the value of all the goods and services a country produced on a yearly basis.</li><li>the <strong>Social Support</strong> — an average of all answers ‘yes’ / ‘no’ to this question: <br><em>“If you were in trouble, do you have relatives or friends you can count on to help you whenever you need them, or not?”</em></li><li>the <strong>Healthy Life Expectancy</strong> — calculated by the WHO based on over 100 different health factors.</li><li>the <strong>Freedom to make Life Choices </strong>— an average of all answers ‘yes’ / ‘no’ to this question: <br><em>“Are you satisfied or dissatisfied with your freedom to choose what you do with your life?”</em></li><li>the <strong>Generosity </strong>— an average of all answers ‘yes’ / ‘no’ to this question:<br><em>“Have you donated money to a charity in the past month?”</em></li><li>the <strong>Perceptions of Corruption </strong>— an average of all answers ‘yes’ / ‘no’ to these questions:<br><em>“Is corruption widespread throughout the government or not?”<br>“Is corruption widespread within businesses or not?”</em></li></ul><p>I was interested in collecting the data from Kaggle available from 2015 until 2019 to answer the following questions:</p><ul><li><em>from the different key factors , which ones are the most correlated to the ‘Happiness Index’ ?</em></li><li><em>How are distributed the key factors per region in the World?</em></li><li><em>What are the happiest countries? Is there any change in the top 10 ranking between 2015 and 2019?</em></li></ul><h4>Part 1. The Key Factors and the ‘Happiness Index’</h4><p>As defined above the key factors, I was interested in finding correlations between the key factors and the ‘Happiness Score’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/929/1*DASmv4JM3ihL5aKJLEkmnQ.png" /><figcaption>Figure 1 — Correlation Matrix between Criteria From World Happiness Report</figcaption></figure><p>From the matrix above, I could guess that <strong>the happy countries are also the wealthy countries</strong> because ‘GDP’ and ‘Happiness Score’ are highly positively correlated. <strong>Money buys happiness up to a certain degree</strong>, as it enables development, growth, convenience that could well lead to a higher level of happiness.</p><p>The same logic goes with the ‘GDP’ and ‘Health Life Expectancy’. <strong>The richer the country is, the more developed in healthcare system it is</strong>, which means consequently people live longer and healthier.</p><p>The lack of Social support seems to affect the ‘Happiness Index’ up to a certain level.</p><p>‘Trust’ and ‘Freedom’ are connected. It seems that <strong>the more people are free, the more they trust the government</strong> as it gives them more rights to express themselves.</p><p>On the contrary, it is interesting to notice that <strong>‘Generosity’ is poorly correlated to the ‘Happiness Score’</strong>. I would like to highlight here you are paradoxically happier when you focus on <strong>sharing your own happiness</strong>. In that way, the definition of generosity should be much broader than the basic question stated above. People don’t necessarily have to donate money to charity in order to be generous. Giving money or helping a random stranger on the street are already signs of generosity. Another explanation to the less correlated value could be that <strong>the human being is becoming more and more selfish</strong>, thinking more about satisfying its own needs without supporting the others.</p><h4>Part 2. The Distribution of the Key Factors all around the World</h4><p>After the correlation analyzis, the next step consisted in visualizing the distribution of the Key Factors all around the world:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RQttItMyOcOSdDpZKZQNOQ.png" /><figcaption>Figure 2 — Distribution of The Factors All Around the World</figcaption></figure><p>From the chart above, I could draw some conclusions:</p><ul><li><strong>‘Western Europe’ </strong>and <strong>‘Australia / New Zealand’ </strong>are<strong> the happiest </strong>regions in the world. They are well ranked (if not top 1 and 2) in all criteria.</li><li>They are the most ‘Free’, which confirms the famous statement the ‘<strong>Western Free World</strong>’. Additionnaly, the ‘Trust in Government’ is very high in the ‘Western World’. It is astonished to see that most of the countries of the world do not trust their politics. Indeed, outside the top 3 regions, the average score is below 0.1 in average (0 for ‘No’, 1 for ‘Yes’)! I deduce then here that this is not only a French thing to complain about politics but also a kind of general disapointment feeling of the politics from the world.</li><li>It is interesting to notice <strong>‘Southeastern Asia’</strong> is <strong>the most ‘generous’</strong> region whereas it is ranked 8/10 in ‘Economy’. It could be related to the fact according to their religions (for instance Buddhism or Islam), people should give a part of their income to their gods or poor people whatever the income they earn.</li><li>The <strong>‘Life Expectancy’ in ‘North America’</strong> (the richest region) is lower than ‘Western Countries’ or ‘Australia / New Zealand’. It could be explained by the fact <strong>in the US the social care is private and costly</strong>. This is not accessible to everyone compared to Europe for instance. <strong>‘Eastern Asia’</strong> is reputed to care about the <strong>quality of their food</strong>. Besides, some countries are not completely industrialized compared to the ‘Western World’ (<strong>less polluted</strong> then).</li><li>Unfortunately, Sub-Saharan Africa shows problems in all domains, especially ‘GDP’. Increasing its value will definitively help to improve all other domains.</li></ul><h4>Part 3. The Happiest Countries</h4><p>To finish with, I was interesting in checking what the happiest countries are, and if there was any change in the top 10 ranking from 2015 to 2019.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*LJRpVJE5NrGqXRXB16v1BQ.png" /><figcaption>Figure 3 — Evolution of the Ranking For The top 9 Countries Between 2015 and 2019</figcaption></figure><p>From Part 2, I would expect that most of the top countries are from ‘Western Europe’.</p><p>Indeed, it was not surprising to see that eight of them were from this region.</p><p>The top 9 countries, which stayed in the top 10, are: <strong>Switzerland, Iceland, Denmark, Norway, Canada, Finland, Netherlands, Sweden and New Zealand.</strong></p><p>I added to the plot the ‘Average Country’ in order to see how high in the ranking are these countries.</p><p>Finland shows above the best growth from the whole top 9 ranking, going from rank 6 in 2015 to rank 1 in 2018 (keeping its position since).</p><p>I decided then to plot the Stacked Scores in all the features, along with the rank of the country (over 156).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OCcTXbx-rFTR2yZnxWPBKw.png" /><figcaption>Figure 4 — Stacked Scores For Top Countries in Happiness</figcaption></figure><p>From the <strong>main Key Factors</strong> which are highly correlated to the ‘Happiness Score’, <strong>these countries are in the top 20</strong>. Despite an indisputable economic power, they do not belong to the most ‘generous’ countries. It confirms one more time the fact <strong>our society is heading towards a more self-centered development</strong>.</p><h4>Conclusion</h4><p>That concludes this brief introduction to the World Happiness Reports analyzis.</p><p>Together, we have learned:</p><ul><li>the Definition of the main Key Factors and how much they impact the ‘Happiness Score’.</li></ul><p><strong>‘Economy’, ‘Health Life Expectancy’ and ‘Social support’ play a major role</strong> in guessing the ‘Happiness Index’. You might then think that a Regression Linear Model would be enough to predict the ‘Happiness Score’ for the coming years. Unfortunately, it has been proved in social studies that there’s always <strong>a big factor of uncertainty regarding Happiness </strong>and unlike other genres of science, the results simply can never be 100% explained. That’s because our daily feeling of happiness is dependent on an endless list of (unexpected) factors, most of which are emotional and/or unmeasurable. For instance, the whole situation around COVID-19 is a capital factor in faking results for the year 2020.</p><ul><li>The Distribution of the Key Factors all around the world.</li></ul><p>Without any surprise, the “<strong>Western Industrialized World</strong>” is <strong>dominating all domains</strong>. We got the confirmation of the <strong>gravity of the situation of Sub-Saharan Africa</strong>, showing unfortunately problems in all domains.</p><ul><li>The Happiest Countries</li></ul><p>Most of them are from <strong>‘Western Europe’</strong> and they consolidate their positions in all domains for already many years.</p><p>Last but not least, it could have been interesting too, in predicting the next countries with the highest potential to see their economy or social support improving. But with the COVID-19 situation, the world economy has been damaged and therefore Learning Algorithms might not work here as many other factors play a role…</p><p>Let’s then close with wise words as Dalai Lama said:</p><blockquote>“A happy mind is a healthy mind, and a healthy mind is good for the body.”</blockquote><p>Stay healthy and happy!</p><p>To see more about this analysis, see the link to my Github available <a href="https://github.com/Adlef/WorldHappiness">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1436eff46ccf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is the Wine Industry definitely Established?]]></title>
            <link>https://adlef01.medium.com/is-the-wine-industry-definitely-established-7f779d078251?source=rss-4388afd163f7------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f779d078251</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[wine]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Adlef]]></dc:creator>
            <pubDate>Tue, 18 Aug 2020 19:41:29 GMT</pubDate>
            <atom:updated>2020-08-19T14:27:48.810Z</atom:updated>
            <content:encoded><![CDATA[<h4>A data based approach using Wine Reviews from WineMag data from 2017.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*q6LQFkOdXCX9SZkJ2CHSEw.jpeg" /><figcaption>Photo credit: <a href="http://choosewashingtonstate.com/">http://choosewashingtonstate.com</a></figcaption></figure><h4>Introduction</h4><p>The Wine industry is already a well and known established sector. You might have heard that France, Italy, Spain and essentially Europe dominate the market. My recent interest for the Wine Industry combined with my passion of analyzing data gave me the opportunity to ask myself the following question:</p><blockquote>What if new countries could emerge in the top ranking?</blockquote><p>Therefore, I used wine reviews to take a closer look at this question. My data covers more than 100 000 wines through many points, including its score (given by reviewers), its price and its country.</p><h3>Part I. What are the top wine countries?</h3><p>First of all, I wanted to confirm if the statement above is true by observing the top wine countries in points given by reviewers.</p><p>My first expectation would be to see on top of the ranking the classic European countries. In order to not bias the results, only countries with a minimum of entries were considered.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FVimXB8lgxD3uSWvkeD_Mw.png" /><figcaption>Figure 1 — The top 10 countries in points</figcaption></figure><p>Surprisingly, <strong>England </strong>leads the ranking, followed by <strong>Austria</strong>. As the first one is not reputed to be a wine country, I would have expected for instance France to be higher in position (currently ranked 6). Nevertheless, <strong>England</strong>’s numbers of reviews is largely less than the other ones, which could bias the results too. Less entries could also mean less varieties offered by the country itself, showing a strategy <strong>more focus on specialized wines</strong>, which would mean consequently <strong>more expensive bottles.</strong></p><p>Established countries in the Wine domain such as France, Italy, Germany, Austria show higher standard deviations in the price and in points. It could be explained by the fact these countries offer a larger varieties of different wines, from good ones to less good ones (I won’t say bad as the minimum in score given is 80/100), but also because there are more entries (more concise results). They act differently than England.</p><p>From the analysis above, I could figure out that countries, which don’t have a rich land such as France, have still a chance to be ranked in top, as England.</p><h3>Part II. Which countries show the most potential to be top rankers?</h3><p>In the chart below, I was interested in finding the top potential countries from the domain, by defining a ‘quality’ variable. It equals to ‘points’ divided by the ‘price’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sAbezY4f3VRensi2lea3Og.png" /><figcaption>Figure 2— The top 10 countries in potential</figcaption></figure><p>The 4 top countries are from the <strong>balkans</strong>. They clearly show a big potential for investors. This is explained by the fact their bottle of wines are still extraordinary cheap today. But honestly, for a wine with a nearly low grade of 82/100, it is extraordinary a good choice!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*tA54cpmfSMKEWKw_8X6scA.png" /><figcaption>Figure 3 — ranking of the countries in points</figcaption></figure><p>Unfortunately for <strong>Ukraine, Romania and Moldova, </strong>they are also<strong> in the top 10 worst countries in points…</strong></p><p>Finally, only 2 countries deserve to be noticed here; these are <strong>Bulgaria </strong>(ranked 15/31 in points) and <strong>Portugal </strong>(12/31).</p><p>Our initial hypothesis will go with <strong>them as top 2 potential countries to raise up in the Wine Industry</strong>. Additionnal research in the data helped me to find out that <strong>Portugal </strong>had largely more entries than Bulgaria. It confirmed me this country would be <strong>a more confident and established potential than Bulgaria </strong>(who knows with more data…)</p><h3>Part III. What should be the next steps for the high potential countries?</h3><p>According to my analysis from figure 1, there should be 2 possible approaches.</p><ol><li>The potential country stays focus on a particular variety of wine. Like England, it must enlight the whole potential of it. It goes with the specialization strategy.</li><li>It makes a lot of different varieties of wines. These must be based on the the specificity of the land. The wines will be of good quality, but they won’t be the “perfect” ones. The country tries to copy known established countries, opening also its range of choices.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WQo7vJ9rh6fsA3vIIbR3mg.png" /><figcaption>Figure 4 — varieties of wines</figcaption></figure><p><strong>Portugal is ranked 3 in mastering its type of wine </strong>from the whole list of varieties. It means:</p><ul><li>either its wines are so specific to its land that they can’t be copied and they are consequently unique.</li><li>It seems to be a rich land which <strong>offers numerous different wines of outstanding quality</strong>.</li></ul><p>Regarding <strong>Bulgaria</strong>, it doesn’t offer many varieties of wines but from figure 1 it has been found that they are of <strong>really good qualities</strong>. <strong>Bulgaria doesn’t show any specific wine yet</strong>. Reasons could be either because the Wine Industry is not yet fully developed compared to Portugal or the land is not as rich as a classic top ranked European country. A deeper investigation about the proposed earth could be interesting.</p><h4>Conclusion</h4><p>I wrote this article in 2020 whereas the data is from 2017. 3 years happened since the data is out, some of the previous analyzes might have changed.</p><ol><li>The data comes from an American website. It would have been better to gather data from experts all around the world. The data might be then biased and statements might be limited only to the American population.</li><li>The reputed and known countries in Wine Industry don’t lead any more the top ranking. This seems to be led by countries which are specialized in specific wines.</li><li>Bulgaria and Portugal show high potential to join the top ranking. <strong>Portugal </strong>is more known, confirmed by more entries in the dataset, and by the price of its bottles. Bulgaria has less entries, but has a raw value of quality higher than the first one and cheaper bottles. It doesn’t seem to have today particular varieties of wines compared to Portugal. It could be a good idea for investors to try to settle a wine company in <strong>Bulgaria</strong>.</li></ol><p>As the statements written above are observational, why don’t you go to visit one of these potential countries and make a wine tasting there to check by yourself?</p><p>To see more about this analysis, see the link to my Github available <a href="https://github.com/Adlef/WineAnalysis">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f779d078251" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>