convez.ai
Skill
leftxp

world-cup-predict

leftxp/world-cup-predict

Ver no GitHub
InicialPluginScore · de 0 a 100

2026 FIFA World Cup predictor — Elo + Poisson/Dixon-Coles + Monte Carlo with real 2026 format. Zero-dependency Python, usable as a Claude Code skill.

Instalação

$npx convez-ai leftxp/world-cup-predict

1 comando no terminal: detecta o formato do repositório (marketplace ou plugin avulso) e instala via Claude Code. Requer Node 18+ e o Claude Code instalado.

Métricas

Estrelas
1
Forks
0
Acompanhando
0
Saúde
42%
Último commit
há 5 meses
Versão
—
Issues abertas
0
Contribuidores
1

README

A tradução para o português deste README ainda está na fila.

world-cup-predict

2026 FIFA World Cup (USA/Canada/Mexico) match & tournament predictor — pure-Python, zero dependencies, usable as a Claude Code skill.

一个 2026 世界杯预测器:预测夺冠/各阶段晋级概率、单场比分、查历史交锋。纯 Python 标准库,零第三方依赖,可作为 Claude Code skill 直接调用,也能当独立命令行工具。

模型

标准 World Football Elo 实力评分
   → Elo 差映射期望进球 λ
   → 泊松 + Dixon-Coles 单场比分概率
   → 蒙特卡洛模拟(runs-hot 模拟内热更新)
   → 真实 2026 赛制:H2H 优先 tiebreaker · FIFA 官方 495 第三名分配表 · 真实对阵树 M73–M104

Walk-forward out-of-sample 回测(8000+ 场国际比赛):RPS ≈ 0.17,准确率 ≈ 60%,达到公开预测模型水平。

安装

作为 Claude Code skill:

git clone https://github.com/leftxp/world-cup-predict ~/.claude/skills/world-cup-predict

或任意位置 clone 后当命令行工具用(需要 Python 3.8+,无需 pip 安装任何东西)。

用法

# 各队 夺冠/决赛/四强/八强/十六强 概率
python3 wcpredict.py forecast
python3 wcpredict.py forecast -n 20000 --top 24

# 单场比分预测(默认中立场地)
python3 wcpredict.py match Spain Argentina

# 历史交锋
python3 wcpredict.py h2h Argentina Brazil

# 联网刷新最新赛果(赛中用)
python3 wcpredict.py update
HTTPS_PROXY=http://127.0.0.1:7897 python3 wcpredict.py update   # 需代理时

示例输出:

=== 2026 世界杯预测(10000 次模拟,真实赛制)===
队伍                      夺冠%    决赛%    四强%    八强%    十六强%  Elo
Spain                  20.x   30.x   47.x   68.x    85.x   ....
Argentina              18.x   28.x   45.x   62.x    82.x   ....
...

数据来源

局限

输出是概率而非定论。单场精确比分方差极大;模型不含伤病、停赛、临场状态、博彩盘口。仅供参考与娱乐,请勿用于下注。

License

MIT

Ver o original no GitHub

Bom para

Relacionados