Bayesian inference
Bayesian inference is the engine behind a surprisingly wide range of problems, from football analytics to game-show strategy. This section unpacks the math and the methods that make it work. One story builds a Bayesian expected-goals model from a single neuron and shot data, using Gaussian weights and Monte Carlo sampling to rethink football predictions. Another revisits the Monty Hall problem, showing how watching just a few episodes lets you infer the host's strategy, "always switch" is only true for one type of host. When the math gets heavy, we benchmark three samplers, NumPyro, affine-invariant MCMC, and dynesty, against exact ground truth, and watch them fail. Finally, a set of notes explains Hamiltonian Monte Carlo from a probabilistic perspective, skipping the usual physics analogy to focus on why auxiliary variables and leapfrog integration actually work. These stories aren't just theory; they're practical, testable, and often surprising.
A single neuron and shot data reveal how Bayesian AI rethinks football models
A single neuron, trained on shot data from StatsBomb, becomes a Bayesian expected-goals model. No hidden layers, no black-box architecture. Just Gaussian weights, the reparameterisation trick, and Monte Carlo sampling. It's a clean demonstration that Bayesian AI doesn't require complexity to rethink football analytics. For analysts who want to see how probability reshapes prediction, this is the proof. And if you're also exploring how customer value becomes actionable, our piece "From CLV Metric to Daily Decision" pairs well with this thinking.
How Watching a Few Episodes Reveals the Host's Strategy
The "always switch" strategy in the Monty Hall problem isn't universal, it depends entirely on the host. Watch a few episodes and you can infer which host you've got. That's the insight worth exploring: the math changes when the game show host isn't a neutral actor. It's a reminder that probabilities live inside human decisions, not just formulas. For a deeper look at how context reshapes statistical truths, our piece on Simpson's paradox pairs nicely with this one.
When Samplers Fail: Benchmarking Three Methods Against Ground Truth
Three samplers walk into a Bayesian inference problem, and all three fail, spectacularly. That's the honest, refreshing premise of this benchmark, which pits NumPyro, affine-invariant MCMC, and dynesty against exact ground truth. The results are a sobering check on our assumptions about modern tools. When you're building AI scaffolding around agents or exploring spatial data pathways, knowing where your inference engine breaks is as important as knowing where it works.
Explore a probabilistic path to understanding Hamiltonian Monte Carlo
Hamiltonic Monte Carlo often arrives wrapped in physics metaphors that obscure as much as they reveal. In these notes, the author strips that away, building HMC from a purely probabilistic foundation. Starting with an auxiliary variable and the construction of a proper Markov chain, the exposition moves through Hamiltonian dynamics, leapfrog integration, and the critical properties of reversibility and volume preservation. The result is a clearer path to understanding *why* HMC works, not just *how* to apply it.