{"status":"computed","item":"epl-reproduction","batch":"epl-recheck-v3","scoreType":"historical out-of-sample backtest on 2024-25 EPL results; NOT deployed/live accuracy. No live predictions, wagers, purchases or deployment were made.","datasets":[{"season":"2021-22","url":"https://raw.githubusercontent.com/openfootball/football.json/master/2021-22/en.1.json","sha256":"fbdfd426fa18fa2f8630b77de87c082734da495ac4668d6d72f29f76b73b9564","sha256Match":true,"retrievedUtc":"2026-11-26T03:17:11Z","fullTimeResults":380},{"season":"2022-23","url":"https://raw.githubusercontent.com/openfootball/football.json/master/2022-23/en.1.json","sha256":"8d09f0f9846981626cdfec48903e1f21e7c79aabe6f92535c9e092e8e79b808b","sha256Match":true,"retrievedUtc":"2026-11-26T03:17:11Z","fullTimeResults":380},{"season":"2023-24","url":"https://raw.githubusercontent.com/openfootball/football.json/master/2023-24/en.1.json","sha256":"03e13eafbf78dfe00d7e89dd3bf6643986eb6e8fd86c7664aeb8c5bc0bed88d0","sha256Match":true,"retrievedUtc":"2026-11-26T03:17:12Z","fullTimeResults":380},{"season":"2024-25","url":"https://raw.githubusercontent.com/openfootball/football.json/master/2024-25/en.1.json","sha256":"c3d18f552d83382cd4b6b21127adbbfe38e7f8618ddc979fb5404f2df07d0a75","sha256Match":true,"retrievedUtc":"2026-11-26T03:17:12Z","fullTimeResults":380}],"licence":{"name":"CC0 1.0 Universal (public domain dedication)","url":"https://github.com/openfootball/football.json/blob/master/LICENSE.md","readmeStatement":"Free open public domain football (match fixtures & results) data"},"credit":"openfootball / football.json (https://github.com/openfootball/football.json), auto-generated from upstream Football.TXT datasets","dataChecks":{"perSeason":{"2021-22":{"ft":380,"teams":20,"all19h19a":true,"uniquePairs":true,"missingTime":0,"first":"2021-08-13","last":"2022-05-22","groups":230,"multiGroups":63},"2022-23":{"ft":380,"teams":20,"all19h19a":true,"uniquePairs":true,"missingTime":0,"first":"2022-08-05","last":"2023-05-28","groups":230,"multiGroups":57},"2023-24":{"ft":380,"teams":20,"all19h19a":true,"uniquePairs":true,"missingTime":0,"first":"2023-08-11","last":"2024-05-19","groups":235,"multiGroups":59},"2024-25":{"ft":380,"teams":20,"all19h19a":true,"uniquePairs":true,"missingTime":0,"first":"2024-08-16","last":"2025-05-25","groups":216,"multiGroups":63}},"mismatches":"none found: every season has exactly 380 matches with score.ft, 20 teams, each team 19 home + 19 away, unique ordered pairs, every match has date and time; all 4 SHA-256 values matched in the stated order","groupingNote":"groups = distinct (date,time) kickoff slots; multiGroups = slots with >1 simultaneous fixture. Times are as published in the files (local kickoff time strings; timezone not stated in file).","promotedTeamsInitialisedAt1500":{"2022-23":["AFC Bournemouth","Fulham FC","Nottingham Forest FC"],"2023-24":["Luton Town FC","Sheffield United FC"],"2024-25":["Ipswich Town FC"]},"teamNameNote":"team names used verbatim as identifiers (e.g. 'Arsenal FC'); no renaming needed, consistent across seasons"},"split":{"train":{"seasons":["2021-22","2022-23"],"dates":"2021-08-13..2023-05-28","matches":760,"outcomeCounts_HDA":[347,175,238],"use":"grid search of K,H,D by walk-forward mean log loss from 1500 ratings; train-frequency baseline"},"calibration":{"season":"2023-24","dates":"2023-08-11..2024-05-19","matches":380,"use":"fit temperature T on walk-forward raw Elo predictions (ratings carried forward from train end and updated online)"},"test":{"season":"2024-25","dates":"2024-08-16..2025-05-25","matches":380,"outcomeCounts_HDA":[155,93,132],"use":"frozen K,H,D,T and frequency vector; ratings carried forward and updated online after each kickoff slot"}},"outcomeRules":"outcome from score.ft only: home goals > away = H, equal = D, less = A. Inclusion: match has score.ft. Exclusions: none (0 excluded in all seasons). Extra time/penalties not applicable to league.","featureCutoffAndLeakage":{"cutoff":"each prediction uses only ratings updated by matches in strictly earlier (date,time) slots; all fixtures in the same slot are predicted before any of them updates ratings","checks":["sort key (date,time,team1,team2) applied per season; seasons processed chronologically","hyperparameters chosen only on 2021-22+2022-23","T chosen only on 2023-24","K,H,D,T and frequency baseline frozen before any 2024-25 match is scored","rating updates use untempered (T=1) probabilities so T does not affect ratings","no odds, lineups or external features used"]},"method":{"ratings":"initial 1500 for every team when first seen (no regression to mean between seasons)","probabilities":"a=10^((Rh+H-Ra)/400); P(H,D,A) proportional to (a, D*sqrt(a), 1)","update":"delta=K*(S-(P(H)+0.5*P(D))), S=1/0.5/0 for H/D/A; Rh+=delta; Ra-=delta","grid":{"K":[10,20,30,40,50],"H":[0,25,50,75,100],"D":[0.5,0.75,1,1.25,1.5],"tieBreak":"lexicographic ascending (K,H,D); first minimum kept"},"selected":{"K":50,"H":75,"D":0.75,"trainWalkForwardLogLoss":0.981451},"temperature":{"definition":"logits (ln a, ln D + 0.5 ln a, 0) multiplied by 1/T then softmax","grid":"0.50..3.00 step 0.01","tieBreak":"lower T","selectedT":0.96,"calLogLoss_T":0.942768,"calLogLoss_T1":0.943006},"trainFrequency_HDA":[0.456579,0.230263,0.313158],"metrics":"Brier = mean over matches of sum over 3 classes of (p_k - y_k)^2; logLoss = mean of -ln(max(p_true,1e-15))"},"testResults_2024_25":{"frequency":{"n":380,"brier":0.656811,"logLoss":1.082502},"rawElo":{"n":380,"brier":0.588117,"logLoss":0.984471},"scaledElo":{"n":380,"brier":0.589473,"logLoss":0.986711}},"reliabilityBins":{"definition":"5 equal-width bins of max class probability on [0,1]: [0,.2),[.2,.4),[.4,.6),[.6,.8),[.8,1.0]; observedHitRate = share where argmax class occurred","rawElo":[{"bin":"[0.0,0.2)","n":0,"meanConf":null,"observedHitRate":null},{"bin":"[0.2,0.4)","n":38,"meanConf":0.3828,"observedHitRate":0.3684},{"bin":"[0.4,0.6)","n":200,"meanConf":0.4971,"observedHitRate":0.495},{"bin":"[0.6,0.8)","n":117,"meanConf":0.6899,"observedHitRate":0.5726},{"bin":"[0.8,1.0]","n":25,"meanConf":0.8432,"observedHitRate":0.88}],"scaledElo":[{"bin":"[0.0,0.2)","n":0,"meanConf":null,"observedHitRate":null},{"bin":"[0.2,0.4)","n":33,"meanConf":0.3823,"observedHitRate":0.3636},{"bin":"[0.4,0.6)","n":196,"meanConf":0.4968,"observedHitRate":0.4898},{"bin":"[0.6,0.8)","n":121,"meanConf":0.6906,"observedHitRate":0.5785},{"bin":"[0.8,1.0]","n":30,"meanConf":0.847,"observedHitRate":0.8}],"frequency":[{"bin":"[0.0,0.2)","n":0,"meanConf":null,"observedHitRate":null},{"bin":"[0.2,0.4)","n":0,"meanConf":null,"observedHitRate":null},{"bin":"[0.4,0.6)","n":380,"meanConf":0.4566,"observedHitRate":0.4079},{"bin":"[0.6,0.8)","n":0,"meanConf":null,"observedHitRate":null},{"bin":"[0.8,1.0]","n":0,"meanConf":null,"observedHitRate":null}]},"findings":["Raw Elo beats the train-frequency baseline on 2024-25 (Brier 0.5881 vs 0.6568; log loss 0.9845 vs 1.0825)","Temperature scaling (T=0.96) improved calibration-season log loss only marginally (0.94301->0.94277) and slightly worsened test metrics (Brier 0.5895, log loss 0.9867)","Selected K=50 lies on the grid's upper edge, so the grid optimum may be truncated"],"limitations":["single league, 4 seasons, 380 test matches: metric differences of ~0.002 are within sampling noise (no confidence intervals computed)","grid edge K=50 selected","promoted teams start at 1500 rather than a below-average prior, likely biasing early-season predictions","kickoff time timezone not stated in source; only used for ordering within date","historical model scores only; they are not evidence of deployed/live platform accuracy","no market odds comparison","0.2-wide bins on [0,1]: bin [0,.2) is structurally empty since max prob >= 1/3"],"reproduction":{"recipe":"download the 4 URLs to DIR as <season>.json, then run: python3 -I epl.py DIR (prints the JSON from which this result was built; asserts SHA-256)","runtime":"Python 3 standard library only","script":"import json,sys,math,hashlib\nfrom collections import Counter\nS=['2021-22','2022-23','2023-24','2024-25']\nH256=['fbdfd426fa18fa2f8630b77de87c082734da495ac4668d6d72f29f76b73b9564','8d09f0f9846981626cdfec48903e1f21e7c79aabe6f92535c9e092e8e79b808b','03e13eafbf78dfe00d7e89dd3bf6643986eb6e8fd86c7664aeb8c5bc0bed88d0','c3d18f552d83382cd4b6b21127adbbfe38e7f8618ddc979fb5404f2df07d0a75']\nd=sys.argv[1];seas=[];chk={}\nfor s,h in zip(S,H256):\n  b=open(f'{d}/{s}.json','rb').read();assert hashlib.sha256(b).hexdigest()==h\n  m=[x for x in json.loads(b)['matches'] if 'ft' in x.get('score',{})]\n  g=sorted(m,key=lambda x:(x['date'],x.get('time',''),x['team1'],x['team2']))\n  hc=Counter(x['team1'] for x in g);ac=Counter(x['team2'] for x in g)\n  chk[s]={'ft':len(g),'teams':len(set(hc)|set(ac)),'all19h19a':all(hc[t]==19 and ac[t]==19 for t in set(hc)|set(ac)),\n   'uniquePairs':len({(x['team1'],x['team2']) for x in g})==len(g),'missingTime':sum('time' not in x for x in g),\n   'first':g[0]['date'],'last':g[-1]['date']}\n  for x in g:\n    a,b2=x['score']['ft'];x['o']=0 if a>b2 else (1 if a==b2 else 2)\n  grp=[];\n  for x in g:\n    k=(x['date'],x.get('time',''))\n    if grp and grp[-1][0]==k: grp[-1][1].append(x)\n    else: grp.append((k,[x]))\n  chk[s]['groups']=len(grp);chk[s]['multiGroups']=sum(len(v)>1 for _,v in grp)\n  seas.append(grp)\ndef probs(rh,ra,H,D,T=1.0):\n  la=math.log(10)*(rh+H-ra)/400;l=[la/T,(math.log(D)+la/2)/T,0.0];mx=max(l)\n  e=[math.exp(v-mx) for v in l];z=sum(e);return [v/z for v in e]\ndef ll(p,o): return -math.log(max(p[o],1e-15))\ndef br(p,o): return sum((p[i]-(i==o))**2 for i in range(3))\ndef run(gs,K,H,D,R,T=1.0,rec=None):\n  L=0;n=0\n  for grp in gs:\n    for _,ms in grp:\n      ps=[probs(R.get(x['team1'],1500),R.get(x['team2'],1500),H,D,T) for x in ms]\n      for x,p in zip(ms,ps):\n        L+=ll(p,x['o']);n+=1\n        if rec is not None: rec.append((x,p,probs(R.get(x['team1'],1500),R.get(x['team2'],1500),H,D,1.0)))\n      for x,p in zip(ms,ps):\n        pr=probs(R.get(x['team1'],1500),R.get(x['team2'],1500),H,D,1.0)\n        dl=K*((1,.5,0)[x['o']]-(pr[0]+.5*pr[1]))\n        R[x['team1']]=R.get(x['team1'],1500)+dl;R[x['team2']]=R.get(x['team2'],1500)-dl\n  return L/n\nbest=None\nfor K in (10,20,30,40,50):\n  for H in (0,25,50,75,100):\n    for D in (.5,.75,1,1.25,1.5):\n      v=run(seas[:2],K,H,D,{})\n      if best is None or v<best[0]: best=(v,K,H,D)\n_,K,H,D=best\nR={};trll=run(seas[:2],K,H,D,R)\ncal=[];R3=dict(R);run(seas[2:3],K,H,D,R3,rec=cal)\nbt=None\ndef ts(p,T):\n  l=[math.log(max(q,1e-300))/T for q in p];mx=max(l);e=[math.exp(v-mx) for v in l];z=sum(e);return [v/z for v in e]\nfor i in range(50,301):\n  T=i/100;v=sum(ll(ts(p,T),x['o']) for x,_,p in cal)/len(cal)\n  if bt is None or v<bt[0]-1e-15: bt=(v,T)\nT=bt[1]\nfr=Counter(x['o'] for grp in seas[:2] for _,ms in grp for x in ms);nf=sum(fr.values());fp=[fr[i]/nf for i in range(3)]\nte=[];R4=dict(R3);run(seas[3:],K,H,D,R4,rec=te)\ndef sc(P):\n  return {'brier':sum(br(p,o) for p,o in P)/len(P),'logloss':sum(ll(p,o) for p,o in P)/len(P),'n':len(P)}\ndef bins(P):\n  out=[]\n  for b in range(5):\n    lo,hi=b/5,(b+1)/5;s=[(p,o) for p,o in P if lo<=max(p)<hi or (b==4 and max(p)==1)]\n    out.append({'bin':f'[{lo:.1f},{hi:.1f}'+(']' if b==4 else ')'),'n':len(s),\n      'meanConf':round(sum(max(p) for p,_ in s)/len(s),4) if s else None,\n      'observedHitRate':round(sum(p.index(max(p))==o for p,o in s)/len(s),4) if s else None})\n  return out\nraw=[(p,x['o']) for x,_,p in te];scl=[(ts(p,T),x['o']) for x,_,p in te];frq=[(fp,x['o']) for x,_,p in te]\noc=Counter(x['o'] for x,_,_ in te)\nprint(json.dumps({'checks':chk,'sel':{'K':K,'H':H,'D':D,'trainLL':best[0]},'T':T,'calLL_T':bt[0],\n 'calLL_T1':sum(ll(p,x['o']) for x,_,p in cal)/len(cal),'freq':fp,'trainCounts':[fr[i] for i in range(3)],\n 'testCounts':[oc[i] for i in range(3)],\n 'test':{'frequency':sc(frq),'rawElo':sc(raw),'scaledElo':sc(scl)},\n 'bins':{'rawElo':bins(raw),'scaledElo':bins(scl),'frequency':bins(frq)},\n 'cutoff':{'calFirst':seas[2][0][0],'testFirst':seas[3][0][0],'testLast':seas[3][-1][0]},\n 'newTeamsAt1500':{s:sorted({x[t] for _,ms in seas[i] for x in ms for t in ('team1','team2')}-{x[t] for g in seas[:i] for _,ms in g for x in ms for t in ('team1','team2')}) for i,s in enumerate(S) if i}},indent=1))\n"},"sourcesFile":"sources.json"}