How the model changed over the season, and which of its parts actually moved the hit rate. Matchup factors use the 515 picks from Jul 8 – Sep 29, when every model input was logged. Ballpark, home/away and game time use all 1,406 scored picks.
BTS is an open-source pick recommender for MLB's Beat the Streak. Code, data export script and a Markdown version of this report are on GitHub: dmsers/bts · report
Weekly hit rate against the model's average prediction for the same picks. The shaded bands are the model versions in the project's commit history. The small marks along the bottom are commits that changed how picks were scored. Predictions swung from the low 70s to above 100%. The actual hit rate stayed between about 61% and 70% in every version.
| Version | Picks scored | Picks | Predicted | Actual | Gap | #1 pick | Hit ranked above miss |
|---|
"Hit ranked above miss" is how often a pick that got a hit had a higher score than a pick that didn't. 50% means the scores didn't sort hitters at all. Every version sits between 47% and 52%. Some changes show up in the picks a day or two before their commit date, so the code was running before it was committed.
From the project's commit history. Only changes to how picks are scored are listed.
Mar 28 – May 6
The heuristic. 2025 batting average × opposing pitcher WHIP × platoon bonus × contact bonus (K%), turned into a chance of at least one hit over the expected plate appearances for the batting-order spot. Park factors were added the evening of Mar 28.
Apr 5: confirmed lineups scored first; teams without a lineup scored from a projected pool at the 5th spot. Apr 10: projected pools limited to the active roster. Apr 12: at most 3 picks per opposing pitcher, and a small penalty for hitters with fewer plate appearances. May 2: doubleheaders scored as two chances.
Committed May 8 · picks from May 7
Pitcher BAA and the season hit-rate blend arrive. The pitcher factor became 65% BAA, 35% WHIP. The contact bonus got steeper, same-side matchups got a 3% penalty, and unknown handedness stopped defaulting to switch hitter. The final score started blending in the hitter's season hit rate at 15–50% weight.
The hit rate was calculated as hits per game, which can be above 1.0. That is what pushed 14 picks over 100% on May 7–12.
Committed May 16–17 · picks from May 13
The over-100% bug capped, the blend turned up. Hits per game was capped at 1.0. The pitcher factor got an exponent and a pitcher strikeout adjustment, then was reweighted to 80% BAA, 20% WHIP. The blend weight rose to 40–70%. The per-pitcher limit went to 2, then back to 3 with 3% and 5% penalties.
Most regulars average at least a hit per game, so most picks got the same capped 1.0 for 40–70% of their score. That is the tight band near 94%.
Committed May 31 · picks from May 29
The formula still in use. The hit rate became games with a hit ÷ games played, capped at 92%, at 30–60% weight. The pitcher factor became BAA only, measured against a league baseline, so WHIP left the pitcher factor. Added a team pitching-staff factor, a recent-form bonus, and a conversion over expected at-bats instead of plate appearances. The per-at-bat cap rose to .450.
Jul 3: league baselines updated (.245 → .249 BA, .280 → .282 BAA).
Saved Jul 8, committed Jul 18
Same formula, inputs saved. Every pick's inputs started going to prediction_features. The scoring itself didn't change.
Sep 25
Season hit rate stops getting wiped. The nightly stats load was overwriting stored hit rates with blanks when the source didn't have them. Before the fix, 20% of logged picks had no hit rate and skipped the blend. Only one day since has results.
One more: apply_first_base_leverage(), a first-baseman defense adjustment, has been in recommend.py since Apr 5 but is never called.
The matchup findings describe the formula in use now. The scoring hasn't changed since the May 31 tune-up apart from the Jul 3 baseline update, so the Jul 8 – Sep 24 picks are a fair test of the current model, not an old version.
WHIP isn't in the pitcher factor anymore, and it predicted hits. Since May 31 the pitcher factor uses BAA only. Opposing WHIP still separated picks by about 10 points, more than BAA did (about 6). It is worth testing again as an input.
The blend was the source of both early problems, and the Sep 25 fix applies it to more picks. Hits per game drove the over-100% days and the squeeze near 94%. In the current version, hitters with the highest season hit rate did slightly worse. The fix turns the blend on for the 20% of picks that were skipping it. Check that it helps before trusting it.
Recent form has never worked. It arrived May 31. get_recent_form() looks hitters up in results by FanGraphs ID, but backfill_results.py stores results by MLB ID, so no rows match. Every pick got 0 recent games and a 1.0 form bonus.
Park factors were in every version, but the predicted values weren't. Each version used the same park table, so the ballpark hit-rate comparison is fair across the season. The predicted values blend different formulas: Coors Field picks were predicted at 88.2% before May 29 and 78.6% after, and hit 68.6% and 65.2%.
The versions changed the confidence, not the results. Actual hit rate ran 61–70% in every version while predictions ranged from 73% to 98%. The May 31 tune-up made the model more honest, closing the gap from about 34 points to about 12. None of the versions sorted hitters better than chance.
For next season, save the version with every pick. config.MODEL_VERSION exists but is never saved. Writing it to recommendations and prediction_features and bumping it with each commit would tie each pick to its formula without reading the git log.
For each factor, the hit rate of the favorable group minus the unfavorable group, in percentage points. The blue line is the 95% range. The orange diamond is how much difference the model expected between the same two groups. Most diamonds sit near zero: the model barely separated picks that went on to hit at very different rates.
The model first scores each hitter per at-bat (batting average × pitcher × platoon × contact × park × team). Then it converts that score to a chance of at least one hit and blends in the hitter's season hit rate at 30–60% weight. Sorting the same daily lists by the per-at-bat score would have picked better.
Picks split into thirds by each input. Strikeout rates, on both sides, separated hitters most: high-strikeout hitters and high-strikeout pitchers each cost about 9–10 points. Batting average barely mattered once a hitter was already on the list.
When the lineup wasn't posted yet, the model assumed the 5th spot. Those 278 picks hit 55.0%. With a posted lineup, top-of-the-order hitters did best. The model gave all of these groups about the same chance.
All 1,406 picks by home park, highest hit rate first, with each park's hit factor. Hitter-friendly parks were only 2.5 points better than pitcher-friendly ones, and most parks have too few picks to tell apart. Coors Field, the one big factor (1.15), drew 11% of all picks and hit 66.7%, about 4 points better than everywhere else. Its 82.8% predicted mixes model versions: 88.2% before May 29, 78.6% after.
Pitcher quality and strikeouts mattered most. The pitcher factor, opposing WHIP, and both hitter and pitcher strikeout rates each moved the hit rate by about 9–11 points. The model's final score expected 0–3 points.
Waiting for lineups is worth about 13 points. Picks made with a posted lineup hit 67.9%; picks made before it hit 55.0%. Leadoff and 2nd-spot hitters with a posted lineup hit 70.8%.
The season hit-rate blend works against the matchup. Hitters with the highest season hit rate did slightly worse on these picks. Giving that number up to 60% of the final score is why the final score ranks no better than chance.
Ballpark and home/away are small effects. Each is within a few points and inside the margin of error. The Coors bonus pulled a lot of picks to Colorado for a modest gain.
Treat the 75.5% as a lead, not a result. It comes from 53 days, and the per-at-bat rule was chosen after looking at four options. Its 95% range is roughly 62–85%. A full-season backtest after the data fixes below would confirm it.
Found in the logged features. These factors couldn't help the picks because the data feeding them was missing or defaulted.
Every opposing pitcher is logged as right-handed. All 515 rows have pitcher_throws = R, so the lefty/righty platoon bonus never saw a lefty starter.
Too many hitters are stored as switch hitters. v0.2 stopped the scoring code from assuming switch hitter, but the stored batting side still says S for 261 of 515 picks, including Yordan Alvarez, Chase DeLauter and Yandy Díaz. Those picks hit 55.9%, compared with 69.0% for picks tagged left-handed.
Recent form never matched a hitter. results is keyed by MLB ID and the lookup uses the FanGraphs ID, so recent_form_games, hits and streak are 0 on every row and form_bonus was always 1.0.
Arizona has no park factor row. Chase Field games (56 picks) defaulted to 1.00. Washington home games are stored as Natio and also miss the join.
64 picks had no matched pitcher. Those used a flat .250 BAA instead of the real starter's numbers.
123 picks expected fewer than 3 at-bats (as low as 1.3) because the hitter's AB and PA came from different sources. That lowered their score for reasons unrelated to the matchup.
Some team names are truncated (Los A, New Y, San F) in recommendations.team_abbr, and the doubleheader flag is never set. Home/away was corrected for this page.
| Factor | Favorable vs unfavorable | Picks | Hit rates | Actual diff | 95% range | Model expected |
|---|
recommendations joined to prediction_features, games and park_factors, picks with a verified result through Sep 29, exported Sep 30, 2026 with export_factor_data.py.prediction_features rows start Jul 8. Earlier picks have outcomes but no logged inputs, so they appear only in the ballpark, home/away and day/night comparisons.park_factors hit factor; parks with no row are left out of that comparison.