Baseball analytics portfolio

Jason Hoffmann

I build pitch-level models and the websites that put them in front of coaches. I took one season of D1 TrackMan data and grew it into public sites covering D1, Single-A, Triple-A, the Arizona Fall League and MLB. Every grade on them is validated out of sample before it ships.

8.8M pitches modeled 5 sites, D1 to MLB 3 college seasons (2023, 2025, 2026) R · Python · SQL · XGBoost · Shiny

The sites

The same pipeline and models run at every level. College data comes from TrackMan. The pro sites convert public Statcast data into the same TrackMan format, so each model can be retrained level by level.

Division I
D1 Dashboard

Player pages, Stuff+ / Pitching+, MLB Stuff+ (how each pitch would grade in the majors), arsenal grades, swing decisions, projections, power ratings, Pitch Design reports with Whiff+ and a draft & portal tool. It updates daily during the season.

d1dashboard.duckdns.org
Major League
MLB

2026 Statcast data run through the college pipeline, with models retrained on MLB pitches only.

mlbdashboard.duckdns.org
Single-A
Single-A (FSL)

Florida State League tracking data, the first pro level for most college draftees.

a-fsldashboard.duckdns.org
Arizona Fall League
Fall League

Top prospects' fall games, pulled pitch by pitch from MLB game feeds. Too small a league for its own models, so it's graded on the Triple-A scale (100 = average Triple-A pitch).

afldashboard.duckdns.org

Model cards

One card per model: what it predicts, how it's built, how well it holds up on data it never saw, and its known limits. College figures use 2023, 2025 and 2026 D1 data unless a card says otherwise.

Stuff+

pitch quality

Grades a pitch by its physical traits alone: how many runs a pitch with that shape tends to save.

Target
RE24 run value of the pitch (count-based)
Inputs
Velo, spin, induced vertical and horizontal break (lefties mirrored), release height and side, extension, and differences from the pitcher's primary fastball
Method
XGBoost per pitcher hand. Each pitch is scored by models that never saw that pitcher (5-fold cross-fit by pitcher). 100 = average pitch of that type, 10 = one SD.
0.96 odd/even reliability, D1 (1,330 pitchers) 0.19 correlation with second-half run prevention, D1. MLB: 0.28
Limits
It can't see deception or command. College TrackMan units differ by park, so a calibration step is in progress.

Location+

command

Grades where a pitch went, given the count and pitch type, separate from its stuff.

Target
Same RE24 run value as Stuff+
Inputs
Plate location, count, batter side and pitch type
Method
XGBoost, cross-fit by pitcher, on the same 100 / 10 scale
0.84 odd/even reliability, D1 0.14 correlation with second-half run prevention, D1
Limits
It grades the result of the target, not the intended target, so a missed spot that works still grades well.

Pitching+

stuff × location

One grade that learns how shape and location interact, like a sweeper off the plate vs. the same sweeper middle-middle.

Target
RE24 run value, compared with the same pitch type in the same count
Inputs
All Stuff+ inputs plus plate location, approach angles, count and platoon
Method
XGBoost per pitch type, cross-fit by pitcher. Balls in play count at the league-average in-play value, so defense and luck are removed.
0.25 correlation with second-half run prevention, D1. That's the best single grade, ahead of actual run prevention (0.22) and the best Stuff+/Location+ blend (0.21). 0.74 odd/even reliability
Limits
It needs more pitches than Stuff+ to settle, and on the MLB data Stuff+ alone predicts better (0.28 vs 0.16).

Whiff+

swing and miss

The chance a pitch gets a whiff, from its shape, how it plays off the fastball, where it crossed the plate and the count. It feeds Pitching+, the arsenal grades and the Pitch Design reports.

Inputs
Velo, IVB, HB, spin, extension and release, differences from the primary fastball, plate location, approach angles, count and platoon. Lefties are mirrored so one model learns from both hands.
Method
XGBoost on whiffs per pitch, 5-fold cross-fit by pitcher, so no pitcher is graded by a model that saw his own games. New games are scored the same way.
Log loss .282, 14.6% better than a flat whiff rate, with no pitcher leakage
Limits
It grades swing-and-miss only. Called strikes and contact quality come in through Pitching+.

Arsenal Grades

20–80 scale

Turns the pitch models into scouting-scale grades for each pitch and for the whole arsenal, with plain-English flags like "underused weapon."

