Eyal Shafran
  • About
  • Blog
  • Code
  • Code - deprecated

Four Factors

Date Fri 24 November 2017 By Eyal Category Code - Deprecated Tags python / NBA / four factors / regression / home court
/covers/four_factors.png

In this post I'm going to explore Dean Oliver's Four Factors, compute the weight of each factor based on linear regression and see how those factors are influenced by home court advantage.

View comments.

more ...

Scatter plot with team logos

Date Wed 08 November 2017 By Eyal Category Code - Deprecated Tags python / NBA / scatter / offensive rating / defensive rating
/covers/logos.png

In this post I'm going to show how to create a scatter plot with team logos. As an example, I plot the team's offensive and defensive rating.

View comments.

more ...

Scraping Basketball Reference

Date Wed 18 October 2017 By Eyal Category Code Tags python / NBA / web scraping / basketball-reference

In this post I'm going to scrape www.basketball-reference.com in order to get some generic information for every player that played in the NBA. I'm also going to get population data per state from wikipedia.

View comments.

more ...

NBA Player Shot Similarity

Date Wed 18 October 2017 By Eyal Category Code - Deprecated Tags data science / python / NBA / similarity / clustering
/covers/similarity.png

In this post I will compare different NBA players based on their shot selection and cluster them into groups. These new groups can be compared to the assigned position of players to check for correlation.

View comments.

more ...

Shot chart for every MVP in the last 20 years

Date Fri 19 May 2017 By Eyal Category Code - Deprecated Tags python / NBA / shot chart
/covers/Bryant.png

In this post I will plot a Grantland style shot chart for every MVP in the last 20 years.

View comments.

more ...

Creating Grantland style shot charts

Date Sun 07 May 2017 By Eyal Category Code - deprecated Tags python / NBA / shot chart
/covers/Curry.png

In this post I will show how to make with Python. The basic idea of the shot chart is: Shots are represented by hexagons. More shots = larger hexagon and vice versa. Color of the hexagon represents the FG % relative to the league average.

View comments.

more ...

Who is the most consistent player in the NBA?

Date Thu 04 May 2017 By Eyal Category Code - Deprecated Tags python / NBA / gamescore / consistency
/covers/consistency.png

In this post I will try to figure out who is the most consistent player during the 2016-17 season using python and the NBA api.

View comments.

more ...

Shooting statistics per zone

Date Thu 13 April 2017 By Eyal Shafran Category Code - Deprecated Tags python / NBA / shotchart / zone
/covers/Shotchart I.png

In this post I will use the NBA API to access shot chart data and use it to make some cool plots based on the shot zone information which is available in the raw data.

View comments.

more ...

Offensive rebounds and their dependency on shot distance

Date Tue 27 October 2015 By Eyal Shafran Category Blog Tags offensive rebounds / Matlab / distance
/covers/offensive_rebounds.png

In this post I will explore offesive rebounds and their dependency on shot distance for various situations.

View comments.

more ...

  • «
  • 1
  • 2
  • »

© 2020 Eyal Shafran · Powered by pelican-bootstrap3, Pelican, Bootstrap

Back to top