Why I built a UFC fight predictor
13 November 2026 · 5 min read

I have watched the UFC for years. Fight week has a rhythm: the card drops, the odds come out, and I start arguing with myself. He is a wrestler and she has never been taken down. He is 36 and has been knocked out twice in his last three. She looked slow on the scales. Everyone who follows the sport does this, and everyone is sure they see something the line is missing.
At some point I wanted to know if that was true. Not in the pub sense, where you remember the upsets you called and forget the ones you missed, but measured. So I built a model, and I built it in a way that would not let me lie to myself.
The question had to be fair
The first thing I learned is that accuracy is the wrong yardstick. Favourites win about two fights in three. A model that just picks the favourite scores 67% and knows nothing about fighting. The 75% and 80% numbers you see in tutorials online almost always come from leakage: the model has been shown something it could not have known on fight night, like a fighter's stats from a fight that had not happened yet.
So the bar I set was the bookmaker's opening line. The odds already contain most of what fans know. The real question is whether a model that starts from the odds and adds each fighter's history can beat them, scored on log loss, which punishes confident wrong answers rather than counting picks. I also wanted closing-line value: if you bet at the opening price and the line then moves your way, you were early to something real, whatever the result.
How I built it
About 9,000 UFC fights going back to 1993, with per-fight statistics from UFCStats and opening and closing odds from BestFightOdds. Every fight became two fighter histories, and every feature was computed only from what was known before the first bell: Elo rating, age, recent form, striking and grappling rates, time since the last fight, minutes spent in the cage, and whether they are making their UFC debut.
Two models, a logistic regression and a gradient-boosted one, averaged together. I compared hundreds of settings with walk-forward validation, which means every year from 2019 to 2024 was predicted by a model trained only on earlier years, the way it would be used in practice.
Then the part I am most proud of. Before reading a single fight from 2025 or 2026, I wrote down the pass rules, froze the settings in a file, and ran the test once. The test script refuses to run a second time. If the result was bad, that was the result.
What the fan in me learned
Some of what the model found matched the gut. Some did not.
- Age is the thing the market under-prices most. After accounting for the odds, the single biggest adjustment the model makes is for the older fighter, and it gets steeper past 32. Fans say "he has been in wars" and then bet him anyway.
- Knockout artists do not fade late. I expected the big punchers to run out of steam if the early knockout did not come. The data says knockout artists win about as often in fights that reach round three as they do overall, and the same fighters finish at nearly the same rate in three-round and five-round fights.
- It is the chin, not the volume. Knockdowns a fighter has suffered predict future knockout losses far better than the number of strikes they absorb. Getting hit a lot is survivable. Getting dropped is a pattern.
- Judges are more alike than we think. I also fitted a round-scoring model on a public dataset of judge scorecards compiled by nlbair (CC BY 4.0). I went in expecting to show that one judge loves control time and another only counts damage. The data did not support it. UFC judges weigh the same things almost identically; what differs between fights is how close the round was. The useful tool turned out to be a robbery meter, which asks how far a verdict sits from what the consensus judge would have scored.
The honest result
On 932 fights from January 2025 to October 2026 that the model had never seen:
| Accuracy | Log loss (lower is better) | |
|---|---|---|
| Coin flip | 50.0% | 0.693 |
| Opening odds | 66.6% | 0.606 |
| My model | 67.3% | 0.600 |
| Closing odds | 69.7% | 0.584 |
The model edged the opening line, but by too little to rule out luck. It met one of the three conditions I had set, the closing-line value one. Paper bets at opening prices returned +5.2% on 322 bets, with a confidence range that includes zero. The same picks placed at closing prices lost 10%.
That last line is the real lesson. By the time the cage door shuts, the market has absorbed everything a fan with a laptop can find. Whatever edge exists lives early in the week, before the sharp money arrives, and it is small. That is why the app only ever bets on paper.
The second model, which predicts how and when a fight ends, did better against its own benchmark. It beat the plain base rates on all three of its pre-set checks, picking the right method more often and putting the exact result in its top three more often. It still will not call a fight for you. An exact outcome, say a second-round knockout for a specific fighter, is rarely above 10% even when the model has read the fight well.
Why it was still worth building
I did not come out of this with a money machine. I came out with something better for a fan: a calibrated second opinion that knows the sport's history better than I do, and a clear measurement of how much my own eye is worth against the market. Less than I thought, more than nothing, and only early.
The model now runs as a small app where I load each card, score it, and log paper bets so the record keeps itself honest. The judge model and robbery meter are the next pieces, because the thing I actually want to build is a fan-scoring app where your scorecards, the judges' cards and the model's view of the fight sit side by side.
You can try the app and read the full test reports on the project page.
- ufc
- machine learning
- python
- data science
- streamlit