Which Box Score Stats Contribute to Home Court Advantage?

This is our fourth post about home court advantage in the NBA. If the home team has a higher win probability, that advantage should be evident in at least some of the box score statistics. Home court advantage could result from better offense, better defense, or a mix of the two.

In this post, we’ll examine how basic box score statistics vary between home and away games.

We’ll continue to use the 24,797 games from the 1996-97 through 2016-17 NBA regular seasons as our data set.

Please see this Jupyter notebook for the code used to produce the data, analysis and figures in this post.

Aggregating the Data

We are going to try to identify which team box score statistics improve at home compared to on the road. In order to do this properly, we need to isolate the impact of location (home versus away) from the match up itself. Otherwise, the variation created by differences in opponent quality will swamp the impact of home court.

To do this, we are going to group box score statistics by season, team, and opponent. Grouping in this way will allow us to control for the variation in team quality in different seasons. It will also allow us to control for the different quanlity of various opponents.

Within this grouping, we will separate the home games from the away games, and get the average box score statistics for each. Then, we can subtract the average away game statistics from the average home game statistics. The difference between the grouped home and away statistics will be our measure of how team performance improves just by virtue of playing at home.

The Python code in the Juypter notebook uses pandas to implement this idea. It also scales the statistics for a standard 48-minute game and computes shooting percentages for field goals, three-pointers, and free throws.

This post will only show the main results of the analysis. See the Jupyter notebook if you want to get the details on how the data were sliced and diced to produce these results. The notebook is also a good example of some of the more advanced pandas techniques you can use to organize and analyze data. In particular, you might want to check out how the NBA lockouts from the 1998-99 and 2011-12 seasons made an appearance in the data preparation.

Home Court Impact on Box Score Statistics

Let’s get right to the results. What is the impact of home court on box score statistics?

pts fgm fga fg3m fg3a ftm fta fg_pct fg3_pct ft_pct
count 17026.000 17026.000 17026.000 17026.000 17026.000 17026.000 17026.000 17026.000 17026.000 17026.000
mean 3.099 1.071 0.166 0.154 0.001 0.803 0.985 1.225 0.883 0.279
std 12.508 5.483 7.373 3.235 5.374 7.151 8.752 6.618 15.459 12.067
min -50.000 -21.000 -33.000 -18.000 -26.000 -33.000 -41.000 -28.482 -80.000 -56.618
25% -5.000 -2.500 -4.696 -2.000 -3.500 -4.000 -4.788 -3.092 -8.772 -7.585
50% 3.000 1.000 0.000 0.000 0.000 1.000 1.000 1.189 0.739 0.274
75% 11.000 4.500 5.000 2.000 3.500 5.500 6.500 5.467 10.464 8.036
max 55.000 23.000 32.000 16.000 24.000 29.000 44.000 29.252 72.143 52.941
oreb dreb ast tov stl blk pf
count 17026.000 17026.000 17026.000 17026.000 17026.000 17026.000 17026.000
mean 0.374 1.057 1.666 -0.373 0.119 0.639 -0.532
std 4.653 5.825 5.680 4.501 3.418 3.025 4.920
min -23.000 -26.000 -20.000 -22.000 -14.500 -12.085 -20.500
25% -2.613 -2.802 -2.000 -3.083 -2.000 -1.000 -4.000
50% 0.500 1.000 1.513 -0.415 0.000 0.500 -0.500
75% 3.293 5.000 5.308 2.500 2.130 2.500 2.826
max 29.000 26.000 31.000 18.000 16.000 16.000 20.943

Scoring

If you look at the pts column, you will see that the same 3.1 point home court advantage emerges from our aggregated data.

Looking at that same column, you will also see that there is a lot of variation around that average. Remember, the data we’re looking at are match ups within a particular season. The point differentials between the same two teams is not very consistent, even within the same season.

Let’s plot the point differential.

Home Court Improves Scoring

The plot shows that a normal distribution fits the aggregated data relatively well. Nothing really stands out from the plot. Even so, the average impact of 3.1 points looks relatively small compared to the noisiness of the data.

Better Shooting Isn’t the Whole Story

It’s hard to pinpoint exactly how home court advantage translates into superior scoring. Field goal percentage goes up by about 1.2% on average, and three-point shooting percentage goes up by about 0.9% on average.

These modest improvements in scoring percentage are pointing in the right direction, but aren’t sufficient to clearly explain the magnitude of NBA home court advantage.

Other Statistics

If you look at the other statistics, you will see that rebounding improves, and assists improve, and turnovers improve, and steals improve, and blocks improve, and personal fouls called against the team improve. Of course, you wouldn’t expect statistics like blocks and personal fouls to directly benefit scoring.

