← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 122
  1. Multilevel Regression and Poststratification (MRP) in PyMC

    On many occasions, I read about Multilevel Regression and Poststratification (MRP) in the context of survey analysis (see for example Multilevel Regression and Post-stratification in Bambi).

  2. Structural Causal Models with PathMC

    In this notebook we implement some of the ideas of the previous blog post “Introduction to Causal Inference with PPLs” using PathMC, a package for structural causal models with Bayesian estimation and interventional simulation via a concise Domain-Specific

  3. Forecasting Retail Demand Under Stockouts

    This example is part of the NumPyro Forecast documentation; see here.

  4. Ads, ROAS and Budgets: Interpreting and Communicating Statistical Models

    In this notebook, we work out an example of how to interpret and communicate statistical models.

  5. Exponential Smoothing with NumPyro: State Space Form

    In the blog post “Notes on Exponential Smoothing with NumPyro” we implemented the damped Holt-Winters model in the component form of Hyndman & Athanasopoulos, FPP3, §8.3.

  6. The Frugal Parameterization for Bayesian Causal Inference in PyMC

    In this notebook we provide an introduction to the frugal parameterization for Bayesian causal inference, developed in the paper “Parameterizing and simulating from causal models”, (Evans & Didelez, 2024).

  7. Mediation Analysis and (In)Direct Effects with PyMC

    Mediation analysis goes beyond asking “does the treatment work?”

  8. Intuition behind CRPS

    In many forecasting applications, probabilistic methods have become a standard tool.

  9. Bayesian Power Analysis for A/B Testing

    This notebook implements a simulation-based Bayesian power analysis for conversion-rate A/B tests and compares it against the classical frequentist two-proportion z-test.

  10. In-Sample \(R^2\) is Not a Good Metric for Decision Making

    In many years of professional data science, I have seen many senior decision makers choose models based on in-sample \(R^2\) — the more the better.

  11. Fixed and Random Effects Models: A Simulated Study

    In this notebook we reproduce the fantastic material from the video Statistical Rethinking 2026 Lecture B04 - Group-level confounding and intro to social networks by Richard McElreath.

  12. A Bayesian Decision Theory Workflow: Port to NumPyro

    In this notebook I explore the Bayesian Decision Theory Workflow described in the amazing blog post A Bayesian Decision Theory Workflow by Daniel Saunders.

  13. Forecasting Hierarchical Models - Part III

    In this third notebook, I extend the hierarchical forecasting model from Part II by adding a neural network component to the state transition function.

  14. Machine Learning for Optimization: Toy Example

    Based on my experience, whenever someone asks for a prediction (or forecasting) model, they actually do not need a prediction model per se.

  15. CATE Estimation with Causal Effect Variational Autoencoders

    In this notebook, we demonstrate how to estimate Conditional Average Treatment Effects (CATE) using a Causal Effect Variational Autoencoder (CEVAE) by implementing an example from scratch in NumPyro.

  16. Causal Effect Estimation with Variational Inference and Latent Confounders

    This notebook demonstrates how to estimate the Average Treatment Effect (ATE) using variational inference in the presence of unobserved confounders.

  17. Causal Inference with Multilevel Models: The Electric Company Example

    Estimating causal effects from clustered or grouped data requires careful attention to the hierarchical structure of observations.

  18. Introduction to Causal Inference with PPLs

    Causal inference asks a deceptively simple question: “What would have happened if things were different?”

  19. Bayesian Vector Autoregressive Models in NumPyro

    In this notebook, we present how to implement and fit Bayesian Vector Autoregressive (VAR) models using NumPyro.

  20. PyData Berlin 2025: Introduction to Stochastic Variational Inference with NumPyro

    In this notebook we provide a brief introduction to Stochastic Variational Inference (SVI) with NumPyro.

  21. Hierarchical Revenue & Retention Modeling

    In this notebook, we extend the revenue-retention model introduced in the sequence of blog posts “Cohort Revenue & Retention Analysis: A Bayesian Approach” and “Cohort Revenue Retention Analysis with Flax and NumPyro” (plus the associated pre-print “Cohort

  22. Vectorize ROC Curve for Bayesian Models

    In this notebook, we present a simple example to illustrate how to vectorize the ROC curve computation over a Bayesian model.

  23. Introduction to Bayesian Power Analysis: Exclude a Null Value

    Recently, I have been thinking a lot about data-driven decision-making, particularly in the context of experimentation.

  24. Prior Predictive Modeling in Bayesian AB Testing

    In this notebook we generate a simulation to reproduce the results of the great blog post “The Bet Test: Spotting Problems in Bayesian A/B Test Analysis”, where Tyler Buffington discussed about some caveats of using Bayesian AB testing when not thinking a…

  25. Notes on Hierarchical Hilbert Space Gaussian Processes

    In this notebook, we want to explore some ideas on hierarchical Hilbert Space Gaussian Processes following the fantastic exposition of the PyMC example notebook: “Gaussian Processes: HSGP Advanced Usage” by Bill Engels, Alexandre Andorra and Maxim Kochuro…

  26. Hacking the TSB Model for Intermittent Time Series to Accommodate for Availability Constraints

    In many demand forecasting problems, we face the challenge of predicting the demand for a product or service with very sparse data.

  27. Bayesian CUPED & Sensitivity Analysis

    Motivated by the great blog post by Understanding CUPED by Matteo Courthoud, we explore a Bayesian approach to CUPED to understand its sensitivity with respect to the covariance parameter \(\theta\) of the pre-post mean model.

  28. Electricity Demand Forecast: Dynamic Time-Series Model with Prior Calibration

    We present an example of a dynamic forecasting time-series model that incorporates a prior calibration process to estimate the temperature effect on electricity demand.

  29. Electricity Demand Forecast: Dynamic Time-Series Model

    We work out a classical electricity demand forecasting model form the case study Structural Time Series Modeling Case Studies: Atmospheric CO2 and Electricity Demand from the TensorFlow Probability documentation.

  30. From Pyro to NumPyro: Forecasting Hierarchical Models - Part II

    In this second notebook, we continue working on the NumPyro implementation of the hierarchical forecasting models presented in Pyro’s forecasting documentation: Forecasting III: hierarchical models.

  31. From Pyro to NumPyro: Forecasting Hierarchical Models - Part I

    In this notebook we provide a NumPyro implementation of the first model presented in the Pyro forecasting documentation: Forecasting III: hierarchical models.

  32. From Pyro to NumPyro: Forecasting a univariate, heavy tailed time series

    In this notebooks we port the Pyro forecasting example Forecasting I: univariate, heavy tailed to NumPyro.

  33. Hierarchical Pricing Elasticity Models

    In this notebook we use a retail publicly available dataset to fit and compare various pricing elasticity models.

  34. Multilevel Elasticities for a Single SKU - Part III.

    In this notebook we continue our simulation study for elasticities, see: Multilevel Elasticities for a Single SKU - Part I Multilevel Elasticities for a Single SKU - Part II for an introduction to the problem and some models.

  35. Hierarchical Exponential Smoothing Model

    In this blog post, we experiment with a hierarchical exponential smoothing forecasting model, extending the ideas from the univariate case presented in the blog post “Notes on Exponential Smoothing with NumPyro”.

  36. Demand Forecasting with Censored Likelihood

    In this notebook we will explore the use of censored likelihoods for demand forecasting.

  37. A Conceptual and Practical Introduction to Hilbert Space GPs Approximation Methods

    In this notebook, we explore the (conceptual) ideas and (practical) implementation details of the Hilbert Space approximation for Gaussian processes introduced in the article “Hilbert space methods for reduced-rank Gaussian process regression” by Arno Sol…

  38. Bayesian Censoring Data Modeling

    In this notebook, we explore how we can use Bayesian modeling to estimate the parameters of a censored data set.

  39. Zero-Inflated TSB Model

    After going through the fundamentals of the TSB Method for Intermittent Time Series Forecasting in NumPyro in the previous notebook, we explore a variation of it that might be useful for certain applications.

  40. TSB Method for Intermittent Time Series Forecasting in NumPyro

    In this notebook we provide a NumPyro implementation of the TSB (Teunter, Syntetos and Babai) method for forecasting intermittent time series.

  41. Croston's Method for Intermittent Time Series Forecasting in NumPyro

    In this notebook, we will implement Croston’s method for intermittent demand forecasting using NumPyro.

  42. Notes on an ARMA(1, 1) Model with NumPyro

    This are some notes on how to implement an ARMA(1, 1) model using NumPyro for time series forecasting.

  43. Notes on Exponential Smoothing with NumPyro

    This notebook serves as personal notes on NumPyro’s implementation of the classic exponential smoothing forecasting method.

  44. Media Mix Model and Experimental Calibration: A Simulation Study

    In this notebook, we present a complete simulation study of the media mix model (MMM) and experimental calibration method presented in the paper “Media Mix Model Calibration With Bayesian Priors”, by Zhang, et al., where the authors propose a convenient p…

  45. Cohort Revenue Retention Analysis with Flax and NumPyro

    In this notebook we present an alternative implementation of the cohort-revenue-retention model presented in the blog post Cohort Revenue & Retention Analysis: A Bayesian Approach where we show how to replace the BART retention component with a general ne…

  46. Flax and NumPyro Toy Example

    In this notebook I want to experiment with the numpyro/contrib/module.py module which allow us to integrate Flax models with NumPyro models.

  47. Time Series Modeling with HSGP: Baby Births Example

    In this notebook we want to reproduce a classical example of using Gaussian processes to model time series data: The birthdays data set.

  48. Non-Parametric Product Life Cycle Modeling

    In this notebook we present an example of how to use a combination of Bayesian hierarchical models and the non-parametric methods , namely bayesian additive trees (BART), to model the product life cycles.

  49. NumPyro with Pathfinder

    In this notebook we describe how to use blackjax’s pathfinder implementation to do inference with a numpyro model.

  50. Causal Bandits: Causality, Marketing & Simulations

    I had the great opportunity to have a conversation with Aleksander Molak about causality, marketing and simulations as well as my career from academia to industry.