I was looking for an excuse to make some data visualizations to test how the interactive features of Plotly figures work on Quarto. And, given that football season fast approaches, why not illustrate what goes into (and comes out of) an NFL expected points model?
I’ll use an established model predicting the expected points given the specific circumstances of a play before in starts. Those circumstances were linked to historical data on what the next scoring (e.g. possessing team TD, opposing team FG, end of half) ended up being, with the expected points essentially being the sum of the points from each outcome multiplied by the estimated probability of it happening. It was made available by the prolific and tireless producers of the nflverse R package. As support, they’ve provided ample documentation, and even a handy function to quickly output the expected points given all the terms. I also think that NFELO provides a nice overview of how it’s used, so you can check them out.
Below, I walk through a number of predictors in the model, holding others steady, to get an impression of how each impacts the model predictions.
