<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: 杰克法拉利</title>
    <description>The latest articles on DEV Community by 杰克法拉利 (@_73f88ca6d9f9bd82d23).</description>
    <link>https://dev.to/_73f88ca6d9f9bd82d23</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4132257%2F888702c4-1558-434a-93b5-ac20a9643393.png</url>
      <title>DEV Community: 杰克法拉利</title>
      <link>https://dev.to/_73f88ca6d9f9bd82d23</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/_73f88ca6d9f9bd82d23"/>
    <language>en</language>
    <item>
      <title>I Built a Football Data Analysis Pipeline From 220,000 Matches</title>
      <dc:creator>杰克法拉利</dc:creator>
      <pubDate>Sat, 19 Sep 2026 02:17:32 +0000</pubDate>
      <link>https://dev.to/_73f88ca6d9f9bd82d23/i-built-a-football-data-analysis-pipeline-from-220000-matches-4gen</link>
      <guid>https://dev.to/_73f88ca6d9f9bd82d23/i-built-a-football-data-analysis-pipeline-from-220000-matches-4gen</guid>
      <description>&lt;p&gt;&lt;em&gt;For academic research only. Not betting advice.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub&lt;/strong&gt;: &lt;a href="https://github.com/MENG-COOLMAN/PitchQuant" rel="noopener noreferrer"&gt;MENG-COOLMAN/PitchQuant&lt;/a&gt; — MIT license, free to use.&lt;/p&gt;




&lt;h2&gt;
  
  
  The TL;DR
&lt;/h2&gt;

&lt;p&gt;Six months. 227,000 matches. One question: &lt;strong&gt;what can you actually learn from football odds?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This is not a "prediction oracle." Football is chaotic and markets are efficient — I put that on the front page. But if you've ever stared at a line of odds and wondered if there's a signal hiding in the noise, this post is for you.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I built this
&lt;/h2&gt;

&lt;p&gt;It started with a simple frustration. Two teams both at 1.50. One wins every time. The other doesn't. Why?&lt;/p&gt;

&lt;p&gt;I started pulling data — de-vigging, ELO ratings, Poisson models. At first it felt like I was onto something. Then reality hit: after a few hundred matches, &lt;strong&gt;no single indicator beats the market&lt;/strong&gt;. De-vigged probabilities land within ±5pp. ELO gaps explain maybe 10% of variance. Standard Poisson is basically guessing on 3:2 vs 2:1.&lt;/p&gt;

&lt;p&gt;But here's the thing: when you combine weak signals with proper weights and strict backtesting gates, directional accuracy climbs from 48% to around 55%. That number isn't flashy. But in the odds world, every single percentage point is real money.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it looks like
&lt;/h2&gt;

&lt;p&gt;It's an &lt;strong&gt;LLM-as-runtime&lt;/strong&gt; architecture. Think of it as a very picky analyst who refuses to skip steps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Python scripts&lt;/strong&gt; do the math — de-vigging, Kelly criterion, Dixon-Coles Poisson, score lookup tables. The LLM doesn't question what the numbers say.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;34 knowledge files&lt;/strong&gt; tell the LLM what to look for — league quirks, European two-leg adjustments, halftime patterns, water-level traps. Every rule comes from backtests, not gut feel.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;238 automated checks&lt;/strong&gt; catch mistakes. If a rule says one thing and the data says another, it fails loudly. "No number = not done" is a hard rule.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuuu9hd4swroi2fpt1fw5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuuu9hd4swroi2fpt1fw5.png" alt="PitchQuant project README showing architecture and badges" width="800" height="547"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For a single match, the pipeline runs like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Odds input → De-vig probabilities → 12 hardcore checks → Odds movement morphology →
Scenario rules → 26 inference checks → League calibration → Home/away factor →
Direction → Goals magnitude → Score spectrum → Totals → Self-check
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The magic isn't the number of steps. It's that &lt;strong&gt;each step's output feeds directly into the next&lt;/strong&gt;. No skipping. No "these two steps just happened to both be in the report."&lt;/p&gt;

&lt;h2&gt;
  
  
  Five things I learned
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. The weak-consensus trap
&lt;/h3&gt;

