<?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 Hobeom Aaron Lee on Medium]]></title>
        <description><![CDATA[Stories by Hobeom Aaron Lee on Medium]]></description>
        <link>https://medium.com/@hobeom5263?source=rss-7a83a11d1c53------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*OzYZPKrxFQg-DfIx_MDS5A.jpeg</url>
            <title>Stories by Hobeom Aaron Lee on Medium</title>
            <link>https://medium.com/@hobeom5263?source=rss-7a83a11d1c53------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 19:02:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hobeom5263/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[Transportation Optimization using Python “PuLP”]]></title>
            <link>https://hobeom5263.medium.com/transportation-optimization-using-python-pulp-a3eb73edef27?source=rss-7a83a11d1c53------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3eb73edef27</guid>
            <category><![CDATA[optimization]]></category>
            <category><![CDATA[logistics]]></category>
            <category><![CDATA[linear-programming]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[supply-chain-management]]></category>
            <dc:creator><![CDATA[Hobeom Aaron Lee]]></dc:creator>
            <pubDate>Tue, 12 Sep 2023 23:41:48 GMT</pubDate>
            <atom:updated>2023-09-12T23:41:48.929Z</atom:updated>
            <content:encoded><![CDATA[<p>Co-Authored by <a href="https://medium.com/u/d39252ab80">Hoon Bae</a>, <a href="https://medium.com/u/11dc7c20f505">April Hyeonjin Kim</a>, <a href="https://medium.com/u/8acc1fc78d64">Kwang Rok Shon</a>, <a href="https://medium.com/u/b621b55d5a84">Yeeun Kim</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/0*b3Na_e-eezi9xP2w.jpg" /></figure><h3><strong>Introduction</strong></h3><p>Linear Programming (LP) is a widely-used technique in the fields of Supply Chain and Logistics to streamline transportation processes. LP can help in determining the most cost-effective way to meet customer demand while adhering to supply constraints, thus minimizing total operational costs.</p><p>In this case study, I will employ the PuLP library to identify the most efficient transportation strategy for Q Cells, a market leader in solar panel manufacturing.</p><h4>What is PuLP?</h4><p>The PuLP is a Python library that provides a clean interface for defining and solving linear programming problems.</p><p><strong>* Tools / Libraries</strong>: Python / PuLP</p><p><strong>* Dataset</strong>: Self-made (By writer)</p><p><strong>* Analysis Performed</strong>: Linear Programming</p><h3><strong>Background</strong></h3><p>Assuming that Q Cells is in the process of optimizing its logistics operations, here are the key details about its current situation:</p><p>1) Q Cells operates three warehouses located in Atlanta, New Jersey, and Arizona, with inventory levels of 2075, 1500, and 1000 modules, respectively.</p><p>2) The solar module market is segmented into four geographic regions: East, West, North, and South. The respective demand for solar modules in these regions is as follows: East (1,380), West (1,815), North (920), and South (460).</p><p>3) Q Cells’ logistics analyst has estimated the anticipated shipping costs from each warehouse to those four regional markets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*RqgjHTNs-0joOI4_060-dg.png" /></figure><h3><strong>PuLP Modeling</strong></h3><p><strong>[STEP 01] Module Importation and Problem Initialization</strong></p><p>In this project, our objective is to minimize transportation expenses.</p><pre># Import Module<br>from pulp import *<br><br># Initialize Model<br>qcells_model = LpProblem(&quot;Q Cells Distribution Problem&quot;, LpMinimize)</pre><p><strong>[STEP 02] Variable Definitions</strong></p><pre># Define Objective Function<br>qcells_model += lpSum([logistics[i, r] * costs[(i, r)] for r in region for i in warehouse])</pre><p><strong>[STEP 03] Decision Variable Declaration</strong></p><pre># Decision Variable<br>logistics = LpVariable.dicts(&#39;L&#39;, [(i, r) for i in warehouse for r in region], lowBound=0)<br>print(logistics)<br><br>region = [&quot;East&quot;, &quot;West&quot;, &quot;North&quot;, &quot;South&quot;]<br>demand = [1380, 1815, 920, 460]<br>regional_demand = dict(zip(region, demand))<br>warehouse = [&quot;GA&quot;, &quot;NJ&quot;, &quot;AZ&quot;]<br>supply = [2075, 1500, 1000]<br>warehouse_inventory = dict(zip(warehouse, supply))<br>costs = {(&quot;GA&quot;, &quot;East&quot;): 85, (&quot;GA&quot;, &quot;West&quot;): 65, (&quot;GA&quot;, &quot;North&quot;): 45, (&quot;GA&quot;, &quot;South&quot;): 20,<br>         (&quot;NJ&quot;, &quot;East&quot;): 35, (&quot;NJ&quot;, &quot;West&quot;): 120, (&quot;NJ&quot;, &quot;North&quot;): 35, (&quot;NJ&quot;, &quot;South&quot;): 75,<br>         (&quot;AZ&quot;, &quot;East&quot;): 110, (&quot;AZ&quot;, &quot;West&quot;): 55, (&quot;AZ&quot;, &quot;North&quot;): 50, (&quot;AZ&quot;, &quot;South&quot;): 50}</pre><ul><li>name: Prefix for each LP variable.</li><li>indices: List containing the keys for the dictionary of LP variables.</li><li>lowBound: The minimum permissible value for the variable.</li><li>upBound: The maximum permissible value for the variable.</li><li>cat: Specifies the nature of the variable. It can be ‘Integer’, ‘Binary’, or ‘Continuous’ (which is the default).</li></ul><p>To generate a dictionary of LpVariable objects, the LpVariable.dict() function is utilized.</p><p><strong>[STEP 04] Objective Function Definition</strong></p><pre># Define Objective Function<br>qcells_model += lpSum([logistics[i, r] * costs[(i, r)] for r in region for i in warehouse])</pre><p>The lpSum() function is instrumental in defining objective functions or constraints that require summation over multiple terms. For this project, the outcome of lpSum() represents the cumulative logistics expenses.</p><p><strong>[STEP 05] Constraints</strong></p><pre># Constraint 01<br>for i in warehouse:<br>    qcells_model += lpSum([logistics[(i, r)] for r in region]) == warehouse_inventory[i]<br># Constraint 02<br>for r in region:<br>    qcells_model += lpSum([logistics[(i, r)] for i in warehouse]) == regional_demand[r]</pre><p><strong>[STEP 06] Solution</strong></p><pre>qcells_model.solve()<br>print(LpStatus[qcells_model.status])<br><br>for v in qcells_model.variables():<br>    print(v.name, &quot;=&quot;, v.varValue)<br><br>print(qcells_model.objective.value())<br># 205675.0</pre><p>The solution of this model is as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*xJ9v0ii1mjyjit_KqOTUPw.png" /></figure><p>The Optimized Value (Expense) is “$205,675.”</p><h3>Closing</h3><p>This is a simplified version of real-world business scenarios, and the true case encompasses a broader spectrum of constraints. We’ve crafted this article for our personal learning, but we hope it offers some value to those delving into Python “PuLP” module.</p><ul><li>For our study of this case, we referred to <a href="https://medium.com/u/a094f38419eb">Rihot Gusron</a>’s article. (<a href="https://medium.com/@rihot_gusron/solving-transportation-problems-in-excel-solver-ca160478811c">Solving Transportation Problems in Excel Solver | by Rihot Gusron | Medium</a>)</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3eb73edef27" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Production and Transportation Optimization using Excel Solver]]></title>
            <link>https://hobeom5263.medium.com/production-and-transportation-optimization-using-excel-solver-5ed73c0ca93f?source=rss-7a83a11d1c53------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ed73c0ca93f</guid>
            <category><![CDATA[logistics]]></category>
            <category><![CDATA[microsoft-excel]]></category>
            <category><![CDATA[supply-chain-analytics]]></category>
            <category><![CDATA[excel-solver]]></category>
            <category><![CDATA[optimization]]></category>
            <dc:creator><![CDATA[Hobeom Aaron Lee]]></dc:creator>
            <pubDate>Sun, 27 Aug 2023 21:20:31 GMT</pubDate>
            <atom:updated>2023-09-15T15:48:58.157Z</atom:updated>
            <content:encoded><![CDATA[<p>Co-Authored by <a href="https://medium.com/u/d39252ab80">Hoon Bae</a>, <a href="https://medium.com/u/b621b55d5a84">Yeeun Kim</a>, <a href="https://medium.com/u/8acc1fc78d64">Kwang Rok Shon</a>, <a href="https://medium.com/u/11dc7c20f505">April Hyeonjin Kim</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*rU0TxXebxdyvIw2H" /></figure><h3><strong>Introduction</strong></h3><p>In this study, we developed an Excel Solver model to determine the optimal production volume and design the most efficient transportation system for Q Cells.</p><p>Renowned as a leading solar panel manufacturer, Q Cells has established dominance in both the American and European solar panel markets. As a Supply Chain Analyst, you are tasked with two primary objectives:</p><p>First, ascertain the optimal production volume.</p><p>Second, Construct an optimized supply chain.</p><p>Let’s do it step by step.</p><p><em>* The dataset is an imaginary data devised by the writer for the purpose of this case study.</em></p><h3><strong>1. Production Optimization</strong></h3><p>Q Cells produce three types of solar panel, one residential and two industrials.</p><p>The BOMs of those three types of panels as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*3gY28e9tSK20AU6-H5S_QQ.png" /></figure><p>The available quantity for each raw material is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*3hQekTOO_3Rbga5JHGegRg.png" /></figure><p>The market price per panel for each model is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/1*5yO_9fy0eSdZXnMJGEJWRA.png" /></figure><p>Also, Q Cells has received “Pre-Order.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/1*LgXv59-z23_N_DNdWULrQg.png" /></figure><p><strong>[Modeling in Excel: Production Optimization]</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*4F1Y_K-M8BIVtaVU_TTEzg.png" /></figure><p><em>* Blue Box is a “Decision Variable.”</em></p><p><em>* Red Boxes are two “Constraints,” Available Quantity for each raw material &amp; Pre-Order.</em></p><p><em>* Yellow Box is an “Objective Function.”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*0KSecBJj4LG6ITVKS97wBg.png" /></figure><p>[1] Production quantities must be whole numbers. → Constraints: “$E$17:$G$17 (Blue Box) = integer”</p><p>[2] Q Cells’ production should surpass the “Pre-Order” volume. → Constraints: “$E$17:$G$17 (Blue Box) &gt;= $E$19:$G$19 (Horizontal Red Box)”</p><p>[3] The total consumption of each raw material should not exceed its available stock. → Constraints: “$I$7:$I$15 (Total Column) &lt;= $J$7:$J$15 (Vertical Red Box)”</p><p>[4] Q Cells aims to pinpoint the best production volume. → Decision Variable (or Variable Subject to Change): “$E$17:$G$17” (Blue Box)</p><p>[5] Like all enterprises, Q Cells aspires to maximize its profits. → Objective Function: “$E$25” (Yellow Box)</p><p><strong>[Result]</strong></p><p>By producing 1,200 Residential panels, 1,500 industrial 1 panels, and 1,875 industrial 2 panels, Q Cells can achieve its optimal profit of $10,217,596.88.</p><h3><strong>2. Transportation Optimization</strong></h3><p>Q Cells has inventories of 2,075, 1,500, and 1,000 panels in its Georgia, New Jersey, and Arizona warehouses, respectively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/501/1*HUwB43BNhF6QnXiA974o5A.png" /></figure><p>Based on market analysis conducted by Q Cells’ analyst, Aaron Lee, the regional market demands, and associated delivery costs have been determined.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*OnroMv1ZyEMxZvgS3ywzEQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*KCv7Fc3PTQFGaiRIt1x5fA.png" /></figure><p><strong>[Modeling in Excel: Trasportation Optimization]</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*FBZQY9K70k2PpTy0wBVaIg.png" /></figure><p><em>* Blue Box is a “Decision Variable.”</em></p><p><em>* Red Boxes are two “Constraints,” Stored Quantity of each warehouse (Supply) &amp; Demand by region.</em></p><p><em>* Yellow Box is an “Objective Function.”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*4l5kDPO81tMFvachb5tLBQ.png" /></figure><p>[1] Q Cells’ delivery cannot exceed its inventory. → Constraints: “$I$25:$I$27 (Deliver Column) &lt;= $I$16:$I$18 (Vertical Red Box)”</p><p>[2] Q Cells is obligated to fulfill the “Market Demand.” → Constraints: “$E$19:$H$19 (Horizontal Red Box, Demand) = $E$28:$H$28 (Receive)”</p><p>[3] Q Cells seeks to design the ideal supply chain to minimize distribution expenses. → Decision Variable (or Variable Subject to Change): “$E$25:$H$27 (Blue Box)” &amp; Objective Function: “$E$31(Yellow Box)”</p><p>* The figures in the Decision Variable “$E$25:$H$27 (Blue Box)” represent the quantity of panels dispatched from each warehouse to the respective regions.</p><p><strong>[Result]</strong></p><p>The answer for this case is as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*ngtz3bG7mRZqDKUnAFQtwQ.png" /></figure><h3><strong>Closing</strong></h3><p>This is a simplified version of real-world business scenarios, and the true case encompasses a broader spectrum of constraints. We’ve crafted this article for our personal learning, but we hope it offers some value to those delving into Excel Solver.</p><ul><li>For our study of this case, we referred to <a href="https://medium.com/u/a094f38419eb">Rihot Gusron</a>’s article. (<a href="https://medium.com/@rihot_gusron/solving-transportation-problems-in-excel-solver-ca160478811c">Solving Transportation Problems in Excel Solver | by Rihot Gusron | Medium</a>)</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ed73c0ca93f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[RPG Game Market Analysis: STP using Factor Analysis, Clustering, and Pricing Analysis]]></title>
            <link>https://hobeom5263.medium.com/marketing-research-stp-with-factor-analysis-clustering-5e68b0962e4b?source=rss-7a83a11d1c53------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e68b0962e4b</guid>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[r]]></category>
            <category><![CDATA[clustering]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[factor-analysis]]></category>
            <dc:creator><![CDATA[Hobeom Aaron Lee]]></dc:creator>
            <pubDate>Sun, 12 Mar 2023 19:02:26 GMT</pubDate>
            <atom:updated>2023-03-12T19:06:49.382Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/616/0*kVZ877H8QWN-UyXS" /></figure><h3>Introduction</h3><p>I did “Factor Analysis” and “Clustering” to segment and target customer groups and made a recommendation (Positioning) for Athena Softworks. Also, I did a “Pricing Analysis” and found the ideal game price for Athena Softworks.</p><p>“Segmentation, Targeting, and Positioning,” so-called STP, is important because it helps businesses to identify and understand their customers’ needs and develop effective marketing strategies to reach and engage with them. By implementing an effective STP strategy, companies can improve customer acquisition and retention, increase sales and revenue, and build a strong brand reputation.</p><p><strong>This project aims to help Athena Softworks optimize its marketing resource and find the ideal price, increasing profit. To achieve the goal, I did STP analysis using “Factor Analysis,” “Clustering,” and “Pricing Analysis.”</strong></p><p><strong>＊ Tools / Libraries:</strong> R (Rstudio) / REdaS (Bartlett’s Test of Sphericity), psych (KMO-test), FactoMineR (PCA), ggplot2 (Visualization), gmodels (Cross Tabulation)</p><p><strong>＊ Dataset: </strong>customer data (from Athena Softworks)</p><p><strong>＊ Analysis Performed: </strong>Linear Regression, Cross Tabulation, PCA, KMO-test, Bartlett’s Test of Sphericity, Factor Analysis, Clustering (K-Means), Pricing Analysis</p><h3><strong>Background</strong></h3><p>Athena Softworks (A false name) is a video game developer and publisher. They specialize in premium role playing games (RPGs) for PC play and have had published eight games to date. Athena distributes its games exclusively using Steam, the world’s largest distributor of PC games, which takes up 75% of the global market share. Athena is considering acquiring a new game title and there are three key aspects of this decision process.</p><p><strong>＊Three Candidates</strong></p><ol><li><strong>Warrior Guild </strong>is a multiplayer battle arena game that can be played in duel, team (groups of 2, 3, 5, or 7), or guild (groups of 12) modes. Players compete as one of seven classes: Vanguard, Mage, Shapeshifter, Marksman, Healer, Rogue, and Berserker</li><li><strong>Seraph Guardians</strong> is an immersive single player RPG with extensive strategy and puzzle elements. Players work to discover the mythology of the Seraph through strategy, problem-solving, and combat. There is more than one way to accomplish every goal, but not all methods are equally efficient.</li><li><strong>Evercrest</strong> may be played in single player or multiplayer modes as players work to save the titular land. Players should prepare to be met with challenges that require upmost creativity as they explore this fanciful world, encountering compelling characters and narrative.</li></ol><p><strong>＊Financial Details</strong></p><p>In all instances, Athena would pay 5% in royalties (on gross) to the original developer and spend $7 million in fixed costs to acquire and market the game; each game would have unique additional costs to finalize development ($6 million for Evercrest, $5.5 million for Seraph Guardians, and $5 million for Warrior Guild). Budget constraints dictate that only one game may be acquired. Any game not acquired by Athena may be released by another publisher. Steam is digital video game distribution service which holds about 75% of the PC game global market share with approximately 18 million users. For games sold on Steam, parent company Valve takes 30% of gross sales up to the first $10 million. For all sales between $10 million and $50 million, Valve takes 25%. For every sale after the initial $50 million, Valve takes 20%. You may assume that the majority of games sales occur within the first year of release and that all games sold by Athena Softworks are sold via Steam.</p><h3><strong>STEP 01: Evalueate Data</strong></h3><p>Before starting the factor analysis, I checked the dataset’s quality by doing “Bartlett’s Test of Sphericity” and “KMO-test.”</p><ol><li>The result of “Bartlett’s Test of Sphericity”: P-value = 2.22e-16 (lower than 0.05)</li><li>The result of “KMO-test”: The overall MSA score = 0.98 (higher than 0.6)</li></ol><h3><strong>STEP 02: Determine the number of factors</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*2DNGmjGKWFJ8ZqUAv04Okg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*h-lg_0ZsjqsrH6C4NJDpBg.png" /></figure><p>I did the “Principal Component Analysis” and found out that the six components’ eigenvalues are higher than one and that they account for 96.962% of the variance. Therefore, I decided to use the six factors.</p><h3><strong>STEP 03: Extract the factor solution &amp; Create and name the Factor Scores</strong></h3><p>I did “Factor Analysis” and interpreted the characteristics of each factor based on loading scores. Next, I named each factor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/1*ynhCs9LUG64wFunk_VPOQg.png" /><figcaption><strong>Factor Table</strong></figcaption></figure><h3><strong>STEP 04: Determine the number of clusters</strong></h3><p>To determine the number of clusters, I calculated distance using the “Euclidean” method and then clustered groups using “Ward Linkage Method.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*9G_tPj1uqFTnPlneUIZOsQ.png" /></figure><p>Finally, I decided to split a gamer group into five groups.</p><h3><strong>STEP 05: Calculate the final cluster solution</strong></h3><p>I used the “K-Means Method” to calculated the final cluster solution. Also, I added a new column “Cluster” to the dataset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*pOenk_dV27EmZcouHrAs3g.png" /><figcaption><strong>Visualization of Clustering</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*Mjd4gwl2qSfSPLXrMtsMPQ.png" /><figcaption><strong>Clustering Table</strong></figcaption></figure><h3><strong>STEP 06: Interpretation the result of clustering</strong></h3><p><strong>Cluster 01: Solo RPG game player</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NJJE8htsEW4oD0ri.jpg" /></figure><p>Considering that Cluster 01 gamers shows high positive reaction on “Achievement” and negative reaction on “Social,” I named this group “Solo RPG game player,” who are interested in fostering their characters, collecting items, and completing missions, but want to play games by themselves. (Recommendation: Diablo Series)</p><p><strong>Cluster 02: Collaborative-Creator</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*ggHpQ0D8f-a8jyUu.jpg" /></figure><p>Considering that Cluster 02 gamers show high positive reaction on “Creativiy” and “Social,” and negative reaction on “Mastery,” I named this group as a “Collaborative-Creator,” who are interested in decorating their characters, making their own unique stuftt, such as house, enjoying game with others, but do not want to play challenging games. (Recommendation: Minecraft)</p><p><strong>Cluster 03: Acrobat</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WztYpxvXbIuAmjTs.png" /></figure><p>Considering that Cluster 03 gamers shows positive reaction on “Mastery” and “Creativity” and negative reaction on “Achievement” and “Social,” I named this group an “Acrobat,” who prefer solo play and primarily want to take on challenging gameplay. (Recommendation: Tetris)</p><p><strong>Cluster 04: Collaborative-Mastery</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/0*TzUwrofPIQvyc61Y" /></figure><p>Considering that Cluster 04 gamers show positive reaction on “Mastery” and “Social”, and negative reaction on “Creativity,” “Achievement,” and “Immersion,” I named this group as a “Collaborative-Mastery,” who enjoy solving challenging missions making them think with others.(Recommendation: Among Us, Portal 2)</p><p><strong>Cluster 05: Slayer</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3RhaEiOUYTYqZnlv" /></figure><p>Considering that Cluster 05 gamers show positive reaction on “Action” and “Immersion” and negative reaction on “Mastery,” “Creativity,” “Achievement,” and “Social,” I named this group a “Slayer,” who want chaos and mayhem in the context of a rich game world with an overarching story. (Recommendation: Uncharted Series)</p><h3><strong>STEP 07: Investigating the relationship between the segements and various demographic attributes (gender, age, income, and location) using “Cross Tabulation” and “Regression”</strong></h3><p><strong>[Cross Tabulation: gender &amp; states]</strong></p><p><strong>[1] Gender</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/478/1*KDY_WE_CR6IkskrGVp-ebg.png" /></figure><ul><li>Every cell has more than 5 observations.</li><li>Chi² = 29.6402 &gt; 9.487729 (from +CHINV(0.05, 4))</li><li>P-value = 6.077622e-06 &lt; 0.05</li></ul><p>There is significant relationship between the segments and gender.</p><p><strong>[2] States (Location)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/543/1*U5HBEKQe2bOxxTBgnOOr9Q.png" /></figure><p>＊ I allocated 48 states to four regions of “South”, “West”, “MidWest”, and “NorthEast”</p><ul><li>Every cell has more than 5 observations.</li><li>Chi² = 6.847782 &lt; 21.020607 (from + CHINV(0.05, 12))</li><li>P-value = 0.8675065 &gt; 0.05</li></ul><p>There is no significant relationship between the segments and location (= state).</p><p><strong>[Linear Regression: age &amp; income]</strong></p><p>I made linear regression models for age and income, but both models’ p-values are higher than 0.05, meaning that those models are not reliable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*mkTuVkbq6zui7EB-ld3nCg.png" /><figcaption><strong>Linear Regression Model (age)</strong></figcaption></figure><ul><li>p-value of age(dependent)-segment(independent) regression model: 0.2577</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*A62e1IqdehkdexQIwFLdaQ.png" /><figcaption><strong>Linear Regression Model (Income)</strong></figcaption></figure><ul><li>p-value of income(dependent)-segment(independent) regression model: 0.1824</li></ul><p>I made a table showing the average age, average income, and the ratio of female gamers because the two linear regression models are not reliable.</p><p><strong>[Demographic Average Table by Segment (Cluster)]</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*wE04v37ff3XH0_Rs69MNoQ.png" /></figure><p>Cluster 01 (Solo RPG game player): This group’s average age and income are in the middle. However, this group shows quite a high ratio of female gamers.</p><p>Cluster 02 (Collaborative-Creator): This group has the youngest average among the five clusters and the highest ratio of female gamers. However, this group’s average income is relatively low.</p><p>Cluster 03 (ACROBAT): This group has the lowest female gamers ratio but the highest average age and income.</p><p>Cluster 04 (Collaborative-Mastery): This group shows low numbers in every factor.</p><p>Cluster 05 (Slayer ): This group can be described as a high female ratio and the lowest income.</p><h3><strong>STEP 08: Pricing</strong></h3><p><strong>Warrior Guild</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*5CFfsjNzI_JAXiwWxWB9VQ.png" /></figure><p>The first graph shows how customers’ willingness to pay for “Warrior Guild” changes by price. It can be seen that the slope of willingness to pay decreases significantly when the price exceeds $50. The second graph indicates that the “Predicted Revenue” from “Warrior Guild” peaks at $50. Thus, I suggest that Athena set the price of “Warrior Guild” as $50, leading to expected revenue of $13,400.</p><p><strong>Evercrest</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*IdswvF_dHE1XDboSHMFLvw.png" /></figure><p>The “Predicted Revenue” from “Evercrest” peaks around $60 mark. Thus, I recommend Athena sell “Evercrest” for $60, leading to expected revenue of $13,920.</p><p><strong>Seraph Guardians</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*PpUyqlvgAt1UN8pbGHVHZw.png" /></figure><p>The “Predicted Revenue” from “Seraph Guardians” also peaks around $60. Thus, I recommend Athena sell “Seraph Guardians” for $60, leading to expected revenue of $14,640.</p><p><strong>[Calcultaging Expected Gross Revenue of each game]</strong></p><p>I calcualted expected gross revenue of each game with reference to the “Financial Details” and “The graphs I visualized above.”</p><p><strong>＊Financial Details</strong></p><p>＊ Athena would pay 5% in royalties (on gross) to the original developer.</p><p>＊Athena spends $7 million in fixed costs to acquire and market the game.</p><p>＊ Each game would have unique additional costs to finalize development: $6 million for Evercrest, $5.5 million for Seraph Guardians, $5 million for Warrior Guild</p><p>＊ For games sold on Steam, parent company Value takes 30% of gross sales up to the first $10 million.</p><p>＊ For all sales between $10 million and $50 million, Value takes 25%.</p><p>＊ For every sale after the initial $50 million, Value takes 20%.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*WKsHoABV3JPwup79SlghaA.png" /><figcaption><strong>Expected Market Share</strong></figcaption></figure><p>In order to calculate the percentage of customers who are likely to purchase each game, I postulated that Athena would set each game’s selling price for the proposed ideal prices. So, I counted the number of respondents who indicated they would either “definitely” or “probably” purchase at a given price and divided the number of each game by all respondents of each game. By doing that, I got the percentage of respondents who are likely to purchase each game. Finally, I multiplied 0.3 by the percentage and got the “Actual percentage of customers who are likely to pay to buy each game at a given price.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*quFCg6DVDt2MBj8Sl6LoCg.png" /><figcaption><strong>Expected Net Revenue</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*ff7E-NIle7Es7ng8jdROwA.png" /><figcaption><strong>Expected Gross Revenue &amp; Net Revenue</strong></figcaption></figure><p>* I did not consider how much each game respondents account for the survey (for example, Warrior Guild respondents account for 35.38%, 307/870, of the survey respondents) because each respondent was randomly presented with one of the three games, meaning that the percentage does not represent the actual proportion of each game in the real market.</p><h3>Conclusion</h3><p><strong>[Targeting] I recommend that Athena Softworks select “Seraph Guardians and target ‘Cluster 01: Solo RPG game plater’ and ‘Cluster 03: Acrobt’.”</strong></p><p><strong>First</strong>, the “Cluster 01: Solo RPG game player” group accounts for 21.03% of the respondents, and “Cluster 03: Acrobat” accounts for 25.63%.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*mRpycsyf9KK6nfB1vLumQw.png" /></figure><p>Athena should know how much each group accounts for the total customers. Assuming that the survey sample was representative of the approximately 10 million active Steam customers who have expressed interest in similar games, the three clusters, which account for more than 20% of the customers, should be considered potential target groups.</p><p><strong>Second</strong>, the average income of “Cluster 03: Acrobat” is the highest among those five clusters, and that of the “Cluster 01: Solo RPG game player” group is second.</p><p><strong>Third</strong>, both “Cluster 01: Solo RPG game player” and “Cluster 03: Acrobat” shows positive reaction to “Mastery (Challenge &amp; Strategy)” and adverse reaction to “Social (Competition &amp; Community).” Given that “Seraph Guardians” is a “single-player” RPG game with “extensive strategy and puzzle elements,” we can postulate that this game fits well with both groups.</p><p><strong>Last</strong>, “Seraph Guardians” has the highest Expected Net Revenue of $138,664,000.</p><p><strong>[Positioning] I recommend Athena Softworks position the game in two different ways.</strong></p><p><strong>First</strong>, to attract the “Cluster 01: Solo RPG game play” group, Athena should stress that “Seraph Guardians” includes many missions, and those missions can be completed in various ways by themselves.</p><p><strong>Second</strong>, to attract the “Cluster 03: Acrobat” group, Athena should stress that “Seraph Guardians” includes challenging missions requiring users to think twice and that no one can help them to overcome all the challenging obstacles.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e68b0962e4b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Design Relational Schema and SQL queries to improve Dognition test process efficiency]]></title>
            <link>https://hobeom5263.medium.com/design-relational-schema-and-sql-queries-to-improve-dognition-test-process-efficiency-b8609c4637f7?source=rss-7a83a11d1c53------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8609c4637f7</guid>
            <category><![CDATA[relational-databases]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[business-intelligence]]></category>
            <dc:creator><![CDATA[Hobeom Aaron Lee]]></dc:creator>
            <pubDate>Mon, 16 Jan 2023 04:24:57 GMT</pubDate>
            <atom:updated>2023-01-16T04:24:57.197Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uzn98UYP56NzArLq" /><figcaption><strong>Dognition Homepage Image</strong></figcaption></figure><h3>Introduction</h3><p>In this project, I designed a relational schema of the Dognition dataset and performed Exploratory Data Analysis (EDA) to help Dognition to organize its data and improve its test process efficiency.</p><p><strong>* Tools:</strong> SQL</p><p><strong>* Dataset:</strong> Acquired from client, Dog</p><p><strong>* Analysis Performed:</strong> Explolatory Data Analysis (EDA), Relational Schema, Data Cleaning</p><h3>Database Design</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c55iJcja9-iMqKn2Kmnwww.png" /><figcaption><strong>Relational Schema</strong></figcaption></figure><ol><li>I checked NULLs and duplicated rows and processed them in the tables.</li><li>I selected Primary Keys (PK) and Foreign Keys (FK) to design relational schema based on logical relationship and data structure.</li></ol><h3>Exploratory Data Analysis</h3><p>I examined each table for potential issues, inconsistencies, etc.</p><p><strong>dogs_table</strong></p><p>1) Theres are some dogs that have taken dna tests but still having NULL for their breed_groups. Also, some dogs didn’t take the dna tests but their breed groups are verified. This makes the qualification of the data is doubtable.</p><p>2) Some data in the breed_type shows specific type plus Other and I Don’t Know, which makes multiple values in the breed_type.</p><p>3) There are some data with weight(the weight of a dog) = 0, it doesn’t make sense.</p><p>4) There are “Labrador Retriever-Golden Retriever Mix” and “Golden Retriever-Labrador Retriever Mix” in the breed column. It looks like the same breed, but they are classified.</p><p><strong>site_activities_table</strong></p><p>There are some inconsistencies in the activity_type column, which should be types of physical interaction with the website like “cancel_monthly” and video_player”. However, the actual activity_type involves irrelevant info, such as “point_in_cat”, “loop_missing”, and “loop_duplicate”, which don’t make sense in the context of the column’s definition.</p><p><strong>users_table</strong></p><p>1) For the column free_start_user, there are values of 1, 0, NULL. Assuming that free_start_user is a binary variable, a value of NULL would represent the company being unsure of whether the user got a free trial or not. This is tricky for analysis because it distorts the retention rate when determining if free trial users complete their test.</p><p>2) The column zip in users is too messy. Not only does the zip code differ from country to country, but there is also a difference in length in the zip code in the United States.</p><h3>Analysis</h3><ol><li><strong>Dognition Test Success Rate Analysis</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j2bVll87NfNrUSpVXxCGgA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a6JuJTlk9_YGNdzGBxsBdg.png" /></figure><p>The 34.5% (= 177500 / 514431) demonstrates the percentage of completed tests relative to the total number of trials. This number shows that not a lot of trials are actually completed. I concluded that the argument that the Dognition assessment is too complicated is quite valid.</p><p><strong>2. Dognition Test Difficulty Level Analysis</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qBkJPpjLONQhcHUpU7-dxQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/223/1*JfDKctsoqLDF4JPEHdc7vg.png" /></figure><p>I calculated the success rate by the subcategory_name column and found that the probabilities of success in 11 categories, including QUIZ, were significantly lower than those of the rest of the categories. (The difference is about 30%p.) Thus, I guessed that the opinion that many users get to a certain point, become frustrated, and quit might be correct.</p><p><strong>3. Dognition Web-site Analysis</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IbnOcC01z6pLhF76-vscBg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/315/1*earf-EM0zAj_CB2yFJMDYA.png" /></figure><p>paypal_recur_error(6) / paypal_recur_success(80) = 0.075 = 7.5%</p><p>paypal_express_setup_error(18) + cancel_return_from_paypal_express(112) / paypal_express_setup(3020) = 0.043 = 4.3%</p><p>I found that the error rate of paypal recur is 7.5% and that the problem occurance rate relatead to paypal_express is 4.3%. I cannot give clear reasons for those rates, but the possibility of some problems on the website cannot be ignored.</p><p><strong>4. Dog Owners and Dogs Analysis</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FC7uez6g-sVkTMapDtGcPg.png" /></figure><p>I looked at the success percentage of completing the tests by breed. The results indicate that breeds like Labrador Retriever-Golden Retriever Mix are most successful at these tests, while Basset Hound are the significantly less successful in completing the program. The huge percentage difference between certain breeds leads us to believe there could be some type of bias in the tests based on breed. (Breeds with a total number of less than 50 were excluded.)</p><h3>Conclusion</h3><ol><li>Dognition dataset includes many inconsistency issues and duplicated data issues. Thus, <strong>the company should reprocess its data.</strong></li><li><strong>Dognition test is too difficult</strong>; the success rate is only 34.5%. Also, there are pretty considerable differences in the success rates of each sub_category. For example, a success rate of Self Control Game is 100%, but that of Excitability is only 056%.</li><li>The payment system on Dognition Web-site causes errors in 7.5 out of 100 tries (customers). <strong>They should solve this payment issue as soon as possible.</strong></li><li>The success rate varies depending on the breed of a dog. <strong>I recommend Dognition to provide customized tests based on breeds.</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Dy8aPeZISDdEHr-S.jpg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8609c4637f7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bank Customer Classification for Telephone Sales]]></title>
            <link>https://hobeom5263.medium.com/bank-customer-classification-for-telephone-sales-ce5268bb29e?source=rss-7a83a11d1c53------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce5268bb29e</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[banks]]></category>
            <category><![CDATA[visualization]]></category>
            <category><![CDATA[classification]]></category>
            <category><![CDATA[marketing]]></category>
            <dc:creator><![CDATA[Hobeom Aaron Lee]]></dc:creator>
            <pubDate>Fri, 13 Jan 2023 22:25:03 GMT</pubDate>
            <atom:updated>2023-05-31T23:07:07.168Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Co-Authored by Vivian Huang, Cecilia Xi Chen, </em><a href="https://medium.com/u/d39252ab80"><em>Hoon Bae</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/607/0*9bq5yVEQbp2l5i50.png" /></figure><h3><strong>Introduction</strong></h3><p>We made<strong> a Classification model to classify bank customers into two groups</strong>, customers who are more likely to accept a term deposit offer through call and customers who are less likely to.</p><p>“Time” and “Energy” are limited, so any group aims to use them efficiently. Banks are also trying to find the best way to use them efficiently. This project aims to help banks maximize their time-and-energy efficiency by providing a customer group classifier. <strong>The classifier would distinguish customers with high probabilities of signing up for a term deposit from customers with low probabilities and let banks know which customer group they should put effort into.</strong></p><p>To optimize marketing resource utilization and improve campaign efficiency, the banks want to know:</p><ul><li>Among its clients, who would be more likely to purchase a term deposit product and thus worth continual promotion effort (give phone call in this case)?</li><li>What are the critical factors that affect the decision to purchase a term deposit? How can the bank make improvement in these aspects to increase the success rate of purchase?</li></ul><p><strong>* Tools / Libraries:</strong> Python, Tableau / Pandas (Data Manipulation), Matplotlib (Visualization), NumPy, Sklearn (Machine Learning), imblearn (Oversampling)</p><p><strong>* Dataset:</strong> UCI — Telephone sales data (Banking)</p><p><strong>* Analysis Performed:</strong> Logistic Regression, Decision Tree, Random Forest, Gradient Boosting, Naïve Bayes, Support Vector Machine, XGBoost</p><h3><strong>Data Preparation &amp; Processing</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*KNOxCFJeSQB5VAPOxJN6iA.png" /><figcaption><strong>Data Preparation &amp; Processing Table</strong></figcaption></figure><p>We have conducted the following data processing steps:</p><ol><li>Check null and duplicate values: there are no null and duplicate values in the data set.</li></ol><p>2. Check ‘unknown’ values: ‘unknown’ values are the same as null values</p><p>3. Convert categorical variables into dummy variables</p><p>4. Feature scaling</p><p>5. Split data into training set and test set</p><p>6. Oversampling: Considering the highly imbalanced classes in ‘y’ variable (89% of ‘no’ and 11% of ‘yes’), we employed the oversampling approach to solving the issue before modeling.</p><h3><strong>Data Visualization</strong></h3><p><strong>1) Subscription Rate by Job Category &amp; Age</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EB3I2rVJbVBOzF2YMg3F7A.png" /></figure><p>Students and the retired group have a higher subscription rate compared to clients with other occupations. This pattern is consistent with that among different age groups: Clients aged from 15 to 24 and those who are above 65 years old have a higher subscription rate. A prominent feature of term deposits is that they allow investment for a set amount of time with a fixed interest rate. They match the needs of retired people, who prefer low-risk financial products and don’t need quick/frequent access to their money. However, according to these graphs, students also show a high percentage of subscription, but students are different from retired people. Thus, we decided to take a deeper look at the student group.</p><p><strong>2) Housing Loan Rate &amp; Personal Loan Rate by Job Category.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UXuyqGK_dcif_3vbd1O-Nw.png" /></figure><p>According to this visualization, Students are more likely to say yes to term deposit service. At the same time, students have relatively more housing loans and personal loans. Does that mean students tend to say yes to all the financial services?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k7FEgJEZdrupfN8C5_D4kQ.png" /></figure><p>We found that this dataset is imbalanced; Most of observations in this dataset are <strong>“admin (25.18%)”, “blue-collar (22.55%)”, and “technician (16.41%)”</strong>. On the other hand, <strong>“student” accounts for only 2.15% of this dataset.</strong> Imbalanced distribution may indicate that there would be selection bias in this dataset, causing biased results.</p><p>Thus, we postulated that we should be careful in interpreting the result of machine learning and visualization of this dataset. This supports our assumption that we cannot rely on the result of the first visualization because these two groups, students and retired people, are different.</p><p><strong>3) Subscription Rate by Marital Status</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*Ty8OK3--eF5kyJmNBz_1Ng.png" /></figure><p>The average Subscription Rate by Marital Status is around 13% and average number of Subscription by Marital Status is 7161. According to the first graph (Left), both unknown and single categories show a higher rate compared to the average. However, according to the second graph (Right), unknown category only has 56 observations. Therefore, we can conclude that the high rate of unknown group may not be reliable. Thus, we postulated that only single group may be important in our modeling.</p><h3><strong>Modeling</strong></h3><p>We tested seven models (Logistic Regression, Decision Tree, Random Forest, Gradient Boosting, Naïve Bayes, Support Vector Machine, XGBoost) based on F-1 Score and AUC. Random Forest showed best performance. (F-1 score: 0.50, AUC: 0.74, Accuracy: 0.88)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/1*h-_PQ4O9xqaK1sWkKqnG2g.png" /><figcaption><strong>Model Performance Table (F-1 score, AUC, and Accuracy)</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*6zEvoHG7GxZXEKnAEAYT9A.png" /></figure><p>According to this model, job_retired, job_management, job_entrepreneur, and marital_married are top four factors with highest importance.</p><h3><strong>Conclusion</strong></h3><p>We deduced from the machine learning and visualization that <strong>Jobs, Marital, and Economy</strong> indicators are the indicators where banks should focus on.</p><p>Thus, we recommend that <strong>banks use this machine learning model to classify customers, focus on customers who are more likely to subscribe to a term deposit, and maximize their human resource usage.</strong> Also, we believe that banks could get valuable insights if they explore customer data based on the three indicators.</p><p><strong>GitHub Link</strong>: <a href="https://github.com/AthenaVivian/Bank-Telephone-Sales/blob/main/Bank%20Telephone%20Sales-Final%20Version.ipynb">https://github.com/AthenaVivian/Bank-Telephone-Sales/blob/main/Bank%20Telephone%20Sales-Final%20Version.ipynb</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce5268bb29e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Airbnb Price Prediction Project]]></title>
            <link>https://hobeom5263.medium.com/airbnb-price-prediction-project-441a04ccc4e?source=rss-7a83a11d1c53------2</link>
            <guid isPermaLink="false">https://medium.com/p/441a04ccc4e</guid>
            <category><![CDATA[airbnb-host]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[airbnb]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[classification-models]]></category>
            <dc:creator><![CDATA[Hobeom Aaron Lee]]></dc:creator>
            <pubDate>Sun, 08 Jan 2023 05:23:33 GMT</pubDate>
            <atom:updated>2023-03-24T01:14:48.274Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Co-authored by Pranav Jahagirdar, </em><a href="https://medium.com/u/4b39a7285611"><em>Jiayun Li</em></a><em>, </em><a href="https://medium.com/u/239d28b5729d"><em>Huixuan Zhang</em></a><em>, </em><a href="https://medium.com/u/9f2d4645c812"><em>Jianing Wang</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/0*Rhu_w8aEt28tbByI.jpg" /></figure><h3><strong>Introduction</strong></h3><p>In this project, my team <strong>made an Airbnb price prediction model</strong> to find the optimal price of accommodation in New York, maximize Airbnb’s profitability, and check which features influence the price.</p><p>Even though Airbnb made its stock market debut as a home rental firm with a market value of over 100 billion dollars, making the biggest US public initial offering that year, Airbnb has had a deficit since 2017. In order to paint a blueprint for Airbnb’s pricing strategy, significant considerations should be given to estimate the profit-maximized listing price accurately. Airbnb’s main source of revenue is the service fees on bookings that are levied against both tenants and hosts. <strong>This project aims to find the optimal price, to check features that make people think the price is reasonable, and to maximize revenue by increasing the probability of being rented out with optimal price.</strong> Make sure the price reflects the maximum value of the house while also appealing to the target market.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*S1P27GV1yW0R4IWkDTaCmw.png" /></figure><p><strong>* Tools / Libraries</strong>: R / tidyverse &amp; lattice (Visualization), rpart (Classification), glmnet (Rigde &amp; Lasso), randomForest (Random Forest)</p><p><strong>* Dataset</strong>: Airbnb Dataset</p><p><strong>* Analysis Performed</strong>: Correlation, Regression, Regression with Interactions and Regularization, and Regression Tree</p><h3><strong>Data Preparation &amp; Processing</strong></h3><p>Our dataset consists of 34 variables and 27,489 observations. Each row stands for unique accommodation, while each columns means following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*AIGHABRfuwiAKeXHgvviGg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*xxLrQ7weyr3_LLaZLV9Tug.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*iAsUiQrdV8TUPkDd2d9bPA.png" /></figure><p>In summary,</p><p>1) We dropped the features irrelevant to the research, like listing ID, name of listing, and host ID, which is the identifier of each row.</p><p>2) We used one-hot encoding to convert district and room type into series of 1’s and 0’s to make them machine compatible.</p><p>3) We replaced NULL values in # of bedrooms with the median of all the remaining complete observations based on accommodations and room type.</p><p>4) We transformed amenities features that was comma separated string of all the amenities provided in the listed property to separate columns and created 45 dummy columns.</p><p>5) Also, we created a new column to calculate the total number of amenities in this listing.</p><p>6) For the target variable, we checked the outlier of price and remove them, and used log of price instead of price.</p><p>Totally, there were <strong>27,444 observations and 65 variables</strong> in our dataset.</p><h3><strong>Data Visualization</strong></h3><p><strong>1) Price based on Location</strong></p><p>Manhattan has the highest average price, followed by Brooklyn.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*6z_4q1E4QNrxN0CN_gvecw.jpeg" /><figcaption><strong>Price based on Location</strong></figcaption></figure><p><strong>2) The relationship between number of amenities and price</strong></p><p>As the accommodation provides more amenities, the price will go up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/348/1*3yjJfgLzDGtX8HQVyt886g.jpeg" /><figcaption><strong>The relationship between number of amenities and price</strong></figcaption></figure><p><strong>3) The relationship between room type and price</strong></p><p>Entire place and hotel room have higher price than private room and shared room.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/328/1*qesrRPNlZF1fIS7Fy_TRlQ.jpeg" /><figcaption><strong>The relationship between room type and price</strong></figcaption></figure><h3><strong>Modeling</strong></h3><p>My team chose models from three main types: Linear Regression, Regressions with Interactions, and Tree models (Ensemble method). We evaluated the models based on <strong>“MSE” score</strong>. <strong>Random Forest had the best model performance</strong> when predicting the log of price and boasted a strong interpretability. The Random Forest model showed the lowest <strong>MSE score of 0.14</strong>.</p><p>According to this model, the variables that influence on price the most are <strong>[1] room type [2] accommodates [3] Location (longitude &amp; latitude) [4] bedrooms [5] host_total_listing_count [6] number of amenities [7] join time.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/285/1*XRk4YMMV8AjAaTh73P26cw.jpeg" /><figcaption><strong>Testing ML models based on MSE</strong></figcaption></figure><h3><strong>Conclusion</strong></h3><p>My team’s analysis would help hosts and Airbnb to maximize their revenues.</p><p>The seven variables we mentioned above can be summarized into two categories, Convenience (room type, accommodates, location, bedrooms, number of amenities) and Credibility (host_total_listing_count, join time). Among those variables, only bedrooms, and number of amenities are features for hosts to make changes to.</p><p><strong>Thus, we want to suggest the hosts whose accommodations are rarely rented out put more beds, provide more amenities, and offer the optimal price to maximize their revenue.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*DprrvtlxLCWGy3xdmuv8ew.png" /></figure><p><em>GitHub (R code): </em><a href="https://github.com/Jacob-KR/Project-using-R/blob/main/Airbnb%20Pricing%20Predictive%20Model.R"><em>https://github.com/Jacob-KR/Project-using-R/blob/main/Airbnb%20Pricing%20Predictive%20Model.R</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=441a04ccc4e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>