-
Reproducible R Notebooks with Docker
In this article I show how to containerize your R Notebooks with Docker, for reproducible sharing, using renv for dependency management.
-
How to Work with Small Data
This post discusses the significance of small data in the context of data science and modeling, detailing tips and tricks for working with small data sets.
-
Bayesian Time Series Interpolation
The third article in the series, I explore Bayesian modeling for multivariate time series interpolation with hierarchical models with Numpyro and Bambi.
-
Interrupted Time Series
When experimenting with something new, everyone has an opinion! Thats why it’s especially important to gather empirical evidence, to truly measure success. In this series of articles, I will explore a variety of techniques for experimentation, measurement and the gathering of evidence. Today’s article concerns one such fundamental technique – Interrupted Time Series analysis. The…
-
Genetic Algorithms with PyGAD and PyTorch
Deep dive into Genetic Algorithms (GAs), an optimization algorithm inspired by the concept of natural evolution, including using a GA to train a Pytorch model with the Pygad library.
-
Expectation of a Gaussian Likelihood Function
This article explores the calculation of the expected likelihood of the Gaussian function rather than its maximum. It includes deriving the expectation of the Gaussian likelihood function, and the expectation of the likelihood of one Gaussian given the parameters of another Gaussian.
-
How to Choose a Distribution for your Regression Model
This article is all about distributions! In it, I explore the most common distributions including Gaussian, Uniform, Student-T, Gamma, and others. I also discuss their applications and when to choose them for regression modelling.
-
Stochastic Time Delay in Regression Analysis
I revisit a previous article on designing a regression model for stochastic time delay problems, where input-output delays vary randomly. The proposed model treats time delay components as part of the analysis, achieving improved results over standard regression methods in simulated experiments. Potential applications include marketing and medical settings. Future extensions might tackle multiple regression…
-
Time Series Interpolation using Embeddings & Pytorch
In this article, I use categorical embeddings to tackle time series data interpolation. An algorithmic approach is introduced using Pytorch and I discuss the benefits and drawbacks. Eventually, the creation of a model with these components is demonstrated, as well as the strengths and weaknesses compared to other statistical approaches.
-
Multivariate Time Series Interpolation
The post describes a method to deal with sparse time series data using a Hierarchical Model and linear basis functions. The model learns the relationship between related series and movements over time, facilitating data interpolation even with minimal individual data points.
-
A/B and C (Multivariate) Tests with PyMC
The blog post provides a guide to using PyMC for Bayesian A/B/C tests, using a Bernoulli likelihood and the panel regression style. The post explores generating data samples, adopting a Bernoulli model approach, using Bambi to simplify the model setup, and interpreting results.
-
Bayesian Regression from Scratch
The post provides an in-depth explanation on how to understand Bayesian methods through building regression models from scratch. This includes generating sample data, explaining the Bayesian rule and Maximum Likelihood, describing Metropolis-Hastings algorithm, fits and uncertainties. The tutorial ends with performing Bayesian inference. The post acts as a hands-on guide to understand Bayesian modelling.
-
Heteroscedastic Regression
In this article, I deal with complex heteroscedastic problems for data analysis and inference. With a simulated dataset to demonstrate, I tackle issues such as strong trends, non-linearity, non-normal target distributions, multiple seasonalities, and changing variance. I use the advanced techniques of Bayesian Spline Modelling and Bayesian Additive Regression Trees (BART), emphasizing their efficacy in…
-
Mutual Information
While Pearson Correlation is effective in identifying relationships during exploratory data analysis, Mutual Information (MI) offers a powerful alternative, capable of uncovering non-linear relationships between variables. Despite being harder to interpret, its implementation in Scikitlearn is worth exploring.
-
Working with Heteroscedastic Data
Heteroscedasticity, variance inconsistency across a related variable’s range, is often overlooked in data analysis. The two-part series explores handling heteroscedastic data through transformations, linear models, and model-based solutions, using LinkedIn engagements for instance. Techniques include Quantile Regression, Conditional Variance model, and common transformations like power or square root transformations.
-
Hierarchical (Multilevel) Modelling
Hierarchical modeling is a powerful statistical technique to analyze nested or grouped data. It considers both global structure and individual characteristics, delivering more accurate and robust estimates. Hierarchical models outperform traditional machine learning models, providing lower error rates and better handle outliers, especially with small datasets.
-
Introduction to Exponential Smoothing
This article intros the enduring Exponential Smoothing (ETS) in time series forecasting despite. I explore 4 key ETS variants, their formulas, and practical applications. Additionally, it touches on auto parameter selection for ETS models.