Home/Soccer Analytics/xG Model With Defender & GK Positioning

xG Model With Defender & GK Positioning

Expected Value ModelsLevel 3 — Advanced

What It Is

Basic xG models use only shot location (distance and angle from goal) to estimate conversion probability. More accurate models incorporate the positions of defenders and the goalkeeper at the moment of the shot. A shot from the penalty spot with two defenders blocking the shooting lane has far lower xG than one with a clear path. Similarly, a GK who is off their line or poorly positioned changes the probability meaningfully. Defender-context xG is the standard for serious analytical work.

Correct Execution

Correct modeling: at the moment each shot is recorded, capture the x,y coordinates of all defenders and the GK within the shot cone. Features to add to the base xG model: number of defenders in the shot cone (within ±15 degrees of the goal line), GK distance from goal line, GK lateral offset from optimal position. These features materially shift xG for shots in central box positions — a "high-probability" shot becomes low-probability when the shot cone is blocked. StatsBomb's data provides GK and defender locations on every shot as a data field.

Progression Levels

Diagnostic Tree

Coaching Cues

  • "Marcelo scored a 6% xG goal — not because he's unlucky to have scored, but because there were two defenders in the cone." — WFS 2019
  • "If your xG model doesn't know where the defenders are, it doesn't know how hard the shot was."

Common Errors

  1. Using distance/angle xG for player finishing evaluation: Context-free xG creates systematic errors for any player who regularly shoots from congested areas.
  2. Assuming GK position is constant: GKs vary widely in positioning — failing to capture their location means missing a major source of shot probability variance.
  3. Ignoring defender count vs. defender position: 2 defenders at the side of the cone matters less than 1 defender directly in the shooting lane.

Sources

  • Ted Knutson & Siqur Arshad, WFS 2019 StatsBomb presentation, YouTube, 2019-10-02 — demonstrated that StatsBomb's xG model incorporates GK and defender positions on every shot, showing a penalty-spot shot rated 6% (two defenders) vs. a distance shot rated 41% (beaten last man, keeper only)