<?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 Sunpark on Medium]]></title>
        <description><![CDATA[Stories by Sunpark on Medium]]></description>
        <link>https://medium.com/@sunpark9226?source=rss-796d1c43feea------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*A_4RzPdJff0upgNIR-obgA@2x.jpeg</url>
            <title>Stories by Sunpark on Medium</title>
            <link>https://medium.com/@sunpark9226?source=rss-796d1c43feea------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 13:59:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sunpark9226/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[Finding Untapped Potential in Undervalued Soccer Players]]></title>
            <link>https://medium.com/data-science/finding-untapped-potential-in-undervalued-soccer-players-8de0f6e54263?source=rss-796d1c43feea------2</link>
            <guid isPermaLink="false">https://medium.com/p/8de0f6e54263</guid>
            <category><![CDATA[sports]]></category>
            <category><![CDATA[linear-regression]]></category>
            <category><![CDATA[sports-journalism]]></category>
            <category><![CDATA[soccer]]></category>
            <category><![CDATA[data-analysis]]></category>
            <dc:creator><![CDATA[Sunpark]]></dc:creator>
            <pubDate>Wed, 10 Feb 2021 00:15:17 GMT</pubDate>
            <atom:updated>2021-02-10T15:56:34.090Z</atom:updated>
            <content:encoded><![CDATA[<h4>World-class soccer players receive enormous salaries.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*s6dMwirweYYrL_GW" /><figcaption>Photo by <a href="https://unsplash.com/@viennachanges?utm_source=medium&amp;utm_medium=referral">Vienna Reyes</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Unsurprisingly, world-class soccer players receive enormous salaries.</p><p>According to the US economic journal <a href="https://www.forbes.com/sites/christinasettimi/2020/09/14/the-worlds-highest-paid-soccer-players-2020-messi-wins-mbappe-rises/?sh=c12b641cff04">Forbes</a>, Argentina’s <strong>Lionel Messi</strong> (Barcelona) ranked first on the World’s Highest-Paid Soccer Players in 2020 with $126 million. I used statistical elements from the FIFA Dataset to explore how these elements affect a player’s wage. I got the FIFA dataset from <a href="https://www.kaggle.com/bryanb/fifa-player-stats-database?select=FIFA21_official_data.csv">Kaggle</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/367/0*NtL4gTIS6nr7KTC0" /><figcaption>The FIFA dataset from <a href="https://www.kaggle.com/bryanb/fifa-player-stats-database?select=FIFA21_official_data.csv">Kaggle</a></figcaption></figure><p>Then I analyzed the players who are undervalued compared with their ability (receiving low wages compared with their ability).</p><h4>In other words, <strong>the goals of this analysis</strong> were</h4><ol><li>Predicting 2021 wage based on the players’ 2020 feature data and modeling how well it matches the actual 2021 wage</li><li>Predicting Future Soccer Stars who are currently undervalued compared with their feature elements.</li></ol><h3><strong>[Goal #1 — Predicting 2021 wage based on the players’ 2020 feature data and modeling how well it matches the actual 2021 wage]</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xgF-WB1tn48GIwDn" /><figcaption>Photo by <a href="https://unsplash.com/@siora18?utm_source=medium&amp;utm_medium=referral">Siora Photography</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4><strong>Data Cleansing</strong></h4><p>There were 65 features, but I deleted features which have ‘object’ type and ‘Marking’ column(due to a large number of null values).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*lgOAWEN-vfzGxIYj" /></figure><p>For removing ‘€’, ‘K’, ‘M’ from the Wage and Value columns, I created a few functions to cleanse words like below. This function also changed the Wage and Value columns’ type as float, and then multiplied 1,000,000 instead of ‘M’, and 1,000 instead of ‘K’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/0*3iLr9z-gazN2Z2np" /><figcaption>Functions for removing strings and converting string data as numeric data</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/0*To_tahShBzEu1x8y" /><figcaption>Cleaned Data with created functions (11,779 rows and 47 columns)</figcaption></figure><p>Then, I visualized information about Wage_2021(€), which is the target for prediction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/338/0*cAWRYIA0pe4uOFsH" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/0*QCY8Jkt4ysC0-Q6J" /><figcaption>Histogram and Boxplot</figcaption></figure><p>It seems like there are <strong>so many outliers</strong> because famous star players receive enormous wages.</p><p>Among the features, I dropped ‘ID’ and ‘Name’ columns to pick only numeric data, and created histograms for each feature for visualization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/0*nmroQbndnoV3LjPP" /><figcaption>Histograms for each feature</figcaption></figure><p>From histograms, I realized those features are not scaled. All features should be normalized to fit at the same units.</p><p>I used <strong>StandardScaler() </strong>from <strong>Scikit-learn library</strong>.</p><p>First, since I used original values to predict wage, ‘Wage_2021(€)’ should be excluded from normalization.</p><p>I set <strong>w2020_21_picher.drop([‘Wage_2021(€)’], axis = 1) as X</strong> to use all features except Wage_2021(€), and then used StandardScaler().fit_transform() to normalize all features.</p><p>After this work, all scaled features were combined with the original value of ‘Wage_2021(€)’ by pd.concat function. Lastly, I set <strong>Wage_2021(€) as y</strong> for Linear Regression.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*btK9xeMskOkD2wRR" /></figure><p>All features were being normalized like below. (y : Wage_2021(€))</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*jHKnhnEXDfpMzbyP" /><figcaption>Data Frame ‘picher_df’</figcaption></figure><h4><strong>Linear Regression</strong></h4><p>For Linear Regression, I divided data into training and test datasets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*VYD6WRHdZqprgfm4" /></figure><p>For evaluating this Regression Model, <strong>R2 Score and RMSE Score </strong>were used.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/0*MVSd0wxfKv-RVr7a" /><figcaption>R2 Score and RMSE Score</figcaption></figure><p>Then, I trained and output the regression coefficients. After printing the regression coefficients, I wondered which of the 45 features are the most influential features, so I performed a regression analysis with statsmodel library. I visualized the results like below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/605/0*zEPnmMss37mO7fZv" /></figure><p>Then I created a heatmap to correlation analysis.</p><p>First, I computed the correlation coefficient matrix between the features and generated a heatmap with calculated values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/759/0*_z_7s4mnHPg-g0z7" /><figcaption>Heatmap — the correlation coefficient matrix</figcaption></figure><p>I checked the multicollinearity of the coefficients as a way to improve the regression prediction performance.</p><p>In general, if the VIF coefficient exceeds 10-15, it means that a multicollinearity problem has occurred.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/272/0*vV8jdBx-0Ae-rqrP" /><figcaption>VIF coefficient</figcaption></figure><p>Based on the result, I picked</p><p><strong>[‘Weak Foot’, ‘International Reputation’, ‘Skill Moves’, ‘Wage_2020(€)’, ‘Composure’, ‘Value_2020(€)’, ‘Age’, ‘Potential’, ‘Best Overall Rating’ and ‘Overall’] </strong>as effective features.</p><p>From scores of the VIF Factor, it seemed like the multicollinearity problem had been occurred in Best Overall Rating(99.64) and Overall(102.49).</p><p>I had to delete either ‘Best Overall Rating’ or ‘Overall’ to solve the multicollinearity problem,</p><p>When I calculated multicollinearity of the coefficients once again after removing ‘Overall’, the other one(‘Best Overall Rating’) was changed from 99.64 to 7.73.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/317/0*wyM0xoPaA0D81ZrD" /><figcaption>‘Best Overall Rating’ was changed from (99.64) to (7.73)</figcaption></figure><p>After this work, I reset X with selected features.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/0*As99ProAwLknOAAQ" /></figure><p>Then evaluated the Regression Model with <strong>R2 Score and RMSE Score</strong> one more time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*bNpQkC8-a0DeG_pm" /><figcaption>R2 Score and RMSE Score with selected VIF coefficient</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*1QYm2OxJOk8xUG07" /><figcaption>Comparison of the first scores with the second scores</figcaption></figure><h4><strong>Visualization</strong></h4><p>With X with selected features ([‘Weak Foot’, ‘International Reputation’, ‘Skill Moves’, ‘Wage_2020(€)’, ‘Composure’, ‘Value_2020(€)’, ‘Age’, ‘Potential’,’Best Overall Rating’]),</p><p>I predicted wages for 2021 by using<strong> predict_2021_wage = lr.predict(X). </strong>Then combined ‘predict_2021_wage’ and ‘Wage_2021(€)’ with picher_df .</p><p>After concatenating Data Frames, I renamed columns <strong>‘y’ as ‘real_wage_2021’,</strong> <strong>‘Wage_2020(€)’ as ‘real_wage_2020’</strong>.</p><p>And analyzed only players whose wage has changed after renewing the contract.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*w7AiMw9KbVu6NKcc" /></figure><h4><strong>result_df:</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/0*zWhOqs_icK48eMfH" /></figure><h4>Visualization of result_df:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/0*ddteB0A8KXnpnvvP" /><figcaption>Visualization with Matplotlib</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/1*HUbBfSHeU_Li8BRGbxzT7w.png" /><figcaption>Visualization with DataRobot</figcaption></figure><h3><strong>[Goal #2 — Predicting Future Soccer Stars who are currently undervalued compared with their feature elements.]</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AuDihY7fCPTnEY_E" /><figcaption>Photo by <a href="https://unsplash.com/@yirage?utm_source=medium&amp;utm_medium=referral">Andriyko Podilnyk</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>For figuring out players who are young and have good physical condition based on their stats but undervalued (currently receive low wages so will benefit the club), I reloaded the dataset and used selected columns from the multicollinearity of the coefficients. For the goalkeeper’s dataset, I added [‘GKDiving’, ‘GKHandling’, ‘GKKicking’, ‘GKPositioning’, ‘GKReflexes’] columns which are especially given for goalkeepers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*rTOh9xLAJtBJpgAu" /></figure><p>I used <strong>75%</strong> for the value for conditions to figure out undervalued players.</p><p><strong>For Age, I used 25% for the value as standard instead of 75% for the value.</strong> It is because the smaller number the better in Age unlike other stats. Also, I didn’t use Wage and Value columns since Wage and Value should be evaluated after other features are set with decided standard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/757/0*9T5oRzgDtOzro885" /><figcaption>Describe function for generating descriptive statistic data</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/0*biOLFsa40Bp-hon8" /><figcaption>Use 25% for Age / 75% for other features</figcaption></figure><p>With all conditions above, there are 92 results for players and 8 results for goalkeeper players.</p><p>I sorted the results by <strong>Wage_2021(€</strong>) column in ascending order.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/0*kMuN15wmSoVk3HqF" /><figcaption>92 Undervalued Players</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/0*qX8HLYm7xZg-_pQw" /><figcaption>8 Undervalued Goalkeeper Players</figcaption></figure><p>From the results, I figured out 92 players and 8 goalkeeper players are undervalued compared with their abilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rGodRC8nAfsDBaqy" /><figcaption>Photo by <a href="https://unsplash.com/@mahdi17?utm_source=medium&amp;utm_medium=referral">Md Mahdi</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Conclusion</h3><p>In conclusion, there are more than 50 statistical features about soccer players from Kaggle dataset. Using linear regression model to predict soccer player’s future wage based on the dataset shows pretty high scores in evaluation.</p><p>In addition, VIF coefficient helps to pick most usable features. Based on these specific features, figuring out top 25% data with describe function can figure out undervalued players compared with their abilities.</p><p>Based on the results, 92 players including N. Zaniolo, J. Kluivert, L. Ivanušec, and A. Hložek are undervalued compared with their abilities. 8 goalkeeper players including Pau López, D. Livaković, A. Onana and P. Rajković are undervalued compared with their abilities as well.</p><p>If assuming that these features were objectively evaluated based on real player’s information, these talented young players are the ones to look out for in the transfer market.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8de0f6e54263" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/finding-untapped-potential-in-undervalued-soccer-players-8de0f6e54263">Finding Untapped Potential in Undervalued Soccer Players</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[This Virus Does Not Discriminate Between the Rich and the Poor]]></title>
            <link>https://sunpark9226.medium.com/this-virus-does-not-discriminate-between-the-rich-and-the-poor-7f4e8db85968?source=rss-796d1c43feea------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f4e8db85968</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[tableau]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[covid19]]></category>
            <dc:creator><![CDATA[Sunpark]]></dc:creator>
            <pubDate>Tue, 21 Apr 2020 03:58:05 GMT</pubDate>
            <atom:updated>2020-04-21T15:44:12.504Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*yQzQ1oSH5cO3G7reCp_OKA.png" /><figcaption>U.S. COVID-19 Cases Map (created by writer) with the <a href="https://github.com/nytimes/covid-19-data">NYT</a> dataset</figcaption></figure><p>The spread of new coronavirus (COVID-19) infections in the United States is serious.</p><p>The United States has emerged as the world’s best COVID-19 battlefield, with more than 20,000 confirmed patients a day.</p><p>However, even before COVID-19 launched a pandemic in the United States, experts already predicted that it could be the most vulnerable in the United States among developed countries. They have argued that the United States is more vulnerable to COVID-19 than any other developed country because of about 560,000 homeless people and about 30 million people who don’t have medical insurance.</p><p>Between the States which have a severe number of confirmed cases, New York has the most infected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*pWMVoognjJ1YKPUw3eGo7g.png" /><figcaption>Confirmed Cases Data by April 18</figcaption></figure><p>As a result, state governments have implemented a New York State containment policy. South Carolina, Florida, West Virginia, Texas, Maryland, Massachusetts, and Rhode Island states are mandating 14 days of quarantine to visitors from New York State.</p><p>However, the interesting point is that while New York has the highest number of confirmed cases, this state does not have the highest mortality rates.</p><p>It should be noted that New York has a relatively low mortality rate compared to the largest number of confirmed cases.</p><h4>Instead of New York, Northern Mariana Islands is ranked as first for mortality rates</h4><p>Of course, depending on how many people have a healthy immune system, the results may vary. In addition, data of confirmed cases in Northern Mariana Islands may not be sufficient — Northern Mariana Islands is not included in Top 20 States for COVID-19 Cases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/888/1*WbYeqhV4mWXciJRjm2gDOg.png" /><figcaption>Northern Mariana Islands (NMI) is not included in Top 20 States for COVID-19 Cases</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*FynhzDySDFF_4mSF5mbmuw.png" /><figcaption>Average of Mortality Rate is 3.00% while NMI:16.13% and NY:4.16%</figcaption></figure><p>The reason for this situation may be that there are more medical personnel and a robust medical system in New York than other regions. In addition, such a system must be equipped so that even in such an emergency, large cities can quickly become controlled.</p><p>However, it does not mean that a larger city with a better economic situation should have a better health system than other regions. Viruses do not discriminate between rich and poor. Particularly in such a pandemic situation, there should be no discrimination in the level of treatment, because caution does not avoid the virus.</p><h4><strong>About 10% of the population without health insurance</strong></h4><p>The high cost of health care in the United States is also cited as the reason the United States is vulnerable to COVID-19.</p><p>Even with insurance, the situation is not much different. In the United States, private insurance is operated by private companies, so the cost for the patient is high. Even if there are suspicious symptoms, the majority of Americans can’t afford to go to the hospital.</p><p>Therefore, the corona crisis could be a starting point for changing the US health care system. In fact, in the early days of the outbreak of COVID-19, there were many citizens who did not go to the hospital because they were burdened with the cost of testing. Even if you have insurance, the cost of getting diagnosed with COVID-19 and receiving treatment is beyond your imagination, and in the United States, where there are many unemployed people due to COVID-19, the cost of medical care will inevitably come as a burden.</p><h4><strong>In China, information concealment has spread the virus, but in the U.S., medical systems that discriminate against people according to economic conditions are spreading the disease. It can lead to a public health crisis across the country.</strong></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f4e8db85968" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Are We, Psychologists?]]></title>
            <link>https://medium.com/data-science/what-are-we-psychologists-e33f82bf263d?source=rss-796d1c43feea------2</link>
            <guid isPermaLink="false">https://medium.com/p/e33f82bf263d</guid>
            <category><![CDATA[sentiment-analysis]]></category>
            <category><![CDATA[data-journalism]]></category>
            <category><![CDATA[movie-review]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Sunpark]]></dc:creator>
            <pubDate>Tue, 11 Feb 2020 04:04:30 GMT</pubDate>
            <atom:updated>2020-02-15T01:36:27.953Z</atom:updated>
            <content:encoded><![CDATA[<h4>Definitely not, but we can mimic them just by inputting movie titles into code</h4><p>Sometimes a sudden idea like “What was the best-selling movie each year since 1990?” pops up when we are looking for things to do. But we don’t want to waste time exploring every separate piece of info such as release dates, popularity, reviews or the average ratings on Google, IMDb, TMDb, or Rotten Tomatoes.</p><p>For hotheads who want to get this info ASAP, I wrote some code to load movie info which can give a quick analysis of its reviews just by inputting the title. FYI, I used TMDb’s API for writing code.</p><h3>Before Scraping a Website</h3><p>You <strong>MUST</strong> examine the site’s ‘robots.txt’ file to determine whether or not the site allows its content to be scraped. To find the robots.txt file for a given web site, type in the base URL and add “/robots.txt”.</p><p>For example, if we wanted to scrape some data from google.com, type in <a href="https://www.google.com/robots.txt">https://www.google.com/robots.txt</a> in the URL box.</p><ul><li>If the robots.txt allows full access the Disallow field will be blank, e.g.:</li></ul><p>User-agent: *</p><p>Disallow:</p><ul><li>If the robots.txt blocks all access, the Disallow field will contain a backslash, e.g.:</li></ul><p>User-agent: *</p><p>Disallow: /</p><ul><li>If the robots.txt allows partial access, the prohibited and allowed sections will be identified with a pair of backslashes, e.g.,:</li></ul><p>User-agent: *</p><p>Disallow: /section/</p><p>Allow: /section/</p><p>For example, I typed <a href="https://www.imdb.com/robots.txt">https://www.imdb.com/robots.txt</a> to check API availability from IMDb, but it seemed to be unavailable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/417/0*T2UoJrIY_e-Tl8Oi" /></figure><p>Luckily, The Movie Database (TMDb) offers open API on their website, so I chose TMDb API in order to write the code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/0*z0Ueqi1Sxd19y1Pq" /></figure><h3><strong>Install All Modules First</strong></h3><p>First, I installed all modules for writing the code including <strong>tmdbsimple module</strong> to use TMDb data. This module is a wrapper for TMDb API.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/452/0*LFXCeURXtaBOmAn2" /><figcaption>Install all modules</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/0*hBfv8U-BY5MIDZXw" /><figcaption>Input the API key (The key is available on TMDb website)</figcaption></figure><h4>Search Movie With Title and Release Date(year)</h4><p>Set <strong>tmdb.Search()</strong> module and then input whatever movie title you want to search.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/0*LEV_itTlMssjYuvA" /><figcaption>Year is optional (you can leave this field blank if you don’t know the exact release date)</figcaption></figure><p>I searched for “<strong>Parasite”</strong> and left the year blank.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/0*Wjb-8dZj6T5tTnmF" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/0*NyLjHSckZ9xYftnM" /><figcaption>The information from the code above after entering ‘<strong>Parasite</strong>’</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/0*938vN5BMI9t6npLJ" /><figcaption>Extract only<strong> title, id, popularity, release date </strong>for readability</figcaption></figure><p>I extracted <strong>title, id, popularity, release date </strong>data and inputted these data into Moive_info list. After that, I converted Movie_info list into Pandas DataFrame.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/494/0*MLXKS1q6Isr0rk-I" /><figcaption>Movie_info in a DataFrame</figcaption></figure><p>Among the data, id is a unique value, so it can distinguish data from the same or similar ones. For example, there are so many titles that contain “parasite” in the table above. Even though these movies were released on different dates, people might be confused if they only have the title information. However, if they have the movie id, it means they have unique information about each movie. Therefore, they can get only the information that they want to get. If they use titles to search movie reviews, the results would be messed up with reviews from other movies that have the same or similar titles.</p><h3><strong>Get TMDb Reviews</strong></h3><p>Since URLs generally contain the id number to create web address for each movie, we need this unique value to get the movie reviews page. For example, I used the id ‘496243’, from the table above, to get the web page of Parasite on TMDb.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/0*nBs1gnyRoF5nIAUA" /></figure><p>After getting the API link, I used <strong>the requests.get module</strong> to request the HTTP. &lt;Response [200]&gt; means it worked well. And then I got a data frame that contains the “Parasite” movie review by parsing the API URL. It seems like there are five reviews for “Parasite” on TMDb.</p><p>After that, I extracted the “results” column which contains the reviews, author, content, and so on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/0*H_zPlOeLNbab--b6" /><figcaption>Among the 4 keys, the actual reviews are contained in ‘content’ key</figcaption></figure><h4>Then I made an empty list and then put ‘content key’ into the ‘reviews’ list</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/0*kLg1MQYJYkbEZqGz" /></figure><p>[output]:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/0*5LBNt8KctDNci8Wn" /></figure><h4>Apply the tokenizer to analyze each word in the reviews</h4><p><strong>Tokenization is a way of text cleaning.</strong> Split a segment of text into smaller sub-segments — Oftentimes, it’s down to the level of individual words, i.e., each distinct word becomes a ‘token’, and all further instances of a word or phrase are assigned the same token value.</p><p>Input reviews into the <strong>word_tokenize module from the NLTK library</strong> to tokenize sentences, and then print the tokens created by the tokenizer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/0*yADA0Jgf3wr1z88i" /></figure><p>[output]:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/0*0q9P0yAilIWWSIbr" /><figcaption>Tokenized sentences</figcaption></figure><h4>Remove Stopwords from Text</h4><p><strong>Stopwords</strong> are commonly occurring words that usually do not convey substantive meaning as a noun or verb. Some examples: ‘a’, ‘an’, ‘the’, ‘and’, ‘or’, etc. Stop words are often discarded / ignored during text mining.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/0*sCIN4_OaMLfXCmju" /><figcaption>Import stopwords</figcaption></figure><p>Get words from the list ‘tokens’ which are not included in English stopwords, and then put the extracted words into the list ‘word_list’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*D_94aiUPks9pBIUA" /></figure><h3>Sentiment Analysis</h3><h4><strong>Afinn Library</strong></h4><p>I used the<strong> Afinn library</strong> which is the emotion analysis library showing positive and negative levels of English words as integers from -5 to +5. When scoring sentences, all the words in the sentence are calculated. This is a really simple library, but it is used most for sentiment analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/0*PpGGQTjVxOfJoROM" /></figure><p>I converted the list form as string by using the <strong>join function</strong>. The join function converts a list to a string containing specific delimiters. After that, put the strings into the Afinn library to get sentiment scores.</p><p>[output]:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/150/0*Q9zuGbvpJwi7HmVy" /></figure><p>As for the results, each review has 7.0, 30.0, 1.0, 26.0, 41.0 as its total scores. For example, the first review has many words from the whole sentences — [‘What, makes, Parasite, satisfying, commits, neither, error, …….. It, Film, Festival, reviews’]. The final score of 7.0 is the sum of the scores of each word.</p><h4><strong>EmoLex Library</strong></h4><p>This time, I tried to analyze the same strings in a different way: Using the <strong>EmoLex library with the NRC dictionary</strong>. The NRC data is available <a href="https://saifmohammad.com/WebPages/NRC-Emotion-Lexicon.htm">here</a> for non-commercial research use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/212/0*LET2AQmG086cwets" /><figcaption>141,820 rows</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/0*9t3e516KV_tAnNFc" /><figcaption>Extract labels which have score 1 (not 0) to evaluate sentiment score</figcaption></figure><p>[output]:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/0*84_j7htfzNi_nCJf" /><figcaption>13,901 rows</figcaption></figure><p>141,820 rows → 13,901 rows — Huge reduction!</p><p>After that, I converted all text to <strong>lower case</strong> for consistency.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/0*JN_ef0SCe4kYcYzG" /><figcaption>Text Cleaning — Convert all text to <strong>lower case</strong></figcaption></figure><p>And then, I matched strings from “Parasite” movie reviews with the emotional texts from the NRC dictionary to get sentiment scores.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/609/0*5TmH19ZyeCHI5k8c" /></figure><p>[output]:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/118/0*1GSdJTSXAN-7-YHN" /></figure><h3><strong>Visualization</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/0*tu7m7ju9cdVEm3pu" /><figcaption>Create a bar chart by using the <strong>plot.bar()</strong> function.</figcaption></figure><p>[output]:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/382/0*QanJMl4XVDg8i8-2" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/0*wCaaEeyJShNRQCTl" /><figcaption>Visualized the same figures in <strong>Tableau</strong> to make it easier for readers</figcaption></figure><h3>Where We’re Headed</h3><p>Now we found the reviews of “Parasite” are <strong>positive</strong> overall. I generated very simple code for emotion analysis, and in the next post I will analyze more reviews through data cleansing and regular expressions.</p><p>In general, the goal of sentiment analysis is to analyze the opinions of news reports, movies, social media postings such as Tweets, Instagram posts, and etc to lead consumers to make rational decisions. For example, the results from analyzing reviews of “Parasite” can make people decide whether they are going to watch this movie.</p><p>Sentiment analysis is a topic that everybody currently wants to talk about since people know that feelings always precede decisions. In other words, an immersion into the sentiment analysis has kicked off with people who want to see contemporary trends easily.</p><p>Analyze sentiment from the topics that you are eager to know more. If you do so, you will get the latest trends about your interests before anyone else.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e33f82bf263d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/what-are-we-psychologists-e33f82bf263d">What Are We, Psychologists?</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[It’s Deep Learning Times: A New Frontier of Data]]></title>
            <link>https://medium.com/data-science/its-deep-learning-times-a-new-frontier-of-data-a1e9ef9fe9a8?source=rss-796d1c43feea------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1e9ef9fe9a8</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-journalism]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Sunpark]]></dc:creator>
            <pubDate>Thu, 05 Dec 2019 16:32:18 GMT</pubDate>
            <atom:updated>2019-12-14T20:23:12.521Z</atom:updated>
            <content:encoded><![CDATA[<h4>Images, Music, Emotion and much more</h4><p>When people hear the phrase, “Deep Learning,” many have only a vague idea of what it really means. Deep Learning is a Machine Learning paradigm that uses an artificial neural network as a learning model.</p><h4>But first, why does it matter?</h4><p>It can help make our lives much easier and convenient.</p><h4>Okay then<strong>, how does it work?</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/453/1*51D0MqtqHu3h2vTE5oJ-7g.png" /><figcaption>Image: <a href="http://uc-r.github.io/">UC Business Analytics R Programming Guide</a></figcaption></figure><p>In an artificial neural network, there are three kinds of layers: the <strong>input layer</strong>, <strong>hidden layer</strong> and <strong>output layer</strong>.</p><p>In the input layer, input vectors x=(x<em>1</em>,x<em>2</em>,…,x<em>p</em>) are provided to a system in order to test that system. In the output layer, final outputs are provided. The hidden layer is located between the input layer and output layer. When the hidden layers are increased, it becomes <em>Deep</em>. Deep Learning is a Machine Learning paradigm that use this <em>Deep</em> artificial neural network as a learning model. Also, Deep Learning is extremely useful because it is an unsupervised machine learning approach which means that it does not need labeled data.</p><p><strong>Because of this technology, we have a wealth of data that can be used for deep learning. Let’s look at some common examples of data.</strong></p><h3>#1: Images</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*rEhoiD4SuqHWiyFcf7HfXA.png" /><figcaption>Image: Justin Freid/Martechtoday</figcaption></figure><p>The way of gaining data from visual information is not really a new thing. Facial recognition technology is the typical example that has already been used for the last decade. Face ID from Apple has made us feel familiar with this technology.</p><p>However, actually, few people realize how much it’s changing. Recognizing visual information has developed with Deep Learning.</p><p><strong>Bloomberg</strong> recently released a new <a href="http://vision.bloomberg.com/">website</a> which can scan anything when people use their webcam or smartphone camera. When I scanned the backside of my iPhone through my webcam, the program recognized Apple’s logo, and then Apple’s stock information popped up including the current stock price, company information, press releases and so on. Now people can get whole data whenever they scan any images through their camera.</p><p><strong>ASAP54</strong>, a fashion app based on Deep Learning, is also a good example of using Deep Learning. This app suggests similar clothes and styles when users take or upload a photo of any clothes they want to find with accumulated input visual values.</p><h3>#2: Music</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8q1prrx1PFpyfWQx" /><figcaption>Photo by <a href="https://unsplash.com/@nataliedivine?utm_source=medium&amp;utm_medium=referral">Natalie Cardona</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Let’s talk about music. A lot of music-related companies are using music as their data.</p><p><strong>The Shazam app</strong> can find information of songs including the title, album, release date, and much more from just tapping a button on the app. When people tap a button while listening to a song that they want to identify, the app analyzes the bit of audio being played and then can figure out what the song is.</p><p>According to <a href="https://medium.com/@treycoopermusic/how-shazam-works-d97135fb4582">Trey Cooper</a>, 8 million songs/audio files had been stored on Shazam by 2018. Also, as more songs (input value) have been added, the accuracy will be increased too.</p><h3>#3: Emotion</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GQQW38rlWzohCdyk" /><figcaption>Photo by <a href="https://unsplash.com/@vmxhu?utm_source=medium&amp;utm_medium=referral">Szabo Viktor</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Recently, the most interesting data type to emerge is <strong><em>emotion</em></strong>. People have analyzed sentimental data to figure out how and why people express their emotions, which can be often obscured by sarcasm, ambiguity in language in comments, reviews, messages or hashtags.</p><p>The Natural Language Tool Kit (NLTK) is commonly used to analyze this kind of data. <a href="https://www.kaggle.com/c/sentiment-analysis-on-movie-reviews/overview">Sentiment Analysis on Movie Reviews</a> from Kaggle is a good example because after analyzing the text of movie reviews, data scientists can draw conclusions on different aspects such as how popular a particular movie is. Right now, emotion has been analyzed by classifying text and a huge amount of text including people’s emotion is enough to be input as data.</p><p>However, now, emotion also can be analyzed in some other different way. People are using emojis in social media conversations, text messages and even making their own emojis to express their sentiment. As more and more youth and adults interact and communicate online with emojis instead of long texts, analyzing emojis has surprisingly become more necessary.</p><p><strong>Canvs ai</strong>, an emotion-analyzing company, introduced a new way along with this trend. They are analyzing people’s emotions by not only text but also emojis today. According to this company, they break emojis down into 56 emotions, and simply not only putting emotions into positive or negative category. It seems that as people continue to use emojis during their online conversation, the accuracy of analyzing their sentiment by using emojis as an input value will be increased.</p><h3><em>What’s the Next Data Set?</em></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sOhIGFeMADNmegaK" /><figcaption>Photo by <a href="https://unsplash.com/@anniespratt?utm_source=medium&amp;utm_medium=referral">Annie Spratt</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In other words, data is not limited to visual images, sounds or texts anymore. Everything can be data these days and can be accumulated to be analyzed. Thus, we can imagine what kind of things can be data in the future.</p><p>One possibility is <strong>smell</strong> being a new form of data. Sometimes, people want to know what they are eating when they inhale the savory aroma of a meal at a restaurant. If smell can be used as data, we can use an app to get food lists which have a similar scent. Recipes and the nearest grocery markets’ information where we can get the ingredients will pop up together. We can check whether the bad odor is a gas leak or just the smell of new carpeting when enough data about the smell has accumulated. Nevertheless, we should look forward to the tremendous changes in how data will be analyzed in the future.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1e9ef9fe9a8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/its-deep-learning-times-a-new-frontier-of-data-a1e9ef9fe9a8">It’s Deep Learning Times: A New Frontier of Data</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Give yourself an edge by becoming a Data Journalist]]></title>
            <link>https://medium.com/data-science/give-yourself-an-edge-by-becoming-a-data-journalist-c19c05c05d0e?source=rss-796d1c43feea------2</link>
            <guid isPermaLink="false">https://medium.com/p/c19c05c05d0e</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[medium]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-journalism]]></category>
            <dc:creator><![CDATA[Sunpark]]></dc:creator>
            <pubDate>Sun, 10 Nov 2019 02:46:39 GMT</pubDate>
            <atom:updated>2019-12-14T20:20:44.754Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fEbLW6yZ76Gy3XP3" /><figcaption>Photo by <a href="https://unsplash.com/@webaroo?utm_source=medium&amp;utm_medium=referral">Web Hosting</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>When you try to search online on how to be a data scientist, a lot of items pop up like the names of popular data science programs such as Data Science, Data Analytics, Business Analytics, and so on. In fact, there’s a deluge of online data science-related courses.</p><p>However, if you’re already working in the media industry and want to further develop your career, it sounds much more fascinating to learn how to be a data journalist.</p><h3>Why I decided to be a Data Journalist</h3><p>I majored in Communication Arts at the University of Wisconsin-Madison. But I couldn’t figure out the problem that plagues most students: What should I do after graduation? <br>There were so many different opportunities to consider and I didn’t know what to choose.</p><h3>#1: Working experience at a tech company in Silicon Valley</h3><p>I worked as a QA specialist in Silicon Valley for a year after graduation, performing software testing across desktop and mobile apps for a Fortune 100 company in Cupertino under an NDA. I gathered data from user experience via a custom bug-tracking software to ensure the quality of the product while collaborating with other testers, producers, and developers. However, I was always eager to get a media-related job even though I loved my job and my amazing colleagues.</p><h3>#2: Couldn’t afford my rent</h3><p>San Francisco is as well-known as a city offering the highest salaries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*UWBOEnP1FjQjo_l_1jW96w.png" /><figcaption>Image: Bloomberg, May 20, 2019</figcaption></figure><p><em>But the highest salaries are only for the </em><strong><em>engineers</em></strong><em>, and the rent is set to the </em><strong><em>engineers’ salaries.<br></em></strong><em>And seriously, it is even more expensive than rent in New York City.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*k6ft7D5nyEWXE1bI2NaufQ.png" /><figcaption>Image: MarketWatch, May 22, 2016</figcaption></figure><p>I couldn’t afford my rent (about $3,500/month for a studio) in the Bay area anymore. At that time, I realized that if I wanted to stay with saving money, I had to find a job related to coding. I also figured out that tech-related jobs increase the chances of staying in the U.S. with high salary.</p><p>Also, my company taught me a bit of programming and they suggested me that I learn another programming language such as <strong>Python, Java or C</strong>. My colleagues who had worked for more than three years were already familiar with at least one programming language. Sometimes, I had to use Terminal when I worked at the company, but it didn’t sound interesting to me at that time.</p><h3>#3: Still want to work with the media, but as a ‘tech-savvy’ journalist</h3><p>That’s why I decided to be a data journalist, who analyzes data with background knowledge about media, makes a chart from analyzed data to show insights via media outlets. I recognized that a lot of tech-related jobs in the U.S. still need more people, and media industry needs the same. So, I decided to study data analytics/data science and visualization.</p><h3>What I Learned From Experts and What I Am Learning Now?</h3><p>I searched for<strong> </strong>data scientists’ profiles on LinkedIn to check what skills I had to learn. I sent messages and questions to famous data scientists, and some of them replied to the questions.<strong> </strong>Also, I could get really helpful information about the field of data science from Medium as well, my favorite one being <a href="https://medium.com/we-are-the-european-journalism-centre/datajournalism-com-where-journalism-meets-data-ea02a3f0d445">Adam Thomas’s article</a> about data-journalism. He introduced such a great link ‘<a href="https://datajournalism.com/">datajournalism.com</a>’ in his article.</p><p>People also shared their experience or tips to get a data scientist job. From their articles, I realized that my expectation (DS = The World’s sexiest job) does not match reality (the real things I have to learn such as Python, SQL, Machine learning and so on). That’s why I am constantly reading about the field. I wholeheartedly recommend <a href="https://towardsdatascience.com/how-to-land-a-data-scientist-job-at-your-dream-company-my-journey-to-airbnb-f6a1e99892e8">Kelly Peng’s article</a> which helped me to develop a strong mindset because this is REALLY important.</p><p>Now I know that I have to learn at least one programming language such as Python, R, SQL and even math such as linear algebra. For visualization, I have to learn Tableau, Pandas or MATLAB/Seaborn. In fact, I am currently learning and using Python, MySQL, Tableau, Pandas and MATLAB. And yes, it has been really hard. But everyone knows that getting started — learning the user interface of the software — is the hardest part. Now, I am getting familiar with using these skills and it’s getting more interesting.</p><p>To newbies who want to start a career in data-related field, I want this article is helpful to you to understand this field. I will keep writing about my experience, projects and thoughts about the data-science.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c19c05c05d0e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/give-yourself-an-edge-by-becoming-a-data-journalist-c19c05c05d0e">Give yourself an edge by becoming a Data Journalist</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>