I hope to have some neat stuff for the blog soon, but in the meantime here’s a little roundup of things I have been doing elsewhere.
I am a contributor at nyloncalculus.com, a new basketball analytics blog, and I have written two pre-season previews for them, on the Mavericks and the Wizards:
Meet the New Wizards, Same as the Old Wizards
Mavericks and Tyson Chandler Look to Make Opponents Work Harder for Points
But I spent most of my time the last couple of months creating shot charts for them. A recent update made these interactive, allowing you to see a player’s accuracy and volume from any point on the floor:
Here are the grisly details about calculating adjusted defensive impact by court location that nobody has been waiting for. I’ve partially explained the methods before here, but some things have changed and that explanation was not comprehensive. So buckle in and get ready for a lot of really dry prose, a couple of kinda cool graphs, and some code that should help you understand the algorithm I’m using to select shots.
This is a really great article from Miles Wray about Spoelstra’s decision to put Rashard Lewis on David West in game 4 of the Eastern Conference Finals. I want to add a little footnote to it. Miles’ main point is that Rashard Lewis is pretty fast for a 6’10 guy and that allows him not only to play West aggressively, but to help out on other players and then recover quickly and get back to West. This leads to more turnovers.
This turns out to be an interesting case for my Adjusted Defensive Impact visualization too though. The construction of ADI is similar to Adjusted Plus Minus approaches, but this is a case where APM and its various flavors don’t tell the full story. If you take a look at Jeremias Engelmann’s xRapm stats, you can see that Rashard Lewis is a slight negative on defense. But take a look at his adjusted defensive impact viz:
Lewis isn’t a great defender overall, but he’s a pretty decent defender near the basket. More than that, he’s especially good on the right side close to the basket and in the midrange. Guess who loves those spots? Here’s David West’s season shot chart from NBA.com:
This is not really the story of last night–West actually shot well when Lewis was in the game (7 for 12) and I think Wray’s assessment is pretty accurate: Lewis was valuable not because he shut down West (who had a good game overall) but because he forced turnovers. But it means that Lewis can do the things he does well, per Wray’s analysis, without being a defensive liability in his matchup with west.
The Birdman is out for tonight’s Heat v Pacers game and that could make a big difference. Miami has a very strong defensive front court. They start Bosh, who is a very canny defensive player, but there is no drop off when Bosh sits, because Birdman is an excellent defensive center. Check out the numbers from my adjusted defensive impact graph for Andersen. Warm colors (red/orange) indicate that offensive players shoot better when Birdman is on the court. Blue colors indicate that offensive players suffer when Birdman is on the court and Birdman brings the blue. See other players here.
The graph shows how Birdman affects opposing FG% after adjusting for other defenders and the other offensive players on the court. Don’t take my word for it though, he also puts up amazing defensive xrapm stats.
After posting my adjusted defensive impact metrics yesterday, I said this on Twitter:
I was referencing the bars at the bottom of each player’s chart. Before I continue, let me explain how to read these. Here is Al Horford:
This means that when Horford is on the court as a defender, the probability that any given shot will be a close shot (which I define as <8 feet from the basket) is increased by 2%. The probability that any given shot will be a midrange shot is increased by 4%, and the probability that any given shot will be a 3 is decreased by 6%. These should sum to 0, although occasionally they may not due to rounding.
Now take another look at the adjusted defensive impact charts and compare, for example, Roy Hibbert to Paul George or, as @gswhoops mentions, Andrew Bogut to Andre Iguodala. The results show pretty consistently that big men tend to alter where an offense takes its shots. Wing defenders don’t. @WhrOffnsHppns asked if this might be a consequence of the method and as I sat at my work computer, with no access to my code, I realized that I couldn’t even really remember what the method was. I implemented this weeks ago and then just kinda forgot about it. So below the cut I outline the method in detail and look at some descriptives to buttress the big man findings. The short version though is that I do not think these results are just an artifact of the method and I want to double down on what I think is a true finding: “Interior defenders affect opposing shot location. Wing defenders don’t.”
I have finally completed work on my visual NBA stat: Adjusted Defensive Impact by Court Location. I first explained how this stat works here, but in a nutshell this is a way to visualize how a player defends shots in the NBA adjusting for the other defenders on the court with him, the expected probability of the shot being made, and the other (non-shooting) offensive players on the court. This new model also adds the possibility of a team-wide effect that you might attribute to coaching (this is not visualized in any way just yet). I had many requests to also include something about how players affect the location of a shot. You can now see this at the bottom of each player’s chart. This is a simple regression that controls for defensive players only and shows you how a given player affects the volume of shots that are close (<8 feet), midrange, or 3 pointers. I have lots more to say below the jump but here’s the widget, have fun poking around! Warm colors mean that opponents are more likely to hit a shot when the player is defending, cool colors mean opponents are less likely to hit their shots.
2013-2014 Adjusted Defensive Impact by Court Location
Select a team from the drop down below to see that team’s defense visualized for the 2013-2014 season. There’s nothing fancy going on with these visualizations–just raw, unadjusted comparison to the average. Blue squares indicate that the team defended that location better than league average, while red squares indicate that the team defended that location worse than league average. The numbers give FG% from that location for the opposing team. I talked about these visualizations previously here and here, and explained how I make them here.
I will have adjusted defensive impact for all players in the NBA soon-ish. It’s actually ready to go but I got gun-shy and decided I needed to test alternate model specifications. It might be a couple weeks before I get them all up, but it will be a more reliable product.
2013-2014 NBA team defense compared to average
This post was prompted by this twitter exchange:
I want to clarify this issue for non-stats people. Adjusted plus-minus and similar analytics, including my own adjusted defensive impact analytic that I debuted a couple days ago, use multivariate regression to ‘adjust’ the raw numbers. The basic idea is that a lot of players who are not very good get to share the floor with great players sometimes. Udonis Haslem gets a fair bit of floor time with LeBron James. When that happens, Haslem’s raw plus-minus is going to look great! But that’s mostly because James was also in the game with him. So the regression controls for all the players on the court, and tries to extract the contribution made by each.
I’m finally ready to share a big project I’ve been working on for months. Try selecting a player from the drop down menu below. The visualization that appears shows the defensive impact a player has adjusting for all other defensive players and the offensive player who is actually shooting. Blue squares indicate that when the selected player is on the court, the probability that an offensive player will make his shot declines (so blue is good defense). Red squares indicate that when the selected player is on the court, the probability of any offensive player making his shot rises. Go ahead and take a second to play with the drop down menu. I’m not ready to rollout every player yet, but the Pacers, Bulls, and Grizzlies are all on there. After the jump, I explain the full methodology, and answer some questions that you’ll probably have after looking at the charts.
Adjusted Defensive Impact by Court Location
Everyone knows by now that mid-range shots are inefficient. The Rockets in particular have taken this idea to heart. Just 15% of their shots come from mid-range (I’m defining mid-range here as more than 8 feet from the basket but inside the 3pt line). For comparison, the Blazers shoot nearly 36% of their shots from mid-range. Great defenses like Indiana’s try to force mid-range shots.
But here comes the backlash. Zach Lowe, Seth Partnow, and Benjamin Morris all suggest that the mid-range game has a place. As I understand it, These are their primary arguments:
- Sometimes, a 2pt shot is all you have, and when that’s the case, you want to be good at making them. All things equal, an open 2pt shot is better than a 3pt shot with Tony Allen all over you.
- Defenses will adjust.
- Not everyone has the personnel necessary to take only 3s and layups.
I don’t have enough data to crack this question and I suspect no one does–there aren’t enough teams employing a Rockets’ style offense to make sweeping judgements about them. This post is more of a first cut at examining the data and making some tentative observations.
Offensive Rating vs. Midrange FG%