Can Midseason Records Predict WNBA Playoff Teams?
Module
Please note that these material have not yet completed the required pedagogical and industry peer-reviews to become a published module on the SCORE Network. However, instructors are still welcome to use these materials if they are so inclined.
Introduction
The WNBA worksheet introduces the idea of using team records from earlier in the season to predict which teams will make the playoffs. Most of the time, we would expect teams with better records halfway through the season to have a higher chance of making the playoffs, but is this always the case? Just as importantly, how do we know whether the data we are using are complete and reliable enough for this analysis? By completing this worksheet, you will work through several data cleaning steps involving WNBA team-game data and then use the cleaned data to investigate the relationship between midseason performance and playoff outcomes.
Data
The wnba_data data set contains 8920 rows and 9 columns. Each row represents a game played by a WNBA team in one of the 2003 to 2022 regular seasons. Thus, each game is associated with two rows: one for each team. The columns are as follows:
Data: Variable Descriptions
| Variable | Description |
|---|---|
| game_id | game id number |
| season | season number |
| season_type | binary predictor; 2 if regular season game; 3 if playoff game |
| game_date | date of the game |
| team_id | team id number |
| team_display_name | full team name (name and city) |
| team_winner | Boolean; True if the team won the game |
| opponent_team_id | id number of the opponent |
| team_home_away | Where the game was played; either “home” or “away” |
Download data: wnba_data.csv
Data Source
Gilani S, Hutchinson G (2022). wehoop: Access Women’s Basketball Play by Play Data. R package version 1.5.0, https://CRAN.R-project.org/package=wehoop.
Materials
We offer worksheets (and their solutions) in Quarto (using R) and Jupyter Notebook (using python) formats.
R versions
Class handout - Quarto - with solutions
Python versions
Acknowledgements
Thumbnail image: “WNBA Barnstar.png” by Mungo Kitsch, licensed under CC BY-SA 4.0 via Wikimedia Commons. The image incorporates a WNBA logo element; use does not imply endorsement by the WNBA.