class: center, middle, inverse, title-slide # Exploratory Data Analysis on Shot Data for the 2021 WNBA season ## Nick Ho, Matthew Yep, Erin Franke ### 2021-06-17 --- ## Motivation - **Motivation:** there has been very little analysis done with WNBA data - At both the college and pro level, women's basketball has far less recognition than men's - This EDA experience can help us get our hands dirty with WNBA data and spark questions for future analysis for both for ourselves and listeners <div class="figure" style="text-align: center"> <img src="https://i.cbc.ca/1.5956191.1616160435!/fileImage/httpImage/image.jpg_gen/derivatives/16x9_940/weights.jpg" alt="The gym at 2021 March Madness for women (left) versus men (right)" width="50%" /> <p class="caption">The gym at 2021 March Madness for women (left) versus men (right)</p> </div> <!-- New Slide --> --- ## Data .pull-left[ - We used data for the **first 9-12 games** each of the 12 WNBA teams played starting May 13, 2021. - **64 games total** - Data structured by row, each representing a shot ] .pull-right[ - We specifically used information on: - Shot coordinates - Period/clock time - Shot type & result - Score - Team and player shooting ] <table> <thead> <tr> <th style="text-align:left;"> shot type </th> <th style="text-align:left;"> clock </th> <th style="text-align:left;"> shooter </th> <th style="text-align:left;"> period </th> <th style="text-align:right;"> x </th> <th style="text-align:right;"> y </th> </tr> </thead> <tbody> <tr> <td style="text-align:left;"> Driving Layup Shot </td> <td style="text-align:left;"> 9:37 </td> <td style="text-align:left;"> Danielle Robinson </td> <td style="text-align:left;"> 1st Quarter </td> <td style="text-align:right;"> 27 </td> <td style="text-align:right;"> 2 </td> </tr> <tr> <td style="text-align:left;"> Pullup Jump Shot </td> <td style="text-align:left;"> 9:16 </td> <td style="text-align:left;"> Sabrina Ionescu </td> <td style="text-align:left;"> 1st Quarter </td> <td style="text-align:right;"> 37 </td> <td style="text-align:right;"> 13 </td> </tr> <tr> <td style="text-align:left;"> Jump Shot </td> <td style="text-align:left;"> 8:47 </td> <td style="text-align:left;"> Michaela Onyenwere </td> <td style="text-align:left;"> 1st Quarter </td> <td style="text-align:right;"> 41 </td> <td style="text-align:right;"> 20 </td> </tr> <tr> <td style="text-align:left;"> Floating Jump Shot </td> <td style="text-align:left;"> 8:23 </td> <td style="text-align:left;"> Kelsey Mitchell </td> <td style="text-align:left;"> 1st Quarter </td> <td style="text-align:right;"> 35 </td> <td style="text-align:right;"> 2 </td> </tr> <tr> <td style="text-align:left;"> Jump Shot </td> <td style="text-align:left;"> 8:18 </td> <td style="text-align:left;"> Victoria Vivians </td> <td style="text-align:left;"> 1st Quarter </td> <td style="text-align:right;"> 27 </td> <td style="text-align:right;"> 25 </td> </tr> <tr> <td style="text-align:left;"> Jump Shot </td> <td style="text-align:left;"> 8:05 </td> <td style="text-align:left;"> Sami Whitcomb </td> <td style="text-align:left;"> 1st Quarter </td> <td style="text-align:right;"> 10 </td> <td style="text-align:right;"> 22 </td> </tr> </tbody> </table> --- ### Each WNBA teams' favorite spots to shoot from <img src="final_EDA_presentation_files/figure-html/unnamed-chunk-4-1.png" width="100%" style="display: block; margin: auto;" /> <!-- New Slide --> --- ### The best teams in the WNBA adopt the Daryl Morey offensive strategy <div class="figure"> <img src="final_EDA_presentation_files/figure-html/unnamed-chunk-5-1.png" alt="Key takeaway: The top teams take efficient shots; they prioritize launching from downtown and attacking the basket" width="100%" /> <p class="caption">Key takeaway: The top teams take efficient shots; they prioritize launching from downtown and attacking the basket</p> </div> <!-- .footnote[Key takeaway: The top teams take efficient shots; they prioritize launching from downtown and attacking the basket] --> <!-- New Slide --> --- ## The Storm shoot ALOT of three pointers <img src="final_EDA_presentation_files/figure-html/unnamed-chunk-6-1.png" width="100%" /> <!-- New Slide --> --- ## The Aces attack the paint <img src="final_EDA_presentation_files/figure-html/unnamed-chunk-7-1.png" width="100%" /> <!-- New Slide --> --- ## Question 2: How do WNBA players perform in the clutch? <img src="final_EDA_presentation_files/figure-html/unnamed-chunk-8-1.png" width="80%" style="display: block; margin: auto;" /> <!-- New Slide --> --- ### Does shot accuracy change in the clutch? <img src="final_EDA_presentation_files/figure-html/unnamed-chunk-9-1.png" width="80%" style="display: block; margin: auto;" /> <!-- New Slide --> --- ### Players with an above average shooting percentage in the clutch shoot differently than players shooting below average <img src="final_EDA_presentation_files/figure-html/unnamed-chunk-10-1.png" width="80%" style="display: block; margin: auto;" /> --- ## Question 3: How does the places SEA shoot from change over time? - Are there any patterns or common groupings we can find in SEA's winning games? -- - Idea: Average shot-distance from the hoop over every 5 minutes for **each** of the 8 games that SEA won --- # Mapping Seattle's average shooting distance over time <img src="final_EDA_presentation_files/figure-html/unnamed-chunk-13-1.png" width="100%" /> --- ## How do we determine dissimilarity between two games for SEA's shot-distance? - (simple solution) Euclidian distance between games (A, B) - Add the difference between each bucket for A and B and square root the result - Hierarchical clutering on the distance matrix - Maximum Linkage --- ## Clustering games based on SEA's summed shot-distance .pull-left[ <img src="final_EDA_presentation_files/figure-html/unnamed-chunk-15-1.png" width="100%" /> ] .pull-right[ <img src="final_EDA_presentation_files/figure-html/unnamed-chunk-16-1.png" width="100%" /> ] --- ## SEA shows two main shooting tendencies .pull-left[ <img src="final_EDA_presentation_files/figure-html/unnamed-chunk-17-1.png" width="100%" /> ] .pull-right[ <img src="final_EDA_presentation_files/figure-html/unnamed-chunk-18-1.png" width="100%" /> ] --- # Clustering teams by shot accuracy? <img src="final_EDA_presentation_files/figure-html/unnamed-chunk-20-1.png" width="100%" /> --- # Top teams show similar accuracy patterns -- .pull-left[ - Weighted Euclidean Distance - $$ dist(a, b) = \sqrt{ \sum{} w_i (a_i - b_i)^2}$$ - Weighted by where shots are most common <img src="final_EDA_presentation_files/figure-html/unnamed-chunk-21-1.png" width="100%" /> ] -- .pull-right[ <img src="final_EDA_presentation_files/figure-html/unnamed-chunk-22-1.png" width="100%" /> <img src="final_EDA_presentation_files/figure-html/unnamed-chunk-23-1.png" width="100%" /> ] --- # Top teams also show similar defensive patterns -- .pull-left[ - Defense: How much a team decreases the shot accuracy of another team in a game - `$$D_x = \frac{\sum^n_1 (a_x - b_x)}{n}$$` - D is the defense for a team for that bin - a is the average shooting of opponent over all games (previous slide) - b is the average shooting score for opponent in current - x is the current bucket (2 feet) ] -- .pull-right[ <img src="final_EDA_presentation_files/figure-html/unnamed-chunk-24-1.png" width="100%" /><img src="final_EDA_presentation_files/figure-html/unnamed-chunk-24-2.png" width="100%" /> ] --- # Shot data is essential to strategy - **Shot Charts:** Teams can analyze their upcoming opponent’s frequent shot locations and design their defensive scheme to counter these hot spots - **Clutch data:** Coaches can draw up end-of-game plays to create shots their most clutch scorers - **Development of Shots across Quarters:** Teams can find patterns in how their opponents' coaches adjust their offense throughout the game --> anticipate these changes and counter them