MLB Regression Flagger
Table of Contents
Example
Scenario: User asks "Is Junior Caminero a buy-low candidate or am I chasing noise?"
Raw data gathered from Baseball Savant + FanGraphs (cite URLs):
- Caminero 2026 wOBA: .310 (actual results)
- Caminero 2026 xwOBA: .380 (expected based on exit velocity + launch angle)
- BABIP: .255 (well below .300 league mean)
- Barrel %: 14.2% (elite, 90th percentile)
- Hard-Hit %: 52% (elite)
Regression index calculation:
regression_index = (xwOBA - wOBA) x 500
= (.380 - .310) x 500
= +35
Secondary check — BABIP: .255 is below the .240 lower-outlier threshold for hitters only if we tighten further, but .255 plus elite contact quality confirms unlucky. Not a "will correct to .300" player, but unlikely to stay at .255 given the batted-ball profile.
Verdict: regression_index = +35 → BUY. Caminero has been unlucky; underlying contact quality is elite. Expect his surface stats to catch up over the next 30 days.
User-facing translation (per CLAUDE.md rule #5 — beginner writing):
"Junior Caminero's raw numbers look mediocre (.310 wOBA — that's a catch-all hitting stat), but the quality of his actual contact (how hard and at what angle he hits the ball) suggests he should be hitting .380. The gap is one of the biggest in the league. ADD if available, or OFFER a trade for him before his stats correct."
Signal file emission (per signal-framework.md):
---
type: regression
date: 2026-04-17
emitted_by: mlb-regression-flagger
player: Junior Caminero
regression_index: +35
direction: BUY
confidence: 0.78
source_urls:
- https://baseballsavant.mlb.com/savant-player/junior-caminero-...
- https://www.fangraphs.com/players/junior-caminero/...
---
Workflow
Copy this checklist and track progress:
Regression Flagger Progress:
- [ ] Step 1: Define the candidate list (who to check)
- [ ] Step 2: Web-search Savant for expected stats (xwOBA, xERA, xBA)
- [ ] Step 3: Web-search FanGraphs for surface stats (wOBA, ERA, BABIP, HR/FB)
- [ ] Step 4: Compute regression_index per player
- [ ] Step 5: Apply secondary flags (BABIP, HR/FB)
- [ ] Step 6: Emit signal file + user-facing translation
Step 1: Define the candidate list
Who are we checking? Three entry points:
Step 2: Web-search Baseball Savant for expected stats
See resources/methodology.md for exact queries and URL patterns.
Step 3: Web-search FanGraphs for surface stats
See resources/methodology.md for query patterns.
Step 4: Compute regression_index
See resources/methodology.md for the formulas.
Step 5: Apply secondary flags
Step 6: Emit signal file + user-facing translation
Common Patterns
Pattern 1: The Elite-Contact, Bad-Luck Hitter (classic BUY)
- Signals: xwOBA - wOBA ≥ +.050, Barrel % ≥ 90th percentile, BABIP ≤ .260
- Typical profile: Young hitter with elite exit velocity whose line drives are finding gloves
- Action: Aggressive BUY. Offer a trade for them before the market catches on. Bid FAAB if they are on waivers.
- Example: Junior Caminero — xwOBA .380 vs wOBA .310, BABIP .255 →
+35, BUY.
Pattern 2: The Lucky Journeyman (classic SELL)
- Signals: wOBA - xwOBA ≥ +.050, Barrel % below median, BABIP ≥ .360
- Typical profile: Career-average hitter riding a hot streak on soft contact
- Action: SELL high. Try to trade them for a BUY-LOW target of real talent.
- Example (hypothetical): Utility IF hitting .310 with a .360 BABIP and xwOBA .295 vs wOBA .340 →
-22, SELL.
Pattern 3: The Pitcher-Lucky Starter (SELL)
- Signals: ERA much lower than FIP (e.g., 2.50 ERA, 4.20 FIP), HR/FB < 8%, strand rate (LOB%) > 80%
- Typical profile: Starter whose fly balls aren't leaving the park and whose inherited runners aren't scoring
- Action: SELL while his ERA still looks shiny.
- Regression_index example:
(FIP - ERA) x 50 = (4.20 - 2.50) x 50 = +85. But for pitchers a large FIP-ERA gap means he has been LUCKY → flip sign → -85, SELL. See methodology for sign convention.
Pattern 4: The Pitcher-Unlucky Starter (BUY)
- Signals: ERA well above FIP (e.g., 5.10 ERA, 3.40 FIP), HR/FB > 17%, LOB% < 68%
- Typical profile: Good stuff, bad sequencing / BABIP luck
- Action: BUY before the ERA corrects.
Pattern 5: Conflicting Signals (WATCHLIST, not actionable)
- Signals: xwOBA-wOBA gap is large but Barrel % is below median, OR BABIP is extreme but contact quality confirms it
- Action: Do NOT auto-flag BUY/SELL. Emit
regression_index with reduced confidence (< 0.5) and place on watchlist for another week.
Guardrails
Sample-size minimum: Do not emit a regression_index for a hitter with fewer than 80 PAs or a pitcher with fewer than 30 IP. Statcast expected stats are noisy below that. If below threshold, emit confidence: 0.3 and label too-early.
Sign convention for pitchers: (FIP - ERA) x 50 gives a raw number. A POSITIVE raw number means ERA < FIP → the pitcher has been LUCKY → negate to produce a NEGATIVE regression_index (SELL signal). A NEGATIVE raw number means ERA > FIP → UNLUCKY → negate to POSITIVE (BUY). Always negate. See methodology for the worked example. Hitters use the raw sign directly.
Clamp to ±100: Extreme xwOBA gaps (>.200) are almost always small-sample artifacts. Clamp hard. Do not report regression_index of +140.
Park and platoon adjustments: xwOBA from Savant is park-neutral but does not adjust for platoon splits. For a LHH playing in a tough-for-lefties park (e.g., Oracle) with many LHP starts ahead, the regression may be slower than the index suggests. Note as a caveat; do not recompute.
BABIP is secondary, not primary: A high BABIP alone is not a SELL signal if underlying contact quality is elite. Hitters with extreme exit velocity (e.g., Judge, Ohtani) sustain BABIPs above .340 for full seasons. Always cross-check BABIP against Hard-Hit % before flagging.
HR/FB normalization for pitchers: League-average HR/FB is ~12%. Pitchers regress toward their career HR/FB, not league average. A flyball pitcher's "normal" HR/FB is 14%; a groundball pitcher's is 9%. Use career or 3-year average when available; fall back to 12% only if no history.
Web-search every fact (per CLAUDE.md): Every number that enters the formula must come from a live web search with the URL recorded in source_urls:. Never fill in from memory or training data. If a search fails, degrade to confidence: 0.3 and flag in the red-team pass.
Translate for the beginner: The user has zero baseball knowledge. Every user-facing sentence that uses "xwOBA", "FIP", "BABIP" must include an inline translation on first use. See CLAUDE.md rule #5 and the Example above.
Quick Reference
Core formulas:
HITTER: regression_index = clamp((xwOBA - wOBA) x 500, -100, +100)
positive = UNLUCKY (BUY); negative = LUCKY (SELL)
PITCHER: raw = (FIP - ERA) x 50
regression_index = clamp(-raw, -100, +100)
positive = UNLUCKY (BUY); negative = LUCKY (SELL)
SECONDARY (hitter): BABIP > .370 → lucky flag; BABIP < .240 → unlucky flag
SECONDARY (pitcher): HR/FB < 8% → lucky flag; HR/FB > 17% → unlucky flag
Action thresholds:
regression_index |
Direction |
Fantasy action |
| ≥ +30 |
Very unlucky |
Aggressive BUY / ADD / high FAAB bid |
| +15 to +29 |
Mildly unlucky |
BUY if available cheaply |
| -14 to +14 |
Noise |
HOLD / no action |
| -29 to -15 |
Mildly lucky |
SELL if offered market-rate |
| ≤ -30 |
Very lucky |
Aggressive SELL / DROP / decline offers |
Data source map (per data-sources.md):
Key resources:
- resources/template.md: Flagged-players table, per-player worksheet, signal file template
- resources/methodology.md: Formulas with sign conventions, web-search query patterns, worked examples, BABIP & HR/FB normalization
- resources/evaluators/rubric_mlb_regression_flagger.json: 8-criterion scoring rubric
Inputs required:
- Player name(s) or "scan roster" / "scan waivers"
- League context: weeks remaining, category needs (from
context/league-config.md and mlb-category-state-analyzer signals)
Outputs produced:
regression_index per player (-100 to +100)
- Direction tag:
BUY / SELL / HOLD / WATCHLIST
- Secondary flag notes (BABIP, HR/FB)
- Signal file at
signals/YYYY-MM-DD-regression.md
- User-facing summary with inline jargon translations and an action verb
1---
2name: mlb-regression-flagger
3description: Identifies fantasy baseball players whose surface stats (wOBA, ERA, batting average) are diverging from their underlying Statcast quality (xwOBA, FIP, xBA) — emits a `regression_index` from -100 (very lucky, sell high) to +100 (very unlucky, buy low). Primary signal for buy-low/sell-high decisions on trades and waivers. Use when user mentions "buy low", "sell high", "regression candidate", "lucky", "unlucky", "xwOBA gap", "ERA-FIP gap", "BABIP", "due for regression", or is deciding whether to trade for / trade away a player based on over- or under-performance.
4---
5
6# MLB Regression Flagger
7
8## Table of Contents
9- [Example](#example)
10- [Workflow](#workflow)
11- [Common Patterns](#common-patterns)
12- [Guardrails](#guardrails)
13- [Quick Reference](#quick-reference)
14
15## Example
16
17**Scenario**: User asks "Is Junior Caminero a buy-low candidate or am I chasing noise?"
18
19**Raw data gathered from Baseball Savant + FanGraphs (cite URLs)**:
20- Caminero 2026 wOBA: .310 (actual results)
21- Caminero 2026 xwOBA: .380 (expected based on exit velocity + launch angle)
22- BABIP: .255 (well below .300 league mean)
23- Barrel %: 14.2% (elite, 90th percentile)
24- Hard-Hit %: 52% (elite)
25
26**Regression index calculation**:
27```
28regression_index = (xwOBA - wOBA) x 500
29 = (.380 - .310) x 500
30 = +35
31```
32
33**Secondary check — BABIP**: .255 is below the .240 lower-outlier threshold for hitters only if we tighten further, but .255 plus elite contact quality confirms unlucky. Not a "will correct to .300" player, but unlikely to stay at .255 given the batted-ball profile.
34
35**Verdict**: `regression_index = +35` → **BUY**. Caminero has been unlucky; underlying contact quality is elite. Expect his surface stats to catch up over the next 30 days.
36
37**User-facing translation** (per CLAUDE.md rule #5 — beginner writing):
38> "Junior Caminero's raw numbers look mediocre (.310 wOBA — that's a catch-all hitting stat), but the quality of his actual contact (how hard and at what angle he hits the ball) suggests he should be hitting .380. The gap is one of the biggest in the league. ADD if available, or OFFER a trade for him before his stats correct."
39
40**Signal file emission** (per signal-framework.md):
41```yaml
42---
43type: regression
44date: 2026-04-17
45emitted_by: mlb-regression-flagger
46player: Junior Caminero
47regression_index: +35
48direction: BUY
49confidence: 0.78
50source_urls:
51 - https://baseballsavant.mlb.com/savant-player/junior-caminero-...
52 - https://www.fangraphs.com/players/junior-caminero/...
53---
54```
55
56## Workflow
57
58Copy this checklist and track progress:
59
60```
61Regression Flagger Progress:
62- [ ] Step 1: Define the candidate list (who to check)
63- [ ] Step 2: Web-search Savant for expected stats (xwOBA, xERA, xBA)
64- [ ] Step 3: Web-search FanGraphs for surface stats (wOBA, ERA, BABIP, HR/FB)
65- [ ] Step 4: Compute regression_index per player
66- [ ] Step 5: Apply secondary flags (BABIP, HR/FB)
67- [ ] Step 6: Emit signal file + user-facing translation
68```
69
70**Step 1: Define the candidate list**
71
72Who are we checking? Three entry points:
73- [ ] User's current roster (for SELL candidates — anyone overperforming)
74- [ ] Free agents + waiver wire (for BUY candidates — anyone underperforming with elite underlying metrics)
75- [ ] Specific player asked about (e.g., trade target)
76
77**Step 2: Web-search Baseball Savant for expected stats**
78
79See [resources/methodology.md](resources/methodology.md#how-to-web-search-savant) for exact queries and URL patterns.
80
81- [ ] Hitters: `xwOBA`, `xBA`, `xSLG`, Barrel %, Hard-Hit %
82- [ ] Pitchers: `xERA`, Expected Batting Average against, Whiff %, Chase %
83- [ ] Record each URL in `source_urls` for the signal file
84
85**Step 3: Web-search FanGraphs for surface stats**
86
87See [resources/methodology.md](resources/methodology.md#how-to-web-search-fangraphs) for query patterns.
88
89- [ ] Hitters: `wOBA`, `BABIP`, AVG, OBP, SLG
90- [ ] Pitchers: `ERA`, `FIP`, `xFIP`, HR/FB %, LOB %
91- [ ] Record each URL
92
93**Step 4: Compute regression_index**
94
95See [resources/methodology.md](resources/methodology.md#formulas) for the formulas.
96
97- [ ] Hitter: `regression_index = (xwOBA - wOBA) x 500`, clamped to ±100
98- [ ] Pitcher: `regression_index = (FIP - ERA) x 50`, clamped to ±100
99 - Note: for pitchers, a LARGER (more positive) FIP than ERA = pitcher has been lucky (negative signal for fantasy); a SMALLER FIP than ERA = pitcher has been unlucky (positive signal). See methodology for sign convention.
100- [ ] Populate [resources/template.md](resources/template.md#flagged-players-table) with the result
101
102**Step 5: Apply secondary flags**
103
104- [ ] Hitter BABIP check: flag if > .370 (unsustainably lucky) or < .240 (unsustainably unlucky)
105- [ ] Pitcher HR/FB check: flag if > 17% (unlucky, normalizes to ~12%) or < 8% (lucky)
106- [ ] Note: secondary flags reinforce or contradict the primary `regression_index`. When they agree, confidence goes up; when they disagree, confidence drops and the player goes into a "watchlist" bucket instead of an actionable BUY/SELL.
107
108**Step 6: Emit signal file + user-facing translation**
109
110- [ ] Write `signals/YYYY-MM-DD-regression.md` with frontmatter per signal-framework.md
111- [ ] Translate every stat to plain English for the user (per CLAUDE.md rule #5)
112- [ ] End every recommendation with an action verb: `BUY` / `SELL` / `HOLD` / `ADD` / `DROP` (per CLAUDE.md rule #6)
113- [ ] Validate against [resources/evaluators/rubric_mlb_regression_flagger.json](resources/evaluators/rubric_mlb_regression_flagger.json). Target average ≥ 3.5.
114
115## Common Patterns
116
117**Pattern 1: The Elite-Contact, Bad-Luck Hitter (classic BUY)**
118- **Signals**: xwOBA - wOBA ≥ +.050, Barrel % ≥ 90th percentile, BABIP ≤ .260
119- **Typical profile**: Young hitter with elite exit velocity whose line drives are finding gloves
120- **Action**: Aggressive BUY. Offer a trade for them before the market catches on. Bid FAAB if they are on waivers.
121- **Example**: Junior Caminero — xwOBA .380 vs wOBA .310, BABIP .255 → `+35`, BUY.
122
123**Pattern 2: The Lucky Journeyman (classic SELL)**
124- **Signals**: wOBA - xwOBA ≥ +.050, Barrel % below median, BABIP ≥ .360
125- **Typical profile**: Career-average hitter riding a hot streak on soft contact
126- **Action**: SELL high. Try to trade them for a BUY-LOW target of real talent.
127- **Example** (hypothetical): Utility IF hitting .310 with a .360 BABIP and xwOBA .295 vs wOBA .340 → `-22`, SELL.
128
129**Pattern 3: The Pitcher-Lucky Starter (SELL)**
130- **Signals**: ERA much lower than FIP (e.g., 2.50 ERA, 4.20 FIP), HR/FB < 8%, strand rate (LOB%) > 80%
131- **Typical profile**: Starter whose fly balls aren't leaving the park and whose inherited runners aren't scoring
132- **Action**: SELL while his ERA still looks shiny.
133- **Regression_index example**: `(FIP - ERA) x 50 = (4.20 - 2.50) x 50 = +85`. But for pitchers a large FIP-ERA gap means he has been LUCKY → flip sign → `-85`, SELL. See methodology for sign convention.
134
135**Pattern 4: The Pitcher-Unlucky Starter (BUY)**
136- **Signals**: ERA well above FIP (e.g., 5.10 ERA, 3.40 FIP), HR/FB > 17%, LOB% < 68%
137- **Typical profile**: Good stuff, bad sequencing / BABIP luck
138- **Action**: BUY before the ERA corrects.
139
140**Pattern 5: Conflicting Signals (WATCHLIST, not actionable)**
141- **Signals**: xwOBA-wOBA gap is large but Barrel % is below median, OR BABIP is extreme but contact quality confirms it
142- **Action**: Do NOT auto-flag BUY/SELL. Emit `regression_index` with reduced confidence (< 0.5) and place on watchlist for another week.
143
144## Guardrails
145
1461. **Sample-size minimum**: Do not emit a `regression_index` for a hitter with fewer than 80 PAs or a pitcher with fewer than 30 IP. Statcast expected stats are noisy below that. If below threshold, emit `confidence: 0.3` and label `too-early`.
147
1482. **Sign convention for pitchers**: `(FIP - ERA) x 50` gives a raw number. A POSITIVE raw number means ERA < FIP → the pitcher has been LUCKY → negate to produce a NEGATIVE `regression_index` (SELL signal). A NEGATIVE raw number means ERA > FIP → UNLUCKY → negate to POSITIVE (BUY). Always negate. See methodology for the worked example. Hitters use the raw sign directly.
149
1503. **Clamp to ±100**: Extreme xwOBA gaps (>.200) are almost always small-sample artifacts. Clamp hard. Do not report `regression_index` of +140.
151
1524. **Park and platoon adjustments**: xwOBA from Savant is park-neutral but does not adjust for platoon splits. For a LHH playing in a tough-for-lefties park (e.g., Oracle) with many LHP starts ahead, the regression may be slower than the index suggests. Note as a caveat; do not recompute.
153
1545. **BABIP is secondary, not primary**: A high BABIP alone is not a SELL signal if underlying contact quality is elite. Hitters with extreme exit velocity (e.g., Judge, Ohtani) sustain BABIPs above .340 for full seasons. Always cross-check BABIP against Hard-Hit % before flagging.
155
1566. **HR/FB normalization for pitchers**: League-average HR/FB is ~12%. Pitchers regress toward their career HR/FB, not league average. A flyball pitcher's "normal" HR/FB is 14%; a groundball pitcher's is 9%. Use career or 3-year average when available; fall back to 12% only if no history.
157
1587. **Web-search every fact (per CLAUDE.md)**: Every number that enters the formula must come from a live web search with the URL recorded in `source_urls:`. Never fill in from memory or training data. If a search fails, degrade to `confidence: 0.3` and flag in the red-team pass.
159
1608. **Translate for the beginner**: The user has zero baseball knowledge. Every user-facing sentence that uses "xwOBA", "FIP", "BABIP" must include an inline translation on first use. See CLAUDE.md rule #5 and the [Example](#example) above.
161
162## Quick Reference
163
164**Core formulas:**
165
166```
167HITTER: regression_index = clamp((xwOBA - wOBA) x 500, -100, +100)
168 positive = UNLUCKY (BUY); negative = LUCKY (SELL)
169
170PITCHER: raw = (FIP - ERA) x 50
171 regression_index = clamp(-raw, -100, +100)
172 positive = UNLUCKY (BUY); negative = LUCKY (SELL)
173
174SECONDARY (hitter): BABIP > .370 → lucky flag; BABIP < .240 → unlucky flag
175SECONDARY (pitcher): HR/FB < 8% → lucky flag; HR/FB > 17% → unlucky flag
176```
177
178**Action thresholds:**
179
180| `regression_index` | Direction | Fantasy action |
181|---|---|---|
182| ≥ +30 | Very unlucky | Aggressive BUY / ADD / high FAAB bid |
183| +15 to +29 | Mildly unlucky | BUY if available cheaply |
184| -14 to +14 | Noise | HOLD / no action |
185| -29 to -15 | Mildly lucky | SELL if offered market-rate |
186| ≤ -30 | Very lucky | Aggressive SELL / DROP / decline offers |
187
188**Data source map (per data-sources.md):**
189
190| Stat | Primary source | URL pattern |
191|---|---|---|
192| xwOBA, xBA, xSLG, Barrel %, Hard-Hit % | Baseball Savant | https://baseballsavant.mlb.com/savant-player/{slug}-{id} |
193| wOBA, BABIP (hitter) | FanGraphs | https://www.fangraphs.com/players/{slug}/{id} |
194| ERA, FIP, xFIP, HR/FB, LOB% | FanGraphs | same |
195| xERA | Baseball Savant | same |
196
197**Key resources:**
198
199- **[resources/template.md](resources/template.md)**: Flagged-players table, per-player worksheet, signal file template
200- **[resources/methodology.md](resources/methodology.md)**: Formulas with sign conventions, web-search query patterns, worked examples, BABIP & HR/FB normalization
201- **[resources/evaluators/rubric_mlb_regression_flagger.json](resources/evaluators/rubric_mlb_regression_flagger.json)**: 8-criterion scoring rubric
202
203**Inputs required:**
204
205- Player name(s) or "scan roster" / "scan waivers"
206- League context: weeks remaining, category needs (from `context/league-config.md` and `mlb-category-state-analyzer` signals)
207
208**Outputs produced:**
209
210- `regression_index` per player (-100 to +100)
211- Direction tag: `BUY` / `SELL` / `HOLD` / `WATCHLIST`
212- Secondary flag notes (BABIP, HR/FB)
213- Signal file at `signals/YYYY-MM-DD-regression.md`
214- User-facing summary with inline jargon translations and an action verb