Think Bayes: Bayesian Statistics in Python

Front Cover
"O'Reilly Media, Inc.", Sep 12, 2013 - Computers - 214 pages

If you know how to program with Python and also know a little about probability, you’re ready to tackle Bayesian statistics. With this book, you'll learn how to solve statistical problems with Python code instead of mathematical notation, and use discrete probability distributions instead of continuous mathematics. Once you get the math out of the way, the Bayesian fundamentals will become clearer, and you’ll begin to apply these techniques to real-world problems.

Bayesian statistical methods are becoming more common and more important, but not many resources are available to help beginners. Based on undergraduate classes taught by author Allen Downey, this book’s computational approach helps you get a solid start.

  • Use your existing programming skills to learn and understand Bayesian statistics
  • Work with problems involving estimation, prediction, decision analysis, evidence, and hypothesis testing
  • Get started with simple examples, using coins, M&Ms, Dungeons & Dragons dice, paintball, and hockey
  • Learn computational methods for solving real-world problems, such as interpreting SAT scores, simulating kidney tumors, and modeling the human microbiome.
 

Contents

Chapter 1 Bayess Theorem
1
Chapter 2 Computational Statistics
11
Chapter 3 Estimation
19
Chapter 4 More Estimation
31
Chapter 5 Odds and Addends
41
Chapter 6 Decision Analysis
53
Chapter 7 Prediction
67
Chapter 8 Observer Bias
79
Chapter 10 Approximate Bayesian Computation
107
Chapter 11 Hypothesis Testing
123
Chapter 12 Evidence
129
Chapter 13 Simulation
143
Chapter 14 A Hierarchical Model
157
Chapter 15 Dealing with Dimensions
165
Index
191
About the Author
195

Chapter 9 Two Dimensions
95

Other editions - View all

Common terms and phrases

About the author (2013)

Allen Downey is a Professor of Computer Science at the Olin College of Engineering. He has taught computer science at Wellesley College, Colby College and U.C. Berkeley. He has a Ph.D. in Computer Science from U.C. Berkeley and Master’s and Bachelor’s degrees from MIT.

Bibliographic information