Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Bayesian Analysis with Python. - Second Edition

You're reading from  Bayesian Analysis with Python. - Second Edition

Product type Book
Published in Dec 2018
Publisher Packt
ISBN-13 9781789341652
Pages 356 pages
Edition 2nd Edition
Languages
Author (1):
Osvaldo Martin Osvaldo Martin
Profile icon Osvaldo Martin

Table of Contents (11) Chapters

Preface 1. Thinking Probabilistically 2. Programming Probabilistically 3. Modeling with Linear Regression 4. Generalizing Linear Models 5. Model Comparison 6. Mixture Models 7. Gaussian Processes 8. Inference Engines 9. Where To Go Next?
10. Other Books You May Enjoy

Exercises

  1. Check the following definition of a probabilistic model. Identify the likelihood, the prior, and the posterior:
  1. For the model in exercise 1, how many parameters have the posterior? In other words, how many dimensions does it have?
  2. Write down Bayes' theorem for the model in exercise 1.
  1. Check the following model. Identify the linear model and identify the likelihood. How many parameters does the posterior have?
  1. For the model in exercise 1, assume that you have a dataset with 57 data points coming from a Gaussian with a mean of 4 and a standard deviation of 0.5. Using PyMC3, compute:
    • The posterior distribution
    • The prior distribution
    • The posterior predictive distribution
    • The prior predictive distribution

Tip: Besides pm.sample(), PyMC3 has other functions to compute samples.

  1. Execute model_g using NUTS (the default sampler) and then...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}