~/talk

Clusterf*ck: A Practical Guide to Bayesian Hierarchical Modeling in PyMC3

Talkat PyData London 2022 · 2022-06-17..06-19· [machine-learning, python]
links:none on file
slides:none on file

Predicts Kenyan maize yield with PyMC3 using a log transform (added 0.1) on 110,789 rows, comparing pooled, unpooled (30 counties × 2 thetas = 60 posteriors) and hierarchical models with 30 varying intercepts and a common slope. Finds hybrid seeds have posterior mean b ≈ 0.44 (exp → ×1.6 effect) with a narrow 94% HDI, shows unpooled estimates flip sign or blow up under small samples, and demonstrates posterior predictive checks and shrinkage that meaningfully improve stability.

AI-written summary · about

  1. 0:00Intro
  2. 2:17Real-world example: predicting yield
  3. 4:54How do we address hierarchical data?
  4. 6:57Use-case with real world data
  5. 8:13Bayesian framework
  6. 9:35Bayesian data analysis an overview
  7. 12:53Code example
  8. 13:46Step 1 - setting up the probability model
  9. 14:20Choosing distributions
  10. 15:42Data transformations
  11. 16:13Setting priors
  12. 22:05Step 2&3 - interpret the posterior and evaluate model fit
  13. 24:11Step 1 - setting up the full probabilty model
  14. 26:14Step 2 - Interpret the posterior distribution
  15. 27:57Comparison of the three methods
  16. 29:22What else can we do?
  17. 30:37References
  18. 31:43Questions?
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.