Creează un cont pentru a te abona la acest blog și a-i urmări articolele pe pagina Lectură.
-
Multilevel Elasticities for a Single SKU - Part II.
In this notebook we go deeper into the last covariance model presented in the previous blog post Multilevel Elasticities for a Single SKU.
-
Multilevel Elasticities for a Single SKU - Part I.
In this notebook I want to experiment with some basic models for price elasticity estimation in the simple context of a simple sku across multiple stores and regions.
-
Time-Varying Regression Coefficients via Hilbert Space Gaussian Process Approximation
In this notebook we present an example of a regression model with time varying coefficients using Gaussian processes.
-
Using Data Science for Bad Decision-Making: A Case Study
You will probably be intrigued by the title of this post.
-
Regression Discontinuity with GLMs and Kernel Weighting
In this notebook we explore regression discontinuity design using generalized linear models (GLMs) and kernel weighting from a bayesian perspective.
-
ATE Estimation for Count Data
This notebook is a continuation of the previous notebook on ATE estimation for binary data with logistic regression based on the sequence of (great!)
-
ATE Estimation with Logistic Regression
In this notebook, I want to reproduce some components of the extensive blog post Causal inference with Bayesian models by Solomon Kurz.
-
Bayesian Methods in Modern Marketing Analytics Webinar with PyMC Labs
Here I want to share the recording and slides of the webinar Bayesian Methods in Modern Marketing Analytics in collaboration with PyMC Labs.
-
How to vectorize an scikit-learn transformer over a numpy array?
In this short post, I show how to vectorize an scikit-learn transformer over a numpy array.
-
Counting the Number of Kitas per PLZ in Berlin using a Hierarchical Bayesian Model
This notebook is the continuation of data gathering and data analysis post Open Data: Berlin Kitas.
-
Simple Hierarchical Model with NumPyro: Cookie Chips Example
This notebook presents a simple example of a hierarchical model using NumPyro.
-
Experimentation, Non-Compliance and Instrumental Variables with PyMC
In this notebook we present an example of how to use PyMC to estimate the effect of a treatment in an experiment where there is non-compliance through the use of instrumental variables.
-
Cohort Revenue & Retention Analysis: A Bayesian Approach
In this notebook we extend the cohort retention model presented in the post Cohort Retention Analysis with BART so that we just model retention and per cohort simultaneously (we recommend reading the referenced post before this one).
-
Cohort Retention Analysis with BART
In this notebook we study an alternative approach for the cohort analysis problem presented in A Simple Cohort Retention Analysis in PyMC.
-
A Simple Cohort Retention Analysis in PyMC
In this notebook we present a simple approach to study cohort retention analysis through a simulated data set.
-
Geo-Experimentation via Time Based Regression in PyMC
Introduction In this notebook I describe and present an implementation of the time based regression (TBR) approach to marketing campaign analysis in the context of geo experimentation presented in the paper Estimating Ad Effectiveness using Geo Experiments
-
Offline Campaign Analysis Measurement: A journey through causal impact, geo-experimentation and synthetic control
In October 2022 I had the opportunity to give a talk at the Helsinki Data Science Meetup hosted by Wolt.
-
Scikit-Learn Example in PyMC: Gaussian Process Classifier
In this notebook we want to describe how to port a couple of classification examples from scikit-learn’s documentation (classifier comparison) to PyMC.
-
Synthetic Control in PyMC
Synthetic control can be considered “the most important innovation in the policy evaluation literature in the last few years” (see The State of Applied Econometrics: Causality and Policy Evaluation by Susan Athey and Guido W.
-
Modeling Short Time Series with Prior Knowledge in PyMC
In this notebook I want to reproduce in PyMC the methodology described in the amazing blog post Modeling Short Time Series with Prior Knowledge by Tim Radtke to forecast short time series using bayesian transfer learning 🚀.
-
Time-Varying Regression Coefficients via Gaussian Random Walk in PyMC
In this notebook we want to illustrate how to use PyMC to fit a time-varying coefficient regression model.
-
Data Talks Club: Machine Learning in Marketing
On Friday 13th of May 2022 I was invited to join Alexey Grigorev in an event organised by DataTalks.Club to talk about Machine Learning in Marketing.
-
PyConDE & PyData Berlin 2022: Introduction to Uplift Modeling
In this notebook we present a simple example of uplift modeling estimation via meta-models using causalml and scikit-uplift.
-
Gamma-Gamma Model of Monetary Value in PyMC
In this notebook we describe how to fit Fader’s and Hardie’s gamma-gamma model presented in the paper “RFM and CLV: Using Iso-value Curves for Customer Base Analysis” and the note “The Gamma-Gamma Model of Monetary Value”.
-
BG/NBD Model in PyMC
In this notebook we show how to port the BG/NBD model from the the lifetimes (developed mainly by Cameron Davidson-Pilon) package to pymc.
-
Media Effect Estimation with PyMC: Adstock, Saturation & Diminishing Returns
In this notebook we present a concrete example of estimating the media effects via bayesian methods, following the strategy outlined in Google’s paper Jin, Yuxue, et al.
-
Media Effect Estimation with Orbit's KTR Model
In this notebook we want to experiment to the new KTR model included in the new orbit’s release (1.1).
-
Unobserved Components Model as a Bayesian Model with PyMC
In this notebook I want to deep-dive into the idea of wrapping a statsmodels UnobservedComponents model as a bayesian model with PyMC described in the (great!)
-
ISLR2 - Survival Analysis Lab (lifelines)
In this notebook we provide a python implementation of the lab from the Survival Analysis - Chapter 11 of the second edition of the book An Introduction to Statistical Learning (Second Edition).
-
Exploring Tools for Interpretable Machine Learning
In this notebook we want to test various ways of getting a better understanding on how non-trivial machine learning models generate predictions and how features interact with each other.
-
Feature Engineering: patsy as FormulaTransformer
In this notebook I want to describe how to create features inside scikit-learn pipelines using patsy-like formulas.
-
GLM in PyMC3: Out-Of-Sample Predictions
In this notebook I explore the glm module of PyMC3.
-
Gaussian Processes for Time Series Forecasting with PyMC3
In this notebook we translate the forecasting models developed for the post on Gaussian Processes for Time Series Forecasting with Scikit-Learn to the probabilistic Bayesian framework PyMC3.
-
Simple Bayesian Linear Regression with TensorFlow Probability
In this post we show how to fit a simple linear regression model using TensorFlow Probability by replicating the first example on the getting started guide for PyMC3.
-
Open Data: Berlin Kitas
In this notebook I want to explore some data I found on the Berlin Open Data portal daten.berlin.de.
-
A Simple Hamiltonian Monte Carlo Example with TensorFlow Probability
In this post we want to revisit a simple bayesian inference example worked out in this blog post.
-
Regression Analysis & Visualization
In this notebook I want to collect some useful visualizations which can help model development and model evaluation in the context of regression analysis.
-
A Glimpse into TensorFlow Probability Distributions
In this notebook we want to go take a look into the distributions module of TensorFlow probability.
-
Disease Spread Simulation (Animation)
We describe how to generate a basic disease spread simulation.
-
Getting Started with Spectral Clustering
In this post I want to explore the ideas behind spectral clustering.
-
The Volume of the d-Ball via Monte Carlo Simulation
In this notebook we run Monte Carlo simulations to estimate the volume of the \(d\)-ball \[ B^{d}:=\{x \in \mathbb{R}^d : ||x|| \leq 1\}. \] There are many ways to obtain a closed formula for this volume , see for example this Wikipedia article.
-
Forecasting Weekly Data with Prophet
In this notebook we are present an initial exploration of the Prophet package by Facebook.
-
Exploring TensorFlow Probability STS Forecasting
In this notebook we explore the Structural Time Series (STS) Module of TensorFlow Probability.
-
Intro ML in Production: Flask, Docker and GitHub Actions
We describe how to set up a toy-model repository to train and dockerize a machine learning model with data store on aws s3.
-
Drawing Manifolds in LaTeX with TikZ
We give some LaTex code to create figures of manifolds with boundaries.
-
Open Data: Germany Maps Viz
In this post I want to show how to use public available (open) data to create geo visualizations in python.
-
The Graph Laplacian & Semi-Supervised Clustering
In this post we want to explore the semi-supervided algorithm presented Eldad Haber in the BMS Summer School 2019: Mathematics of Deep Learning, during 19 - 30 August 2019, at the Zuse Institute Berlin.
-
The Lapacian on the 2-Torus
In this blog post I want to describe the explicit computation of the Laplacian on differential forms on the \(2\)-Torus \(T^2\subset \mathbb{R}^3\).
-
PyData Berlin 2019: Gaussian Processes for Time Series Forecasting (scikit-learn)
In this notebook we run some experiments to demonstrate how we can use Gaussian Processes in the context of time series forecasting with scikit-learn.
-
satRday Berlin 2019: Remedies for Severe Class Imbalance
In this post I present a concrete case study illustrating some techniques to improve model performance in class-imbalanced classification problems.