按年被提到
20132015 · 5 次2026
开源书›机器学习与 AI·No.67

Probabilistic Programming and Bayesian Methods for Hackers

给程序员的贝叶斯方法
Cameron Davidson-Pilon

用 Python 和 PyMC 代码讲贝叶斯推断,先写代码再补数学

免费阅读 ↗
被推荐 · 24 人首次 2013-02-08 · 最近 2025-06-22许可证 MIT
24不同的人
23活跃月份
11有推荐的月份
25讨论串

Cameron Davidson-Pilon 以 Jupyter(原 IPython)笔记本写成,用 PyMC 的代码例子讲概率编程和贝叶斯推断,包括先验、后验、MCMC、损失函数和 A/B 测试等主题。读者可以下载笔记本,直接运行和修改单元格。和偏重数学推导的教材不同,它先给直观的代码,再补理论,理论深度有限,也不是完整的数据科学入门。

HN 为什么推荐它

HN 上的人推荐它,是因为免费、能动手运行代码、读起来有趣,适合先建立直觉;也有人提醒它理论讲得不深,不能当数据科学基础课。

难度 3 / 5约 25 小时开放许可
适合谁

会 Python、想用代码学贝叶斯统计的人

读之前最好知道
1Python
2基础概率与统计

怎么读

由 Claude 根据这本书和 HN 上的说法整理,可能有错
  1. 1把仓库里的笔记本下载下来,在本地边读边运行
  2. 2先读前几章建立贝叶斯直觉,再看后面的应用
  3. 3需要严格理论时,配合 MacKay 的《信息论、推断与学习算法》等教材
  4. 4改改例子里的数据和先验,观察后验怎么变

HN 书评

推荐在前,同类按时间 · 每本最多保留 20 条,统计用全部提及 · 作者本人贴的不算
强烈推荐teataster · 2020-01

“I highly recommend you [1] cause it's free, hands on and if you have solid stats will go fast and easy.”

强烈推荐:免费、动手,统计基础好的话学得很快
The Case for Bayesian Deep Learning原评论 ↗
强烈推荐stared · 2025-06

“I highly recommend David MacKay's "Information Theory, Inference and Learning Algorithms," as well as "Bayesian Methods for Hackers": Probabilistic Programming and Bayesian Methods for Hackers.”

强烈推荐它和 MacKay 的书,作为 p-value 的贝叶斯替代
P-Hacking in Startups原评论 ↗
推荐spitfire · 2013-04

“I took a quick look at your book and it looks excellent.”

称这本书看起来很棒
The Multi-Armed Bandit Problem原评论 ↗
推荐elsherbini · 2014-02

“Also want to mention that there are 7 completed chapters on the github repo. Seems like an amazing resource.”

称它是很棒的资源,仓库里已有 7 个完成的章节
Probabilistic Programming and Bayesian Methods for Hackers原评论 ↗
推荐shogunmike · 2015-05

“There are some great resources/books for Bayesian statistics and graphical models. I've listed them in (approximate) order of increasing difficulty/mathematical complexity:”

把它列入贝叶斯书单,难度居中
Ask HN: What are some good Machine Learning resources?原评论 ↗
推荐ims · 2015-06

“Cam Davidson-Pilon's "Bayesian Methods For Hackers" is a great resource. It's actually written as a group of IPython notebooks so you can actually download them and play with the cells”

推荐它,内容是可下载运行的 IPython notebooks
Computational Statistics in Python原评论 ↗
看全部 17 条 →
推荐mailshanx · 2015-09

“Here is a well deserved plug for Cam Davidson Pilon's excellent book called Bayesian Methods for Hackers: Probabilistic Programming and Bayesian Methods for Hackers”

力荐 Cam Davidson-Pilon 的这本贝叶斯方法好书
Stan: a probabilistic programming language原评论 ↗
推荐rankam · 2015-09

“I think it's a great resource for anyone wanting to explore Bayesian methods using Python.”

称它是用 Python 探索贝叶斯方法的好资源
Statistics for Hackers原评论 ↗
推荐petters · 2017-07

“Bayesian Methods for Hackers Probabilistic Programming and Bayesian Methods for Hackers is really fun. But it does not exactly teach the basics of data science.”

称它很有趣,但并不教数据科学基础
Lessons learned teaching data analysis with Python原评论 ↗
推荐antipaul · 2020-05

“Instead, I would suggest the following for learning Bayesian methods, especially given the HN crowd:”

建议学贝叶斯方法时参考这份书单
Introduction to Support Vector Machines in Machine Learning原评论 ↗
推荐nknealk · 2021-07

“I recommend Bayesian Methods for hackers [1]. It doesn't go too deep on theory but I feel like it's well written and has really good coded up examples”

推荐它:理论不深,但文笔好、代码示例实用
Ask HN: Literature for mathematical optimization?原评论 ↗
推荐fifilura · 2023-12

“when I looked A/B testing few years ago I started off with this book.”

称自己几年前是从这本书入门 A/B testing 的
Bayesians moving from defense to offense原评论 ↗
引用myth_drannon · 2014-03

“Written by the same guy who brought you Bayesian Methods for Hackers - Probabilistic Programming and Bayesian Methods for Hackers”

指出另一个项目的作者也写了 Bayesian Methods for Hackers
You've been added to the FBI's Ten Most Wanted List – how long will you survive?原评论 ↗
引用lovboat · 2015-11

“[Bayesian Methods for Hackers] fue para mí una gran fuente de inspiración para aprender estadística bayesiana.”

称它是自己学贝叶斯统计的重要灵感来源
A Python tutorial on Bayesian modeling techniques原评论 ↗
引用nickdavidhaynes · 2016-09

“being able to run+modify the code in a textbook is much more informative than simply reading the syntax (for example - Probabilistic Programming and Bayesian Methods for Hackers)”

拿它举例:能运行并修改教科书里的代码更有收获
R for Data Science原评论 ↗
引用xb · 2017-02

“I originally got on this topic when reading Bayesian Methods for Hackers [1].”

说自己是读它才接触到这个主题
What programming languages are used most on weekends?原评论 ↗
引用Mathnerd314 · 2024-07

“Haven't read it but I found Probabilistic Programming and Bayesian Methods for Hackers and that's probably going to be my coffee table reading for the next few days.”

没读过,但打算当作接下来几天的闲读
Taking my diabetes treatment into my own hands原评论 ↗
被提交为 story · 8 次