&lt;p&gt;When the market isn't strongly convinced (skew &amp;lt; 150%), the "favorite" wins only &lt;strong&gt;36-43%&lt;/strong&gt; of the time. That's a coin flip. Betting the favorite here loses over time. The draw is consistently underpriced and must be listed as a co-primary outcome. I learned this the expensive way.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Deep odds don't always mean safe
&lt;/h3&gt;

&lt;p&gt;Home odds below 1.30 look like a lock. But if the Asian handicap only moves 0.5-0.75 (shallow at low odds), actual home wins drop from &lt;strong&gt;74% to 56%&lt;/strong&gt;. Low odds + shallow handicap = trap. You can't see this from European odds alone — you need the Asian water level. This one signal alone was worth the entire project.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Over 2.5 and exact score are different games
&lt;/h3&gt;

&lt;p&gt;Everyone assumes "over 2.5 means big scores." Wrong. When the O2.5 line is low (strong over expectation), the Top-2 score hit rate actually &lt;strong&gt;drops&lt;/strong&gt;. Why? Because high-scoring matches have more dispersed scorelines. 2:1, 3:1, 2:2, 3:2 all go over 2.5. You nail the direction but can't pin the exact score. Took me weeks to accept this trade-off.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. More machine learning isn't always better
&lt;/h3&gt;

&lt;p&gt;I was excited about online ML (River's ADWIN drift detection). It sounded cutting-edge. Backtesting showed only a &lt;strong&gt;0.68pp&lt;/strong&gt; improvement — and only on matches where the market was already weak. Forcing it onto strong-signal matches just added noise. So I built a gate: strong market signal → learning stays out. Weak signal → learning gets a co-reference slot. Sometimes the best ML model is the one you don't use.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Poisson isn't a crystal ball
&lt;/h3&gt;

&lt;p&gt;Dixon-Coles correction helps, but it still assumes goals are independent events. In reality, a leading team sits back, the trailing team throws everyone forward. Poisson can't model that. So it's just one engine — you also need to fuse with the actual score odds distribution from the market. The market already did the hard work; your job is to read it, not replace it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The honest numbers
&lt;/h2&gt;

&lt;p&gt;Before anyone gets too excited:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Direction accuracy: ~50% baseline, &lt;strong&gt;~55-58%&lt;/strong&gt; with model optimization&lt;/li&gt;
&lt;li&gt;Top-2 score hit rate: ~25% baseline, &lt;strong&gt;~30%&lt;/strong&gt; on strong-signal matches&lt;/li&gt;
&lt;li&gt;These are time-split backtest numbers from 227k matches. They do &lt;strong&gt;not&lt;/strong&gt; predict the future.&lt;/li&gt;
&lt;li&gt;Long-term EV on sports lottery is structurally negative. No model changes that.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The point isn't "how to win." It's building a data analysis methodology. If you're into quant/data science, these ideas (de-vig calibration, anti-overfitting gates, evidence-bound self-checks) generalize to any prediction project.&lt;/p&gt;

&lt;h2&gt;
  
  
  Open source
&lt;/h2&gt;

&lt;p&gt;The project is on GitHub under MIT license:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkgs8bzkbzrx29dxb75k3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkgs8bzkbzrx29dxb75k3.png" alt="GitHub repository file structure" width="800" height="468"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;All core scripts are Python, stdlib-heavy, no heavy frameworks&lt;/li&gt;
&lt;li&gt;Distilled JSON lookup tables (backtest artifacts) are included&lt;/li&gt;
&lt;li&gt;Raw 227k-match CSV not included (size + source terms)&lt;/li&gt;
&lt;li&gt;You need your own API keys (odds-api and api-football both have free tiers)&lt;/li&gt;
&lt;li&gt;Calibrated for top-5 European leagues + Champions League / Europa League&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One last thing: this project is for academic research and technical exchange only. It does not constitute investment advice. Football is round. Data reduces mistakes; it doesn't beat probability.&lt;/p&gt;

&lt;p&gt;If you found this interesting, star it on GitHub and drop an issue. Happy to discuss architecture, backtesting, or anything in between.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;A student studying for grad school in financial math. Built this bit by bit in my spare time. All the data, rules, and code are on GitHub. Come build with me.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>quantitativefinance</category>
      <category>footballanalytic</category>
      <category>python</category>
      <category>datasciencu</category>
    </item>
  </channel>
</rss>
