Data. ATP and WTA tour-level and Grand Slam singles results from ESPN: men since 2014 (about 40,000 matches), women since 2023, daily weather from Open-Meteo and player birth dates from ESPN. Refreshed every 6 hours.
Ratings. Each player has an Elo rating overall and per surface. Beating a stronger player, or winning by a big score, moves it more. New players move faster.
Model. 24 factors per match feed a logistic regression: one for men (trained on 2015 onward, a match two years older counts half, so the Federer and Nadal era weighs less) and one for women. It was tested against gradient-boosted trees and a small neural network; neither beat it on unseen matches. Height, left-handedness, tournament level and rating uncertainty were tested and dropped.
Honest ceiling. Published studies get about 66% to 70% from this kind of data; betting markets get about 72%. Going higher needs serve and return stats or odds history.