Project for SEM course spring 26´. The objective of this project is to analyze the latent structure in baketball ability of NBA players. This is done by utilizing CFA and structural equation modeling in Rstudio. The aim is to answer the following questions:
- Can basketball statistics be explained by offensive and defensive ability of a player?
- Can an offensive latent construct be used as predictor for a defensive latent construct among NBA players?
- Is there a statistically significant difference in latent measurement structure between rookies and veteran players?
The dataset consist of NBA player-game statistics from the 2024–25 season. It includes:
- Player: Name of the player.
- Tm: Abbreviation of the player's team.
- Opp: Abbreviation of the opposing team.
- Res: Result of the game for the player's team.
- MP: Minutes played, represented as a float (e.g., 23.5 = 23 minutes and 30 seconds).
- FG: Field goals made.
- FGA: Field goal attempts.
- FG%: Field goal percentage.
- 3P: 3-point field goals made.
- 3PA: 3-point field goal attempts.
- 3P%: 3-point shooting percentage.
- FT: Free throws made.
- **FTAv: Free throw attempts.
- FT%: Free throw percentage.
- ORB: Offensive rebounds.
- DRv: Defensive rebounds.
- TRB: Total rebounds.
- AST: Assists.
- STL: Steals.
- BLK: Blocks.
- TOV: Turnovers.
- PF: Personal fouls.
- PTS: Total points scored.
- GmSc: Game Score, a metric summarizing player performance for the game.
- Date: Date of the game in YYYY-MM-DD format.
Data Cleaning → removed missing values using FIML and then aggregated to player-level.
CFA & SEM → Models created with initial theorised latent construct, then adjusted for improved fit. Offense theorized to affect defence
Model fit → Model diagnostics using CFI, TLI, RMSEA, SRMR and Chi-square.
- NBA player performance is not adequately represented by a simple distinction between offensive and defensive ability.
- Offensive involvement and interior presence serves as much better latent constructs than the intially proposed latent variables.
- The latent structure is similar between groups.
- Offensive involvement is found to be a significant positive predictor of interior presence, indicating that players with greater offensive responsibility also tend to contribute more strongly to interior aspects of play.
- CFA plot
- SEM plot
- Correlation matrix
- Rstudio
- Excel
- Overleaf
- Jacob Telander
- Måns Conradson
- Teerth Gupta