r/statistics • u/guna1o0 • May 31 '25
Discussion [D] Help choosing a book for learning bayesian statistics in python
I'm trying to decide which book to purchase to learn bayesian statistics with a focus on Python. After some research, I have narrowed it down to the following options:
Bayesian Modeling and Computation in Python
Bayesian Methods for Hackers
Statistical Rethinking (I’m keeping this as a last option since the examples are in R, and I prefer Python.)
My goal is to get a solid practical understanding of Bayesian modeling I have a background in data science and statistics but limited experience with Bayesian methods.
Which one would you recommend, and why? Also open to other suggestions if there’s a better resource I’ve missed. Thanks!
Update: ordered statistics rethinking. Will share the feedback once i finish the book. Thanks everyone for the inputs.
3
u/corote_com_dolly May 31 '25
The examples for Statistical Rethinking are all translated in Python
1
u/guna1o0 May 31 '25
can you elaborate more??
where it is available?
6
u/Budget-Puppy May 31 '25
somebody also posted the link, go to https://xcelab.net/rm/ and scroll down to the bottom where it lists the various languages that it’s been translated to
9
u/AllenDowney May 31 '25 edited Jun 02 '25
"You might like Think Bayes," said the author.
→ More replies (1)
9
u/varwave Jun 01 '25
As others of said BDA is great. I’ve used it as a reference
My question for you is why stay with Python? Python is generally my go to language, but professionally I’m equal parts software developer and applied statistician. It’s the best tool for most tasks. Most data science applications are frequentist methods.
Most true statisticians primarily use R and SAS. This is especially true is biostatistics, where there’s a lot of active research using Bayesian statistics. I’ve found statsmodels to be limited compared to base R and that’s not including all the packages on CRAN
→ More replies (1)
3
u/Smallz1107 Jun 01 '25
Class at UChi: https://github.com/aschein/stat_348_2025. I’ll suggest using PyTorch and implementing algos/models yourself but you can also look at libraries which already have things implemented https://docs.scipy.org/doc/scipy/reference/stats.html
→ More replies (1)
0
May 31 '25
[deleted]
1
u/guna1o0 May 31 '25
I believe i have a strong foundation in statistics and mathematics because I completed my master’s in data science, where I learned a substantial amount of both subjects. ill consider BDA 3. thanks for the suggestion.
0
May 31 '25
[deleted]
1
u/guna1o0 May 31 '25
yeah i think i can grasp concepts from statistical rethinking through some pdf or author's youtube channel. therefore im planning to purchase BDA3.
18
u/Ordoliberal May 31 '25
Statistical rethinking is done in an R wrapper around STAN iirc and so you can use pystan. A lot of the examples have been ported already as well from what I found with a quick google search:
https://vincentarelbundock.github.io/rethinking2/
I would take statistical rethinking over the others because professor McElreath is an excellent writer and communicator and you can port these lessons over to python relatively easily.