markdregan/Bayesian-Modelling-in-Python
markdregan/Bayesian-Modelling-in-Python has 2,501 GitHub stars and 402 forks. GitHot measured -1 stars in 24 hours. Last checked 2026-11-08 19:59 UTC. Last push 2017-04-29.
A python tutorial on bayesian modeling techniques (PyMC3)
측정된 스타 증가
- in 24h
- -1
- in 7 days
- 기록 수집 중
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalBayesian Modelling in Python

Welcome to "Bayesian Modelling in Python" - a tutorial for those interested in learning how to apply bayesian modelling techniques in python (PYMC3). This tutorial doesn't aim to be a bayesian statistics tutorial - but rather a programming cookbook for those who understand the fundamental of bayesian statistics and want to learn how to build bayesian models using python. The tutorial sections and topics can be seen below.
Contents
-
- Motivation for learning bayesian statistics
- Loading and parsing Hangout chat data
Section 1: Estimating model parameters
- Frequentist technique for estimating parameters of a poisson model (Optimization routine)
- Bayesian technique for estimating parameters of a poisson model (MCMC)
Section 2: Model checking & comparison
- Posterior predictive check
- Bayes factor
Section 3: Hierarchal modeling
- Model pooling (separate models)
- Partial pooling (hierarchal models)
- Shrinkage effect of partial pooling
Section 4: Bayesian regression
- Bayesian fixed effects poisson regression
- Bayesian mixed effects poisson regression
Section 5: Bayesian survival analysis
- Survival model theory
- Cox proportional hazard model
- Aalen's additive hazard model
Section 6: Bayesian A/B tests
- Bayesian test of proportions
- Bayesian t-test (BEST)
Contributions
- All contributions are more than welcome. They can be minor (spelling, better explanations, improved code/charts) or major (contribute a full section).
- If you would like to contribute, please create a pull request in GitHub. Happy to discuss ideas before you begin working on the addition.
- I would especially welcome any contributions that address: survival analysis, mixture models, time series models or A/B experiments.
- If you're not familiar with GitHub - please email me at [email protected].
Motivation for learning bayesian statistics
Statistics is a topic that never resonated with me throughout university. The frequentist techniques that we were taught (p-values etc) felt contrived and ultimately I turned my back on statistics as a topic that I wasn't interested in.
That was until I stumbled upon Bayesian statistics - a branch to statistics quite different from the traditional frequentist statistics that most universities teach. I was inspired by a number of different publications, blogs & videos that I would highly recommend any newbies to bayesian stats to begin with. They include:
- Doing Bayesian Data Analysis by John Kruschke
- Python port of John Kruschke's examples by Osvaldo Martin
- Bayesian Methods for Hackers provided me with a great source of inspiration to learn bayesian stats. In recognition of this influence, I've adopted the same visual styles as BMH.
- While My MCMC Gently Samples blog by Thomas Wiecki
- Healthy Algorithms blog by Abraham Flaxman
- Scipy Tutorial 2014 by Chris Fonnesbeck
I created this tutorial in the hope that others find it useful and it helps them learn Bayesian techniques just like the above resources helped me. I hope you find it useful and I'd welcome any corrections/comments/contributions from the community.
Note
This tutorial is actively being worked on. I'm keen to get feedback and welcome ideas/contributions.
관련 프로젝트 살펴보기
sindresorhus/awesome
😎 온갖 흥미로운 주제에 관한 Awesome 목록 [참고: 기존 풀 리퀘스트를 따라잡을 여유가 생길 때까지 풀 리퀘스트가 일시적으로 비활성화되어 있습니다]
533,998 스타EbookFoundation/free-programming-books
:books: 무료로 이용할 수 있는 프로그래밍 도서
401,321 스타nilbuild/developer-roadmap
개발자의 커리어 성장을 돕는 인터랙티브 로드맵, 가이드 및 기타 교육 콘텐츠.
371,581 스타vinta/awesome-python
“Python으로 X를 하고 싶은데, 어떤 도구를 써야 할까?”에 답하는 결정판 목록.
333,492 스타