ThinkStats2 is the code and text companion for the second edition of Think Stats, an introduction to statistics and data science for Python programmers. It teaches probability and statistical reasoning through short programs, experiments, and analysis of real datasets. The material emphasizes exploratory methods that help readers ask and answer practical questions with data. Case studies draw from public sources, including health-related datasets, to connect abstract concepts with realistic analysis. Each chapter has a notebook containing examples and exercises, along with a separate version that includes solutions. The repository also provides reusable thinkstats2 and thinkplot packages, homework material, workshops, and book-building files. Learners can use the notebooks in Google Colab or download the project for local work.
Features
- Python-based probability and statistics instruction
- Real-world datasets and analytical case studies
- Chapter notebooks with exercises and solutions
- Reusable thinkstats2 statistical utilities
- Thinkplot tools for data visualization
- Homework, workshop, and teaching materials