Think Stats 2e

by Allen B. Downey.

Order Think Stats from

Download this book in PDF.

Read this book online.

Code examples and solutions are available from this GitHub repository.

Read the related blog Probably Overthinking It.


Think Stats is an introduction to Probability and Statistics 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.