Session · 105 min · Available now · Modeling & Inference
HOT START OR REAL?
Rate every hitter on a roster, including the one with twelve plate appearances, with partial pooling in PyMC.
An agent can write the model. This session is about knowing when it is wrong.

A fitted hierarchical model over a real roster with a shrinkage plot and a one-line answer to how much of a hot start to believe.
From the jobs board, in the postings' own words; the board carries the date each was read.
# Nineteen hitters after 45 at-bats: the raw average, the Beta-Binomial posterior mean, and what the rest of the season did.
import sys, pathlib, csv
sys.path.insert(0, str(pathlib.Path(__file__).parent))
from _palette import plt, emit, GOLD, TEAL, AQUA, CREAM, MUTE
rows = list(csv.DictReader(open("site/18-practice/hot-start-hitters/files/batting_2026.csv")))
ab = [int(r["at_bats"]) for r in rows]; h = [int(r["hits"]) for r in rows]
rab = [int(r["remaining_at_bats"]) for r in rows]; rh = [int(r["remaining_hits"]) for r in rows]
raw = [hi / a for hi, a in zip(h, ab)]
rest = [rhi / ra for rhi, ra in zip(rh, rab)]
# a Beta prior fitted to the group by the method of moments: the league the hitters are drawn from
m = sum(raw) / len(raw); v = sum((x - m) ** 2 for x in raw) / (len(raw) - 1)
k = m * (1 - m) / v - 1; a0, b0 = m * k, (1 - m) * k
post = [(a0 + hi) / (a0 + b0 + a) for hi, a in zip(h, ab)]
order = sorted(range(len(rows)), key=lambda i: -raw[i])
fig, ax = plt.subplots(figsize=(7.2, 4.2))
y = list(range(len(order)))
for yi, i in zip(y, order):
ax.plot([raw[i], post[i]], [yi, yi], color=MUTE, lw=1, zorder=1)
ax.scatter([raw[i] for i in order], y, color=AQUA, s=28, zorder=3, label="first 45 at-bats")
ax.scatter([post[i] for i in order], y, color=GOLD, s=34, zorder=4, label="posterior mean (Beta-Binomial, group prior)")
ax.scatter([rest[i] for i in order], y, color=CREAM, s=18, marker="D", zorder=5, label="rest of the season")
ax.axvline(m, color=MUTE, lw=1, ls="--"); ax.text(m, -0.9, f"group {m:.3f}", color=MUTE, ha="center", fontsize=9)
ax.set_yticks(y); ax.set_yticklabels([rows[i]["name"].split()[-1] for i in order], fontsize=8.5)
ax.invert_yaxis(); ax.set_xlabel("batting average"); ax.set_title("Hot start, or real? The pull toward the group, and what happened next")
ax.legend(loc="lower right", fontsize=8.5, frameon=False)
emit(fig)Data: Hot-start hitters. Simulated for practice by AthlyticZ (agents/sim_data.py, seed 20261109). License CC BY 4.0.
The artifact. A fitted hierarchical model over a real roster with a shrinkage plot and a one-line answer to how much of a hot start to believe.
One live session, recorded, 105 minutes. Yours to keep and watch any time.

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.
Edit me: Move the prior strength, or edit prior_strength and run: watch the hot starts pull toward the group.
Data: Hot-start hitters (batting_2026.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.
From the academy course record, as it is taught.
One live session, recorded, 105 minutes. Yours to keep and watch any time.
PhD · Biostatistics @ Vanderbilt University Medical Center
Teaches the method the way it is used in the role above. The team page lists everything they teach here.
Also teaches Variational Inference in Sports, MCMC in Practice.
Refunds. If you bought it and it is the wrong one for you, write to michael@athlyticz.com and a person will answer.
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.
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.
No. The recording plays in the browser.
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.
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.
Hierarchical Modeling using PyMC in Baseball. The recording, yours to keep.
Buy nowEvery live session this year, and every recording.
Join the MasterclassLoading the calendar.
The calendar did not load here. Open it on Calendly.
Confirmed
Calendly has sent the invitation to your inbox, with the link for the call. Michael will see you then.
We've teamed up with AthlyticZ to supercharge how we use data science and statistics to impact our sports. More clarity in the numbers means bigger results for our athletes.
AthlyticZ has completely transformed the learning approach to data science through the use of sports-based problems. The instructors are the best of the best, and the practical projects have immediate impact to students.
The sports industry moves fast. Managing the pace of evolving technology, data, and AI isn't optional - it's imperative. Our Analytics team was looking for a partner to meet us where we are, to help us in the continued investment of our people and capabilities without pulling us away from the work that matters. AthlyticZ delivers exactly that: a structured, practitioner-led platform that fits how modern sports analytics groups actually operate.