Predicting the AP NFL MVP Using Random Forest Regression
This was my attempt to predict the 2023 AP NFL MVP award using a random forest regressor model and training data from 1996-2022.
I collected data using a web-scraping process (HTML files can be found in mvp, player, defense, and team folders) on mvp data, offensive and defensive statistics, and team data, and I cleaned and combined the data into a single csv file (stats.csv).
A huge shoutout to pro-football-reference.com for organizing an outrageous amount of NFL data in a systematic website.
Using the combined csv file, I used data from 1996-2022 to train a random forest regressor model which creates a series of decision trees and averages predictions from those trees to predict the AP NFL MVP for 2023.
Predicted and actual results for 2021-2023: