MorelandMSBA commited on
Commit
00609c8
·
verified ·
1 Parent(s): 4e3b25e

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +27 -1
app.py CHANGED
@@ -293,6 +293,32 @@ def build_explainers():
293
  f"{int(hyatt['sched_rank'])} of {len(df)} in difficulty (1 = toughest), so the number is "
294
  f"not a soft-schedule artifact." if hyatt is not None else ""))
295
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
296
  q3 = ("What actually predicts separation? (the biggest RSOE drivers)",
297
  "We measured this with exact SHAP values on the frozen model (25,000 plays; numbers are yards of "
298
  "expected separation moved per play, so they read in football units). The average play carries "
@@ -332,7 +358,7 @@ def build_explainers():
332
  "win rate together: separator profiles live top-left, contested winners live bottom-right, and "
333
  "both can play on Sundays.")
334
 
335
- return [q1, q2, q3, q4, q5]
336
 
337
 
338
  HOW_TO = """
 
293
  f"{int(hyatt['sched_rank'])} of {len(df)} in difficulty (1 = toughest), so the number is "
294
  f"not a soft-schedule artifact." if hyatt is not None else ""))
295
 
296
+ med_n = int(df["n"].median()) if len(df) else 0
297
+ q2b = ("What does \"half signal at about 100 targets\" mean?",
298
+ "It answers: how much of a rating is real skill versus luck?\n\n"
299
+ "**Any single target is mostly noise.** Whether a receiver got 2 or 4 yards of separation on one "
300
+ "play depends on the coverage call, ball placement, a slip, a busted assignment. One play tells "
301
+ "you almost nothing. Average over many plays and the luck cancels while the skill keeps pointing "
302
+ "the same direction. The question is how many plays until the average is mostly him.\n\n"
303
+ "**How we measured it**: split each player's season in half at random (by games), compute his "
304
+ "RSOE on each half separately, and check whether the halves agree. Pure luck would mean zero "
305
+ "agreement; pure skill would mean a near-perfect match. We repeated this 200 times with "
306
+ "different random splits.\n\n"
307
+ "**The answer: about 100 targets is the 50/50 point.** At 100 targets, a player's average RSOE "
308
+ "is roughly half true skill, half leftover noise. Concretely: a player showing +0.30 RSOE on "
309
+ "100 targets has a best talent estimate near +0.15, halfway between what you observed and "
310
+ "league average.\n\n"
311
+ "**This is exactly what shrinkage corrects.** Before scaling to 40-99, every raw average is "
312
+ "pulled toward the league mean in proportion to how little data it rests on. A 20-target player "
313
+ "gets pulled hard; a 110-target player barely moves. So the rating you see already carries the "
314
+ "appropriate skepticism, and a 90 on 25 targets means the raw number was spectacular enough to "
315
+ "survive aggressive shrinkage.\n\n"
316
+ + (f"**The honest limit**: the median player on this board has {med_n} targets, well short of "
317
+ f"100, so most single-season ratings lean heavily on shrinkage. That is the reality of "
318
+ f"one-season data, not a flaw of the metric, and it is the case for adding more seasons. "
319
+ f"For context, this stabilization framing is standard in sports analytics, and roughly 100 "
320
+ f"targets is fast for a football stat." if med_n else ""))
321
+
322
  q3 = ("What actually predicts separation? (the biggest RSOE drivers)",
323
  "We measured this with exact SHAP values on the frozen model (25,000 plays; numbers are yards of "
324
  "expected separation moved per play, so they read in football units). The average play carries "
 
358
  "win rate together: separator profiles live top-left, contested winners live bottom-right, and "
359
  "both can play on Sundays.")
360
 
361
+ return [q1, q2, q2b, q3, q4, q5]
362
 
363
 
364
  HOW_TO = """