RAPM metric advice!
Posted: Fri Feb 09, 2024 1:12 am
Hi!
I was interesting in playing around with RAPM and creating one of those fancy all in ones with it, but I was just wondering a few questions when it came to RAPM.
I have a play by play data set, and right now have it set when it comes to possessions as
- Getting an offensive rebound off a missed free throw is a continuation of the current possession as long as the same 10 players are on the floor, where then it is a change
- If players on the floor change mid possession, its just who finished the possession
- Offensive rebounds in general are continuations of teh current possession.
I got the play by play data from bigdataball, and am pretty happy with my raw RAPM results as they somewhat match the ones that used to be over at shotcharts and are available for download.
I was wondering some things in terms of how to approach
DSMok told me i should mention which github i used, i used this to calculate RAPM, bigdataball had the possession data already and converting that into a possession matrix wasn't too much but I used this for the actual RAPM calculation
https://github.com/rd11490/NBA_Tutorial ... aster/rapm
So i want to look into doing something similar to LEBRON (not thinking of doing some huge undertaking this is a for fun type of thing), luck adjusting, box score priors based on position (perhaps taking inspiration from DSMoks 2d position post actually), perhaps an age curve since Im doing this for college basketball and I could see how that could help.
My only problem is im not sure how to approach this.
With luck adjustments, free throws are simple enough, but offense and defense and 3 point shooting is where it gets confusing to me.
My current assumption is to player average 3 point shooting and apply that to their individual possessions, which is simple enough on defense, but when it comes to offense im not sure how to approach making it so every players 3 point shooting is the average of their on court 3pt% with player X on, and their normal 3pt%, for every player in the league.
Beyond that, im not sure how to approach box score priors and how that works, as I haven't found much online yet that explains it.
I was interesting in playing around with RAPM and creating one of those fancy all in ones with it, but I was just wondering a few questions when it came to RAPM.
I have a play by play data set, and right now have it set when it comes to possessions as
- Getting an offensive rebound off a missed free throw is a continuation of the current possession as long as the same 10 players are on the floor, where then it is a change
- If players on the floor change mid possession, its just who finished the possession
- Offensive rebounds in general are continuations of teh current possession.
I got the play by play data from bigdataball, and am pretty happy with my raw RAPM results as they somewhat match the ones that used to be over at shotcharts and are available for download.
I was wondering some things in terms of how to approach
DSMok told me i should mention which github i used, i used this to calculate RAPM, bigdataball had the possession data already and converting that into a possession matrix wasn't too much but I used this for the actual RAPM calculation
https://github.com/rd11490/NBA_Tutorial ... aster/rapm
So i want to look into doing something similar to LEBRON (not thinking of doing some huge undertaking this is a for fun type of thing), luck adjusting, box score priors based on position (perhaps taking inspiration from DSMoks 2d position post actually), perhaps an age curve since Im doing this for college basketball and I could see how that could help.
My only problem is im not sure how to approach this.
With luck adjustments, free throws are simple enough, but offense and defense and 3 point shooting is where it gets confusing to me.
My current assumption is to player average 3 point shooting and apply that to their individual possessions, which is simple enough on defense, but when it comes to offense im not sure how to approach making it so every players 3 point shooting is the average of their on court 3pt% with player X on, and their normal 3pt%, for every player in the league.
Beyond that, im not sure how to approach box score priors and how that works, as I haven't found much online yet that explains it.