Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

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.

Project details

Release history Release notifications

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
thinkx-1.1.3.tar.gz (41.2 kB) Copy SHA256 hash SHA256 Source None Apr 18, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page