Preface
Why This Book?
Basketball analytics has transformed from a niche pursuit into a fundamental aspect of how professional teams operate. Every NBA franchise now employs analytics staff, and the demand for professionals who can extract insights from basketball data continues to grow. Yet until recently, learning basketball analytics required piecing together knowledge from scattered blog posts, academic papers, and proprietary team resources.
This textbook aims to change that by providing a comprehensive, structured curriculum for learning basketball analytics from the ground up. Whether you're a student considering a career in sports analytics, a data scientist curious about sports applications, or a basketball enthusiast wanting to understand the numbers behind the game, this book will give you the foundation you need.
The Evolution of Basketball Analytics
The journey of basketball analytics mirrors the broader data revolution in sports. What began with simple box score statistics has evolved into sophisticated spatial analysis using player tracking data. Along the way, pioneers like Dean Oliver, John Hollinger, and the teams at ESPN and Basketball Reference created metrics and frameworks that fundamentally changed how we evaluate basketball performance.
Today's NBA front offices use machine learning models to evaluate draft prospects, optimize rotations, and make contract decisions worth hundreds of millions of dollars. Understanding these methods is no longer optional for those seeking careers in professional basketball—it's essential.
What Makes This Book Different
Several features distinguish this textbook from other resources on basketball analytics:
Comprehensive Coverage: We cover everything from basic counting stats to advanced machine learning, providing a complete curriculum rather than isolated topics.
Hands-On Learning: Every concept is accompanied by Python code that you can run and modify. We believe you learn analytics by doing analytics.
Real Data: Examples use publicly available NBA data, so you can replicate and extend our analyses with current information.
Pedagogical Structure: Each chapter follows a consistent format with learning objectives, examples, exercises, case studies, and key takeaways. This structure supports both self-study and classroom use.
Industry Perspective: We've included insights from professional analysts and a dedicated chapter on building your career in basketball analytics.
How to Use This Book
This book is designed for sequential reading, as later chapters build on earlier concepts. However, readers with strong statistics or programming backgrounds may skip or skim foundational chapters.
Each chapter includes: - Learning Objectives: What you'll be able to do after completing the chapter - Main Content: Conceptual explanations with mathematical foundations - Code Examples: Python implementations you can run and modify - Exercises: Practice problems ranging from basic to advanced - Case Studies: Extended real-world applications - Key Takeaways: Summary of essential points - Further Reading: Annotated bibliography for deeper exploration
The capstone projects at the end of the book integrate concepts from multiple chapters and produce portfolio-worthy projects.
Acknowledgments
This book would not be possible without the work of the broader basketball analytics community. Researchers, bloggers, and practitioners have openly shared their methods and insights, creating a collaborative field where knowledge flows freely. We are particularly indebted to the creators of Basketball Reference, the NBA API, and the many open-source Python libraries that make this analysis accessible.
We also thank the students and educators who provided feedback on early drafts, helping us improve the clarity and pedagogical effectiveness of the material.
A Note on Data and Ethics
Throughout this book, we use publicly available data sources. While we demonstrate web scraping techniques, we emphasize the importance of respecting terms of service and rate limits. We also discuss the ethical considerations of analytics in professional sports, including player privacy and the responsible use of predictive models.
Feedback
We welcome feedback on this textbook. Please submit corrections, suggestions, or questions through the book's GitHub repository. Your input helps improve the book for future readers.
Let's begin our journey into basketball analytics.