Here's a small demonstration how RAPM derived power ratings work, using Chicago as an example
First, find Chicago's games in the bbv dataset, listing the newest one first
CHI {0: '20120104CHIDET', 1: '20120103ATLCHI', 2: '20120101MEMCHI', 3: '20111230CHILAC', 4: '20111229CHISAC', 5: '20111226CHIGSW', 6: '20111225CHILAL'}
Game 6 is too old, so we first look at game 5: 20111226CHIGSW
For every Chicago player that played in that game get a) the number of possessions he was involved in b) his current total RAPM rating taken from
http://stats-for-the-nba.appspot.com/ranking_rec
726 Watson, C.J. -0.001753 79.0
-0.0692435 79.0 -0.78885
The first number is the player's bbv playerID. Watson played 79 possessions and he has a rating of -0.0017 (per 200possessions), We scale that player's rating to 100 possessions and multiply his rating with the # of possessions, leading us to the "-0.0692435", which is the current team strength. Obviously we're not done yet
880 Asik, Omer 0.005247 39.0
0.033073 118.0 0.252251694915
Asik has a rating of 0.005. It gets scaled to 100, then multiplied with his possessions, then added to current team strength, which is now 0.03. The '118' tracks the total amount of possessions so far in this game.
755 Rose, Derrick 0.028747 155.0
2.2609655 273.0 7.45373241758
Lots of possessions from a good player does good things to your team rating, which is now at 2.2. We're still not done yet
54 Korver, Kyle 0.016247 67.0
2.80524 340.0 7.42563529412
617 Brewer, Ronnie 0.005747 58.0
2.971903 398.0 6.72038366834
270 Hamilton, Richard -0.014253 94.0
2.302012 492.0 4.21099756098
518 Boozer, Carlos 0.006247 100.0
2.614362 592.0 3.97453682432
122 Deng, Luol 0.044747 164.0
6.283616 756.0 7.4804952381
811 Gibson, Taj 0.007747 89.0
6.6283575 845.0 7.05978905325
686 Noah, Joakim 0.013747 100.0
7.3157075 945.0 6.96734047619
So we end up with a team rating of 7.3, but it was a fast game with 945 possessions. Scaling the team rating to standard pace (*900/945) gives us the final rating of 6.9 for that game
Here's Memphis at Chicago
880 Asik, Omer 0.005247 33.0
0.0865755 33.0 2.36115
755 Rose, Derrick 0.028747 59.0
0.934612 92.0 9.14294347826
54 Korver, Kyle 0.016247 32.0
1.194564 124.0 8.67022258065
617 Brewer, Ronnie 0.005747 59.0
1.3641005 183.0 6.70869098361
726 Watson, C.J. -0.001753 19.0
1.347447 202.0 6.00347673267
518 Boozer, Carlos 0.006247 50.0
1.503622 252.0 5.37007857143
122 Deng, Luol 0.044747 65.0
2.9578995 317.0 8.39782192429
811 Gibson, Taj 0.007747 35.0
3.093472 352.0 7.90944545455
686 Noah, Joakim 0.013747 38.0
3.354665 390.0 7.74153461538
Player possessions are not counted when there's a >20 point difference at the start of the possession. Notice how there are only 390 total possessions because the game had lots of garbage time. After scaling the current team rating (3.3) to 900 possessions we get the final team rating for that game, 7.7.
The final ratings for the last 6 games are, with possessions in brackets, newest game at the bottom:
6.96 (945.0)
5.93 (975.0)
6.93 (885.0)
7.74 (390.0)
8.44 (910.0)
6.23 (915.0)
I use an arbitrary weighing scheme, which is 6/5/4/3/2/1. We want to give newer games more weight, with the newest game getting the largest weight. Games are also weighed by possessions to avoid weird effects in games that had lots of garbage time.
The final rating then is (6.23*915*6+8.44*910*5+.....)/(915*6+910*5+..) = 7.1