Wednesday, November 25, 2026
HomeData ScienceData Science for Sports Analytics – Expected Goals, Player Tracking, Win Probability...

Data Science for Sports Analytics – Expected Goals, Player Tracking, Win Probability and Injury Prediction

Table of Content

📋 KEY INSIGHTS

  • Sports analytics transforms raw tracking and event data into decision-support tools for coaches, general managers, and broadcasters — with football (soccer), basketball, and American football leading adoption.
  • Expected Goals (xG) models the probability that a shot results in a goal using features like shot location, body part, and assist type — now a standard metric across all major football leagues.
  • Player tracking systems (Hawk-Eye, TRACAB, Second Spectrum) capture player and ball positions at 25 Hz, generating the trajectory data that powers speed, acceleration, and formation analytics.
  • Win probability models update the probability of each team winning in real time given the current score, time remaining, field position, and possession — the sports equivalent of a live prediction market.
  • Draft and recruitment analytics uses historical player performance data and ML to project career value, identifying undervalued players before the market prices them in (the Moneyball insight).
  • Injury prediction models combine GPS load data, prior injury history, and workload patterns to flag elevated injury risk — a high-stakes application where false negatives (missing a real risk) are costly.

Sports analytics has moved from spreadsheets and scouting intuition to real-time computer vision, tracking systems generating gigabytes of data per game, and ML models that have become indispensable in every top professional team’s front office. The Moneyball revolution in baseball (2003) demonstrated that quantitative player evaluation could identify market inefficiencies — a lesson that every other sport has since applied. This guide covers the core sports analytics toolkit: event data and tracking data sources, expected goals and possession value models, win probability and game state models, player clustering, draft analytics, and injury prediction.

Expected Goals, Tracking Data and Possession Value

The two fundamental data types in football analytics are event data (discrete on-ball actions: passes, shots, tackles, with location and outcome) and tracking data (continuous positions of all players and the ball at 25 Hz). StatsBomb, Opta, and Wyscout provide event data for most professional leagues; TRACAB and Second Spectrum provide tracking data under proprietary licences. The xG model is trained on a historical dataset of shots with binary outcome labels (goal / no goal): logistic regression or gradient boosting (from our gradient boosting guide) predicts goal probability from shot features. A well-calibrated xG model achieves AUC of 0.78–0.82 and Brier score of 0.08–0.09 on held-out shots.

Statsbomb’s open-data xG model uses over 30 features including shot distance from goal, shot angle, shot technique (head, foot, volley), assist type, goalkeeper position, number of defenders in shot path, and game state (score difference at time of shot). The most predictive features are distance (shots from outside the box have xG ≈ 0.03) and angle (central shots have xG 3–5× higher than near-post shots at the same distance). The connection to our model evaluation guide is direct: xG model calibration is essential — a miscalibrated model that assigns xG 0.5 to shots that actually convert at 30% will systematically overestimate attacking quality, leading to wrong conclusions about team performance.

Possession value models extend xG to value every on-ball action, not just shots. VAEP (Valuing Actions by Estimating Probabilities) and Expected Possession Value (EPV) model the probability of scoring or conceding in the next K actions from the current game state. Each action’s value is the change in this probability: a progressive pass that moves the ball from midfield to the edge of the box adds value by increasing scoring probability; a loss of possession subtracts value. These models enable ranking players by total value added per 90 minutes, independent of their role or team’s playing style.

Basketball tracking analytics from Second Spectrum and SportVU captures shot quality (defender distance, contest height, shot difficulty), spacing (how the five players on court use the available space), and play type classification (pick-and-roll, isolation, post-up). The connection to our clustering guide is direct: player archetype clustering (grouping players by their usage patterns, shot locations, and defensive responsibilities) uses k-means or Gaussian mixture models on aggregated tracking features — the same clustering algorithms described there, applied to multi-dimensional player performance vectors to identify playing styles like “stretch 4”, “point guard”, or “defensive anchor”.

