Categories
Uncategorized

Game theory in the NBA

For the past few years, NBA teams have been relying more on statistics and mathematics to scout draft picks, game plan for certain opponents, and decide how they wanna space the floor. In this article I found one application of game theory, which analyses how NBA teams decide to guard prolific three point shooters. The article focuses specifically on Steph Curry and James Harden, two of the greatest three point shooters in today’s game.

The authors of the article boil a possesion down to two players: The defending team and the attacker. Each player has three strategies: The defenders can either choose to send a player to press the attacker from half court, stick to a more traditional defense around the 3-point arc, or pack the paint with players.

On offense, the attacker can either choose to take a deep 3 (The authors gave no formal definition of a deep 3 here, but according to espn.com, a deep three can be a shot that occurs more than 3 feet away from the 3 point line), take a regular 3 pointer, or drive to the rim. The authors define payoff as a function of each player’s efficiency (Points per attempt) as a result of each person’s strategy.

Firstly, the authors create a generalized payoff matrix, that looks like this:

This is not for a particular player, and doesn’t show efficiency values, but its helpful to get an intuition for the general efficiency of each strategy. Intuitively, packing the paint counters a drive, sticking to a traditional offense counters the normal 3, and pressuring the defender from half-court counters a deep 3. Basically, the further away the attacker is from the defending team, the more likely they are to score points. The general matrix is nice, but we can actually look at the matrices for specific players and come up with some very interesting conclusions:

In class we talked about dominant strategies (There is no dominant strategy in the above matricies, by the way), but the authors here actually introduce something we haven’t talked about yet, a dominated strategy:

A strategy is dominated if, regardless of what any other players do, the strategy earns a smaller payoff than some other strategy. Hence, a strategy is dominated if it is always better to play some other strategy, regardless of what opponents may do.”

Surprisingly, there actually is a dominated strategy in our matrices. Regardless of what the defenders choose to do, taking a regular 3 is never the best option. If the defenders press the attacker or stick players around the arc, it’s optimal to drive to the rim, and if they pack the paint, its optimal to take a deep 3.

The last thing I want to note (as an aside) is Curry’s bonkers efficiency on deep 3’s, especially while contested: 0.93/3 is the calculation (Points per attempt/number of points) works out to 31%. This article was written in 2018, and at the time, the league average from 3 was 35%. That means that curry shoots contested 3-pointers from way beyond the 3-point line almost as efficiently as the rest of the league shoots regular 3 pointers! I guess that’s why there are so many clips of him doing stuff like this:

Works Cited (Main Article, Definitions, statistics):

Natarajan, S. (2018, July 31). Nylon Calculus: Game theory and the deep 3. Retrieved November 06, 2020, from https://fansided.com/2018/07/31/nylon-calculus-game-theory-deep-3/

Goldsberry, K. (2019, December 17). How deep, audacious 3-pointers are taking over the NBA. Retrieved November 06, 2020, from https://www.espn.com/nba/story/_/id/28312678/how-deep-audacious-3-pointers-taking-nba

https://www.basketball-reference.com/

Categories
Uncategorized

An analysis of the dynamics of NBA Twitter

I wanted to write a blog post about something related to the NBA, given that the finals are taking place at the moment. Rather than go with a dataset that related to on court data or the game itself, I found an interesting article that analyzes how NBA players interact with each other on Twitter. The author makes use of many properties of graphs that we learned about in class, including the in-degree (and out-degree) of a node, as well as the shortest path between two nodes.

First, he sets up the network by defining the meaning of a node and an edge. This is pretty trivial, each node represents the profile of a player, while a (directed) edge exists between player A and B if A follows B.

Next, the author visualises the network by removing all the edges and making the nodes larger in proportion to their in-degree. This allows us to gain some insights as to which players are the most followed:

A graph/network visualization representing NBA players and their Twitter relationships with one another
Visualization based on in-degree

From looking at the visualization, we can see that Lebron James and Kevin Durant are clearly a tier above the rest, while a second tier exists including players like Kyrie Irving. Damian Lillard, and Steph Curry. All the other players have about the same number of followers. While visualizing based on in-degree can help us get a sense of who the most followed players are, the author also visualizes based on out-degree:

Image for post
Visualization based on out-degree

I think this visualization is a lot more interesting. For the in-degree, it was pretty obvious why the larger bubbles were larger: the more popular players had more followers. For the out-degree, there seem to be players that are following many others for a variety of reasons. For example, John Wall might be following many other players since he’s been injured for the better part of two years now and has nothing better to do than be on Twitter all day. Damian Lillard too, follows a great number of players. Is it because he raps on SoundCloud on the side and is trying to promote his brand?

Finally, the author takes a look at the average length of the shortest path between two players, which ends up being 2. This means that the average NBA player will usually know a player who follows any other player, which I found pretty surprising.

When I first clicked on the article, I thought the NBA would be comprised of 30 giant SCC’s: one for each team. I didn’t expect so many players to follow and be followed by players who aren’t their teammates, but it seems like a more tight-knit community (at least on Twitter) than I thought.

Works Cited

Ogeleka, Chukwubueze Hosea. Social Network Analysis of Current NBA Players on Twitter. 16 June 2020, medium.com/analytics-vidhya/social-network-analysis-of-current-nba-players-on-twitter-b3fb9a741806.