STAT 441 Lecture 1

Course Overview

Logistics

Lectures & Office Hours

  • Lectures: Tuesday & Thursday 8:00am-9:15pm (1524 Morgridge Hall)
  • Instructor: Sameer Deshpande
    • Tuesday: 9:30am - 10:45am (5586 Morgridge Hall)
    • Thursday: 4:00pm - 5:15pm (5586 Morgridge Hall)
    • Friday: 3:00pm - 4:30pm (5631 Morgridge Hall)
  • TA: Zhexuan Liu

What This Course is NOT

  • This is NOT
    • A course on sports betting or fantasy sports
    • A way to discuss last night’s game for credit
    • A statistical metods course w/ sports applications
  • This is a serious applied statistics & data science course
  • Methods introduced as needed
    • Will not cover all technical details
    • I’ll point to relevant resources & classes
    • Main goal: answering substantive sports questions
  • Goal: practice skills needed to work w/ sports data (e.g. for a team)
  • Course design reflects input from leaders in the industry

Course Learning Outcomes

  1. Implement appropriate statistical methods to assess player and team performance
  2. Work with play-by-play and high-resolution tracking data
  3. Provide constructive and actionable feedback on your peers’ analytic reports
  4. Build a personal portfolio of sports data analyses
  • Asking and answering substantive sports questions w/ data
  • We’ll go well beyond “who’s the best at…”

What is Sports Analytics?

Statistics vs Analytics

  • Sports statistics refer to counts and rates that summarize performance:
    • Number of rebounds, wins, games played
    • Free throw percentage, batting average
  • Analytics refers to the use of statistical modeling to help gain competitive advantage
    • Analytics makes use of basic statistics & creates new ones
    • Analytics uses data to answer substantive sports questions
    • Many questions can framed in terms of prediction

“Best” NBA Shooting Performances

  • Who is the best shooter in NBA history?
    • What do we mean by “best”?
    • It’s not clear that this can be answered w/ data
  • A more precise question: which player made the most shots in a single season?
    • Can be answered by data
    • We’ll assess whether “best” = “made most shots” is satisfactory later
  • Data: box scores from each game since 2002-03
  • Available from the hoopR package

Accounting for Efficiency

  • Kobe made 868 shots in 2003-04
  • SGA made 868 shots in 2025-26
  • Kobe took 300 more shots
  • Let’s redefine “best” in terms of field goal percentage

\[\textrm{FGP} = \textrm{FGM}/\textrm{FGA}\]

Effective Field Goal Percentage

  • FGP is arguably a better measure of skill than FGM but
    • Extreme values for players w/ few attempts
    • Doesn’t distinguish 2- and 3-point shots

\[\textrm{eFGP} = (\textrm{FGM} + 0.5 \times \textrm{TPM})/\textrm{FGA}\]

Reflection

  • eFGP is arguably better than FGP and FGM
  • But it is still highly variable
  • Refined question: instead of “who’s the best”, we can ask

\[\textrm{"what is the probability that a player makes a shot"}\]

  • Later: methods to estimate these probs. that
    • Account for contextual factors (e.g., shot location)
    • Produce stable estimates even w/ small sample sizes
    • Avoid imposing arbitrary cut-offs (e.g., \(\textrm{FGA} > 400\))
    • Calibrate performance against transparent baselines (e.g., “above replacement”)
  • Analytics involves motivating and justifying choices

More Course Logistics

Requisites

  • STAT 333 or 340
    • Random variables, expectations, probability
    • Fitting linear models & interpreting outputs
  • Prior experience with R
    • Assignment, scripting, loops, control flow
    • Saving objects, installing & loading packages.
    • Data manipulation with dplyr and other tidyverse packages.
    • Creating visualizations

Course Website

Also Piazza

Assignments & Grading

  • 3 Group Projects (3 x 280 pts): Due on 10/9, 11/6, and 12/4
    • Written Report (100 pts) & Presentation (100 pts)
    • Peer Reviews (3 x 20 pts)
    • Team Accountability Survey (20 pts)
  • Exercises (2 x 50 pts):
    • Submit solutions to 2 homework exercises (due 1 week after lecture)
    • Lead & participate in discussion on Piazza
  • Participation (60 pts): Assessed holistically
    • Regularly attend lectures & office hours
    • Contribute to Piazza discussions
  • Final grade based on how many of the 1000 points earned

Projects

  • Work in groups of up to 4
    • Same groups for Projects 1–3.
    • Form groups by Friday September 11
    • Use Piazza to find teammates & sign up in spreadsheet
  • Course projects can
    • Modify or extend analysis from lecture (e.g., to new sport)
    • Answer a new question not covered in lecture
    • …
  • Ideally jump-start a portfolio that you can show teams

Project Report

  • Executive Summary:
    • Non-technical overview of goals, methods, and results
    • Audience: front office executive, coach, or player
  • Technical Report:
    • Include all code needed to reproduce findings
    • Tightly integrate code & output w/ written exposition
    • Audience: fellow data scientists

