Bayesian data analysis, one real problem at a time.

139 worked examples and 15 challenges, each a complete analysis in PyMC, almost all of public datasets. Every page shows the model, the code, the checks that passed and the ones that did not, and what the posterior means for the question that was asked.

Start with the workflow Find a model for your problem Test yourself

Four chains of Hamiltonian Monte Carlo

Four chains of Hamiltonian Monte Carlo explore a curved posterior. Along the top, a histogram of their draws fills in toward the exact marginal, dashed. Click the plot to start all four chains from that point.

Why model this way

A Bayesian analysis returns a distribution over everything unknown, and each observation sharpens it.

An unknown rate starts from a prior and is updated by every success and failure observed.

Uncertainty is the result

A Bayesian analysis returns a distribution over everything unknown, $p(\theta \mid y) \propto p(y \mid \theta)\,p(\theta)$. Any quantity you compute from the parameters — a forecast, a ranking, a probability that a threshold is crossed — comes with its uncertainty attached, without a separate derivation.

A model is a story about the data

Instead of choosing a test from a menu, you write down how the data could have been generated: censoring, missingness, measurement error, groups, space, time, physics. The same language covers a regression and a gravitational-wave ringdown, so you learn one way of thinking, not a list of procedures.

Checking is part of the method

Priors are simulated before they are trusted, samplers are diagnosed, and fitted models are asked to reproduce the data. When a model fails, these pages say so and show the repair. Seeing the failures is how you learn to spot them in your own work.

The workflow every page follows

The examples are not a tour of an API. Each one is a complete iteration of the Bayesian workflow of Gelman et al. (2020): a question, a generative model, checks before and after fitting, and a conclusion stated on the scale the question was asked in.

  1. Question

    What decision or claim will the model inform?

    See E01.

  2. Generative model

    A story of how the data came to be, written as distributions.

    See E01.

  3. Prior predictive

    Simulate before fitting: do the priors claim anything absurd?

    See D03.

  4. Inference

    Sample the posterior, or approximate it with care.

    See E12.

  5. Diagnostics

    Did the computation work? Divergences, R-hat, effective sample size.

    See E02.

  6. Posterior predictive

    Can the fitted model reproduce the features of the data you care about?

    See E03.

  7. Decision

    Carry the whole posterior through to the quantity someone acts on.

    See E33.

Every failure is kept in: divergent chains, miscalibrated intervals, wrong answers.

Three ways in

New to Bayesian modelling

Read the foundations in order. They assume some Python and some regression, nothing more.

  1. The Bayesian workflow
  2. Hierarchical models
  3. GLMs and model comparison
  4. An analysis end to end

A practitioner with a problem

Start from your data, not from a method. The guide maps outcome types, dependence structures and questions to the example that treats them.

Choose a model

Ready to test yourself

15 open-ended problems on real data. The brief says what to deliver, never how; the first model you try will break, and finding out why is the exercise.

See the challenges

NudgeApproachSkeleton

Recently added

Newest first. The latest additions are in Causal inference; Inference and computation; and Latent groups, topics and partitions.

