Tokens
Track, visualize, and compete on AI coding assistant token usage across Claude Code, Cursor, OpenCode, Codex, Gemini, Kimi, and Qwen. The Kardashev Scale for AI Devs.
翻譯準備中
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證What predicts fantasy football points? pandas analysis of 27 NFL seasons, 1999–2025.
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗Every week, fantasy football managers choose between players using recent form, matchups, and Vegas lines. This project tests those instincts against 27 NFL seasons (1999-2025, 144,000 player-games): how the game changed, what never did, a projection model scored on seasons it never saw, a season-long model for drafts, and live projections for the 2026 season (this week's).
Live, phone-friendly version: joshwilliams332.github.io/nfl-historic-analysis
Python · pandas · scikit-learn · matplotlib · Jupyter · Power BI (DAX) · JavaScript · data from nflverse
Averaging a stat over odd weeks and over even weeks, then correlating the two halves, separates role from luck. Targets and carries repeat almost perfectly (r ≈ 0.9). Touchdowns repeat far less (r ≈ 0.4-0.6), and yards per target or per carry hardly repeat at all. When a player's points outrun their volume, expect a pullback.
The last game is the weakest predictor at every point in the season, and the last three games trail the season-to-date average. Early in the year, last season's average is as informative as this season's.
From the toughest fifth of matchups to the softest, scoring moves about 10% relative to a typical week. The Start/Sit heuristic on my fantasy site (Mingus Sports) assumes about 38% across the same groups. Vegas implied totals add about 5% once a player's average is known.
Trained on 2021-2023, tuned on 2024, tested once on 2025 (2,591 player-games):
| Projection | MAE (pts) | Correlation | Start/sit accuracy |
|---|---|---|---|
| Last game | 7.53 | 0.290 | 58.7% |
| Last 3 games | 6.24 | 0.400 | 62.6% |
| Season average | 5.87 | 0.450 | 64.1% |
| Mingus site formula | 6.08 | 0.432 | 64.0% |
| Gradient boosting | 5.63 | 0.475 | 64.9% |
| Ridge regression | 5.67 | 0.488 | 65.5% |
Start/sit accuracy: across every pair of same-position players in the same week, how often the one projected higher actually scored more (50% = coin flip).
A linear model was enough. Gradient boosting didn't find interactions worth its extra complexity.
When two players' projections are under 2 points apart, no projection is much better than a coin. At 6+ points, the call is right about 4 times in 5.
Target share, this season's average, and last season's average carry the most weight. Touchdowns per game is negative once points and volume are known: the model has learned to expect touchdown streaks to fade.
Wide receivers' share of top-150 fantasy points fell from about 46% to about 37% (3-season average). Quarterbacks and tight ends took most of it.
The 300-carry back went from about 10 a season in the early 2000s to none in 2023, with a small rebound since.
Season average beat the last 3 games, and the last 3 beat the last game, in all 27 seasons. Finding 2 is not a quirk of the modern NFL.
Touchdown spikes fade over full seasons too. The top fifth by touchdowns per touch dropped from 9.8% to 6.4% the next year, while their touches per game held steady. Year-to-year correlation: 0.54 for TD rate, 0.85 for touches per game.
Delta method (each player compared only with themselves, year over year). Running backs peak at about 24 and fall off steeply after 26. Receivers and tight ends peak around 25-26 and decline more gradually. Quarterbacks peak around 30 and hold up into their mid-30s. Survivors only, so real declines are steeper.
| Ridge trained on | Rows | 2025 MAE | Start/sit accuracy |
|---|---|---|---|
| 2021-2023 | 7,894 | 5.674 | 65.5% |
| 2015-2023 | 23,280 | 5.668 | 65.5% |
| 2009-2023 | 38,186 | 5.670 | 65.5% |
Five times the data, the same accuracy. The ceiling is the noise in a single game, not a shortage of examples. Better information (injuries, snap counts, depth charts) is what would move it.
Players who suit up with an injury tag score less than usual: 11% below a typical week when listed questionable, 15% when they missed practice. But only about 6% of player-games carry a tag, so adding the report barely moves overall accuracy.
Snap share (fraction of offensive plays in earlier games) is a small but real gain. On 2025 it saves 0.06 points of MAE, with a 95% interval of +0.03 to +0.10 from a bootstrap over weeks, and lifts start/sit accuracy from 65.5% to 66.1%. The live model uses both.
Next season's PPR per game from this season: production, the season before, volume, touchdowns, snap share, and a separate age curve per position. Predicting 2024 and 2025, it cuts the error of "same as last season" from 3.26 to 2.84 points per game and orders players within a position better (rank correlation 0.61 → 0.68).
The honest 2026 check, about seven weeks in: on raw error the model is slightly behind "same as 2025" (3.28 vs. 3.23), mostly because 2026 is the highest-scoring season in the sample and players have declined less than usual. Its read on who changes is weak so far (r ≈ 0.2 between predicted and actual change): the players it expected to rise are up, but its expected fallers haven't dropped more than everyone else. Worth rechecking after the season.
Trained only on 2021-2025, the weekly model beat the season average in every week of 2026 so far: 65.8% of start/sit calls right vs. 62.3%, and a 5.68-point average miss vs. 6.20.
Week 8 projections → (also as CSV)
Every week: python scripts/project_week.py projects the next unplayed week. Run it again after Friday's injury
reports to include the tags.
site/ is a static web version of the Power BI report (same seven views, buttons, and sliders) built
for phones first, published with GitHub Pages. Refresh its data with:
python scripts/build_powerbi_data.py && python scripts/build_site_data.py
powerbi/ holds a Power BI project built on the same data: buttons and sliders to test how well any
this-season stat predicts next season, find historical seasons that match a profile (and see what happened next),
explore 27 seasons of trends and individual players, browse this week's projections, and compare receivers with
corners (2025-26) by team, game and side of the field.
See powerbi/README.md to open it.
tests/ check this on toy data.python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
pytest # feature leakage tests
jupyter lab notebooks/ # run 01 -> 07 in order; ~250 MB of nflverse data downloads to data/raw on first run
python scripts/project_week.py # projections for the next unplayed week
notebooks/
01_data_and_features.ipynb load nflverse data, scoring check, features, leakage spot check
02_what_is_predictable.ipynb reliability, recent-form windows, matchup and Vegas effects
03_projection_model.ipynb baselines vs. ridge vs. gradient boosting, start/sit evaluation
04_history.ipynb 1999-2025: position shares, workhorse RBs, era checks, TD regression, aging, training window
05_snaps_and_injuries.ipynb snap share and injury reports as features, bootstrap confidence intervals
06_season_projections.ipynb season-long model for drafts, 2026 preseason projections vs. 2026 so far
07_live_2026_week8.ipynb 2026 backtest and week 8 projections
scripts/
project_week.py rerunnable weekly projections -> reports/projections/
build_powerbi_data.py exports the CSVs the Power BI report loads -> powerbi/data/
build_site_data.py compact JSON for the web version -> site/data/
site/ phone-first web version (GitHub Pages)
powerbi/ Power BI project (semantic model + report), see its README
src/fantasy/
data.py download + cache nflverse player weeks, schedules (Vegas lines), snap counts, injuries, birth dates
features.py leakage-safe features (incl. snaps, injury tags, upcoming-week rows), the Mingus heuristic
weekly.py the weekly projection model: build, fit, project a week
season.py season-long projection model
evaluate.py MAE / start/sit accuracy scoring
plots.py shared chart style (colorblind-checked palette)
tests/ unit tests for the no-look-ahead guarantees
reports/figures/ charts used above
reports/projections/ weekly projection tables