<?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 Ethan Tran on Medium]]></title>
        <description><![CDATA[Stories by Ethan Tran on Medium]]></description>
        <link>https://medium.com/@etran124?source=rss-5caf6bce2238------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*DUrHn5HvMywPDBSe</url>
            <title>Stories by Ethan Tran on Medium</title>
            <link>https://medium.com/@etran124?source=rss-5caf6bce2238------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 18:44:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@etran124/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[Predicting Wine Perfection: Using Supervised Learning to Optimize Wine Quality]]></title>
            <link>https://medium.com/@etran124/predicting-wine-perfection-using-supervised-learning-to-optimize-wine-quality-e3d97150f7aa?source=rss-5caf6bce2238------2</link>
            <guid isPermaLink="false">https://medium.com/p/e3d97150f7aa</guid>
            <category><![CDATA[inst414fall25a06]]></category>
            <dc:creator><![CDATA[Ethan Tran]]></dc:creator>
            <pubDate>Wed, 03 Dec 2025 04:34:03 GMT</pubDate>
            <atom:updated>2025-12-03T04:34:03.179Z</atom:updated>
            <content:encoded><![CDATA[<p>For a vineyard manager, the difference between a bottle of wine that sells for $15 and one that sells for $50 often comes down to a few subtle chemical tweaks during fermentation. But which tweaks matter most? Should they focus on lowering acidity? Increasing alcohol content? Adding more sulphates?</p><p>In this project, I applied supervised learning to answer a critical question for <strong>winemakers and vineyard managers</strong>: <em>What specific chemical properties distinguish a “High Quality” wine from an average one?</em></p><p>The answer to this question directly informs the <strong>decision-making process</strong> during production. By identifying the key drivers of quality, a winemaker can adjust fermentation parameters, such as harvest timing (affecting sugar/alcohol) or barrel aging (affecting acidity), to maximize the probability of producing a premium product.</p><h3>The Data</h3><p>To answer this question, I utilized the <strong>Red Wine Quality</strong> dataset from the <strong>UCI Machine Learning Repository</strong>. This dataset is highly relevant because it correlates objective chemical tests with subjective human quality ratings.</p><ul><li><strong>Source:</strong> <a href="https://archive.ics.uci.edu/ml/datasets/wine+quality">UCI Machine Learning Repository</a></li><li><strong>Collection Method:</strong> I wrote a Python script using the requests library to programmatically fetch the raw CSV data directly from the archive.</li><li><strong>Ground Truth:</strong> The target variable, quality, is a score between 0 and 10. These labels were generated by taking the median score of at least three human wine experts who blind-tasted the samples.</li></ul><p>The dataset contains 1,599 samples and 11 physicochemical features, including:</p><ul><li>Fixed &amp; Volatile Acidity</li><li>Citric Acid</li><li>Residual Sugar</li><li>Chlorides</li><li>Free &amp; Total Sulfur Dioxide</li><li>Density</li><li>pH</li><li>Sulphates</li><li>Alcohol</li></ul><h3>Model Selection: Classification vs. Regression</h3><p>For this analysis, I selected a <strong>Classification Model</strong> (Random Forest Classifier).</p><p>While the original quality score is numeric (0-10), predicting the exact decimal score is less useful for the stakeholder than a binary decision: <em>Is this wine premium or not?</em> A vineyard manager cares about hitting the &quot;Premium&quot; threshold to justify a higher price point.</p><p>Therefore, I converted the regression problem into a binary classification task:</p><ul><li><strong>Target Label:</strong> is_high_quality</li><li><strong>Definition:</strong> Assigned a 1 if the quality score was ≥ 7, and 0 otherwise.</li></ul><h3>The Analysis</h3><p>I trained a <strong>Random Forest Classifier</strong> on 80% of the data and tested it on the remaining 20%. I used all 11 chemical features as inputs.</p><h3>Performance</h3><p>The model achieved an accuracy of <strong>0.90 </strong>on the test set</p><h3>Key Findings</h3><p>My analysis revealed that <strong>Alcohol content</strong> is the single strongest predictor of wine quality in this dataset. Wines with higher alcohol percentages were significantly more likely to receive a score of 7 or higher. <strong>Volatile Acidity</strong> (which contributes to a vinegar-like taste) was the second most important feature, having a strong <em>negative</em> correlation with quality.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*wthjwnTCdlNhdOtxWFPxQA.png" /></figure><p><em>Figure 1: Feature Importance chart showing that Alcohol, Sulphates, and Volatile Acidity are the primary drivers of quality.</em></p><h3>Error Analysis</h3><p>Even a good model makes mistakes. By analyzing the samples the model got wrong, we can understand the complexity of wine tasting. Here are 5 samples where the model’s prediction disagreed with the human experts:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YxpwVnvts6YDwk2UNaKQCg.png" /></figure><p><strong>Discussion of Errors:</strong> Most errors fell into two categories:</p><ol><li><strong>False Negatives (Missed Opportunities):</strong> The model often predicted a wine was “Average” because it had moderate alcohol levels, but human experts rated it highly. This suggests these wines likely had excellent balance or flavor notes (like citric acid freshness) that outweighed the lower alcohol.</li><li><strong>False Positives (Overrated):</strong> The model sometimes predicted “High Quality” just because a wine had high alcohol content. However, the human experts rated it low, likely due to high <strong>Volatile Acidity</strong>, which creates an unpleasant vinegar taste that the model under-penalized.</li></ol><h3>Data Cleaning &amp; Challenges</h3><p>The biggest challenge with this dataset was the file format. The raw CSV from UCI uses <strong>semicolons (;)</strong> as delimiters instead of commas. When I first loaded it, pandas didn’t recognize the columns. I fixed this by specifying sep=&#39;;&#39; in the pd.read_csv command.</p><p>I also used <strong>AI assistance (ChatGPT)</strong> to help debug the data loading process. Specifically, I asked how to read a CSV string directly from a requests response without saving it to a file first. The AI suggested using io.StringIO, which allowed me to keep the entire pipeline in memory, a cleaner and more efficient solution.</p><h3>Limitations</h3><p>My analysis is limited by the fact that it only accounts for <strong>chemical properties</strong>. It completely ignores sensory data like smell, texture, and flavor notes (e.g., “fruity,” “oaky”). A wine could have perfect chemical balance but still taste bad due to cork taint or oxidation, which this model cannot detect. Additionally, the dataset is imbalanced; there are far more “average” wines than “high quality” ones, which biases the model slightly against predicting the minority class.</p><h3>Code Repository</h3><p>You can view the full code for this analysis in my GitHub repository here: <a href="https://github.com/ETTRAN777/module6Assignment">https://github.com/ETTRAN777/module6Assignment</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e3d97150f7aa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Does a Million Views Mean People Care? Clustering YouTube Music Videos by Audience Engagement]]></title>
            <link>https://medium.com/@etran124/does-a-million-views-mean-people-care-clustering-youtube-music-videos-by-audience-engagement-89e85b647e1d?source=rss-5caf6bce2238------2</link>
            <guid isPermaLink="false">https://medium.com/p/89e85b647e1d</guid>
            <category><![CDATA[k-means-clustering]]></category>
            <category><![CDATA[youtube]]></category>
            <category><![CDATA[elbow-method]]></category>
            <category><![CDATA[inst414fall25a04]]></category>
            <category><![CDATA[youtube-marketing]]></category>
            <dc:creator><![CDATA[Ethan Tran]]></dc:creator>
            <pubDate>Mon, 01 Dec 2025 23:32:45 GMT</pubDate>
            <atom:updated>2025-12-01T23:32:45.056Z</atom:updated>
            <content:encoded><![CDATA[<p>In the music world, view count is often treated as the scoreboard. A video with 100 million views must be a hit. But for an Indie Record Label with limited resources, view count can be a vanity metric. A video might rack up passive background plays in a coffee shop, but passive plays rarely translate into real fans. The important question is whether people are interacting with the content at all.</p><p>For this analysis, I took on the role of a data scientist for an emerging Indie Label that needs to decide how to allocate production budget in 2025.</p><p>The core question was simple:<br><strong>Do high-budget official music videos actually create better audience engagement than cheaper formats?<br></strong> Or does the audience behave the same regardless of how much money was spent on the visuals?</p><p>The label’s decision hinges on this. If low-view songs with loyal audiences produce better engagement ratios, then shifting budget away from expensive shoots and toward community building is not only reasonable but optimal.</p><h3>Data Collection: Mapping the YouTube Social Graph</h3><p>To measure engagement rather than raw reach, I needed data that captured the social edges between viewers and videos. YouTube is extremely useful here because it exposes visible passion metrics: likes, comments, and view counts.</p><p>I used the YouTube Data API v3 and queried for “Indie Pop Music” to mirror the environment in which the label operates.</p><p><strong>Collected Features:</strong></p><ul><li>View Count (reach)</li><li>Like Count (sentiment)</li><li>Comment Count (discussion)</li><li>Duration (content format)</li></ul><p>Using Python and the<em> google-api-python-client</em>, I pulled the top 200 videos from the Music category, then fetched detailed statistics for each video ID.</p><h3>Data Cleaning: The ISO 8601 Problem</h3><p>YouTube returns video duration as ISO 8601 strings like <em>PT3M21S</em>.<br> K-Means cannot work with strings, so I wrote a Regex-based parser to convert these into total seconds.</p><p>I also removed compilations and “Mixes,” which are often an hour or longer. These behave very differently from standalone songs. After filtering, I was left with 47 clean, comparable videos.</p><h3>Measuring Similarity</h3><p>My goal was not to compare songs by sound but by how the audience behaves around them. I built a feature set that reflects performance instead of genre.</p><p><strong>Key Features:</strong></p><ol><li><strong>Duration (Seconds)<br></strong> Helps distinguish short teasers, standard songs, and long-form cinematic videos.</li><li><strong>Engagement Rate<br></strong> (Likes + Comments) / Views<br> Normalizes the data so a 10K-view video can be fairly compared to a 10M-view video.</li><li><strong>Discussion Ratio<br></strong> Comments / Likes<br> Captures whether a video starts conversations rather than passive appreciation.</li></ol><p>All features were scaled using Scikit-Learn’s StandardScaler, and similarity was measured with Euclidean distance.</p><h3>Clustering: Finding Natural Groups of Videos</h3><p>I ran K-Means with k from 1 to 10 and used the Elbow Method to choose the optimal number of clusters.</p><h4>Why K-Means and the Elbow Method</h4><p>I chose K-Means Clustering with Euclidean distance because our dataset relies entirely on continuous numeric features (duration and engagement ratios). K-Means is highly effective at partitioning such data into distinct, non-overlapping archetypes, such as “Viral Hits” versus “Cult Classics.” Since the optimal number of video types was unknown, I used the Elbow Method to select <em>k</em>. By plotting the model’s inertia against the number of clusters, I visually identified the “elbow” point where adding more clusters offered diminishing returns, ensuring the model captured meaningful patterns without overfitting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*DVtptPXBWoHTQSTdLGbPeg.png" /></figure><p>The elbow point appeared at <strong>k = 4</strong>, suggesting four natural categories of YouTube music video performance.</p><h3>Results: The Four Archetypes of Music Videos</h3><h4>Table 1: Cluster Characteristics</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*h0fE7adM8nO6wj7EgM8lxg.png" /></figure><h3>Interpreting the Clusters</h3><h3>Cluster 0 and 1: The Mainstream Groups</h3><p>The Radio Staples and Viral Giants are the expected powerhouses. Hundreds of millions of views, but very low engagement rates below 1 percent.</p><p>The audience is listening, but not interacting.<br> This is passive consumption.</p><p>Examples:<br> The Strokes — Reptilia<br> Vance Joy — Riptide</p><h3>Cluster 3: The Cinematic Cuts</h3><p>These are long-form videos with an average duration of around seven minutes. They showed the highest discussion ratios because the extra length gives people more to react to.</p><p>Examples:<br> MGMT — Kids<br> Manchester Orchestra videos</p><h3>Cluster 2: The Cult Favorites</h3><p>This is the cluster that matters most for an Indie Label.</p><p>These videos have far fewer views (about 4M) but the highest engagement rate at 2.9 percent. That is almost four times the engagement of the mainstream hits.</p><p>These are small but passionate communities.<br> They do not just watch the video. They talk about it.</p><p>Examples:<br> Pavement — Harness Your Hopes<br> Emmy Jo — Yellow Year</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GrsLQh0rRfWRkANvGikmog.png" /></figure><h3>Conclusion: Views Do Not Equal Engagement</h3><p>For the stakeholder question, the answer is clear.<br> <strong>High views do not mean people care.</strong></p><p>The Cult Favorites cluster proves that small audiences can be significantly more engaged than massive mainstream ones. For an Indie Label, pursuing Cluster 2 is the most strategic direction.</p><p>Instead of trying to force a video into the Viral Giants category, the label should invest in the communities that already care deeply. These are the listeners who buy vinyl, show up to concerts, and champion the artist.</p><h3>Validation and Limitations</h3><p><strong>Validation<br></strong> I checked the clusters using face validity by reading through the titles in each group. The internal logic held up. Cluster 3 contained known cinematic videos, and Cluster 0 included widely recognised radio hits.</p><p>I fine-tuned the filters to exclude mixes, compilations, and other forms of high-duration media that would artificially drive up engagement</p><p>I also used AI assistance to debug the ISO 8601 parser and verified the cleaned durations by comparing them to the original strings, as well as for some Python code generation relating to the YouTube Data API.</p><p><strong>Limitations</strong></p><ul><li>The dataset is small due to the filtering of long compilations. Cluster 3 in particular has fewer samples.</li><li>The “Indie Pop” query is influenced by YouTube’s ranking algorithm, so we are missing truly underground videos.</li><li>Engagement is dynamic and changes over time. This is only a snapshot.</li></ul><h3>Code</h3><p>The full Python script used in this analysis is available in my GitHub repository: <br><a href="https://github.com/ETTRAN777/module4Assignment">https://github.com/ETTRAN777/module4Assignment</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89e85b647e1d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Smart Game Recommendation System with Weighted Cosine Similarity]]></title>
            <link>https://medium.com/inst414-data-science-tech/building-a-smart-game-recommendation-system-with-weighted-cosine-similarity-9a846b0c61b4?source=rss-5caf6bce2238------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a846b0c61b4</guid>
            <category><![CDATA[videogames]]></category>
            <category><![CDATA[recommendations]]></category>
            <category><![CDATA[inst414fall25a03]]></category>
            <dc:creator><![CDATA[Ethan Tran]]></dc:creator>
            <pubDate>Fri, 24 Oct 2025 00:58:09 GMT</pubDate>
            <atom:updated>2025-10-28T16:03:49.074Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction: Why Similarity Matters</h3><p>How similar is <em>Hollow Knight</em> to <em>Celeste,</em> really?<br>How similar are Hollow Knight and GTA V? <br>For players, discovering new games they’ll love often comes down to a <em>feeling</em>: shared mechanics, tone, or challenge.</p><p>For developers and publishers, though, it’s a data-driven decision; understanding similarity helps inform recommendations, marketing, and even competitive analysis.</p><p>This post explores how measuring <strong>similarity between video games</strong> can provide actionable insights for both audiences.<br>By collecting data on the top 10,000 games from RAWG.io and building a weighted cosine similarity model, I reveal how <em>games group naturally by design, genre, and player experience</em>.</p><h3>1. The Question and Stakeholder</h3><p><strong>Question:</strong></p><p>“Given any game, which other titles are most similar in terms of gameplay experience and design characteristics?”</p><p><strong>Stakeholder:<br></strong> Game discovery platforms and studios that want to enhance their recommendation systems or benchmark new titles.</p><p><strong>Decision Context:</strong></p><ul><li>Recommend the right games to users.</li><li>Identify clusters of games with similar mechanics for market analysis.</li><li>Discover gaps or saturation points in genre ecosystems.</li></ul><h3>2. The Dataset: 10,000 of RAWG’s All-Time Top Games</h3><p>I sourced our data from the<a href="https://rawg.io/apidocs"> RAWG API</a>, a comprehensive public database of video games.<br>Using the “All-Time Top” section, I collected <strong>500 entries </strong>for round 1<strong> and 10,000 entries</strong> for Round 2 to examine how the dataset scale influences results.</p><p>Each record included:</p><ul><li><strong>Rating</strong> (average user rating)</li><li><strong>Ratings Count</strong> (number of reviews)</li><li><strong>Metacritic Score</strong> (aggregated critic score)</li><li><strong>Playtime</strong> (average hours)</li><li><strong>Added Count</strong> (number of users who added it to their library)</li><li><strong>Suggestions Count</strong> (number of cross-links to other games)</li><li><strong>Genres</strong> (multi-label categorical list)</li></ul><p>These fields capture both <strong>qualitative traits</strong> (genre, tone, pacing) and <strong>quantitative signals</strong> (popularity, engagement, reception).</p><h3>3. Data Collection Process</h3><p>Data was gathered using Python and the requests library to access RAWG’s public API, with batching and deduplication to efficiently gather large datasets.<br> I employed caching to avoid unnecessary API calls — once a dataset was saved as games_dataset.csv, it could be reused for faster similarity recalculation.</p><p>import requests, pandas as pd</p><p>from sklearn.metrics.pairwise import cosine_similarity</p><p>I used scikit-learn for vector encoding and similarity measurement.</p><h3>4. Measuring Similarity: Weighted Cosine Distance</h3><p>To compare games, I converted their attributes into numeric vectors.<br> I used <strong>cosine similarity</strong>, a metric that measures the angle between two vectors — ideal for high-dimensional data like genres and ratings.</p><p>Before computing similarity, all numeric fields were standardized, and I introduced <strong>custom weighting</strong> to balance the influence of features:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*7sX8tFhlZLR_kP-Ck8DkAA.png" /></figure><p>This weighting ensured that <strong>gameplay and design traits mattered more than popularity metrics</strong>.<br> After scaling and weighting, cosine similarity was applied to generate a matrix comparing all games.</p><h3>5. Query Games and Results</h3><p>To test the system, I selected four query titles representing distinct design archetypes:</p><ul><li><strong>Red Dead Redemption 2</strong> — cinematic open-world adventure</li><li><strong>The Witcher 3: Wild Hunt</strong> — narrative-driven RPG</li><li><strong>Celeste</strong> — precision indie platformer</li><li><strong>Hollow Knight</strong> — atmospheric Metroidvania</li></ul><p>For each query, I computed the top 10 most similar games from datasets of 500 and 10,000 entries.</p><h3>Figure 1. Genre Distribution — 500 vs 10,000 Games</h3><p>As the dataset size increased, genre coverage diversified. The 500-game subset skewed toward popular AAA titles, while the 10,000-game version captured more niche indie genres, improving fine-grained similarity matching.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2pdtHdIY-4-JCuyS3rz40A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*frjtOD0gmxPPBjruazeDOw.png" /></figure><h3>Figure 2. Rating vs. Metacritic Correlation</h3><p>A tight positive correlation confirmed consistency across user and critic ratings, validating these features as reliable inputs for similarity computation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*OqliS_SeIyuMzElO_kxoVA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*yciRkC5C1yVHBC3sZkn7tA.png" /></figure><h3>Figure 3. Top-10 Similar Games Example — The Witcher 3: Wild Hunt</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xof3Wwka7RUoD_XT7InbrQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UTeGb0yWw3EA5CpHbZ4SAQ.png" /><figcaption>Note the games become better in both similarity coefficient and genre matching with more titles</figcaption></figure><p>As dataset sizes increased, The Witcher 3’s second most similar games went from<strong> GTA V and Skyrim to Red Dead Redemption 2, and God of War</strong>, showing the model correctly captured narrative-driven, open-world gameplay, but refined its focus on genre with more games.</p><h3>Figure 4. Top-10 Similar Games Example — Celeste and Hollow Knight</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0ME-8OsK4PDiKgCxi9bVXg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mb2dsMvfOOpHy2ORnZWSNQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9_pgNGrchdI0LVt_AIIXoA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oPVrDXmwypnlsUz-soE19g.png" /></figure><p>At 500 games, <em>Hollow Knight</em>’s nearest neighbors included <strong>Cuphead</strong>, <strong>Dead Cells</strong>, and <strong>Terraria,</strong> which are decent matches, but <em>Celeste</em> was missing. After increasing the data size, <em>Celeste</em> appeared within the top 10.</p><p><em>Remember that question I asked?</em><br> Turns out <em>Hollow Knight</em> and <em>GTA V</em> aren’t similar, but <em>Hollow Knight</em> and <em>GTA </em><strong><em>IV </em></strong>are.<br> Surprising? Maybe. But the results were much worse before.</p><p>Originally, without weights, <em>Celeste</em> appeared in neither of the Top 10s. After reducing popularity bias and increasing genre weight, mechanical similarity came into sharper focus.</p><p>This matters for stakeholders: good recommendations should prioritize a player’s <em>preferences</em>, not just popular choices.</p><h3>6. What I Learned</h3><h3>Scale Improves Specificity</h3><p>Expanding from 500 → 10,000 games produced more meaningful results. Larger datasets provided:</p><ul><li><strong>Better diversity</strong> — more small and indie titles for balanced comparisons.</li><li><strong>Smoother feature normalization</strong> — less skew from outliers.</li><li><strong>Clearer genre clusters</strong> — cosine similarity converged toward thematic accuracy.</li></ul><h3>Weighted Features = Better Insight</h3><p>Without weighting, popularity metrics dominated, pushing <em>Hollow Knight</em> close to <em>DOOM (2016)</em> — both high-rating “Action” titles.<br>After weighting, results reflected true design overlap: precision platformers and indie adventures grouped together naturally.</p><h3>Cosine Similarity Captures Relationships That Humans Recognize</h3><p>By balancing features, I found that purely numeric similarity measures could replicate intuitive relationships — e.g., <em>Celeste</em> and <em>Hollow Knight</em> finally linking due to shared pacing, style, and emotional tone.</p><h3>7. Validation and Accuracy Checks</h3><p>To validate:</p><ul><li><strong>Face Validation:</strong> I manually inspected the top-10 lists for plausibility.</li><li><strong>Correlation Analysis:</strong> Verified expected relationships between rating metrics.</li><li><strong>Genre Consistency:</strong> Ensured genre binarization produced clean, consistent tags.</li><li><strong>AI Involvement:</strong> ChatGPT assisted in debugging, weighting calibration, and formatting — outputs were cross-checked against RAWG data and verified through manual review.</li></ul><h3>8. Limitations and Future Work</h3><ul><li><strong>Feature Scope:</strong> I didn’t include text descriptions, themes, or art style — future work could use embeddings from descriptions or tags.</li><li><strong>Temporal Bias:</strong> Newer or less-reviewed titles are underrepresented.</li><li><strong>Genre Ambiguity:</strong> RAWG genre tags can be inconsistent (e.g., <em>Celeste</em> missing the “Action” tag).</li><li><strong>Popularity Leakage:</strong> Even with weighting, large audience titles retain an edge in similarity due to shared visibility. (This may be better for real-world recommendation systems)</li></ul><p>Despite these, the analysis demonstrates that <strong>weighted cosine similarity is a practical, interpretable method for game similarity modeling</strong>.</p><h3>9. Conclusion</h3><p>By merging data science with game design understanding, I can quantify relationships between titles in ways that mirror human perception. Cosine similarity, when balanced with thoughtful weighting, turns raw statistics into meaningful discovery tools.</p><p>This study shows that when you <strong>reduce bias toward popularity and emphasize design</strong>, games like Celeste and Hollow Knight finally find each other, as they should, leading to the possibility of well-rounded recommendation tools.</p><h3>10. GitHub Repository</h3><p>Full codebase (data collection, processing, and graph generation):</p><p><strong>Github Repository:</strong> <a href="https://github.com/ETTRAN777/module3Assignment">https://github.com/ETTRAN777/module3Assignment</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a846b0c61b4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/inst414-data-science-tech/building-a-smart-game-recommendation-system-with-weighted-cosine-similarity-9a846b0c61b4">Building a Smart Game Recommendation System with Weighted Cosine Similarity</a> was originally published in <a href="https://medium.com/inst414-data-science-tech">INST414: Data Science Techniques</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Structures of Online Influence through the Lens of VTubers]]></title>
            <link>https://medium.com/inst414-data-science-tech/understanding-structures-of-online-influence-through-the-lens-of-vtubers-c69046eb8e99?source=rss-5caf6bce2238------2</link>
            <guid isPermaLink="false">https://medium.com/p/c69046eb8e99</guid>
            <category><![CDATA[inst414fall25a02]]></category>
            <category><![CDATA[twitch]]></category>
            <category><![CDATA[graph-analysis]]></category>
            <category><![CDATA[content-creators]]></category>
            <dc:creator><![CDATA[Ethan Tran]]></dc:creator>
            <pubDate>Thu, 23 Oct 2025 20:53:28 GMT</pubDate>
            <atom:updated>2025-10-28T16:02:48.545Z</atom:updated>
            <content:encoded><![CDATA[<p>In the digital world of streaming, influence isn’t just about how many followers you have — it’s about <em>who you’re connected to</em>. Behind every viral clip or trending collaboration lies a vast web of creators influencing, supporting, and amplifying one another.</p><p>For this project, I wanted to visualize and analyze that hidden web by mapping collaborations among English-speaking VTubers (Virtual YouTubers) on <strong>Twitch</strong>. Using Twitch’s API and graph theory, I set out to answer one key question:</p><p><strong>Who are the most influential VTubers based on their collaboration networks, and how are they connected?</strong></p><h3>The Question &amp; Why It Matters</h3><h3>The Question</h3><p>Which VTubers hold the most influence within the English-speaking Twitch VTuber community, not just by follower count, but by their <em>position</em> in the collaboration network?</p><h3>Why VTubers?</h3><p>I chose English-speaking VTubers as my focus group because their content ecosystem naturally produces dense collaboration networks. Unlike larger, face-cam streamers such as Kai Cenat, IShowSpeed, Ninja, XQC, or Shroud, VTubers frequently cross-stream, appear in each other’s chats, and co-host events.</p><p>In contrast, traditional streamers often focus on solo content or brand-specific sponsorships, resulting in much sparser graphs with few meaningful connections. By studying VTubers, we can visualize a richer and more community-driven structure of influence.</p><h3>The Stakeholder</h3><p>This question matters to three main groups:</p><ul><li><strong>Talent agencies</strong> — to identify rising or central figures for partnership or recruitment.</li><li><strong>Sponsors</strong> — to target creators who can reach multiple communities efficiently.</li><li><strong>Independent VTubers</strong> — to find potential collaboration partners who can help them grow.</li></ul><h3>The Decision</h3><p>This analysis helps inform <strong>strategic collaboration and sponsorship decisions</strong>, highlighting who connects communities, who dominates central visibility, and who bridges separate creator circles.</p><h3>The Data: What I Used and Why</h3><p>The dataset was built using the <strong>Twitch API</strong> through the twitchAPI Python library. Each row in the data represents a streamer, while the edges represent collaborations or mentions across VOD (video on demand) titles and descriptions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/1*Lgr1DZ7CnmWJoVNJ-wm7Hw.png" /></figure><p>Weighted blend of the above to rank “importance”</p><p>These metrics quantify <em>different types of importance</em>: popularity, structural reach, and influence as a bridge between communities.</p><h3>How I Collected the Data</h3><p>I used Python’s asynchronous tools to efficiently crawl Twitch’s data. The process worked like this:</p><ol><li><strong>Seed Selection:</strong> I began with a list of popular English-speaking VTubers like <em>Ironmouse</em>, <em>Filian</em>, <em>Bao</em>, <em>Zentreya</em>, <em>Vedal987</em>, and <em>KsonOnAir</em>.</li><li><strong>Authentication:</strong> I authenticated through Twitch’s OAuth system to safely access public channel and follower data.</li><li><strong>Data Extraction:</strong> Using twitchAPI, I retrieved VODs and descriptions, searching for collaboration indicators (e.g., “w/”, “feat.”, “collab”, or @username).</li><li><strong>Filtering:</strong> I filtered only <strong>English-language</strong> VODs (en, en-gb, en-us) and applied a <strong>10K follower minimum</strong> to exclude bot-like, impersonating, and small/inactive accounts.</li><li><strong>Data Snowballing:</strong> Each <strong>new username</strong> would become<strong> another nod</strong>e, assuming they met the <strong>10K follower minimum</strong>.</li><li><strong>Graph Construction:</strong> Each qualifying streamer became a <strong>node</strong>, and each co-streaming mention became an <strong>edge</strong>.</li></ol><p>This produced a weighted, undirected graph of roughly <strong>90 nodes</strong> and <strong>over 200 collaboration edges</strong>.</p><p><em>Generated Files (used in analysis)</em></p><ul><li>nodes.csv — all VTubers and metadata</li><li>edges.csv — collaboration links</li><li>centrality_all.csv — complete centrality metrics</li><li>top_by_pagerank.csv, top_by_betweenness.csv, top_by_combined.csv — ranked importance</li><li>graph_pagerank.png — main network visualization</li></ul><h3>What the Graph Represents</h3><ul><li><strong>Nodes (vertices):</strong> Twitch VTuber channels</li><li><strong>Edges:</strong> Collaboration or mention between two VTubers (weighted by frequency)</li><li><strong>Edge direction:</strong> Undirected (mutual collaboration)</li><li><strong>Edge weight:</strong> Number of unique collaborative VODs</li></ul><h3>Defining “Importance” in the Network</h3><p>In this context, importance goes beyond popularity. It’s about <em>influence through connectivity</em>. I measured this using:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*2Q2YqErXwvboLiYkrhhHOw.png" /></figure><h3>Expected Results</h3><ul><li><strong>Importance:</strong> Ironmouse</li><li>Reasoning: As the most subscribed female streamer on Twitch, as well as a previous subscriber record holder, I expect Ironmouse to be of great importance</li><li><strong>Bridges:</strong> CDawg, Vedal</li><li>Reasoning: Both CDawg and Vedal do a large amount of collabs, specifically with brands for CDawg, but VTubers for Vedal. Additionally, despite CDawg not being a VTuber, he is heavily ingrained in the scene and will likely be mentioned by multiple different unrelated groups</li><li><strong>Hubs:</strong> CDawg Vedal</li><li>Reasoning: CDawg and Vedal are likely to be hubs as well due to their bridge status (good connection for breaking out into different spheres)</li><li><strong>Authority: </strong>Ironmouse</li><li>Reasoning: Same as importance, she’s a streamer with many accolades; it would make sense for the streaming community to treat her as an authority.</li></ul><h3>Results: The Network of VTuber Influence</h3><p>Below is the visualization of the Twitch VTuber collaboration network.</p><ul><li><strong>Size = PageRank (influence)</strong></li><li><strong>Color = Depth (distance from the initial seed)</strong></li><li><strong>Edge thickness = Collaboration frequency</strong></li></ul><p><em>Figure 1: EN VTuber Collaboration — Importance Emphasized (Size = PageRank, Color = Depth)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DQ5BsKKfL_z2utLVcQa_Gg.png" /></figure><p>At the center of the network are <em>Filian</em>, <em>Leeandlie</em>, <em>Cdawg</em>, <em>Ellie_minibot,</em> and <em>Bao;</em> these highly connected nodes link multiple groups. Peripheral green nodes represent newer or less collaborative streamers, often connected through one or two popular figures.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LyjPleGgh-qavSigRk_ROA.png" /></figure><h3>Answering the Research Question</h3><p><strong>Who are the most influential VTubers, and how does collaboration shape influence?</strong></p><p>The analysis reveals that <strong>influence in the VTuber community isn’t just about raw followers — it’s about connectivity.</strong></p><ul><li><em>Filian</em> and <em>Leeandlie</em> dominate because they connect with numerous other well-connected creators.</li><li><em>Cdawg</em> and <em>Bao</em> serve as network hubs that tie together distinct creator subgroups.</li><li><em>Aquwa </em>and <em>Crelly</em> act as <em>bridges</em>, connecting clusters that might otherwise remain isolated.</li></ul><p>These findings show that <em>community structure drives visibility</em> — collaborating across groups may matter more than total followers for long-term reach.</p><p>These findings also defy expectations: Ironmouse is not the most important within the VTuber community. While it’s not to say that she has not accomplished a great deal, her relevance within the graph is just not as high as perceived. Despite everyone knowing who she is within the community, those who actually interact with her through on-stream collaborations are relatively few, resulting in a graph that shows the true community connectors and authorities.</p><h3>Validating the Analysis</h3><p>To ensure accuracy, I applied several validation steps:</p><ul><li><strong>Manual Spot-Checking:</strong> I confirmed several collaborations (e.g., <em>Filian x Bao</em>, <em>CottontailVA x Crelly</em>) directly on Twitch to verify the model’s correctness.</li><li><strong>Metric Correlation Check:</strong> PageRank and Weighted Degree correlated strongly (r ≈ 0.94), confirming internal consistency.</li><li><strong>Code Verification:</strong> All Python outputs were cross-checked for consistent node counts and duplicate handling.</li><li><strong>Follower Threshold Validation:</strong> Manually confirmed that 90K+ follower creators aligned with known top VTubers.</li></ul><p><em>Verification Files:</em></p><ul><li>centrality_all.csv — full numeric validation dataset</li><li>top_by_* CSVs — summary rankings</li><li>graph_pagerank.png — sanity-checked final graph</li></ul><h3>AI Use and Verification</h3><p>This project made use of AI (ChatGPT, GPT-5) during development.</p><p><strong>Tasks handled by AI:</strong></p><ul><li>Assistance with writing and debugging the Python scripts</li><li>Diagnosing Twitch API authentication issues</li><li>Designing the follower-filter logic and pagination handling</li><li>Assisting in writing this Medium article’s first drafts</li></ul><p><strong>Verification of AI Output:</strong></p><ol><li>I manually <strong>checked all API responses</strong> to ensure JSON fields matched Twitch documentation.</li><li>I <strong>reviewed and executed</strong> each AI-generated code block locally, ensuring reproducible results.</li><li>I cross-verified <strong>sample accounts</strong> (like <em>Filian</em> and <em>Bao</em>) against their live Twitch data.</li><li>I <strong>rewrote or edited</strong> AI-produced sections when they were inaccurate or too general.</li></ol><p>AI accelerated my workflow, but all quantitative and network results were <strong>empirically validated</strong>.</p><h3>Limitations and Bias</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*jH7ZmHumm-BeiJIxGCqJmA.png" /></figure><p>Despite these constraints, the network structure aligns with public perceptions of VTuber interactions and highlights measurable collaboration clusters.</p><h3>Conclusion</h3><p>This analysis shows that <em>influence in online creator networks is structural</em>.<br>It’s not just about how many fans you have — it’s about how well-connected you are to other central figures.</p><p>For VTubers, this means:</p><ul><li><strong>Collaborate smartly</strong> — cross-community collabs expand reach faster than solo growth.</li><li><strong>Engage bridges</strong> — connecting with “broker” creators can open new audiences.</li><li><strong>Measure beyond followers</strong> — PageRank and betweenness offer deeper insight into social capital.</li></ul><p>By mapping the web of collaborations, we gain a clearer picture of how digital influence <em>actually</em> spreads.</p><h3>Repository and Tag</h3><p><strong>GitHub Repository:</strong> <a href="https://github.com/ETTRAN777/module2Assignment">https://github.com/ETTRAN777/module2Assignment</a><br>Includes: All Python scripts, generated CSVs, and figures.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c69046eb8e99" width="1" height="1" alt=""><hr><p><a href="https://medium.com/inst414-data-science-tech/understanding-structures-of-online-influence-through-the-lens-of-vtubers-c69046eb8e99">Understanding Structures of Online Influence through the Lens of VTubers</a> was originally published in <a href="https://medium.com/inst414-data-science-tech">INST414: Data Science Techniques</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Data-Driven Nutritional Analysis of Chick-fil-A vs. Popeyes]]></title>
            <link>https://medium.com/inst414-data-science-tech/a-data-driven-nutritional-analysis-of-chick-fil-a-vs-popeyes-6943798b8898?source=rss-5caf6bce2238------2</link>
            <guid isPermaLink="false">https://medium.com/p/6943798b8898</guid>
            <category><![CDATA[popeyes]]></category>
            <category><![CDATA[fast-food]]></category>
            <category><![CDATA[nutrition]]></category>
            <category><![CDATA[chick-fil-a]]></category>
            <category><![CDATA[inst414fall25a01]]></category>
            <dc:creator><![CDATA[Ethan Tran]]></dc:creator>
            <pubDate>Tue, 14 Oct 2025 23:36:06 GMT</pubDate>
            <atom:updated>2025-10-28T16:02:13.874Z</atom:updated>
            <content:encoded><![CDATA[<p><em>An INST414 project exploring how data can inform health-conscious and budget-minded meal choices between two major fast-food chains.</em></p><h3>Introduction</h3><p>For a college student, choosing a fast-food meal often involves balancing cost, convenience, and health. However, a “healthy” choice is contextual; for a main course, one might prioritize protein, while for a side or a beverage, the goal might be to minimize fat or sugar.</p><p>This post presents a data analysis comparing three core menu items from Chick-fil-A and Popeyes. By applying specific nutritional criteria to each item, we can determine which restaurant offers a better value proposition for a nuanced, health-conscious consumer.</p><h3>1. The Analytical Framework: Question, Stakeholder, and Decision</h3><p>Every good analysis starts with a clear purpose.</p><ul><li><strong>The Question</strong>: Which fast-food restaurant, Chick-fil-A or Popeyes, offers better <strong>context-specific nutritional value</strong> for their chicken sandwich, fries, and sweet tea?</li><li><strong>The Stakeholder</strong>: A <strong>health-conscious and budget-conscious college student</strong> who applies different nutritional goals to different parts of their meal.</li><li><strong>The Decision</strong>: The analysis will inform the practical decision: <strong>“Which restaurant is the more logical choice for each part of my meal?”</strong></li></ul><h3>2. Data and Relevance</h3><p>To answer our question, we require both nutritional and pricing data for three comparable items.</p><ul><li><strong>Nutritional Data</strong>: This was sourced directly from each company’s official website. The key fields for this analysis are <strong>Protein (g)</strong>, <strong>Total Fat (g)</strong>, and <strong>Sugars (g)</strong>, as they directly align with the stakeholder’s context-specific health goals.</li><li><strong>Price Data</strong>: This was manually collected from the online ordering websites for the restaurants in <strong>College Park, MD</strong>, to ensure a fair, location-specific comparison for the analysis.</li></ul><h3>3. Data Collection and Cleaning</h3><p>The data for this project was manually collected and assembled in a Python script using the pandas library. Nutritional information was transcribed from the official Chick-fil-A and Popeyes websites, and prices were recorded from the online ordering portals for College Park, MD locations.</p><p>Initially, an attempt was made to programmatically extract data from the Popeyes nutritional PDF using the tabula-py library. However, this approach was abandoned due to significant formatting issues that resulted in KeyError and IndexError bugs when trying to parse the DataFrame. These errors are common when dealing with unstructured data sources like PDFs.</p><p>To fix this, the data collection method was simplified. The relevant data points were manually entered into a pandas DataFrame. This “cleanup” approach ensured 100% accuracy and bypassed the parsing bugs entirely, providing a clean, reliable dataset for the analysis.</p><h3>4. Data Validation</h3><p>To ensure the input data and output were reasonable and correct, several validation steps were taken:</p><ul><li><strong>Source Verification</strong>: Each manually entered data point (calories, protein, fat, sugar, and price) was double-checked against the official Chick-fil-A and Popeyes websites to prevent transcription errors.</li><li><strong>Output Sanity Check</strong>: After the script calculated the “value metrics” (e.g., protein per dollar), I performed a quick manual calculation for one item to verify that the code’s output was mathematically correct.</li><li><strong>AI Assistance Validation</strong>: I used an AI assistant to help troubleshoot Python environment issues and to bootstrap the visualization code. To ensure its output was accurate, I read the generated code to understand its logic and confirmed that the chart it produced was a correct visual representation of the data in my final DataFrame.</li><li><strong>AI Document Generation</strong>: I used AI to revise the document I created for the assignment, making improvements to grammar, punctuation, spelling, formatting, and style.</li></ul><h3>5. Exploratory Data Analysis</h3><p>A single metric is insufficient for a comprehensive comparison. Instead, three distinct metrics were created, each tailored to the item being analyzed:</p><ul><li><strong>For the Sandwich: Protein per Dollar</strong> = Protein (g) / Price ($). A <strong>higher</strong> value is preferable.</li><li><strong>For the Fries: Fat per Dollar</strong> = Total Fat (g) / Price ($). A <strong>lower</strong> value is preferable.</li><li><strong>For the Sweet Tea: Sugar per Dollar</strong> = Sugars (g) / Price ($). A <strong>lower</strong> value is preferable.</li></ul><h3>6. Results and Findings</h3><p>The analysis shows that the optimal choice varies by menu item. The table below summarizes the raw data and the calculated value metrics for each item.</p><p><strong>Table 1: Summary of Findings</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bZC-LQCxZlWylC3R_WiCOA.png" /><figcaption>Summary of Findings</figcaption></figure><p>The chart below visualizes these key value metrics for a direct comparison.</p><p>Figure 1: A Head-to-Head Comparison of Nutritional Value Metrics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I972p2KdTbFL61JotjCkUw.png" /><figcaption>Full Nutritional Break Down in grams / price</figcaption></figure><h3>7. Limitations of This Analysis</h3><ul><li><strong>Location-Specific Prices</strong>: Prices are from a single geographic area (College Park, MD) and may not be nationally representative.</li><li><strong>Simplified Metrics</strong>: This analysis ignores other important nutritional factors, such as sodium, trans fats, and total carbohydrates.</li><li><strong>Subjective Factors</strong>: The analysis is purely quantitative and does not account for consumer taste preferences or qualitative aspects of the dining experience.</li><li><strong>Small Sample Size: </strong>The analysis only utilizes shared items between restaurants and excludes a significant portion of each menu.</li></ul><h3>8. Code Repository</h3><p>The complete Python script used for this analysis, including data collection and visualization, is available on GitHub.</p><ul><li><strong>Link</strong>: <a href="https://github.com/ETTRAN777/module1Assignment">https://github.com/ETTRAN777/module1Assignment</a></li></ul><h3>9. Conclusion</h3><p>To determine the better overall restaurant, we can summarize the results from our analysis.</p><p><strong>Summary of Findings:</strong></p><ul><li><strong>Best Sandwich for Protein Value:</strong> <strong>Chick-fil-A</strong></li><li><strong>Best Fries for Fat Value:</strong> <strong>Popeyes</strong></li><li><strong>Best Sweet Tea for Sugar Value:</strong> <strong>Popeyes</strong></li></ul><p>With a favorable outcome in two of the three categories, the data supports a clear conclusion. While Chick-fil-A offers a more efficient sandwich for protein intake, <strong>Popeyes is the better overall choice</strong> when analyzing the nutritional value of a complete meal according to these specific criteria.</p><p>For the student seeking a single restaurant that best aligns with their health and budget goals across a multi-item meal, the data indicates that <strong>Popeyes</strong> is the more logical choice</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6943798b8898" width="1" height="1" alt=""><hr><p><a href="https://medium.com/inst414-data-science-tech/a-data-driven-nutritional-analysis-of-chick-fil-a-vs-popeyes-6943798b8898">A Data-Driven Nutritional Analysis of Chick-fil-A vs. Popeyes</a> was originally published in <a href="https://medium.com/inst414-data-science-tech">INST414: Data Science Techniques</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>