Skip to content
项目

AllenDowney/ThinkStats2 has 4,244 GitHub stars and 11,265 forks. GitHot measured 0 stars in 24 hours and +1 in 7 days. Last checked 2026-11-12 09:59 UTC. Last push 2026-10-10.

这些数字如何统计

Text and supporting code for Think Stats, 2nd Edition

实测星标增长

24小时
0
7天
+1
15天
正在收集历史
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

ThinkStats2

The third edition of Think Stats is available online now. The print version will be available soon.

In the meantime, you can order the second edition from Amazon.com.

Download the second edition in PDF.

Read the second edition book online.

Think Stats is an introduction to Statistics and Data Science for Python programmers. If you have basic skills in Python, you can use them to learn concepts in probability and statistics and practical skills for working with data.

  • This book emphasizes simple techniques you can use to explore real data sets and answer interesting questions.

  • It includes case studies using datasets from the National Institutes of Health and other sources.

  • Many of the exercises use short programs to run experiments and help readers develop understanding.

This book is available under a Creative Commons license, which means that you are free to copy, distribute, and modify it, as long as you attribute the source and don’t use it for commercial purposes.

Working with the code

The easiest way to work with this code it to run it on Colab, which is a free service that runs Jupyter notebooks in a web browser. For every chapter, I provide two notebooks: one contains the code from the chapter and the exercises; the other also contains the solutions.

Chapter 1:

Examples from the chapter

Solutions to exercises

Chapter 2:

Examples from the chapter

Solutions to exercises

Chapter 3:

Examples from the chapter

Solutions to exercises

Chapter 4:

Examples from the chapter

Solutions to exercises

Chapter 5:

Examples from the chapter

Solutions to exercises

Chapter 6:

Examples from the chapter

Solutions to exercises

Chapter 7:

Examples from the chapter

Solutions to exercises

Chapter 8:

Examples from the chapter

Solutions to exercises

Chapter 9:

Examples from the chapter

Solutions to exercises

Chapter 10:

Examples from the chapter

Solutions to exercises

Chapter 11:

Examples from the chapter

Solutions to exercises

Chapter 12:

Examples from the chapter

Solutions to exercises

Chapter 13:

Examples from the chapter

Solutions to exercises

Chapter 14:

Examples from the chapter

Solutions to exercises

If you want to run these notebooks on your own computer, you can download them individually from GitHub or download the entire repository in a Zip file.

I developed this book using Anaconda, which is a free Python distribution that includes all the packages you'll need to run the code (and lots more). I found Anaconda easy to install. By default it does a user-level installation, so you don't need administrative privileges. You can download it here.

探索相关项目