Session · 105 min · Available now · Modeling & Inference

KNOW WHEN THE DECLINE STARTS

Know Exactly When an MLB Player Starts to Decline

Model a hitter's aging curve and say, with a range, when the decline starts.

An agent can write the model. This session is about knowing when it is wrong.

$79 Buy now Buy once, watch any time. A person answers if it is the wrong one for you.
What you learn

The skills, and the artifact you leave with.

  • Shape a career as a curve over age with a generalized additive model in R
  • Separate the player from the cohort with mixed effects and partial pooling
  • Read the uncertainty band, not the line, when the sample thins at the ends
  • Turn the fitted curve into the one sentence a front office asks for
You leave with

A fitted aging curve for a roster, with the age at peak and the onset of decline as intervals, in a report you can rerun next season.

Why it matters now

Contract length is a bet on an aging curve; getting the shape and the uncertainty right is what the question is actually about.

From the jobs board, in the postings' own words; the board carries the date each was read.

Curriculum
  1. Know Exactly when an MLB Player Starts to Declining

    One live session, recorded, 105 minutes. Yours to keep and watch any time.

The problem

A front office has to price a contract against a hitter's future, and the future is an aging curve estimated from careers that end at different ages for different reasons.

Three decisions it teaches
  1. How to shape a career over age: a generalized additive model, and where its flexibility is and is not trusted
  2. How to separate the player from the cohort with mixed effects and partial pooling
  3. What to report: the peak and the onset of decline as intervals, not points

The artifact. A fitted aging curve for a roster, with the age at peak and the onset of decline as intervals, in a report you can rerun next season.

Curriculum
  1. Know Exactly when an MLB Player Starts to Declining

    One live session, recorded, 105 minutes. Yours to keep and watch any time.

What you get

Everything that exists for this session, and nothing that does not.

  • The recording105 minutes, yours to keep
Play with the data

Run the code, in your browser.

The chart on this page, drawn by code you can edit. R runs on webR and Python on Pyodide; nothing loads until you press Run, and nothing you type leaves the page.

This chart is the code's result. Run recomputes it in your browser.
Average wOBA at each age, weighted by plate appearances, with a 90% band and a fitted curve; the marker is the fitted peak.

Edit me: Set degree to 3 and run again. Does the peak move?

Data: Hitter aging (aging.csv). Simulated for practice by AthlyticZ (agents/sim_data.py, seed 20261109). License CC BY 4.0.

The code runs in your browser on webR or Pyodide; nothing you type leaves the page.

Curriculum

What is covered, in order.

From the academy course record, as it is taught.

  1. Know Exactly when an MLB Player Starts to Declining

    One live session, recorded, 105 minutes. Yours to keep and watch any time.

Greg Matthews
Your instructor Greg Matthews

PhD · Director, Center for Data Science and Consulting @ Loyola University Chicago

Teaches the method the way it is used in the role above. The team page lists everything they teach here.

Also teaches The Injury Report Problem, What Fills the Seats.

What is included

What is yours when you buy.

  • The full recording, 75 min
  • Yours to keep: watch it any time

Refunds. If you bought it and it is the wrong one for you, write to michael@athlyticz.com and a person will answer.

Questions

The ones that stop a purchase.

Is this too advanced, or too basic, for me?

Built for someone who already writes code in the session's language and wants the method, not the syntax. If the outcome line at the top reads like something you could use next week, it is pitched right. If it reads like a different job, start with the courses on /browse.

What exactly do I get, and for how long?

The full recording, yours to keep: buy once, watch any time. Masterclass subscribers get every live session for a year and can watch every recorded session for as long as they are a member. Everyone else can buy a recording on its own.

Do I need to install anything?

No. The recording plays in the browser.

What if it is not for me?

Twenty minutes on a call before you buy costs nothing, and the call is the fastest way to tell. If you bought it and it is the wrong one for you, email michael@athlyticz.com and a person will answer.

Want more?

Ten live hours of end-to-end project work every month.

The Masterclass is all of it, live and recorded, for $1,899 a year, or $199 a month. Paid by the month, it renews monthly at $199, cancel any time by replying to your receipt.

This session $79

Know Exactly When an MLB Player Starts to Decline. The recording, yours to keep.

Buy now
The Masterclass $1,899 a year, or $199 a month

Every live session this year, and every recording.

Join the Masterclass
Membership $2,999 a year

The whole catalog of courses plus the Masterclass.

Get Membership
$79Buy now