The overall message is: teams really do play better at home, and the benefit shows up in a lot of statistics. We will have to dig deeper in future analysis to try to understand better what is going on.

Box Score Variation by Team

To conclude, let’s look at how these same statistics vary by team, aggregated over the course of the 21 complete regular seasons.

pts fg_pct fg3_pct ft_pct oreb dreb ast tov stl blk pf
team
DEN 4.579 0.992 1.410 -0.086 0.199 1.757 3.591 -0.775 -0.114 1.839 0.169
ATL 4.186 1.738 0.709 -0.024 0.502 0.786 1.946 -0.573 -0.066 -0.248 -0.134
WAS 4.140 1.681 1.037 1.774 0.296 0.498 1.411 -0.436 0.376 0.363 -0.669
SAC 4.138 1.372 1.734 -0.042 0.532 1.070 0.226 -0.245 -0.182 0.312 -0.269
GSW 4.066 1.959 0.966 -0.138 0.787 1.279 3.084 -0.202 0.143 0.441 -0.482
POR 4.039 1.505 0.987 0.097 0.590 0.708 2.206 -0.418 0.218 -0.290 -0.770
DAL 3.724 1.120 1.302 0.179 0.986 1.367 0.669 -0.125 0.341 0.641 -0.291
MIA 3.723 1.732 0.311 0.657 -0.218 0.195 -0.720 -0.673 0.439 0.285 -0.801
UTA 3.516 1.658 2.340 0.138 -0.404 1.859 0.364 -0.846 0.101 1.130 -0.605
CLE 3.513 1.337 2.518 1.683 0.396 1.378 3.727 -0.307 -0.149 1.323 -1.041
ORL 3.487 1.425 -0.033 0.107 0.679 0.842 0.436 0.113 0.208 0.323 -0.610
LAL 3.430 1.059 -0.213 -0.470 0.713 1.477 2.883 0.190 0.109 0.846 0.002
SAS 3.416 1.814 1.427 -0.810 0.016 1.271 1.815 0.093 0.374 1.114 -0.613
IND 3.357 1.083 1.584 0.687 0.839 1.648 1.062 -1.061 0.049 1.018 -1.107
CHA 3.268 0.681 1.074 0.196 0.436 1.000 1.697 -0.850 -0.130 1.604 -0.014
PHX 3.255 1.215 1.239 0.999 0.231 1.074 0.345 -0.475 -0.072 0.701 -0.614
MIL 3.194 1.451 1.261 0.547 0.465 0.350 2.293 -0.406 0.140 0.078 -0.826
NOP 3.111 1.630 0.815 -0.402 0.348 0.650 3.207 -0.436 0.501 0.856 -0.669
DET 3.065 1.138 0.561 0.814 0.211 1.131 1.867 0.076 0.011 0.766 -0.262
NYK 2.928 1.218 -0.045 0.583 0.467 0.426 -0.047 -0.329 0.153 -0.324 -0.606
MEM 2.863 1.240 1.068 0.470 0.367 1.322 0.604 -0.261 -0.051 1.133 -0.514
BKN 2.755 0.861 1.134 0.969 0.977 1.077 1.522 0.247 0.005 0.469 -0.163
OKC 2.625 1.389 1.332 0.717 -0.230 0.571 1.424 -0.221 0.666 0.620 -0.363
TOR 2.367 0.999 1.353 1.009 0.388 0.781 1.962 -0.496 -0.030 1.062 -0.826
LAC 2.071 1.307 -0.532 0.261 -0.235 0.840 1.886 -0.010 0.171 1.016 -0.265
PHI 1.938 0.956 0.707 0.630 0.088 0.995 2.240 -0.226 0.156 -0.069 -0.241
HOU 1.853 0.607 -0.689 -1.130 0.615 1.486 1.536 -0.660 -0.017 0.628 -1.100
MIN 1.556 0.700 -0.289 -1.344 -0.257 1.430 2.112 -0.997 -0.173 0.525 -0.498
CHI 1.545 -0.094 0.647 0.194 0.983 1.456 2.462 -0.909 0.227 0.991 -0.392
BOS 1.314 0.789 0.855 0.059 0.463 0.964 2.168 -0.157 0.084 0.367 -1.194

In this table, we are sorting by average point differential (home versus away), grouped by season and matchup. In this ordering, Denver is still on top, but teams such as Utah and Cleveland are further down the list than in our prior analysis.

This table also makes clear that the impact of home court on particular statistics appears to vary significantly by team. For example, the Nuggets, the Jazz and the Pacers show a relatively large drop in turnovers, while the Warriors and the Spurs show a relatively large increase in shooting efficiency.

about contact pp tos