Posts in tutorial

Streaming variational inference on high-frequency tick data

Exchanges publish per-trade archives; Binance, for instance, distributes aggregate trades as daily and monthly files at data.binance.vision. Widen a pull across symbols and months and the feature matrix can outgrow the RAM of an ordinary workstation; at that point in-memory minibatching stops being an option. PyMC’s Minibatch() randomly slices tensor inputs; it is not itself a disk-backed reader, so it cannot help once the array no longer fits. This notebook fits a hierarchical hurdle–Student-t model of next-event price moves by streaming minibatches from disk with pymc-extras’ DataLoader, on 300,000 synthetic rows that are generated inside the notebook. It tries to teach three things:

Read more ...


Forecasting Hurricane Trajectories with State Space Models

Duplicate implicit target name: “forecasting hurricane trajectories with state space models”.

Read more ...


The prevalence of malaria in the Gambia

Duplicate implicit target name: “the prevalence of malaria in the gambia”.

Read more ...


The Besag-York-Mollie Model for Spatial Data

This notebook uses libraries that are not PyMC dependencies and therefore need to be installed specifically to run this notebook. Open the dropdown below for extra guidance.

Read more ...


Conditional Autoregressive (CAR) Models for Spatial Data

This notebook uses libraries that are not PyMC dependencies and therefore need to be installed specifically to run this notebook. Open the dropdown below for extra guidance.

Read more ...


NBA Foul Analysis with Item Response Theory

This tutorial shows an application of Bayesian Item Response Theory [Fox, 2010] to NBA basketball foul calls data using PyMC. Based on Austin Rochford’s blogpost NBA Foul Calls and Bayesian Item Response Theory.

Read more ...


Introduction to Bayesian A/B Testing

This notebook demonstrates how to implement a Bayesian analysis of an A/B test. We implement the models discussed in VWO’s Bayesian A/B Testing Whitepaper [Stucchio, 2015], and discuss the effect of different prior choices for these models. This notebook does not discuss other related topics like how to choose a prior, early stopping, and power analysis.

Read more ...