Inputs
Pitching+ 30%, results 25%, Stuff+ 20%, Whiff+ 15%, location 10%, all compared with the same pitch type, hand and batter side
Method
Percentile within the season mapped to 20–80. The arsenal grade is usage-weighted and shrunk toward average by 150 pitches.
0.36 correlation of a 2025 arsenal grade with 2026 run value per 100 (896 pitchers), vs 0.30 for Pitching+, 0.28 for Stuff+ and 0.22 for 2025 run value itself 0.31 on 2023 → 2025
Limits
The weights were set by hand and checked afterward. They aren't fitted.

Decision+

hitter swing decisions

The hitter-side twin of Stuff+: was swinging (or taking) the right call on this pitch, compared with an average hitter?

Method
Three XGBoost models give each pitch an expected run value if swung at (with contact valued by exit velo and launch angle), an expected value if taken, and an average swing probability. Decision runs = (swing − p_swing) × (xRV_swing − xRV_take).
Scale
100 = average hitter, 10 = one SD, with a minimum of 150 pitches
The swing-value model's error is 4.6% below a flat-average baseline. Rankings were stable across model versions (r = 0.996).
Limits
A year-to-year stability check is the next validation step.

Projections v2

next-season xwOBA

Next-season expected wOBA for every D1 hitter and pitcher, schedule-adjusted, with "why" lines from the model weights.

Method
Ridge regression. Players regress toward their conference average, not D1's. Inputs with the wrong sign are dropped and the model refit, so the explanations stay honest.
Inputs
Pitchers: Stuff+, Pitching+, K%, CSW%, arsenal shape and more. Hitters: EV, xwOBA, barrel%, chase% and contact% and more.
TestPitchersHitters
5-fold CV, 2025 → 260.320.49
Held out, 2023 → 250.240.35
Forward, fit on the past only0.320.46
Baseline: last year's xwOBA0.220.38
Limits
College samples are small. Adding the 2024 season is the biggest remaining gain.

Power Rating

team strength

How many runs better than an average D1 team a club is on a neutral field, and the win chance for any matchup.

Method
Opponent- and home-adjusted run margin (games capped at ±8) plus adjusted run prevention. Power = 0.85 × Results + 0.25 × Adj Def. Win chance = Φ(margin / 5.3).
62.7% of winners picked on about 57,000 game rows (2023–25, fit before each cutoff) Margin calibration slope 1.12. Win-probability buckets land within 2–4 points of actual.
Limits
TrackMan expected-run parts added nothing once official results were in, so it's results-based.

Park Factors

run environment

wOBA and run factors for every D1 stadium, used for park-adjusted lines on player pages.

Method
wOBA per PA at a park vs. the same teams' games elsewhere, pooled over all seasons and pulled toward 1.00 by 8,000 PA. Shared and neutral sites stay at 1.00.
One season of a park is mostly noise (year-to-year raw ratio r = 0.17), so the factors pool every season.
Limits
It measures run scoring, not measurement bias in each park's TrackMan unit. That's the calibration study in progress.

Research

Five studies on 4.2 million D1 pitches and 1.6 million 2026 pro pitches. The full write-up has every method and table.

College to pro: what carries over

I matched 147 pitchers and 164 hitters to their 2026 pro seasons. Pitch traits carry over (release height r = 0.80, fastball IVB 0.77, velo 0.65), and so do hitter EV90 (0.70), whiff% (0.57) and chase% (0.52). College wOBA and xwOBA barely do (0.12, 0.14).

When college stats become real

D1 stats settle faster than MLB stats because the talent spread is wider. Hitter xwOBA is half signal at 123 PA (MLB 245), and pitcher CSW% at 219 pitches (MLB 507). Stuff+ needs only a handful of pitches.

TrackMan unit calibration by park

D1 parks disagree 3 times more than MLB parks on exit velo (1 SD = 1.4 mph vs 0.47) and 4 times more on extension. The biases repeat year to year (Stuff+ r = 0.67), so they can be corrected. Altitude parks show real physics.

Times through the order in college

On 512,700 PA, D1 starters decline steadily (+1.5 xwOBA points per batter) with no cliff at the second time through. Each 1 mph of lost fastball velo costs about 19 points, nearly matching MLB (22).

Conference translation factors

A hitter + pitcher + conference model puts 40 xwOBA points between the SEC and Patriot League schedules. It lowers the error when predicting transfers (hitter K% 0.061 → 0.057, pitcher xwOBA 0.054 → 0.050).