Sports Coach Guide· a Bicycle Guide

Coming soon · Book Profile

Football Analytics with Python R

A practical guide to applying statistical modeling and data science techniques using Python and R to analyze American football data for purposes ranging from team analysis to sports betting and fantasy football.

A profile of this book is on the way.

Get the book →

What it’s about

Are you a football fan wanting to gain a competitive edge in your fantasy league, interested in sports betting, or aspiring to become a professional analyst? 'Football Analytics with Python & R' provides a clear, hands-on introduction to using statistical models to analyze football data. Authors Eric Eager and Richard Erickson guide you through real-world case studies, teaching you how to obtain, visualize, and model NFL data using both Python and R. You'll learn to build metrics like Rushing Yards Over Expected (RYOE) and Completion Percentage Over Expected (CPOE), evaluate draft picks, and even apply data science to sports betting. This book is your starting place for transforming complex football data into accessible wisdom, whether your goal is to dominate your league or simply learn data science with fun, practical examples.

The through-line

Who it’s for
An aspiring football analyst, a savvy fantasy football player, or a curious sports fan who wants to go beyond surface-level statistics and use data to gain a deeper, more objective understanding of the game.
The problem
They rely on traditional, often misleading, raw statistics (like total yards or completion percentage) which don't account for crucial game context, leading to flawed player evaluations and poor predictions. They feel frustrated and overwhelmed by the complexity of football analytics, and unsure how to start using programming and statistics to answer their own questions about the game.
The plan
  1. Learn to obtain and wrangle real NFL data using Python and R.
  2. Master exploratory data analysis to visualize and understand key football metrics.
  3. Apply regression models to create context-adjusted performance metrics like RYOE and CPOE.
  4. Extend your skills to sports betting, draft analysis, and player attribute classification.
  5. Discover advanced tools and next steps to continue your analytics journey.
The payoff
Becoming empowered to answer their own questions about football using data. · Gaining a significant edge in their fantasy football leagues and sports betting. · Developing a foundational skill set for a career in sports analytics.

See our guide

Additional reading