MetricSportMethodKey Use
xG (Expected Goals)Football/soccerLogistic regression / GBMShot quality; finishing skill
VAEP / EPVFootball/soccerMarkov chain + GBMPlayer value; action ranking
Win Probability (WP)All team sportsLogistic regression / GBMLive broadcast; game management
WAR (Wins Above Replacement)BaseballRuns → wins conversionPlayer value; contract pricing
RAPM / RPMBasketballRidge regression on lineupsDefensive value; lineup optimisation
GPS load metricsAll field sportsTime series thresholding + MLInjury prevention; load management

Win Probability, Draft Analytics and Injury Prediction

Black 3D letters spelling out the word win
Photo by Logan Voss on Unsplash

Win probability models are real-time Bayesian updates on match outcome probability. The features are game state: current score, time remaining, field position (American football), possession, and historical home/away advantage. Logistic regression trained on thousands of historical matches provides a well-calibrated baseline; gradient boosting captures non-linear interactions (a team leading by 1 goal in minute 85 is much safer than minute 60, even though the score is identical). The connection to our Bayesian statistics guide is direct: win probability is a Bayesian prior-updating problem — the pre-match win probability (based on team quality ratings) is updated at each event using the likelihood of the observed game state under each outcome hypothesis.

Draft and recruitment analytics identifies players whose market value is below their true talent — the statistical arbitrage that Moneyball made famous. The key modelling challenge is projection: a player’s historical statistics must be adjusted for age (peak performance curves differ by position and sport), league strength (a goal scorer in the Championship is not equivalent to one in the Premier League), playing time (a player who averaged 2.1 xG/90 on 500 minutes of playing time is statistically noisier than one with 2000 minutes), and role (a striker on a possession-dominant team has different expected statistics than one on a counter-attacking team). The connection to our causal ML guide is direct: comparing players across teams and leagues requires controlling for confounders (team quality, playing style, playing time allocation) using the same double ML and regression discontinuity methods described there for causal effects in observational data.

Injury prediction using GPS and accelerometer load data is one of the highest-ROI sports analytics applications: a single serious injury (anterior cruciate ligament, hamstring tear) can cost a team $5–15M in wages and performance. The standard approach combines acute:chronic workload ratio (ACWR — the ratio of the last 7 days’ load to the rolling 28-day average load; ACWR > 1.5 is associated with 2–4× elevated injury risk) with gradient boosting on individual load history, prior injury history, and fatigue markers. The connection to our survival analysis guide is direct: injury prediction is a time-to-event modelling problem — the question is not “will this player be injured?” but “how many days until the next injury given their current load?”, and survival models (Cox regression, DeepSurv) that model the injury hazard rate as a function of time-varying covariates (daily load) are more appropriate than binary classifiers.

Computer vision for sports analytics uses pose estimation (MediaPipe, OpenPose) for biomechanical analysis (batting stance, bowling action, sprint mechanics), object detection (YOLO-based ball tracking at 100 fps), and multi-object tracking (DeepSORT or ByteTrack for all 22 players across a 90-minute match) to automate statistics extraction from broadcast video. The connection to our computer vision guide is direct: player tracking from video is a multi-object detection and tracking problem — the same YOLO detection and Kalman filter-based tracking approaches described there are the backbone of commercial player tracking systems, with sport-specific fine-tuning for the distinctive appearance of players in team kits.

✦ SUMMARIZE THIS ARTICLE WITH AI

Gradient boosting (xG models; win probability; injury risk classifiers) is in our Gradient Boosting guide. Survival analysis (time-to-injury modelling with Cox and DeepSurv) is in our Survival Analysis guide. Clustering (player archetype clustering from tracking features) is in our Clustering guide. Causal ML (controlling confounders in cross-league player comparison) is in our Causal ML guide. Bayesian statistics (win probability as Bayesian prior updating) is in our Bayesian Statistics guide. Data storytelling (communicating xG and analytics to coaches and fans) is in our Data Storytelling guide. Time series anomaly detection (GPS load spike detection for injury risk) is in our Time Series Anomaly guide.

Leave feedback about this

  • Rating

Durgesh Kekare
Durgesh Kekarehttps://www.dataexpertise.in
Durgesh Kekare is a data science educator and founder of DataExpertise.in. With expertise in Python, machine learning, and analytics, he helps 10,000+ learners break into data careers.

Latest Posts

List of Categories