football_xg_model
Estimate expected goals and win/draw/loss probabilities for a football match between two teams, with optional neutral venue.
Instructions
Estimate a match's expected goals and win/draw/loss probabilities.
Args: home_team: First team code (e.g. "ARG"). away_team: Second team code (e.g. "BRA"). neutral: True for a neutral venue (no home advantage). World Cup default.
Returns: data: {expected_home_goals, expected_away_goals, home_win, draw, away_win}. meta.estimated: true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| neutral | No | True for a neutral venue (no home advantage). World Cup default. | |
| away_team | Yes | Second team code (e.g. "BRA"). | |
| home_team | Yes | First team code (e.g. "ARG"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| meta | No | ||
| error | No |