Baseball is not the only sport to use "moneyball." American football fans, teams, and gamblers are increasingly using data to gain an edge against the competition. Professional and college teams use data to help select players and identify team needs. Fans use data to guide fantasy team picks and strategies. Sports bettors and fantasy football players are using data to help inform decision making. This concise book provides a clear introduction to using statistical models to analyze football data.
Whether your goal is to produce a winning team, dominate your fantasy football league, qualify for an entry-level football analyst position, or simply learn R and Python using fun example cases, this book is your starting place. You'll learn how to:
• Apply basic statistical concepts to football datasets
• Describe football data with quantitative methods
• Create efficient workflows that offer reproducible results
• Use data science skills such as web scraping, manipulating data, and plotting data
• Implement statistical models for football data
• Link data summaries and model outputs to create reports or presentations using tools such as R
• Markdown and R Shiny
• And more
AI Reading Assistant
Whole-book reading guide from stratified index samples; jump to passages in the text
Tip the Site
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat Pay
Alipay
Open WeChat or Alipay and scan. No login required.
AI guide
【One-Line Pitch】
This book teaches data science through American football, showing beginners and enthusiasts how to use Python and R to scrape, wrangle, visualize, and model NFL data—from simple summaries to regression and beyond—so you can answer real football questions and build reproducible analytical workflows.
【Book Arc】
- **Opening (~0%–6%)**: Introduces the "moneyball" concept for football, explains why analytics matters for teams, fans, and bettors, and outlines the book's case-study-driven approach, including appendices for Python/R basics and data wrangling.
- **Early (~6%–19%)**: Covers first steps in Python and R—installing software, basic operations, comments, variables—and introduces the nflfastR dataset, showing how to filter, group, and aggregate play-by-play data (e.g., air yards by quarterback).
- **Early (~19%–28%)**: Focuses on exploratory data analysis (EDA) fundamentals: defining good questions, summarizing data with descriptive statistics (mean, quartiles, IQR), and plotting histograms and boxplots to compare short vs. deep passes and their stability.
- **Middle (~28%–38%)**: Dives into stability analysis—using lagged data and Pearson correlations to measure whether quarterback performance (yards per attempt) is repeatable year-to-year, revealing that short-passing skill is more stable than deep-passing skill.
- **Middle (~38%–47%)**: Introduces simple linear regression through the 2020 Big Data Bowl problem: modeling expected rushing yards to compute rushing yards over expected (RYOE), including binning, trendlines, residuals, and checking degrees of freedom.
- **Late (~47%–end)**: Extends modeling to multiple linear regression, logistic regression (completion percentage), Poisson regression (betting props), draft trade evaluation, and clustering Combine data—plus advanced tools and next steps for practitioners.
【Key Takeaways】
- **Stability analysis is the backbone of player evaluation** (Early): Measuring whether a stat repeats year-to-year (via lagged correlations) tells you what to trust; short-pass YPA is ~2x more stable than deep-pass YPA, so deep-passing skill is harder to buy into. (Early)
- **Asking the right question matters more than getting the right answer** (Early): Borrowing from John Tukey, the book stresses that a precise answer to a vague question is useless; framing problems well (e.g., "Is deep passing valuable but unstable?") guides the entire analysis. (Early)
- **EDA is about comparing distributions, not just plotting** (Early): Using histograms, boxplots, and summary stats (IQR, mean) on passing yards reveals that long passes have much wider variability than short passes—a key insight for modeling. (Early)
- **Simple linear regression is a starting point, not the end** (Middle): Modeling rushing yards over expected (RYOE) with yards-to-go as a predictor shows how residuals become a new metric; even small slopes can be meaningful when binned and averaged. (Middle)
- **Degrees of freedom are a debugging tool** (Middle): Checking df across models helped the authors catch version mismatches between Python and R packages—a practical tip for anyone doing cross-language analysis. (Middle)
- **Correlation coefficients quantify what plots show** (Middle): Pearson's r for YPA stability (0.23 long vs. 0.44 short) numerically confirms visual trends, making it easier to communicate findings to non-visual audiences. (Middle)
- **Workflows should be reproducible and code-checked** (Early): The book recommends testing code with at least two players (e.g., Tom Brady plus another) to catch dataframe errors, and emphasizes saving residuals and lagged data for reuse. (Early)
【Reading Tips】
- **Skim the code-heavy sections if you're new to Python/R**: Focus on the conceptual explanations (e.g., why stability matters) first, then return to the code blocks to practice; the appendixes cover basics if you need a refresher.
- **Deep-read Chapter 2 (EDA) and Chapter 3 (Simple Regression)**: These are the core of the book—mastering histograms, boxplots, lagged data, and residuals will make later chapters (logistic, Poisson, clustering) much easier.
- **Use the case studies as your roadmap**: Each chapter builds on a real football question (e.g., "Who throws deep?" or "Who was best in RYOE?"), so follow the narrative arc rather than jumping between chapters.
- **Watch for cross-language differences**: The authors note that Python and R versions of nflfastR data can differ; if your outputs don't match the book, check package versions and degrees of freedom rather than assuming you made a coding error.
- **Take away the workflow, not just the stats**: The book teaches a repeatable process—define question, get data, summarize, plot, model, check residuals, report—which you can apply to any sport or dataset.
【Coverage Limits】
This guide covers the book's first half in detail (through simple linear regression and RYOE); later chapters on multiple regression, logistic/Poisson models, draft trades, and clustering are summarized from the table of contents but not deeply excerpted here.
Excerpt 1
3 Do Running Backs Matter? 4 How Data Can Help Us Contextualize Passing Statistics 5 Can You Beat the Odds? 5 Do Teams Beat the Draft? 6 Tools for Football A...
calculate silly things like point spreads or totals in the console if in need of a quick calculation. Let’s see some things you can do. Type 2 + 2 in either...
g seaborn for the passing_yards variable Plotting Data | 33 In Python, use groupby() with a list of the variables (["item1", "item2"] in Python syntax) that...
statistics how to compare degrees of freedom across models. When writing this book, the Python and R versions of the nflfastR data were giving different valu...
ffense running the ball than first down and 10 yards to go. • Conversely, running plays on fourth down have slightly more yards gained com‐ pared to first do...
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.
Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat PayAlipay
Open WeChat or Alipay and scan. No login required.
Add Tag
Enter tag name (max 50 characters)
Share E-Book
Football Analytics with Python and R Learning Data Science Through the Lens of Sports (Eric A. Eager, Richard A. Erickson)(Z-Library)
Scan QR code with your phone to access
Copy the link or scan the QR code to access this e-book on your phone
Share E-Book via Email
Please enter email address
Donation Statistics
¥.00
Total Donations
0
Donation Count
Football Analytics with Python and R Learning Data Science Through the Lens of Sports (Eric A. Eager, Richard A. Erickson)(Z-Library)
Find Your Favorite Books
Only registered users can comment after logging in. Comments need to be reviewed by administrators before being displayed
Loading comments...
Reply to Comment
Edit Comment