/sports_viz

Miscellaneous #rstats code and plots for Twitter

Primary LanguageHTML

This repo stores my code and plots for sports-related plots.

NBA Western Conference 2020 League Restart Playoff Seeding Probabilities Bar Chart

English Premier League 2019-20 First 30 Games Points Minus Expected Points Lollipop Chart

English Premier League 2019-20 First 30 Games Points vs. Expected Points Scatter Plot

English Premier League 2019-20 Last 9 Games Simulated Points vs. Actual Points Ridge Plot

2020 NBA Restart Social Justice Message Bar Chart

Competition-Adjusted Non-Penalty Goals Per 90 Minutes Table

Competition-Adjusted Non-Penalty Goals Per 90 Minutes Dumbbell Chart

NBA 3P% Cumulative Average and Stability Rate Line Charts Animated

Texas High School Football vs. Band Scatter Plot

PSG 2-1 Atalanta, UCL 2020 Quarter-Finals, Animated Pitch Control

2020 NBA Playoffs Total Excitement Index Bar Chart

PSG 0-1 Bayern Munich, UCL 2020 Finals, Animated Pitch Control and VAEP

Future Ideas

  • Stability of goal-scoring rate and/or xG over-performance

  • Madden rating EDA with UMAP + kmeans clustering (for optimal # of UMAP groups).

  • In which sport is the leading team most likely to further their lead near the end of the game due to an opposition error, overly-aggressive tactics by the opposition, etc.? (End of game depends on the sport. Ideally, we could use a win probability model to help idenitfy end-of-game context, although it would still need some adjustment.) Extension: In which sport are gamblers most likely to lose/win due to a back-door cover?

  • Decision tree to filter down players in a sport to just one player who has achieved a very specific set of career totals/averages (i.e. https://twitter.com/JacobEGoldstein/status/1296570734047686658)

Future data sets