I highly recommend using Quarto

Project Presentation

  • Record & upload a 8–10 minute presentation
  • Every group member must speak
  • I’ll select 5-6 groups to present in-class on the last day (12/8)
    • Presenting on the last day unrelated to course grades
    • Selection based on peer feedback, my assessment, overall representation

Project Peer Review

  • Provide feedback on 3 presentations & reports
  • Fill out rubric + leave constructive comments
  • Due 1 weeks after projects: 10/16, 11/13, and 12/11

Team Accountability Survey

  • Assign score from 0 (least) to 10 (most) for
    • Participation, Preparation, and Respectfulness
  • Rate every group member (including yourself)
  • Ratings and comments will be kept anonymous
  • Course staff may give warnings for low peer score
  • Due 1 week after projects: 10/16, 11/13, and 12/11

Topic List

Unit 1: Quantifying Performances

  • Expected vs actual performance
  • Value of a game state
  • Performance above “replacement” level
  • Case Studies:
    • Expected goals in soccer (Lectures 2 & 3)
    • Adjusted plus/minus in the NBA (Lectures 4 & 5)
    • Run expectancy & WAR in baseball (Lectures 6–8)
    • WAR for the NFL (Lectures 9 & 10)
    • Pitch Framing in baseball (Lecture 11)

Project 1

  • Use box-score or play-by-play data
  • Introduce a new metric & show it has favorable properties
    • Season-to-season stability
    • Ability to predict match- or season-level outcomes
    • Reveal new insight about player valuation
  • Evaluate individual or team performance in a new sport
    • WAR for volleyball or college football?
    • Expected goals in hockey?
  • Extend case study from lecture
    • Construct analogs for another sport
    • Examine season-to-season variability
  • …

Unit 2: Rankings & Simulation

  • Use models to simulate games, tournaments, drafts, etc.
  • Case Studies:
    • NCAA Volleyball & Hockey Tournaments (Lectures 12 & 13)
    • Building a consensus mock draft (Lecture 14)
    • Markov chain simulations (Lecture 15)
    • Estimating impact of a rule change (Lecture 16 & 7)

Project 2

  • Fit a model to estimate latent team- or player- strength
  • Use model estimates to simulate plays, games, tournaments, drafts, etc.
  • Compute probabilities based on simulation
    • Prob. of winning tournament or making it past 1st round
    • Prob. football drive ends in a touchdown
    • Prob. of winning a cricket test
    • Chance player available in 2nd round of draft

Unit 3: Tracking Data

  • Currently the hottest area of sports analytics
    • Trackman + Statcast in baseball
    • NFL: player positions 10 times per second
    • Hawkeye for tennis, Hudl for soccer, …
  • Tracking data opens up many possibilities
    • Incorporating spatial info. into prediction models
    • Creating new metrics using tracking data
    • Space ownership & predicting trajectories

Project 3

  • Analyze tracking data

  • NFL’s Big Data Bowl is a great opportunity

    • Best way into the field (even for non-football sports)
    • Cash prizes & chance to present at Combine
  • I highly encourage turning Project 3 into a BDB submission

    • More info will be posted on Piazza
    • I’ll provide additional feedback/input for teams that do submit

Final Reminders

Course Expectations

  • Respect diverse backgrounds

    • Not everyone may know as much about a sport/method as You
    • You may not know as much about a sport/method as someone else
  • Don’t hesitate to ask for and to provide help!

  • Take care of yourself & each other

Generative AI Expectations 1

  • You have the right to the full benefit of my expertise and engagement in this course.
  • I will therefore never use AI to
    • To provide feedback on assignments
    • To prepare any course content (e.g., slides, code, assignment flavor-text, etc.)
    • To mediate or assist any communications with you
  • Everything you see in the course was created by me without the aid of generative AI

Generative AI Expectations 2

  • A core theme of this class is practice
    • It is OK to make mistakes or not know an answer
    • Process is more important than results
  • Generative AI short-circuits the intended learning process
  • Its use is expressly prohibited

Peer Review

Respect your classmates enough to review their projects yourself. Uploading someone else’s project report or presentation to a generative AI tool (e.g., for creating summaries) is forbidden and will result in a failing grade.

Office Hours

  • Tuesdays: 9:30am - 10:45am (5586 Morgridge Hall)
  • Thursdays: 4:00pm - 5:15pm (5586 Morgridge Hall)
  • Fridays: 3:00pm - 4:30pm (5631 Morgridge Hall)
    • More collaborative setting
    • You’re welcome to work on projects, exercises, lecture analyses
    • Bounce ideas off others (and me)
  • Happy to meet outside these hours (email me first)

Looking Ahead

  • Lectures 2 & 3: Expected Goals in Soccer
  • Will use public data provided by Hudl
  • Be sure to install the StatsBombR & ranger packages