Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Modules supporting books by Allen Downey

Project Description

# ThinkX

This package contains support code for [books by Allen B. Downey]( It provides the following modules:

  • thinkbayes: Code for Think Bayes.
  • thinkstats2: Code for Think Stats, 2nd edition
  • thinkbayes2: Code for Think Bayes, 2nd edition, not yet published.
  • thinkdsp: Code for Think DSP
  • thinkplot: Plotting code used in all of the books, mostly wrapper functions for matplotlib.pyplot

thinkstats2 and thinkbayes2 are actually the same file, so you can import it by either name.

[This package is on PyPi](, so you should be able to install it by running the following on the command line:

pip install thinkx

And then you can import whichever modules you need like this:

import thinkplot import thinkdsp …

These modules are also distributed individually in the repositories for the books, but if you download them that way, you would not normally install them.

Tests for these modules are in the tests directory. If you discover a bug or want a new feature, an excellent way to report it is to add a test (which will presumably fail) and then send me a pull request. Of course, you are also welcome to submit a solution! Another good alternative is to create a new issue in this repository.

Release History

This version
History Node


History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(41.2 kB) Copy SHA256 Hash SHA256
Source None Apr 18, 2017

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting