<?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 Ming Chao on Medium]]></title>
        <description><![CDATA[Stories by Ming Chao on Medium]]></description>
        <link>https://medium.com/@mingchao?source=rss-cb0e37a4d685------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*9y7wNmYCQnpvGnczqWU3CQ.jpeg</url>
            <title>Stories by Ming Chao on Medium</title>
            <link>https://medium.com/@mingchao?source=rss-cb0e37a4d685------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 00:27:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mingchao/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[A Data Experiment: Could Ohtani’s Decline Have Been Spotted Earlier?]]></title>
            <link>https://medium.com/@mingchao/a-data-experiment-could-ohtanis-decline-have-been-spotted-earlier-c3ab8c0b3406?source=rss-cb0e37a4d685------2</link>
            <guid isPermaLink="false">https://medium.com/p/c3ab8c0b3406</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[baseball]]></category>
            <dc:creator><![CDATA[Ming Chao]]></dc:creator>
            <pubDate>Sun, 15 Nov 2026 15:26:40 GMT</pubDate>
            <atom:updated>2026-11-15T15:26:40.378Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EiUhRgfHi1xQep_-LhuRLg.png" /></figure><p>On September 2, 2026, Dodgers manager Dave Roberts stood at a postgame podium and said what many fans had been feeling: Shohei Ohtani was “not himself.”</p><p>“Clearly the swings aren’t who he is,” Roberts said. “Obviously, there’s some compensation. He’s not close to optimal.”</p><p>Now that the season is over, I went back and looked at the <a href="https://baseballsavant.mlb.com/">SAVANT </a>numbers — just out of curiosity. I wanted to see: <strong>looking back at the data, were there signs of the decline before Roberts said it out loud?</strong></p><p>I’m not a scout, not an analyst, not an insider. I’m a baseball fan who likes playing with data. So I tracked five Statcast sub-metrics through the season, and then ran a machine-learning model on the same numbers to see if it agreed.</p><h3>What the Data Shows (In Hindsight): 55–62 Days</h3><p>Looking back, the sub-metrics appear to show signs of decline as early as <strong>July 8</strong>, when exit velocity’s rolling average first dropped into what I’d call a danger zone. A machine-learning method, Local Outlier Factor (LOF), flagged a similar shift a week earlier, on July 1. Roberts first addressed it publicly on September 1, 55 to 62 days later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YxRXpUS61ywWKta9M170qA.jpeg" /></figure><h3>The Five Metrics I Tracked</h3><p>Before diving into the detection methods, here’s what I actually measured. I built a composite Performance Score from five Statcast metrics, each converted to a 0–100 scale where <strong>50 = his regular-season normal</strong>. Each metric captures a different dimension of the swing:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8slDnNbseEKYa1dEaqw4_g.png" /></figure><p>Here’s what each one actually measures:</p><ul><li><strong>Bat Speed (25%)</strong> — How fast the bat is moving at the point of contact, measured in mph by Statcast’s bat-tracking system. Faster swings generate more power. When bat speed drops, it often signals fatigue, pain, or mechanical compensation.</li><li><strong>Exit Velocity (25%)</strong> — How hard the ball comes off the bat after contact, measured in mph. This is the single best predictor of whether a batted ball becomes a hit. A hitter can have a fast swing but poor exit velocity if the contact point is off.</li><li><strong>xwOBA (20%)</strong> — Expected Weighted On-Base Average. Think of it as an overall batting grade — like a GPA for hitting. It uses exit velocity and launch angle to estimate what a hitter’s results <em>should</em> be, removing luck and defense. League average is around .310–.320.</li><li><strong>Chase Rate (15%)</strong> — How often a hitter swings at pitches outside the strike zone. Lower is better. When a hitter starts chasing bad pitches, it usually means his timing is off or he’s compensating — swinging early because he can’t catch up, or expanding the zone out of frustration.</li><li><strong>Whiff Rate (15%)</strong> — How often a hitter swings and misses entirely. Lower is better. Rising whiff rates suggest the hitter is losing bat control or misjudging pitch movement — a sign that something in the swing mechanics has changed.</li></ul><h3>What I Did: Sub-Metric Tracking</h3><p>I tracked each metric as a 10-game rolling average and noted when any dropped below 40. Looking back, they didn’t all drop at once - they fell one by one: Exit Velocity (Jul 8) → Whiff Rate (Jul 21) → Bat Speed (Aug 3) → Chase Rate (Aug 4). I don’t know why they fell in that order, but the pattern is interesting.</p><h3>A Second Look: Running an ML Algorithm</h3><p>I was curious whether the sub-metric patterns were just noise, so I tried a basic ML method called Local Outlier Factor (LOF). It looks at all six metrics at once and asks: “does this game look like a normal Ohtani game?” I figured if it independently pointed to the same July–August window, that might be worth noting.</p><p>Interestingly, LOF’s first decline-period flag came on <strong>July 1</strong> — about a week before any individual sub-metric crossed its own line. My guess is that LOF picked it up earlier because it looks at the <em>combination</em>: a game where bat speed is slightly low, exit velocity is slightly low, and chase rate is slightly high might pass every individual threshold,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4L0HdjDsmadKY8AV6KMNKQ.jpeg" /></figure><h3>The Timeline I See in the Data</h3><p>Here’s what it looks like when I lay both methods on the same timeline. Five data points — one from LOF, four from sub-metrics — all fell between July 1 and August 4, each before the coach’s September 1 comment. Again, this is hindsight — I’m just charting what the numbers show.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*We_CO-g32R9-ktEEWqQlEw.jpeg" /></figure><h3>The Full Timeline: Data vs. Coach</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7dwUA31EmtDnNXj_P6PB9g.jpeg" /></figure><h3>The Component Breakdown</h3><p>Five component sub-scores (10-game rolling average). Lines turn red when they enter the danger zone (below 40).</p><p>Injury events span all panels as vertical dotted lines; event labels appear once at the top. Signal: EV (Jul 8) → Whiff (Jul 21) → BS (Aug 3) → Chase (Aug 4)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NKTkasUziiAU2HudnQsi_Q.png" /></figure><h3>What Does This Suggest?</h3><p>One player, one season, all hindsight. I have no idea what the Dodgers knew privately. But two different methods both pointed to early July — about two months before it was said out loud. Maybe that’s meaningful, maybe not. Just sharing what I found in the numbers.</p><h3>Beyond Baseball</h3><p>This started as a baseball experiment, but the pattern feels familiar beyond sports.</p><p>That happens everywhere. A business can hit its revenue target while less visible signals like customer loyalty, satisfaction scores, or online sentiment quietly slip. A product ships on time while code quality metrics are trending the wrong way.</p><p><em>When headline numbers still look good, are the metrics underneath quietly deteriorating?</em></p><p>It’s easy to trust a strong track record and wait for a bounce-back. But by the time a problem becomes obvious, the window to act may have already narrowed.</p><p><em>What is your data telling you before the headlines do?</em></p><p><em>Disclaimer: I’m not a sports expert — just a baseball fan who likes playing around with data. Everything here is from a data perspective, not a practical scouting or coaching view.</em></p><p>Other reference:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z4svhhZzEQ-bIzjBuXQ4XQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c3ab8c0b3406" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Some Google Analytics 4 (GA4) settings may confuse first-time users]]></title>
            <link>https://medium.com/@mingchao/some-google-analytics-4-ga4-settings-may-confuse-first-time-users-928364bb9ba1?source=rss-cb0e37a4d685------2</link>
            <guid isPermaLink="false">https://medium.com/p/928364bb9ba1</guid>
            <category><![CDATA[filters]]></category>
            <category><![CDATA[referral-marketing]]></category>
            <category><![CDATA[google-analytics]]></category>
            <category><![CDATA[universal-analytics]]></category>
            <category><![CDATA[ga4]]></category>
            <dc:creator><![CDATA[Ming Chao]]></dc:creator>
            <pubDate>Mon, 13 Jun 2022 11:16:59 GMT</pubDate>
            <atom:updated>2022-06-13T11:16:59.650Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YSogMWZTo7jqZbIEMb8enA.jpeg" /></figure><p><strong>Universal Analytics(UA)</strong> is a widely used tool to track online and offline web metrics. Google recently announced that Universal Analytics will stop processing data after July 1, 2023. After this date, Google intends to keep historical data for at least six months in Universal Analytics before disabling UA completely.</p><p>If your organization currently uses Universal Analytics(UA), I recommended <strong>setting up GA4 ASAP with GA4 and UA running in parallel.</strong></p><p>GA4 offers multiple benefits. However, the initial setup can be confusing as many options are renamed, moved, or no longer supported.</p><p>In this article, I would like to go over four critical settings in GA4 that first-time users may miss:</p><blockquote><strong>UA: Referral Exclusion List := GA4: List Unwanted referrals</strong></blockquote><blockquote><strong>UA: Cross Domain := GA4: Configure your domain</strong></blockquote><blockquote><strong>UA: Sessions timeout := GA4: Adjust session out</strong></blockquote><blockquote><strong>UA filter vs. GA4 Internal traffic / QA/ Dev traffic Filter</strong></blockquote><p><strong>➤ UA: Referral Exclusion List:= GA4: List Unwanted referrals</strong></p><p>Universal Analytics tracks referral traffic to your sites.</p><p>Suppose your sites contain multiple domains or 3rd party payment services such as PayPal and users visit these domains during their journey. By default, Google Analytics treats these domains as external traffic and overwrites earlier referral information.</p><p>We can add these domains to the referral exclusion lists to make sure Google Analytics treats internal domains as internal traffic.</p><p>Here are the steps to set up referral exclusion domains:</p><blockquote>UA: Property -&gt; Referral Exclusion List</blockquote><blockquote>GA4: Property -&gt; Data Streams -&gt;More Tags Settings -&gt; List Unwanted referrals</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lPvki9aKOCA9GhHa0lTA9w.png" /></figure><p>In GA4, the referral exclusion list is at the <strong>data stream level</strong>, which means you could have different referral settings on different data streams.</p><blockquote>Tip: The referral exclusion list is pre-defined. Adding a report in GA or Google Data Studio is recommended to monitor referral traffic.</blockquote><p><strong>➤UA: Cross-Domain (Link Domain) := GA4: Configure your domain</strong></p><p>If your sites contain multiple domains and would like to have GA4 keep sessions live when users visit across multiple internal domains. We can set up cross-domain to make sure GA tracking on various domains.</p><p>In Universal Analytics(UA), we could set the Linker variable to specify linked domains.</p><p>Here is how to set cross-domains in UA vs. GA4.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YsnGLHOhAQRnK4-fT0E4CQ.png" /></figure><p><strong>➤UA: Sessions timeout:= GA4: Adjust session out (default 30mins)</strong></p><p>By default, UA and GA set the default session timeout to be 30 minutes.</p><p>You can set a custom session timeout threshold in Universal Analytics if your site users typically require more time on the page.</p><p>When creating a GA4 profile, Google does not carry over the session timeout settings in UA. It’s critical to ensure that session timeout definitions are consistent when switching to GA4.</p><p>Here is how to set up session timeout in GA4.</p><p>Property -&gt; Data Streams -&gt;More Tags Settings -&gt; Configure your domain</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*iGlym_rpHihHJCZ29hItHA.png" /></figure><p><strong>➤Internal traffic / QA/ Dev traffic Filter</strong></p><p>In <strong>Universal Analytics(UA)</strong>, you can create multiple views for your sites and apply custom filters to filter data. One typical practice is to create two views</p><ol><li><strong>Unfiltered view</strong>: the view without any filter captures every hit and pageview.</li><li><strong>Production View</strong>: the view excluded unwanted traffic such as developers, QA, or internal traffic.</li></ol><p>However, there is <strong>no view concept in GA 4. </strong>Filtering unwanted traffic requires settings on <strong>two </strong>levels</p><ol><li><strong>Data steam </strong>level to define internal traffic rule</li><li><strong>Data settings</strong> level to apply internal traffic rule to incoming data steams.</li></ol><p>Step1: <strong>(Data steams Level)</strong> to define internal traffic</p><p><em>Menu locations: select data steams -&gt; More tagging settings -&gt; Define Internal traffic.</em></p><p>Specify internal IP rules for your internal traffic IP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GssCCjKuLecuJnpl-S-4yQ.png" /></figure><figure><img alt="Defined Internal IP address range" src="https://cdn-images-1.medium.com/max/1024/1*EJP2B0bBjHhGT6ADdjeGlw.png" /></figure><p>Step 2: <strong>(Data Settings level) </strong>To apply the internal traffic rule as filters</p><p><em>Menu: Select Data settings -&gt; Data Filters -&gt;Create Filter -&gt; Internal Traffic.</em></p><p>Set your own data <strong>filter name</strong> and <strong>filter type</strong> = exclude or include</p><p>Set <strong>traffic_type</strong> matches the values of traffic_type Data steams level.</p><p>The default filter state is Testing. The traffic matched this filter will be tagged with Test data filter data = <em>[Your custom data filter name]</em> and will be available in GA 4 reports.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kxn2Bm8iZHh2F5v7YbOz-w.png" /></figure><p>Here is what it would look like in the GA4 report:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*DSE1UzG5AOfYJZ6pOaViDg.png" /></figure><blockquote>Tip: Test your filters to avoid incorrect filter settings. A newly created filter only applies to incoming traffic and doesn’t apply to past traffic (i.e., historical data). Incorrect settings cause inaccurate data, and data reflected on the reports cannot be corrected.</blockquote><p><strong>Summary</strong>:</p><p>With GA4 rollout next year, several changes will impact how we measure web performance, and Google has made some settings and reporting more complicated. I would recommend starting GA4 ASAP so Google Analytics users in your organization can have a smooth GA migration.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=928364bb9ba1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>