E137When the holdout leaks: ad lift bounds without monotonicity via the cross-world correlation (Tian, Liu, Liu & Wu 2026)Simulated randomised video ad test on 1,000,000 users with two-sided noncompliance, 3% defiers and a known truth; survey-sized replay with 5,000 per armprincipal strata, Wald/IV ratio, monotonicity, cross-world correlation, Balke-Pearl bounds, sharp ATE and LATE bounds, linear programming over response types, Dirichlet-multinomial, PyTensor deterministics, sensitivity analysis, latent response-type modelE136What two logs agree on: learning proxies for a hidden confounder, and a Bayesian proximal modelSimulated with a known truth: 3,000 customers in a targeted display campaign plus a 10,000-customer unlabeled pool, each with a 150-column browsing log and a 150-column app log built from hidden intent and loyalty, a harmless shared factor, covariates and dialled log-specific styleproximal causal inference, X-conditional ridge CCA as closed-form contrastive proxy learning (Hong, Gao & Liu 2026), PCA proxies losing the confounder under style, held-out canonical correlations to choose ridge and proxy count, …E135Where spend stops paying: shape-constrained confidence bands for a confounded dose-response curveSimulated: 2,000 market-weeks of planned media spend and sales with a known saturating curve, after the simulation design of Doss & VandenBerg (2026, arXiv 2611.33440) with ten times stronger confoundingcross-fitted doubly robust pseudo-outcomes for a continuous treatment (Kennedy et al.), in-fold dependence and its eta variance term, one-sided-kernel monotone simultaneous bands with a multiscale penalty, …E134A trust dial for observational data: Causal-ICM data fusion of a small trial and a big confounded studySimulated with a known effect: a 50-store randomised test and a 5,000-store observational record confounded by unmeasured local demand, after the simulation design of Dimitriou et al. (2026, arXiv 2611.37514)multi-task (intrinsic coregionalisation) Gaussian processes, the prior correlation as a sensitivity parameter, the paper's closed-form fusion posterior, Hilbert-space GP basis checked against the exact kernel, …E133Outliers you didn't model: the beta-divergence posterior, a Huber loss, and what each of them costsSimulated sensor readings and calibration lines with a known share of contamination of four kinds; international telephone calls from Belgium 1950-1973 and the star cluster CYG OB1 (Rousseeuw & Leroy 1987, R package robustbase, GPL-2 or GPL-3)contamination mixture, Student-t, beta-divergence posterior with its Gaussian closed form, Huber-loss Gibbs posterior, learning rate by sandwich matching, invariance to units, efficiency on clean data against beta, beta by the Hyvärinen score, …E132Bag your posterior: BayesBag, the unit you resample, and what bagging cannot repairA simulated discount test in 40 stores with a known answer, in three worlds; Capital Bikeshare daily counts 2011-2012 (bike_day, Fanaee-T & Gama 2013, UCI)BayesBag from closed-form posteriors with bootstrap weights, resampling clusters against rows, coverage against sample size, the mismatch index and a tuned bootstrap size (Huggins & Miller), …E131Trust the likelihood a little less: power posteriors, three ways to set the power, and when to fix the model insteadSimulated calibration lines with a known slope under two kinds of unmodelled noise; Hertzsprung-Russell diagram of the star cluster CYG OB1 (Rousseeuw & Leroy 1987, R package robustbase, GPL-2 or GPL-3): 47 stars, four documented giantspower posterior in closed form and with pm.Potential, coverage against the power over thousands of datasets, the sandwich ratio, SafeBayes, information matching (Lyddon, Holmes & Walker), matching a bootstrap spread, the loss-likelihood bootstrap, …E130Don't let the bad part leak: cutting feedback, the cut posterior, and a dial between cut and fullHPV prevalence and cervical cancer incidence in 13 populations (Maucort-Boulch, Franceschi & Plummer 2008, as used by Plummer 2015; from the R package aistats2020smi, MIT); a simulated twin with known prevalences in three worldsfull joint posterior against two-stage plug-in, the cut posterior by multiple imputation with compiled-once nutpie refits, why deleting the feedback term in one sampler is not the cut, semi-modular inference with a dial chosen by the ELPD of the trusted data, …E129Integrate it out: summing labels, filtering states and a Laplace approximation inside the modelSimulated, with a known truth: 20,000 particle sizes from three populations, a 20,160-step series seen through noise, 2,000 counts on a latent log-intensity; British coal-mining disasters per year, 1851-1962 (coal, Jarrett 1979)pymc_extras.marginalize and recovering labels, compound NUTS + Gibbs against NormalMixture, a Kalman likelihood three ways (statespace, pytensor.scan, jax.lax.scan through wrap_jax), a banded smoother, …E128A hundred thousand sensors: three ways to shrink a Gaussian process, and what each one throws awayTwo simulated Matérn 3/2 temperature fields on a 100 km square with a known truth, each read by 100,000 noisy sensors; 2,535 Argo float profiles of July and August 2025, North Atlantic (argo_natl_t100, Argo GDAC, CC BY 4.0)circulant embedding for a truth with a stated covariance, pm.gp.HSGP.prior_linearized reduced to sufficient statistics, a Vecchia likelihood in JAX with batched Cholesky factors and a block-wise custom_vjp through wrap_jax, Titsias's collapsed bound, …E127Split, sample, stitch: divide-and-conquer MCMC, and the number of pieces at which the stitching failsSimulated flights, stations and turnaround times with a known truth and a computable full-data posterior; BTS Reporting Carrier On-Time Performance, January 2024 (547,271 flights, the re-coded table of E87; no licence or terms are stated for the source table)prior tempered to the 1/K power against the likelihood raised to the power K, consensus Monte Carlo, the parametric Gaussian product, the Wasserstein barycentre by quantile averaging and by assignment problems, the median posterior with Weiszfeld weights, …E126Ten million rows, one thousand cells: make the likelihood smaller before making the sampler fasterTen million simulated flights with a known truth, generated in chunks; BTS Reporting Carrier On-Time Performance, January 2024 (547,271 flights, the re-coded table of E87; no licence or terms are stated for the source table)binomial cells for a Bernoulli regression, Gaussian sufficient statistics accumulated chunk by chunk, rows against summaries on the same data, fit time against the number of rows, banding a continuous covariate with the bias measured, …E125A million rows on a laptop: minibatch ADVI, Pathfinder and Laplace against NUTSOne million simulated flights with a known truth, generated in chunks; BTS Reporting Carrier On-Time Performance, January 2024 (547,271 flights, the re-coded table of E87; no licence or terms are stated for the source table)pm.Minibatch with total_size, mean-field and full-rank ADVI with a decaying Adam rate, fit_laplace with exact second derivatives, fit_pathfinder, Newton passes plus NUTS on a quadratic likelihood as a full-data reference, …E124Same product twice? Linking two shops' catalogues, and what the links do to a price comparisonAbt-Buy entity-resolution benchmark, Database Group of the University of Leipzig (Köpcke, Thor & Rahm 2010; CC BY 4.0): 1,081 + 1,092 product listings, 1,097 true links held outFellegi-Sunter latent-class mixtures on 39 agreement patterns via pm.Potential, a three-class fix for conditional dependence, a Numba Gibbs and Metropolis sampler over one-to-one matchings (after Sadinle 2017), calibration against held-out links, …E123What did the wolf eat? Four models between a tuft of hair and a diet, tested on wolves whose meals were written downCaptive feeding trial of ten gray wolves (Derbridge et al. 2015, PLoS ONE 10(3): e0119940, CC BY): 48 hair samples, 71 prey tissue samples, the feeding recordstable-isotope mixing model with nuisance parameters carried through, replicate-based Student-t measurement model, hierarchical source signatures (batches partly pooled), exact posterior on a simplex grid against NUTS, …E122Why do three buses arrive together? Four models, one holding rule, and the path between themMBTA open data (CC0): every recorded pass of route 111 at ten timepoints, Sep-Nov 2024 (326,250 readings), and Fall 2024 average boardings per stoplognormal run times with noise tied to the bus ahead (a correlation that fades with the gap), a natural experiment on segments with and without boarding, dwell as seconds per boarding rider with bunches sharing riders, …E121Did they cheat? Five models between a chess game and an accusationLichess open database (CC0): rated blitz games of July-December 2014 with Stockfish evaluations; 2,541 coded accounts (all 541 marked for a terms-of-service violation, 2,000 others), 1.48 million results, 56,540 analysed gameschained models, random-walk rating in PyMC on a subset plus a batched Newton smoother, held-out log scores against the platform's rating, binomial move-quality regression on counted cells with position difficulty, …E120How many agents on the phones? Five models, one staffing decision, and the path between them"Anonymous Bank" call-centre data, Technion SEE Center (Guedj & Mandelbaum 2000; free to use with acknowledgement): 440,849 calls of 1999a ladder of count models judged by purpose-built predictive checks, day effects and day tilts, a weighted-likelihood lognormal mixture on 317,000 calls, censored survival with a piecewise hazard, a Numba discrete-event queue simulator replayed on real days, …E119Would a more centrist or a more progressive nominee have done better? What the data can and cannot sayE94's certified results and FiveThirtyEight partisan lean, E118's dated lists and build log, the 2018 CCES candidate placements (no new data)a counterfactual estimand with potential outcomes and why a null on poll error does not bear on it, a causal graph, a data audit, a Student-t regression of the margin with lean and incumbency, win probability with the noise integrated exactly, …E118Did ideology move candidates off their polls? Opponents, party money and labels given after the factE94's polls, results, lean and receipts; caucus rosters and endorsement lists from Wikipedia revisions and Internet Archive captures dated before each election (CC BY-SA 4.0; facts only), DW-NOMINATE from Voteview before and after (Lewis et al.), FEC independent expenditures by spender and party direct spending (public domain), uncertified 2026 counts from Wikipedia as of 2026-11-11poll error as an outcome with noise by number of polls, a shared polling error per cycle and a sponsor effect, a prior predictive check against 1998-2016, three variances sampled as a total and Dirichlet shares, …E117Would that headline finding replicate? The publication filter, 76 repeated psychology experiments and a forecast that has to earn trustReproducibility Project: Psychology master file (OSC 2015, CC0 1.0): 97 pairs, 76 one-df claimed effectsnull/real mixture with effects integrated out, closed-form renormalised step-selection likelihood checked by quadrature, one z-scale for numerator and normaliser, NumPy prior predictive of a filtered sample, …E116Is my toddler on track? First words, item response theory and "you are here"Wordbank CDI Words & Sentences, American English (Frank et al. 2017; CC BY 4.0, all 18 datasets CC BY): 9,537 checklists x 680 words, ages 16-30 months2PL item response model, weighted-score marginal likelihood, adaptive Gauss-Hermite quadrature vs a fixed grid, zero-sum section means against a location ridge, two-stage plug-in fit, skew-normal norms with orthogonal month deviations, …E115The last bag of fertiliser: 74 years of Broadbalk wheat and the weather of the yearBroadbalk winter wheat grain, Rothamsted 1852-1925 (Lawes & Gilbert via Andrews & Herzberg 1985 and agridat, MIT; treatments hand-coded from the e-RA): 16 strips, 1,102 strip-yearsnonlinear Mitscherlich dose response, latent AR(1) year potential through its exact lower factor, soil-supply run-down and manure build-up, literal vs partial Liebig, zero-sum strip effects for an unreplicated design, a spread check of replayed increments, …E114Is this fish being overfished? Eighteen stocks as savings accounts, the biology we bring, and a cod collapse that catches alone cannot seeRAM Legacy Stock Assessment Database v4.44 (22 stocks, 1,278 stock-years; CC BY 4.0) with FishBase resilienceSchaefer surplus production as a nonlinear state-space model, centred free states vs a non-centred scan, smooth floor and feasibility penalty, CMSY life-history priors with family effects, shared vs per-stock process noise, …E113Is the 100-year flood still a 100-year flood? Two centuries of Susquehanna peaks and the floods nobody gaugedUSGS NWIS annual peak-flow files, 12 gauges (1,383 rows; 1,351 gauged and 20 historic peaks used; public domain)log-Pearson III in PyTensor, a wrong library gradient replaced by quadrature, a support clamp that rewards the impossible, historic floods as censored data, latent perception threshold summed out, neighbour checks of "nothing above the mark", …E112How many children in your county are poor? Small-area estimates and a surprise mapUS Census ACS 5-year B17020, 2019-23 and 2014-18; SAIPE 2023; USDA ERS RUCC 2023 (US federal works, public domain): 3,142 countiesFay-Herriot from scratch, logit classic model, mixed predictive checks, two independent surveys as a test of margins of error, generalised variance functions with published variances as Gamma data, censored zeros with a split likelihood, …E111The path we were on: years of life Europe lost to COVID, and whether it came backEurostat deaths, populations and life expectancy by age (demo_magec, demo_pjan, demo_mlexpec), EU27 + IS, NO, CH, 2000-2024 (CC BY 4.0)abridged life table checked against Eurostat, census breaks measured by age, Lee-Carter by SVD against a Bayesian negative-binomial version, pooled softmax sensitivities with zero-sum rows, an unidentified level shown failing, likelihood timing, …E110Is the bar the same for everyone? The threshold test on Raleigh traffic stopsStanford Open Policing Project, Raleigh NC 2002-2015 (ODC-By 1.0): 856,400 stops, 214 officersoutcome test and infra-marginality, latent threshold (signal-detection) model, a ridge of exact solutions, hierarchical officers with closed-form and Gauss-Legendre likelihoods, a level ridge vs well-mixed gaps, prior predictive and lower-prior refits, …E109Counting the uncounted: how many victims did every list miss?Kosovo 1999 capture histories (Ball et al. 2002, via LCMCR 0.4.14, GPL >= 2) and UK 2013 modern-slavery lists (Silverman 2014, via SparseMSE 2.0.1, GPL >= 2); Netherlands, New Orleans and a western US site for practiceLincoln-Petersen and dependence bias, Poisson log-linear models of an incomplete 2^K table, regularised against plain horseshoe, prior-family and main-effect-prior sensitivity, latent-class MSE with classes summed out and label switching, …E108One day is not your diet: usual salt intake from two 24-hour recallsNHANES 2017-2018 dietary recalls, demographics and alcohol questionnaire (CDC/NCHS, US federal work, public domain): 4,863 adults, 9,102 recall daysusual intake as a latent quantity, replicate-measurement deconvolution (ISU/NCI), Box-Cox scale and Gauss-Hermite back-transform, a funnel and a mixed centred/non-centred fix, prior swap, one-day and two-day predictive checks, …E107What a hidden confounder can do: sensitivity analysis on the job-training benchmarkNSW experiment (Dehejia & Wahba 1999 subset of LaLonde 1986: 185 trainees, 260 randomised controls) and LaLonde's CPS comparison sample (15,992 men), via causaldata (MIT); only the planted confounders are simulateda covariate ladder graded by an experiment, hiding a measured confounder, a within-study zero-effect test, omitted-variable bias in partial R2 checked by planting confounders of exact strength on real rows, balance after propensity matching, robustness values, …E106When to spend before a film's release: timing P&A for box office returnsWikidata (CC0): release calendar, box office, series and genres of 206 US films 2015-2019; Wikimedia pageviews (CC0) for each article and its redirects, 16 weeks before to 8 after release; simulated spend, tracking, screens and grosses in ten marketsweeks-to-release alignment and budget selection across films, adstock and the identification of carryover from one opening against weekly tracking by market, randomised timing tests at film and market level, screens as a mediator and the bad control, …E105The on-sale rush and when to spend: instant sell-outs and the timing of mediaWikimedia pageviews (CC0) around three tour on-sales, as the real shape of the rush in attention; Hotel Booking Demand (Antonio, de Almeida & Nunes 2019, CC BY 4.0): 666 events, 25,429 real bookings over 39 weeks as the late build; simulated windows, pool, capacity, queue, spend and a lead-time-dependent effecta third clock (weeks since the on-sale) and its identification from varying windows, a finite-pool model with a rush level per event, fast censored Poisson panels over simulated worlds, instant sell-outs and an external measurement of latent demand, …E104Spend before the sell-out: media, bookings and the two clocks of a capacity-limited eventHotel Booking Demand (Antonio, de Almeida & Nunes 2019, CC BY 4.0): 976 arrival dates x hotel as events, 28,180 real kept individual bookings over 0-118 days of lead time as the no-ad baseline; simulated spend, effect and room limitslead time against booking date (age-period-cohort), a recording gap found on the second clock, planting a known multiplicative effect on a real baseline, a sparse Poisson panel with fixed and random event effects over 27 simulated worlds, …E103A few holdouts for many campaigns: calibrating propensity estimates with a hierarchical model of their biasE101's Criteo sample: the 45,100 control users' real features and no-ad visits, with simulated delivery for 720 campaigns and ghost-ad holdout surveys drawn from real rowsadditivity of the bias, a hierarchical bias model with covariates in PyMC, prior predictive checks, a funnel in tau and the marginal (effects integrated out) model, shrinkage and posterior predictive bias, calibrated against raw intervals, …E102Which way does the bias go? Hidden targeting, reach and the sign of a propensity estimateE101's Criteo sample: the 45,100 control users' real features and no-ad visits, with simulated exposurea placebo study on real rows, a hidden real feature as the confounder, a threshold model of ad delivery and the truncated-normal gap, retargeting, prospecting, suppression lists and ad avoiders, bias, overlap and effective sample size against reach, …E101Propensity scores in a brand lift study, graded by the experiment inside itCriteo Uplift Prediction Dataset v2.1 (Diemert et al. 2018, CC BY-NC-SA 4.0): a 300,000-user sample plus exact counts and sufficient statistics for all 13,979,592 usersone-sided noncompliance and the Wald estimate as a Bayesian principal-strata model, a balance check of the randomisation and regression adjustment from sufficient statistics, a Bayesian propensity model with a case-control intercept correction, overlap, …E100Acting on a noisy belief: an adaptive radiation surveySafecast bGeigie volunteer radiation logs around Iitate and Minamisoma, 2011-2013 (CC0), 301,693 readingscleaning duplicated citizen-science logs, decay correction, an HSGP field with trip effects and Student-t noise, predictive checks that catch trip noise, counterfactual replay that reveals one real reading per stop, UCB, …E99Which beacon to ping: range-only localisation on real radio logsCMU Plaza ultra-wideband range logs with odometry and GPS/INS truth (Djugash, Hamner & Roth 2009, via EPFL Infoscience), kept as a 0.95 MB extract of the two Plaza runsrange calibration against ground truth with offset, scale and ex-Gaussian NLOS mixture models, LOO and posterior predictive checks, PIT on a held-out run, a gyro drift the calibration run could not show, …E98Mixed-frequency sensor fusion on real-time data vintagesFRED/ALFRED real-time vintages of real GDP, real GDI, payrolls, industrial production, real retail sales and real personal income less transfers (St. Louis Fed)a monthly latent AR(1) path, Mariano-Murasawa aggregation of quarterly sensors, correlated GDP-GDI errors, a ragged edge and masked pandemic months as missing rows, integrating the path out with banded precision matrices, revision noise, …E97Separating sea-level rise from subsidence with three instrumentsPSMSL tide gauge 161 Galveston Pier 21 (1908-2025), NOAA LSA Gulf altimetry by mission (1992-2025), NGL GPS TXGA and GAL2 (1997-2025), NOAA 2022 sea-level scenariosan observation matrix whose rank changes by era, random-walk rates for ocean and land, mission offsets and antenna steps as parameters, a divergent gauge-only model and its fix, posterior correlation as a measure of identification, …E96Sensor fusion for a dead snow pillowUSDA NRCS SNOTEL University Camp (CO) and four neighbours, water years 2006-2025, and its snow course since 1938 (public domain, AWDB REST API)a state-space snow budget with four observation models, a Kalman filter inside pm.Potential, a latent density and gauge catch ratio, quick fixes as baselines, an eight-week backtest that exposes overconfidence and a slowly drifting sensor error as its fix, …E92Where should the next Argo floats go? An exact Gaussian process that did not earn its priceArgo temperature at 100 dbar, open North Atlantic 2023-2025, 40,343 profiles as anomalies from a local 2015-2022 climatology (Argo GDAC, SEANOE, CC BY 4.0) and Natural Earth coastlines, kept as a 1.1 MB table, a 1.3 MB summary and small JSON tables of a stored runa two-scale space-time Matern GP with westward propagation fitted exactly at n = 23,939, a blocked hand-coded gradient, Laplace with PSIS-weighted Sobol points and a NUTS audit of it in PyMC, a nugget at its prior edge, exact against local windows, …E95Election night: updating a frozen forecast as the races are calledE94's data and frozen 2026 forecast, and election-night race calls by the AP and the networks (hand-entered from their live pages)a race call as an interval on the margin with the race noise integrated out, importance reweighting of a frozen posterior and its effective sample size, the same update as a PyMC refit with a Potential, "too close to call" as data, a final margin as data, …E94Ragged information: polls, fundamentals and money in the US midtermsFEC results workbooks, candidate reports and independent expenditures 2016-2026 (public domain), FiveThirtyEight polls, partisan lean and poll errors (CC BY 4.0), MEDSL House returns, Wikipedia 2026 nominees, Cook PVI, race polls and aggregator averages as of 2026-11-02 (CC BY-SA 4.0)a midterm prior, a weekly reverse random walk with house effects and a shared polling error, the E40 rotation, fundamentals learned on earlier cycles only, state effects shared by House and Senate, backtests against aggregate-only, …E90Call it today or wait? Hospital thresholds, nowcasts and decision curvesRKI COVID-19 hospitalisations by reporting date and delay, 16 German states, winter 2021-22 (Robert Koch-Institut, CC BY 4.0, via the German COVID-19 Nowcast Hub), kept as a 0.6 MB summary of 7-day incidences and nowcasts and small JSON tables of a stored run; E38's triangletrue vintages against a preprocessed file that knows the future, a hierarchical negative-binomial nowcast with a discrete-hazard delay model built live in PyMC, a prior predictive check that could not pass, …E88Every photon: a neural localiser tried on a full dSTORM movie, and how it failedTwo full 647 nm recordings of Unc-13 at Drosophila junctions (Mrestani 2022, Zenodo 7328805, CC BY 4.0; 15,000 frames each, kept as a 1.7 MB summary and small JSON tables of a stored run)how many frames a movie needs, by a stability rule and a block bootstrap, DECODE-style networks trained on simulators, a paired-frame test of error bars with no ground truth, companion halo, population replicate and a visual lineup, …E91The price signal and the substation: how many homes for how many kilowatts?Low Carbon London smart meters from UK Power Networks (London Datastore, CC BY 4.0; 1,088 tariff homes as a home x event table and 200 homes hourly) and the 2013 price filewhat was and was not randomised, naive group difference against a within-home closed-form fleet, a meter-clock failure, balance, placebo and benchmark checks, why a Student-t location misses a sum (quantile shift function), …E87Pricing a model: should a charity buy a flight-level forecast?BTS Reporting Carrier On-Time Performance 2024-2025 (14,080,680 rows, kept as 494,547 flight x month cells and one month of rows, with integer codes and no names)price = rate x gradients + memory + precision, an iso-cost map, GPU and CPU rates by cost shape, a gather and scatter timed on real indices, float32 spacing and a VRAM grid, …E89Where should the next air monitors go?EPA AirData daily PM2.5 2023-2025 (419 sites in 19 states, superseded T640 series removed) and Census 2024 county populationsmarginal Matern GP with known measurement error, exact county conditionals, closed-form EVSI checked by brute force, lazy greedy site selection, simulated joint value against summed gains, a search that lets county means move, a paired-instrument refit, …

Start with one question.

The first example walks through the whole workflow once. Every page after it reuses the same steps.

Open the first example Browse all 139 examples