XG is football though, they have databases (the ones the pros use now have millions of shots entered into them) where they look back at as many examples of the same kind of chance ~(location, situation etc.) and then give it a score between 0 and 1 based on on how many players in their database...