Football Analytics with Python and R Learning Data Science Through the Lens of Sports (Eric A. Eager, Richard A. Erickson)(Z-Library)

Author: Eric A. Eager, Richard A. Erickson

数据

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

📄 File Format: PDF
💾 File Size: 20.3 MB
7
Views
0
Downloads
0.00
Total Donations

📄 Text Preview (First 20 pages)

ℹ️

Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

📄 Page 1
Ea g er & Erickson Football Analytics with Python & R Learning Data Science Through the Lens of Sports Eric A. Eager & Richard A. Erickson
📄 Page 2
DATA / DATA ANALYSIS “Transforms complex data into accessible wisdom. A must-read to better understand the game.” —John Park Director of Strategic Football Operations, Dallas Cowboys “The perfect mix of storytelling and use cases within football analytics.” —John Taormina Director of Football Strategy, TruMedia, former Atlanta Falcons Director of Football Data & Analytics Football Analytics with Python & R Twitter: @oreillymedia linkedin.com/company/oreilly-media youtube.com/oreillymedia Baseball is not the only sport to use “moneyball.” American football teams, fantasy football players, fans, and gamblers are increasingly using data to gain an edge on the competition. Professional and college teams use data to help identify team needs and select players to fill those needs. Fantasy football players and fans use data to try to defeat their friends, while sports bettors use data in an attempt to defeat the sportsbooks. In this concise book, Eric Eager and Richard Erickson provide a clear introduction to using statistical models to analyze football data using both Python and R. Whether your goal is to qualify for an entry-level football analyst position, dominate your fantasy football league, or simply learn R and Python with fun example cases, this book is your starting place. Through case studies in both Python and R, you’ll learn to: • Obtain NFL data from Python and R packages and web scraping • Visualize and explore data • Apply regression models to play-by-play data • Extend regression models to classification problems in football • Apply data science to sports betting with individual player props • Understand player athletic attributes using multivariate statistics Eric Eager is VP and partner at SumerSports, a sports analytics startup. Formerly VP at Pro Football Focus, he developed metrics now used on the team side and publicly. Richard Erickson helps people use math and statistics to make decisions with data. He’s taught thousands online, including online training courses on linear models in R. US $65.99 CAN $82.99 ISBN: 978-1-492-09962-8
📄 Page 3
Praise for Football Analytics with Python & R Grounded in clarity and real-world mentorship, Eric and Richard demystify football analytics for the masses, both novices and practitioners alike. This foundational guide transforms complex data into accessible wisdom, making it a must-read for anyone eager to better understand the game. —John Park, Director of Strategic Football Operations, Dallas Cowboys This book is the perfect mix of applicable storytelling and use cases within football analytics. It’s an ideal resource for setting the foundation of a career in football analytics, with specific coding examples and broad coding instruction. Anyone can pick this up and learn to code with football data. —John Taormina, Director of Football Strategy, TruMedia, former Atlanta Falcons Director of Football Data & Analytics The case study-driven approach makes it easy to understand how to approach the most common tasks in football analytics. I love how the book is filled with data science and football lore. It’s a must-read for anyone interested in exploring football data. —Richie Cotton, Data Evangelist at DataCamp A practical guide for learning, implementing, and generating insight from meaningful analytics within the world of football. Fantastic read for sports enthusiasts and data-driven professionals alike. —John Oliver, data scientist
📄 Page 4
This is a great reference to learn how data science is applied to football analytics. The examples teach a wide range of visualization, data wrangling, and modeling techniques using real-world football data. —Ryan Day, advanced data scientist One of the rare books out there written by data science educators that also work in the industry. Football analytics in both Python and R throughout, too! Excellent, thoughtful examples as well. —Dr. Chester Ismay, educator, data scientist, and consultant
📄 Page 5
Eric A. Eager and Richard A. Erickson Football Analytics with Python & R Learning Data Science Through the Lens of Sports Boston Farnham Sebastopol TokyoBeijing
📄 Page 6
978-1-492-09962-8 [LSI] Football Analytics with Python & R by Eric A. Eager and Richard A. Erickson Copyright © 2023 Eric A. Eager and Richard A. Erickson. All rights reserved. Printed in the United States of America. Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472. O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (https://oreilly.com). For more information, contact our corporate/institu‐ tional sales department: 800-998-9938 or corporate@oreilly.com. Acquisitions Editor: Michelle Smith Development Editor: Corbin Collins Production Editor: Aleeya Rahman Copyeditor: Sharon Wilkey Proofreader: Amnet Systems LLC Indexer: nSight, Inc. Interior Designer: David Futato Cover Designer: Karen Montgomery Illustrator: Kate Dullea August 2023: First Edition Revision History for the First Edition 2023-08-16: First Release See https://oreilly.com/catalog/errata.csp?isbn=9781492099628 for release details. The O’Reilly logo is a registered trademark of O’Reilly Media, Inc. Football Analytics with Python & R, the cover image, and related trade dress are trademarks of O’Reilly Media, Inc. The views expressed in this work are those of the authors and do not represent the publisher’s views. While the publisher and the authors have used good-faith efforts to ensure that the information and instructions contained in this work are accurate, the publisher and the authors disclaim all responsibility for errors or omissions, including without limitation responsibility for damages resulting from the use of or reliance on this work. Use of the information and instructions contained in this work is at your own risk. If any code samples or other technology this work contains or describes is subject to open source licenses or the intellectual property rights of others, it is your responsibility to ensure that your use thereof complies with such licenses and/or rights.
📄 Page 7
Table of Contents Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix 1. Football Analytics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Baseball Has the Three True Outcomes: Does Football? 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 Analytics 6 First Steps in Python and R 8 Example Data: Who Throws Deep? 10 nflfastR in R 11 nfl_data_py in Python 14 Data Science Tools Used in This Chapter 16 Suggested Readings 17 2. Exploratory Data Analysis: Stable Versus Unstable Quarterback Statistics. . . . . . . . . . . 19 Defining Questions 21 Obtaining and Filtering Data 22 Summarizing Data 25 Plotting Data 29 Histograms 30 Boxplots 35 Player-Level Stability of Passing Yards per Attempt 37 Deep Passes Versus Short Passes 41 v
📄 Page 8
So, What Should We Do with This Insight? 51 Data Science Tools Used in This Chapter 52 Exercises 53 Suggested Readings 53 3. Simple Linear Regression: Rushing Yards Over Expected. . . . . . . . . . . . . . . . . . . . . . . . . . 55 Exploratory Data Analysis 58 Simple Linear Regression 64 Who Was the Best in RYOE? 69 Is RYOE a Better Metric? 73 Data Science Tools Used in This Chapter 76 Exercises 76 Suggested Readings 77 4. Multiple Regression: Rushing Yards Over Expected. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 Definition of Multiple Linear Regression 79 Exploratory Data Analysis 82 Applying Multiple Linear Regression 94 Analyzing RYOE 100 So, Do Running Backs Matter? 105 Assumption of Linearity 108 Data Science Tools Used in This Chapter 111 Exercises 111 Suggested Readings 112 5. Generalized Linear Models: Completion Percentage over Expected. . . . . . . . . . . . . . . 113 Generalized Linear Models 117 Building a GLM 118 GLM Application to Completion Percentage 121 Is CPOE More Stable Than Completion Percentage? 128 A Question About Residual Metrics 131 A Brief Primer on Odds Ratios 132 Data Science Tools Used in This Chapter 134 Exercises 134 Suggested Readings 134 6. Using Data Science for Sports Betting: Poisson Regression and Passing Touchdowns 137 The Main Markets in Football 138 Application of Poisson Regression: Prop Markets 140 vi | Table of Contents
📄 Page 9
The Poisson Distribution 141 Individual Player Markets and Modeling 149 Poisson Regression Coefficients 162 Closing Thoughts on GLMs 169 Data Science Tools Used in This Chapter 170 Exercises 170 Suggested Readings 171 7. Web Scraping: Obtaining and Analyzing Draft Picks. . . . . . . . . . . . . . . . . . . . . . . . . . . . 173 Web Scraping with Python 174 Web Scraping in R 179 Analyzing the NFL Draft 182 The Jets/Colts 2018 Trade Evaluated 192 Are Some Teams Better at Drafting Players Than Others? 194 Data Science Tools Used in This Chapter 201 Exercises 201 Suggested Readings 202 8. Principal Component Analysis and Clustering: Player Attributes. . . . . . . . . . . . . . . . . . 203 Web Scraping and Visualizing NFL Scouting Combine Data 205 Introduction to PCA 217 PCA on All Data 221 Clustering Combine Data 230 Clustering Combine Data in Python 230 Clustering Combine Data in R 233 Closing Thoughts on Clustering 236 Data Science Tools Used in This Chapter 237 Exercises 237 Suggested Readings 238 9. Advanced Tools and Next Steps. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239 Advanced Modeling Tools 240 Time Series Analysis 241 Multivariate Statistics Beyond PCA 241 Quantile Regression 242 Bayesian Statistics and Hierarchical Models 242 Survival Analysis/Time-to-Event 245 Bayesian Networks/Structural Equation Modeling 246 Machine Learning 246 Table of Contents | vii
📄 Page 10
Command Line Tools 246 Bash Example 248 Suggested Readings for bash 250 Version Control 250 Git 251 GitHub and GitLab 252 GitHub Web Pages and Résumés 253 Suggested Reading for Git 253 Style Guides and Linting 254 Packages 255 Suggested Readings for Packages 255 Computer Environments 255 Interactives and Report Tools to Share Data 256 Artificial Intelligence Tools 257 Conclusion 258 A. Python and R Basics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261 B. Summary Statistics and Data Wrangling: Passing the Ball. . . . . . . . . . . . . . . . . . . . . . . 269 C. Data-Wrangling Fundamentals. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287 Glossary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309 Index. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 317 viii | Table of Contents
📄 Page 11
Preface Life is about stories. For many, these stories revolve around sports, and football specifically. A lot of us remember playing games in the backyard with our family and friends, while some were lucky enough to play those games under the lights and in front of fans. We love our heroes and loathe our rivals. We tell these stories to help us understand the past and try to predict the future. Football analytics, at its core, allows us to use information to tell more accurate stories about the game we love. They give us ammunition for some of the game’s most vexing questions. For example, do the most championships make the best quarterback? Or the best passing statistics? What do the “best passing statistics” even mean? Are there things that players do that transcend the math? If so, are they simply transcending our current understanding of the game mathematically, only to be shown as brilliant once we have new and better information? Who should your favorite team draft if it is trying to win this year? What about in three years from now? Who should your grandmother draft in fantasy football? Which team should you bet on during your layover in Las Vegas during a football Sunday? Following the success of the Moneyball approach in baseball (captured by Michael Lewis in the 2003 book published by W. W. Norton & Company), people now increas‐ ingly use math and statistics to help them properly formulate and answer questions like these. While football, an interconnected game of 22 players on a 100-yard field, might seem less amenable to statistical analysis than baseball, a game with many independent battles between pitcher and batter, folks have made substantial progress toward understanding and changing the game for the better. ix
📄 Page 12
Our aim is to get you started toward understanding how statistical analysis may also be applied to football. Hopefully, some of you will take what you learn from this book and contribute to the great data revolution of the game we all love. Each chapter of this book focuses on a problem in American football, while covering skills to answer the problem. • Chapter 1, “Football Analytics”, provides an overview of football analytics to this date, including problems that have been solved within the last few years. It then explores publicly available, play-by-play data to measure aggressiveness by National Football League (NFL) quarterbacks by looking at their average depth of target (aDOT). • Chapter 2, “Exploratory Data Analysis: Stable Versus Unstable Quarterback Sta‐ tistics”, introduces exploratory data analysis (EDA) to examine which subset of quarterback passing data—short passing or long passing—is more stable year to year and how to use such analyses to look at regression candidates year to year or even week to week. • Chapter 3, “Simple Linear Regression: Rushing Yards Over Expected”, uses linear regression to normalize rushing data for NFL ball carriers. Normalizing data helps us adjust for context, such as the number of yards a team needs for a first down, which can affect the raw data outputs that a player produces. • Chapter 4, “Multiple Regression: Rushing Yards Over Expected”, expands upon the work in Chapter 3 to include more variables to normalize. For example, down and distance both affect expectation for a ball carrier, and hence both should be included in a model of rushing yards. You’ll then determine whether such a normalization adds to stability in rushing data. This chapter also explores the question “Do running backs matter?” • Chapter 5, “Generalized Linear Models: Completion Percentage over Expected”, illustrates how to use logistic regression to model quarterback completion percentage. • Chapter 6, “Using Data Science for Sports Betting: Poisson Regression and Passing Touchdowns”, shows how using Poisson regression can help us model game outcomes, and how those models apply to the betting markets. • Chapter 7, “Web Scraping: Obtaining and Analyzing Draft Picks”, uses web- scraping techniques to obtain NFL Draft data since the start of the millennium. You’ll then analyze whether any teams are better or worse than expected when it comes to picking players, after adjusting for the expectation of the pick. • Chapter 8, “Principal Component Analysis and Clustering: Player Attributes”, uses principal component analysis (PCA) and clustering to analyze NFL Scouting Combine data to determine player types via unsupervised learning. x | Preface
📄 Page 13
• Chapter 9, “Advanced Tools and Next Steps”, describes advanced tools for those of you wanting to take your analytics game to the next level. In general, these chapters build upon one another because tools shown in one chapter may be used later. The book also includes three appendixes: • Appendix A, “Python and R Basics”, introduces Python and R to those of you who are new to the programs and need guidance obtaining them. • Appendix B, “Summary Statistics and Data Wrangling: Passing the Ball”, introdu‐ ces summary statistics and data wrangling by using an example to demonstrate passing yards. • Appendix C, “Data-Wrangling Fundamentals”, provides an overview of more data-wrangling skills. We have also included a Glossary at the end of the book to define terms. We use case studies as the focus of this book. Table P-1 lists the case studies by chapter and the skills each case study covers. Table P-1. Case studies in this book Case study Technique Location Motivating example: Home field advantage Example framing a problem “A Football Example” on page xiv Pass depth for quarterbacks Obtaining NFL data in R and Python “Example Data: Who Throws Deep?” on page 10 Passing yards across seasons Introduction to stability analysis with EDA “Player-Level Stability of Passing Yards per Attempt” on page 37 Predictor of rushing yards Building a simple model to estimate rushing yards over expected (RYOE) “Who Was the Best in RYOE?” on page 69 Multiple predictors of rushing yards Building a multiple regression to estimate RYOE “Applying Multiple Linear Regression” on page 94 Pass completion percentage Using a logistic regression to estimate pass completion percentage “GLM Application to Completion Percentage” on page 121 Betting on propositions (or props) Using a Poisson regression to understand betting “Application of Poisson Regression: Prop Markets” on page 140 Quantifying the Jets/Colts 2018 trade Evaluating a draft trade “The Jets/Colts 2018 Trade Evaluated” on page 192 Evaluating all teams drafting Comparing drafting outcomes across all NFL teams “Are Some Teams Better at Drafting Players Than Others?” on page 194 Player NFL Scouting Combine attributes Using multivariate methods to classify player attributes “Clustering Combine Data” on page 230 Preface | xi
📄 Page 14
Who This Book Is For Our book has two target audiences. First, we wrote the book for people who want to learn about football analytics by doing football analytics. We share examples and exercises that help you work through the problems you’d face. Throughout these examples and exercises, we show you how we think about football data and then how to analyze the data. You might be a fan who wants to know more about your team, a fantasy football player, somebody who cares about which teams win each week, or an aspiring football data analyst. Second, we wrote this book for people who want an introduction to data science but do not want to learn from classic datasets such as flower measurements from the 1930s or Titanic survivorship tables from 1912. Even if you will be applying data science to widgets at work, at least you can learn using an enjoyable topic like American football. We assume you have a high school background in math but are maybe a bit rusty (that is to say, you’ve completed a precalculus course). You might be a high school student or somebody who has not had a math course in 30 years. We’ll explain concepts as we go. We also focus on helping you see how football can supply fun math story problems. Our book will help you understand some of the basic skills used daily by football analysts. For fans, this will likely be enough data science skills. For the aspiring football analyst, we hope that our book serves as a springboard for your dreams and lifelong learning. To help you learn, this book uses public data. This allows you to re-create all our analyses as well as update the datasets for future seasons. For example, we use only data through the 2022 season because this was the last completed season before we finished writing the book. However, the tools we teach you will let you update our examples to include future years. We also show all the data-wrangling methods so that you can see how we format data. Although somewhat tedious at times, learning how to work with data will ultimately give you more freedom: you will not be dependent on others for clean data. Who This Book Is Not For We wrote this book for beginners and have included appendixes for people with minimal-to-no prior programming experience. People who have extensive experience with statistics and programming in R or Python would likely not benefit from this book (other than by seeing the kind of introductory problems that exist in football analytics). Instead, they should move on to more advanced books, such as R for Data Science, 2nd edition by Hadley Wickham et al. (O’Reilly, 2023) to learn more about R, or Python for Data Analysis, 3rd edition by Wes McKinney (O’Reilly, 2022) to learn more about Python. Or maybe you want to move into more advanced books on xii | Preface
📄 Page 15
topics we touch upon in this book, such as multivariate statistics, regression analysis, or the Posit Shiny application. We focus on simple examples rather than complex analysis. Likewise, we focus on simpler, easier-to-understand code rather than the most computationally efficient code. We seek to help you get started quickly and connect with real-world data. To use a quote often attributed to Antoine de Saint-Exupéry: If you wish to build a ship, do not divide the men into teams and send them to the forest to cut wood. Instead, teach them to long for the vast and endless sea. Thus, we seek to quickly connect you to football data, hoping this connection will inspire and encourage you to continue learning tools in greater depth. How We Think About Data and How to Use This Book We encourage you to work through this book by not only reading the code but also running the code, completing the exercises, and then asking your own football questions with data. Besides working through our examples, feel free to add in your own questions and create your own ideas. Consider creating a blog or GitHub page to showcase your new skills or share what you learn. Work through the book with a friend or two. Help each other when you get stuck and talk about what you find with data. The last step is especially important. We regularly think about and fine-tune how we share our datasets as we work as professional data scientists. In our day jobs, we help people make decisions using data. In this book, we seek to share our tools and thought processes with you. Our formal academic training covered mathematics and statistics, but we did not truly develop our data science skills until we were required to analyze messy, ecological, and environmental data from the natural world. We had to clean, merge, and wrangle untidy data, all while figuring out what to do with gaps in the information available to us. And then we had to try to explain the meaning hidden within those messy datasets. During the middle of the last decade, Eric starting applying his skills to football, first as a writer and then as an analyst, for a company called Pro Football Focus (PFF). Eventually, he left academia to join PFF full time, helping run its first data science group. During his time with PFF, he worked with all 32 NFL teams and over 130 college teams, before moving to his new role at SumerSports. Meanwhile, Richard continues to work with ecological data and helps people make decisions with this data—for example, how many fish need to be harvested from where in order to control an undesired species? Although we both have advanced degrees, the ability to think clearly and explore data is more important than formal education. According to a quote attributed to Albert Einstein, “Imagination is more important than knowledge.” We think this Preface | xiii
📄 Page 16
holds true for football analytics as well. Asking the right question and finding a good enough answer is more important than what you currently know. Daily, we see how quantitative tools help us to expand our imagination by increasing our ability to look at and think about different questions and datasets. Thus, we are required to imagine important questions to guide our use of analytics. A Football Example Let’s say we want to know if the Green Bay Packers have a home-field advantage. Perhaps we disagree with a friend over whether the Frozen Tundra truly is the advantage that everyone says it is, or if fans are wasting their hard-earned money on an outsized chance of getting frostbite. Conceptually, we take the following steps: 1. We find data to help us answer our question. 2. We wrangle the data into a format to help us answer our question. 3. We explore the data by plotting and calculating summary statistics. 4. We fit a model to help us quantify and confirm our observations. 5. Lastly, and most importantly, we share our results (optionally, but possibly most importantly, we settle the wagers to the “questions” we answered with data). For the Packers home-field advantage example, here are our concrete steps: 1. We use the nflreadr package to obtain data, which is freely available to use. 2. We wrangle the data to give us a score differential for each game. 3. We create a plot such as that in Figure P-1 to help visualize the data. 4. We use a model to estimate the average difference point differential for home and away games. 5. We share our results with our friends who were debating this topic with us. Given the data, the Packers typically have a point differential of two points higher at home compared to being on the road. This is in line with where home-field advantage is assumed to be across the league, although this number has evolved substantially over time. xiv | Preface
📄 Page 17
Figure P-1. Green Bay score differential in home and away games from 2016 to 2022 Hopefully, this observation raises more questions for you. For example, how much variability exists around this estimate? What happens if you throw out 2020, when fans were not allowed to attend games at the Packers home stadium? Does home-field advantage affect the first half or second half of games more? How do you adjust for quality of play and schedule differential? How does travel distance affect home-field advantage? Familiarity? Both (since familiarity and proximity are related)? How does weather differential affect home-field advantage? How does home-field advantage affect winning games compared to losing games? Let’s quickly look at homefield advantage during games won by the Packers compared to games lost. Look at Figure P-2. Summaries for the data in this figure show that the Packers lose by one point more on the road compared to home games, but they win at home by almost six points more than they do on the road. Preface | xv
📄 Page 18
Figure P-2. Green Bay score differential in home and away games from 2016 to 2022 for winning and losing games That being said, the Green Bay Packers are a good team and will likely have a positive point differential no matter what. The question of home-field advantage is not a trivial one and has perplexed analysts and bettors alike for decades. Hopefully, this example spurs more questions for you. If so, you’re reading the right book. We cover step 1, obtaining football data, in Chapter 1. We cover step 2, exploring data, in Chapter 2. We cover step 3, data wrangling, in case studies throughout the book as well as in Appendixes B and C. We cover step 4 with basic statistics in Chapter 2 and Appendix B and then cover models in Chapters 3 through 8. We cover step 5 throughout various chapters as we describe what we have found. Lastly, we round out the book with Chapter 9, which describes some of the advanced tools we use daily. xvi | Preface
📄 Page 19
What You Will Learn from Our Book We have included materials in this book to help you start your journey into football analytics. For enthusiastic fans, our book may be enough to get you up and running. For people aspiring to be quantitative football analysts, our book will hopefully serve as a springboard. For people seeking to become a data scientist or improve their data science skills, our book provides worked examples of how data can be used to answer questions. We specifically teach the following: • How to visualize data • How to summarize data • How to model data • How to present the results of data analysis • How to use the previous techniques to tell a story Conventions Used in This Book The following typographical conventions are used in this book: Italic Signifies new terms, URLs, email addresses, filenames, and file extensions. Constant width Used for program listings, as well as within paragraphs to refer to program elements such as variable or function names, databases, data types, environment variables, statements, and keywords. Constant width bold Shows commands or other text that should be typed literally by the user. Constant width italic Shows text that should be replaced with user-supplied values or by values deter‐ mined by context. This element signifies a tip or suggestion. This element signifies a general note. Preface | xvii
📄 Page 20
This element indicates a warning or caution. Using Code Examples Supplemental material (code examples, exercises, etc.) is available for download at https://github.com/raerickson/football_book_code. If you have a technical question or a problem using the code examples, please send an email to support@oreilly.com. This book is here to help you get your job done. In general, if example code is offered with this book, you may use it in your programs and documentation. You do not need to contact us for permission unless you’re reproducing a significant portion of the code. For example, writing a program that uses several chunks of code from this book does not require permission. Selling or distributing examples from O’Reilly books does require permission. Answering a question by citing this book and quoting example code does not require permission. Incorporating a significant amount of example code from this book into your product’s documentation does require permission. We appreciate, but generally do not require, attribution. An attribution usually includes the title, author, publisher, and ISBN. For example: “Football Analytics with Python and R by Eric A. Eager and Richard A. Erickson (O’Reilly). Copyright 2023 Eric A. Eager and Richard A. Erickson, 978-1-492-09962-8.” If you feel your use of code examples falls outside fair use or the permission given above, feel free to contact us at permissions@oreilly.com. O’Reilly Online Learning For more than 40 years, O’Reilly Media has provided technol‐ ogy and business training, knowledge, and insight to help companies succeed. Our unique network of experts and innovators share their knowledge and expertise through books, articles, and our online learning platform. O’Reilly’s online learning platform gives you on-demand access to live training courses, in-depth learning paths, interactive coding environments, and a vast collection of text and video from O’Reilly and 200+ other publishers. For more information, visit https://oreilly.com. xviii | Preface
The above is a preview of the first 20 pages. Register to read the complete e-book.

💝 Support Author

0.00
Total Amount (¥)
0
Donation Count

Login to support the author

Login Now

Recommended for You

Loading recommended books...
Failed to load, please try again later
Back to List