Projecting Jokic’s Three Point Shooting for the 2018-19 Season
Introduction
This post contains a brief analysis I did on Jokic’s three point shooting throughout his first three seasons in an attempt to get a better idea of what to expect for the upcoming 2018-19 season. Jokic was a mediocre three point shooter in his first 2 seasons (shooting roughly 33% on a little over 2 attempts per 36 minutes). Last year, however, there was a lot of talk about how much work he put in on the offseason shooting threes and both his volume and accuracy exploded. He more than doubled his volume over the prior year, shooting over 4 attempts per 36 minutes, and his accuracy lept from 32.4% to 39.6%. As a Nuggets fan, I want to believe that he’s now a 40% three point shooter and we can completely believe last year’s performance. As a skeptic who’s been burned by #NuggLife in the past, though, I wanted to turn to historical precedence and statistical techniques to either validate this leap in performance or reign in my unreasonable expectations.
Last year, I performed a similar experient with Jamal Murray. He had the reputation of a great shooter, but had a lackluster rookie year and shot just 33.4% from three point range. I wanted to reconcile the discrepancy between his reputation and his performance, so I turned to the data and looked at his game-by-game trends as well as the performance of comparable players early in their careers. Through melding the data and some non-quantitative factors (such as the fact that he played his entire first season with two sports hernias), I predicted he’d shoot something “close to 38%”. I’m kicking myself now that I didn’t publish that post, as he ended up shooting 37.8%… So this year, I decided to not only perform my analysis on Jokic’s shooting but also publish the results! Hopefully I don’t embarrass myself… 🙂
I’ll analyze Jokic’s three point shooting in two ways. The first will use a Bayesian expectation based on the Beta distribution, which will offer a robust estimation of Jokic’s “true” three point shooting percentage. This technique is extremely useful in preventing overreactions when sample sizes are small, as it uses a relatively general starting point and deviates from there based on the magnitude and volume of the evidence. The second analysis technique will be a more back-of-the-envelope calculation that’s based on players in the past that have had similar jumps in three point shooting. I’ll simply check to what extent players regressed in the following season, if at all.
One final note set of notes and caveats before getting into the meat of the post:
- This is going to be a math-heavy post. If you’re just looking for the results, feel free to skim over the portions where I ramble about methodology!
- I performed this analysis in R and have stored all the code on my GitHub. Feel free to clone the work and play around with the code yourself!
- Finally, huge thanks to David Robinson and his excellent book “Introduction to Empirical Bayes”, which made the Bayesian portion of this analysis laughably simple.
Bayesian Analysis
Selection of Prior Distribution
We’ll start with the Bayesian analysis, which hinges largely on the selection of a “prior”. Bayesian analyses are based on the idea of moving away from a common starting point as more and stronger evidence accumulates. The common starting point is what’s known as a prior in Bayesin terminology. There are a lot of ways to select a prior, and from what I can tell there’s a lot of disagreement about the “right” way to select a prior. In this case, I’ll be using a pretty simple prior distribution that’s based on the three point shooting throughout the careers of historical NBA players.
That narrows down the landscape of potential priors, but we still have some selections to make. We could choose any of the following, for example:
- Distribution of performance for all players over a given time period (throughout all of NBA history, last 5 years, etc.)
- Distribution of performance for just bigs over a given time period
- Distribution of performance for players who fit a similar mold as Jokic
- And so on…
I don’t want to go down the rabbit hole of determining positions – especially given how positionless basketball is these days – so I’m not going to worry about bigs vs. wings vs. smalls. I’m also not going to try to filter to similar players since I’m not sure we really have any other players throughout NBA history that are that similar to Jokic. I’m also not convinced either of these would actually improve our estimates.
I am, however, going to investigate what the appropriate time period is to use in establishing our prior distribution. Three point shooting has exploded in popularity in recent years, and I’d imagine the shooters today are much better on average than shooters in the 80s and 90s. It’d be counterproductive to use these shooters from earlier eras to estimate the accuracy of modern shooters.
To start, I’ll take a look at the league-wide three point averages over the history of the league (excluding years prior to the introduction of the three point line, obviously). Note: The data for this portion of the analysis comes from Basketball Reference.
League-wide three point shooting accuracy has actually remained remarkably stable since the mid 1990s. Let’s zoom in on this time period to ensure that there isn’t a material trend that appears hidden because of the scale of the above graph.
It appears that there might have been something of a level shift around the 2004-05 season. If using league-wide performance as a prior, we might want to use data from the 2004-05 season onwards.
Establish a Prior Distribution
Now that we have the time period established for our prior distribution, we can move onto fitting it! To do this, we’ll need the three point shooting performance of all players throughout the NBA in each season since 2004. We can get this data from Kaggle, though it doesn’t contain data from the most recent season. That should be fine for the purposes of establishing a prior.
Before fitting our prior distribution, I want to filter out players who don’t have very many three point attempts. Players who don’t shoot many threes are generally poor shooters and would skew our prior distribution. If we were trying to estimate the three point shooting performance of an average NBA shooter, we may want to include those bad shooters who don’t take many threes in our prior distribution. But because we know Jokic is going to be taking (and making) threes at a decent clip, we might as well filter out the players that we know aren’t relevant before continuing with the analysis. There are ways we can explicitly incorporate attempts into the Bayesian analysis, but for now let’s keep things simple.
To determine what the cutoff for attempts is, let’s plot a distribution of attempts for all players in our data set.
Let’s drop players with fewer than 200 attempts, which will get rid of a little over 60% of our players.
Next, let’s look at the distribution of three point shooting percentages for all players with more than 200 three point shot attempts.
We’ll now fit a Beta distribution to these shooting percentages to establish our prior distribution. Doing so produces an alpha0 of 90.8 and a Beta0 of 167.6 Let’s overlay this distribution onto our above histogram.
This seems to fit the data reasonably well. We could probably do better by introducing a more restrictive filter on the number of attempts to eliminate some of the tail on the left of the distribution, but this is an acceptable starting point.
Append Bayesian Estimates to Data
Now that we have our prior Beta distribution, we can use it to calculate estimates of players’ real three point shooting percentages. These estimates are calculated as: (3PM + Alpha0) / (3PA + Alpha0 + Beta0), where Alpha0 and Beta0 come from our prior distribution. Players with many three point attempts and observed accuracies far outside the norm will see the largest discprepancy between their observed accuracy and their Bayesian estimated accuracy.
Before moving onto analyzing our estimate of Jokic’s three point shooting, let’s take a look at the model’s top 10 three point shooters of all time:
Player | three_pt_made | three_pt_att | three_pt_perc | eb_estimate |
---|---|---|---|---|
Stephen Curry | 1917 | 4379 | 43.78% | 43.30% |
Kyle Korver | 2049 | 4754 | 43.10% | 42.69% |
Steve Nash | 1116 | 2578 | 43.29% | 42.55% |
Jason Kapono | 457 | 1054 | 43.36% | 41.74% |
Steve Novak | 575 | 1337 | 43.01% | 41.73% |
Klay Thompson | 1328 | 3171 | 41.88% | 41.37% |
Fred Hoiberg | 146 | 317 | 46.06% | 41.16% |
J.J. Redick | 1271 | 3064 | 41.48% | 40.99% |
Anthony Morrow | 807 | 1937 | 41.66% | 40.90% |
Mike Miller | 1217 | 2943 | 41.35% | 40.85% |
Notice how our Bayesian estimate elevates players like Steph and Korver who have taken thousands more three point shots than players like Fred Hoiberg who have higher observed averages. This is the Bayesian methodology in action! Hoiberg’s 46% three point percentage is extraordinary, but it comes on limited attempts. The Bayesian methodology takes this into consideration, tempering his estimate down from his observed value of 46% to 41%.
Next, let’s bring in three point shooting from the most recent season from another data source (manually copied from the Basketball Reference page) so we can properly analyze Jokic. After doing this, we can look at Jokic’s three point performance by year and the corresponding cumulative Bayesian estimate of his three point percentage:
Player | Year | three_pt_att | three_pt_perc | eb_estimate_cum |
---|---|---|---|---|
Nikola Jokic | 2016 | 84 | 33.30% | 34.70% |
Nikola Jokic | 2017 | 139 | 32.40% | 34.03% |
Nikola Jokic | 2018 | 280 | 39.60% | 36.10% |
This approach should inspire some caution in Nuggets fans, as it suggests Jokic is likely closer to a 36% three point shooter than the knockdown 40% shooter he was last year. This analysis doesn’t factor in career progression, though, which may bump up the estimate a bit. We’ll touch on this idea of career progression later. The following chart visualizes how out-of-pattern his jump in performance was last year and how the Bayesian estimate is cautiously reacting to it.
This Bayesian approach “shrinks” the estimate of Jokic’s three point shooting towards the population mean. The amount of shrinkage is determined by both the amount of evidence (i.e., the number of threes attempted) and the strength of the evidence (i.e., how different his three point shooting percentage is compared to the average). A point estimate is helpful, but it won’t help us answer the question of how likely it is that he’ll shoot 40% or greater again this year. To answer that question, we’ll have to calculate his posterior distribution by modifying our alpha and beta parameters.
Jokic’s distribution for 2016 and 2017 are quite wide and similar to the prior distribution (shown as the dashed black line). When we add in the 2018 season, however, we get a material shift in the distribution. Not only does the expected value shift to the right (to the 36% estimate we calculated earlier), but the distribution narrows as well. This is because we’ve collected more data on his performance and thus have more confidence in our understanding of his distribution.
Using this distribution, we can calculate the probability that he’s truly a 40+% three point shooter to be 11.5%. So if you’re a Nuggets optimist (do those exist?), you can hold tight to that 11%! In the next section, we’ll take a slightly different view of Jokic’s unusual jump in performance in his third year. By analyzing his performance in a couple different ways we can get a better sense of the uncertainty in our estimate of his performance.
Analysis of Similar Jumps in Performance
Jokic went from a 32-33% shooter in his first two years to a nearly 40% shooter in his third year. What other players had similar jumps (let’s say > 6% improvements in a single year with at least 100 attempts in both years), and how did they perform in the following year? This will help us understand if there’s precedent for such an improvement to stick or if it’s more likely that a regression year is in order.
These filters yield a little over 130 cases, which is a pretty impressive amount of data. Let’s plot the results to get a better sense of the results:
The majority of these players regressed in the following season (most of the dots are below the horizontal line at 0%), and players with larger jumps in performance tended to have larger regressions. We can fit a simple linear model to this data and plot the result to help us estimate how much of a regression can be expected given the amount of a player’s one-year 3PT% increase.
The dashed reference line below plots y = -x. This would imply that a player would completely regress to his previous season’s performance after his breakout shooting season. Our linear model is plotted as the solid black line, and the fact that it has a flatter slope implies that, while some regression is expected, a player usually shoots better following his breakout season than he did prior to the breakout.
In short, players with jumps in performance tend to regress, though not all the way to their prior season’s values. In this data set, the median change during the season of improved shooting was 8.10%. In the following season, the median change was -3.50%. So we might expect Jokic’s three point shooting next season to drop about 3.5 percentage points from 39.6% to 36.1%. However, Jokic’s surge was a little less significant than some of the other players in this data set, and as we saw above the higher the surge in performance the greater the regression in the following season. By using the linear model we fit above to predict Jokic’s performance this upcoming season, we get a predicted three point percentage of 36.7%:
Player | lag_three_pt_perc | three_pt_perc | lm_pred | lead_three_pt_perc_pred |
---|---|---|---|---|
Nikola Jokic | 0.324 | 0.396 | -0.0292384 | 0.3667616 |
These two estimates (36.1% and 36.7%) are remarkably similar to our Bayesian estimate above of 36.1%. My big takeaway from these two analyses is that it’s highly unlikely that Jokic will continue to shoot at a near 40% rate from the three point line this season.
Let’s take a closer look at the players who didn’t regress in their subsequent season. If we are to have any hope that Jokic truly is a 40% three point shooter, we’d hope to see some similarities in characteristics between these players and Jokic. Specifically, I’m looking for whether the players who had a jump in performance and didn’t regress in the following year were disproportionately younger. Young players tend to improve over time, so it seems logical that they’d be more likely to retain their elevated performance in three point shooting than players who had similar jumps in performance later in their careers.
The following plot shows the distribution of players by their number of years in the league during their breakout season broken out by whether they maintained their performance in the following season (a one percent regression is performance is allowed to be classified as “maintaining performance”).
The results are a little surprising to me. The distributions seem to be remarkably similar. Even though there’s a great deal of density on the left side of the graph, which implies that younger players are more likely to have breakout seasons, the distributions are similar across the two groups. This means that young players are about as likely to regress following their breakout three point shooting season as their older counterparts, which is disheartening news for Nuggets fans. I was holding out hope that an investigation into career progression expectations would give us all reason to be more optimistic in Jokic’s three point shooting than the prior analyses would suggest, but the numbers here aren’t encouraging. Down the road, I’d like to extend the Bayesian model to include a hierarchical component that explicitly incorporates a player’s age, but that’s a topic for another time… For now, it seems like the best estimate of Jokic’s true three point shooting percentage is somewhere in the 36-37% range. Let’s hope he surprises us yet again! 🙂