David Sumpter goes through the steps needed to create an expected goals model. This lecture covers:
Fitting straight lines using linear regression
The logistic function
Fitting shot angle and distance separately
Fitting shot angle and distance separately
Working with regression tools
The code for this lecture can be found here:
https://github.com/Friends-of-Trackin...
Specifically, I use: 4LinearRegression.py and 5xGModelFit.py
Using Wyscout data from: https://figshare.com/collections/Socc...