Book Image

Bayesian Analysis with Python

Book Image

Bayesian Analysis with Python

Overview of this book

The purpose of this book is to teach the main concepts of Bayesian data analysis. We will learn how to effectively use PyMC3, a Python library for probabilistic programming, to perform Bayesian parameter estimation, to check models and validate them. This book begins presenting the key concepts of the Bayesian framework and the main advantages of this approach from a practical point of view. Moving on, we will explore the power and flexibility of generalized linear models and how to adapt them to a wide array of problems, including regression and classification. We will also look into mixture models and clustering data, and we will finish with advanced topics like non-parametrics models and Gaussian processes. With the help of Python and PyMC3 you will learn to implement, check and expand Bayesian models to solve data analysis problems.
Table of Contents (15 chapters)
Bayesian Analysis with Python
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Nuisance parameters and marginalized distributions


While almost any interesting model is multi-parametric, it is also true that not all the parameters we need in order to build a model are of direct interest to us. Sometimes we need to add a parameter just to build the model, even when we do not really care about this parameter. It may happen that we need to estimate the mean value of a Gaussian distribution to answer an important question we have. For such a model, and unless we know the value of the standard deviation, we should also estimate it even if we do not care about it. Parameters necessary to build a model but not interesting by themselves are known as nuisance parameters. Under the Bayesian paradigm, any unknown quantity is treated in the same way, so whether a parameter is or is not a nuisance parameter is more related to our questions than to the parameter itself, the model, or the inference process.

At this point, you may think that having to build a model with parameters that...