{"status":"computed","label":"HISTORICAL BASELINE, NFL ONLY. Retrospective scores on 2019-2024 regular-season results; not deployed/live accuracy, not betting advice, no wagers, no guarantee of winnings.","item":"nfl-pilot","batch":"nfl-baseline-v3","dataset":{"publisher":"nflverse (nflverse-data GitHub release 'schedules'; data maintained in Lee Sharpe's nfldata)","release_page":"https://github.com/nflverse/nflverse-data/releases/tag/schedules","release_id":251386473,"release_published_at":"2025-10-01T11:19:34Z","asset":{"name":"games.csv","asset_id":794130954,"url":"https://github.com/nflverse/nflverse-data/releases/download/schedules/games.csv","bytes":2192476,"asset_updated_at":"2026-11-26T03:16:28Z","sha256":"7ba3801b1440fb89e6e7a9cb5dc2d5950015f6e43552aa9914b837ceaef11cba","github_digest_matches":true},"retrieved_utc":"2026-11-26T03:17:11Z","licence_checks_utc":"2026-11-26T03:17-03:25Z","note":"The release auto-updates (asset re-uploaded daily); a later download may hash differently. Reproduce by verifying the raw sha256 or the subset hash below."},"licence_and_credit":{"repository_licence":"CC-BY-4.0 (nflverse/nflverse-data LICENSE.md, GitHub licence API spdx_id CC-BY-4.0)","field_level":"No field-level licence or per-column terms were found in the release notes, repo README or nflreadr schedules dictionary. nflreadr states NFL data belong to their respective owners and are governed by their terms of use; only factual fields (season, week, date/time, ids, teams, location, final scores) were used, no odds/betting columns.","credit":"Data: nflverse (nflverse-data 'schedules' release), maintained by Lee Sharpe (nflverse/nfldata), CC-BY-4.0. Field meanings from nflreadr dictionary_schedules."},"columns_used":["game_id","season","game_type","week","gameday","gametime","away_team","away_score","home_team","home_score","location"],"columns_note":"location=='Neutral' is the neutral-site flag; outcome derived from home_score vs away_score; gametime is ET (dictionary). No other columns read into the model.","subset_hash":{"sha256":"b5b3e34f8962de10006e50b6a986caec837a5394c372d8e7a872ee978df2bd4c","rows":1599,"rule":"Rows after exclusions, seasons 2019-2024 REG; columns in columns_used order; values copied verbatim as strings from the CSV (csv.DictReader, UTF-8); header line first; comma-joined, no quoting, '\\n' line ends incl. trailing newline; rows sorted ascending by game_id (byte order)."},"splits":{"train":{"seasons":"2019-2022","dates":["2019-09-05","2023-01-08"],"games":1055,"H_T_A":[550,5,500]},"calibration":{"season":2023,"dates":["2023-09-07","2024-01-07"],"games":272,"H_T_A":[151,0,121]},"test_heldout":{"season":2024,"dates":["2024-09-05","2025-01-05"],"games":272,"H_T_A":[145,0,127]},"per_season":{"2019":{"games":256,"neutral":5,"H/T/A":[132,1,123]},"2020":{"games":256,"neutral":3,"H/T/A":[127,1,128]},"2021":{"games":272,"neutral":3,"H/T/A":[140,1,131]},"2022":{"games":271,"neutral":6,"H/T/A":[151,2,118]},"2023":{"games":272,"neutral":5,"H/T/A":[151,0,121]},"2024":{"games":272,"neutral":5,"H/T/A":[145,0,127]}}},"outcome_and_exclusions":{"outcome":"home win if home_score>away_score, tie if equal (real ties retained), away win otherwise; final points incl. overtime as recorded","excluded":{"non_REG_game_type_2019_2024":76,"duplicate_game_ids":0,"REG_rows_missing_scores":0},"missing_fixtures":"2022 has 271 REG games vs 272 scheduled: 2022 week-17 BUF-CIN has no row in games.csv (grep 2022_17_BUF_CIN/CIN_BUF found nothing; reason not stated in the source, so not asserted here). All other seasons complete (256 in 2019-2020, 272 in 2021-2024).","ties":["2019_01_DET_ARI","2020_03_CIN_PHI","2021_10_DET_PIT","2022_01_IND_HOU","2022_13_WAS_NYG"],"ties_note":"5 ties, all in training; 0 in calibration and 0 in the 2024 test, so tie-probability quality is essentially unevaluated on test.","neutral_or_relocated":["2019_05_CHI_OAK","2019_06_CAR_TB","2019_08_CIN_LA","2019_09_HOU_JAX","2019_11_KC_LAC","2020_13_BUF_SF","2020_14_WAS_SF","2020_17_SEA_SF","2021_01_GB_NO","2021_05_NYJ_ATL","2021_06_MIA_JAX","2022_04_MIN_NO","2022_05_NYG_GB","2022_08_DEN_JAX","2022_10_SEA_TB","2022_11_CLE_BUF","2022_11_SF_ARI","2023_04_ATL_JAX","2023_05_JAX_BUF","2023_06_BAL_TEN","2023_09_MIA_KC","2023_10_IND_NE","2024_01_GB_PHI","2024_05_NYJ_MIN","2024_06_JAX_CHI","2024_07_NE_JAX","2024_10_NYG_CAR"],"neutral_note":"Includes international games, 2020 SF home games moved to State Farm Stadium (COVID), 2022_11_CLE_BUF moved to Ford Field (snow); all flagged Neutral and given zero home advantage. Game IDs keep the designated home team. 2020 COVID reschedules (e.g. 2020_12_BAL_PIT played 2020-12-02, 2020_04_NE_KC on 2020-10-05) are handled via actual gameday."},"method":{"precommitted":"K, HFA, season regression and smoothing chosen a priori, not tuned on any data.","baseline":{"name":"train-only smoothed outcome frequency","rule":"(count+1)/(n_train+3) over 2019-2022 REG outcomes","p_H_T_A":[0.5208,0.0057,0.4735]},"elo":{"init":1500,"start":"all teams 1500 at 2019 week 1 (no pre-2019 data)","K":20,"home_adv_elo":48,"neutral_home_adv":0,"season_reversion":"rating=1500+(2/3)*(rating-1500) before each season 2020-2024","expected":"E=1/(1+10^(-(R_home-R_away+HFA)/400))","three_outcome":"p_tie=tau (train baseline tie freq =6/1058=0.005671), p_home=(1-tau)E, p_away=(1-tau)(1-E)","update":"S=1/0.5/0 (home win/tie/loss); R_home+=K(S-E), R_away-=K(S-E); score margin unused","updates_continue":"ratings keep updating on completed games through 2023 and 2024 (outcomes only become available after each week; parameters frozen)"},"temperature":{"form":"p_k proportional to p_raw_k^(1/T), renormalised","fit":"golden-section minimisation of 2023 mean natural-log loss over T in [0.05,20]; T frozen before any 2024 scoring","T":0.816,"cal2023_logloss":{"raw":0.668,"temp":0.6652,"baseline":0.6947},"note":"T<1 sharpens; it also shrinks tie prob to ~0.002."}},"feature_cutoff_and_leakage":{"rule":"For each season/week w, predictions use only games with week<w AND gameday < earliest gameday of week w (cutoff). A prior-week game played on/after the cutoff would be deferred until a later week's cutoff passes.","leakage_violations":0,"deferred_games":0,"checks":"asserted each applied update had week<w and gameday<cutoff; no REG game 2019-2024 has gameday >= next week's first gameday; no missing gametime; calibration uses only 2023 probabilities; test scored once with frozen T."},"metric_conventions":{"brier":"multi-class Brier: mean over games of sum over 3 outcomes (p_k - y_k)^2, range 0-2 (lower better)","log_loss":"mean of -ln p(observed outcome), natural log","uncertainty":"nonparametric bootstrap over the 272 test games, 2000 resamples, seed 20240101, percentile 95% intervals"},"test_2024_results":{"baseline":{"brier":0.498,"log_loss":0.6968,"brier_bootstrap95":[0.4925,0.5036],"log_loss_bootstrap95":[0.6912,0.7024]},"elo_raw":{"brier":0.441,"log_loss":0.6368,"brier_bootstrap95":[0.4156,0.4676],"log_loss_bootstrap95":[0.61,0.6651]},"elo_temp":{"brier":0.4366,"log_loss":0.6279,"brier_bootstrap95":[0.4067,0.468],"log_loss_bootstrap95":[0.5956,0.6621]}},"test_logloss_paired_diff":{"raw-base":{"mean":-0.0598,"bootstrap95":[-0.0837,-0.0345]},"temp-base":{"mean":-0.0687,"bootstrap95":[-0.0977,-0.0371]},"temp-raw":{"mean":-0.0088,"bootstrap95":[-0.0144,-0.0029]}},"test_counts":{"games":272,"home_wins":145,"ties":0,"away_wins":127,"identical_games_for_all_comparators":true},"reliability_bins_2024":{"format":"[bin of predicted prob, n games, mean predicted, observed rate]; bins width 0.1","bins":{"baseline_home":[["0.5-0.6",272,0.5208,0.5331]],"baseline_tie":[["0.0-0.1",272,0.0057,0.0]],"baseline_away":[["0.4-0.5",272,0.4735,0.4669]],"elo_raw_home":[["0.2-0.3",2,0.2563,0.5],["0.3-0.4",8,0.352,0.25],["0.4-0.5",74,0.4555,0.2973],["0.5-0.6",91,0.5521,0.5165],["0.6-0.7",71,0.6506,0.6901],["0.7-0.8",22,0.7328,0.9091],["0.8-0.9",4,0.818,1.0]],"elo_raw_tie":[["0.0-0.1",272,0.0057,0.0]],"elo_raw_away":[["0.1-0.2",5,0.1807,0.0],["0.2-0.3",28,0.2729,0.1071],["0.3-0.4",69,0.3523,0.3333],["0.4-0.5",92,0.4482,0.4891],["0.5-0.6",69,0.5433,0.7246],["0.6-0.7",7,0.6489,0.7143],["0.7-0.8",2,0.738,0.5]],"elo_temp_home":[["0.2-0.3",5,0.2552,0.2],["0.3-0.4",19,0.3801,0.3158],["0.4-0.5",57,0.459,0.2807],["0.5-0.6",76,0.5528,0.5],["0.6-0.7",61,0.6456,0.623],["0.7-0.8",44,0.7371,0.8409],["0.8-0.9",10,0.8365,0.9]],"elo_temp_tie":[["0.0-0.1",272,0.0021,0.0]],"elo_temp_away":[["0.1-0.2",10,0.1615,0.1],["0.2-0.3",46,0.2625,0.1957],["0.3-0.4",60,0.3549,0.35],["0.4-0.5",78,0.4478,0.5128],["0.5-0.6",55,0.5422,0.7091],["0.6-0.7",18,0.619,0.7222],["0.7-0.8",5,0.7427,0.8]]}},"limitations":["Single held-out season (272 games): CIs overlap between raw and calibrated Elo for Brier; paired log-loss diff favours temperature scaling but small.","No ties in 2023 or 2024, so tie calibration cannot be assessed; tie probability is a constant.","Elo has no 2019 warm-up from earlier seasons; early-2019 predictions are near baseline.","No injuries, QB, rest, weather, odds or margin used by design.","Source auto-updates; scores may be revised upstream.","Historical model scores only; not deployed accuracy and not a live prediction."],"reproduce":{"cmd":"curl -sSLo games.csv https://github.com/nflverse/nflverse-data/releases/download/schedules/games.csv && sha256sum games.csv && python3 -I audit.py games.csv","python":"3, stdlib only","script_audit_py":"import csv,sys,hashlib,math,random,json,collections as C\nP=sys.argv[1];raw=open(P,'rb').read();rows=list(csv.DictReader(open(P,newline='',encoding='utf-8')))\nCOLS=['game_id','season','game_type','week','gameday','gametime','away_team','away_score','home_team','home_score','location']\nS=[r for r in rows if r['season'].isdigit() and 2019<=int(r['season'])<=2024]\nidc=C.Counter(r['game_id'] for r in S);dup=sorted(k for k,v in idc.items() if v>1)\nex={'postseason':[r['game_id'] for r in S if r['game_type']!='REG']}\nR=[r for r in S if r['game_type']=='REG' and idc[r['game_id']]==1]\nex['dup']=dup;ex['no_score']=[r['game_id'] for r in R if r['home_score']=='' or r['away_score']=='']\nR=[r for r in R if r['home_score']!='' and r['away_score']!='']\nfor r in R:\n  h,a=int(r['home_score']),int(r['away_score']);r['y']=0 if h>a else(1 if h==a else 2);r['s']=int(r['season']);r['w']=int(r['week']);r['n']=r['location']=='Neutral'\nR.sort(key=lambda r:r['game_id'])\nser='\\n'.join([','.join(COLS)]+[','.join(r[c] for c in COLS) for r in R])+'\\n'\nout={'raw_sha256':hashlib.sha256(raw).hexdigest(),'subset_sha256':hashlib.sha256(ser.encode()).hexdigest(),'n_subset':len(R),'excl':{k:(len(v),v[:6] if k!='postseason' else []) for k,v in ex.items()}}\nout['per_season']={s:{'games':sum(r['s']==s for r in R),'neutral':sum(r['s']==s and r['n'] for r in R),'H/T/A':[sum(r['s']==s and r['y']==k for r in R) for k in range(3)]} for s in range(2019,2025)}\nout['ties']=[r['game_id'] for r in R if r['y']==1];out['neutral']=[r['game_id'] for r in R if r['n']]\ntr=[r for r in R if r['s']<=2022];cnt=[sum(r['y']==k for r in tr) for k in range(3)]\nbase=[(c+1)/(len(tr)+3) for c in cnt];tau=base[1]\nK,HFA,REV=20.0,48.0,1/3  # precommitted, not tuned\nel=C.defaultdict(lambda:1500.0);leak=0;inv=0\ndef E(r):\n  d=el[r['home_team']]-el[r['away_team']]+(0 if r['n'] else HFA);return 1/(1+10**(-d/400))\ndef upd(r):\n  e=E(r);sc=[1,.5,0][r['y']];el[r['home_team']]+=K*(sc-e);el[r['away_team']]-=K*(sc-e)\nfor s in range(2019,2025):\n  if s>2019:\n    for t in list(el):el[t]=1500+(1-REV)*(el[t]-1500)\n  G=[r for r in R if r['s']==s];pend=[]\n  for w in sorted({r['w'] for r in G}):\n    W=[r for r in G if r['w']==w];cut=min(r['gameday'] for r in W)\n    for r in sorted([p for p in pend if p['gameday']<cut],key=lambda r:(r['gameday'],r['gametime'],r['game_id'])):\n      if r['w']>=w or r['gameday']>=cut:leak+=1\n      upd(r);pend.remove(r)\n    inv+=len(pend)  # deferred games\n    for r in W:\n      e=E(r);r['raw']=[(1-tau)*e,tau,(1-tau)*(1-e)];r['cut']=cut\n    pend+=W\n  for r in sorted(pend,key=lambda r:(r['gameday'],r['gametime'],r['game_id'])):upd(r)\ndef temp(p,T):\n  q=[x**(1/T) for x in p];z=sum(q);return[x/z for x in q]\ndef ll(G,f):return -sum(math.log(f(r)[r['y']]) for r in G)/len(G)\ndef br(G,f):return sum(sum((f(r)[k]-(r['y']==k))**2 for k in range(3)) for r in G)/len(G)\ncal=[r for r in R if r['s']==2023];te=[r for r in R if r['s']==2024]\nlo,hi=math.log(.05),math.log(20);g=(5**.5-1)/2\nfor _ in range(200):\n  a=hi-g*(hi-lo);b=lo+g*(hi-lo)\n  if ll(cal,lambda r:temp(r['raw'],math.exp(a)))<ll(cal,lambda r:temp(r['raw'],math.exp(b))):hi=b\n  else:lo=a\nT=math.exp((lo+hi)/2)\nM={'baseline':lambda r:base,'elo_raw':lambda r:r['raw'],'elo_temp':lambda r:temp(r['raw'],T)}\nout.update(train_counts_HTA=cnt,n_train=len(tr),n_cal=len(cal),n_test=len(te),baseline=base,tau=tau,T=T,leak_violations=leak,deferred_game_weeks=inv,\n cal_ll={'raw':ll(cal,M['elo_raw']),'temp':ll(cal,M['elo_temp']),'baseline':ll(cal,M['baseline'])},\n test_HTA=[sum(r['y']==k for r in te) for k in range(3)],test_dates=[min(r['gameday'] for r in te),max(r['gameday'] for r in te)],\n cal_dates=[min(r['gameday'] for r in cal),max(r['gameday'] for r in cal)],train_dates=[min(r['gameday'] for r in tr),max(r['gameday'] for r in tr)])\nrnd=random.Random(20240101);B=2000;bs={m:{'brier':[],'logloss':[]} for m in M};dif={'raw-base':[],'temp-base':[],'temp-raw':[]}\nL={m:[-math.log(M[m](r)[r['y']]) for r in te] for m in M};Bq={m:[sum((M[m](r)[k]-(r['y']==k))**2 for k in range(3)) for r in te] for m in M}\nfor _ in range(B):\n  ix=[rnd.randrange(len(te)) for _ in te]\n  for m in M:bs[m]['brier'].append(sum(Bq[m][i] for i in ix)/len(ix));bs[m]['logloss'].append(sum(L[m][i] for i in ix)/len(ix))\n  mean=lambda m:sum(L[m][i] for i in ix)/len(ix)\n  dif['raw-base'].append(mean('elo_raw')-mean('baseline'));dif['temp-base'].append(mean('elo_temp')-mean('baseline'));dif['temp-raw'].append(mean('elo_temp')-mean('elo_raw'))\nci=lambda v:[sorted(v)[int(.025*B)],sorted(v)[int(.975*B)-1]]\nout['test']={m:{'brier':br(te,M[m]),'logloss':ll(te,M[m]),'brier_ci95':ci(bs[m]['brier']),'logloss_ci95':ci(bs[m]['logloss'])} for m in M}\nout['test_logloss_diff_ci95']={k:[sum(v)/B,ci(v)] for k,v in dif.items()}\nrel={}\nfor m in M:\n  for k,nm in [(0,'home'),(1,'tie'),(2,'away')]:\n    bins=C.defaultdict(lambda:[0,0.,0])\n    for r in te:\n      p=M[m](r)[k];b=min(int(p*10),9);bins[b][0]+=1;bins[b][1]+=p;bins[b][2]+=(r['y']==k)\n    rel[m+'_'+nm]=[[f'{b/10:.1f}-{(b+1)/10:.1f}',n,round(sp/n,4),round(o/n,4)] for b,(n,sp,o) in sorted(bins.items())]\nout['reliability']=rel;out['final_elo_sample']=None\nprint(json.dumps(out,indent=0,default=str))\n"}}