All posts by ahmed.ismail2013

Double Machine Learning: Advancing Causal Inference with Machine Learning Techniques
Inspired by Brady Neal’s video where he humorously suggests that Double Machine Learning (DML) “is maybe twice as cool” as regular machine learning, we dive into this advanced causal framework. DML, also known as debiased machine learning or orthogonal machine learning, offers a robust method for causal inference by combining flexibility, low bias, and valid…

Doubly Robust Methods in Causal Inference: A Powerful Approach to Estimating Treatment Effects
In the world of causal inference, we’re constantly seeking methods that can provide accurate and reliable estimates of treatment effects. One approach that has gained significant traction in recent years is the family of Doubly Robust (DR) methods. These methods offer a unique combination of flexibility and robustness that make them particularly appealing for a…

Understanding S, T, and X Learners: Meta-Learners for Causal Inference
When estimating causal effects, we often want to go beyond average treatment effects and understand how treatments impact different individuals or subgroups. This is where meta-learners like S-Learner, T-Learner, and X-Learner come in handy. Let’s explore these powerful tools for estimating heterogeneous treatment effects, with a focus on intuition and practical implementation using the DoWhy…

Demystifying BERT: An Intuitive Dive into Transformer-based Language Models
The transformer neural network architecture initially created to solve the problem of language translation. It was very well-received because previous models like LSTM networks had several issues. Issues with LSTM Networks LSTM networks are slow to train because words are processed sequentially. It takes many time steps for the neural network to learn, and it…

Mastering Pandas: A Comprehensive Step-by-Step Guide to Efficient Data Analysis
In this blog post, I share all the Pandas materials that I have written over the past couple of months in an organized, easy-to-follow, logical, step-by-step tutorial. Whether you’re a beginner looking to get started or an experienced user aiming to deepen your understanding, this comprehensive guide will provide you with the essential functions and…

Harnessing the Power of Text Embeddings for Causal Inference
In the evolving landscape of data science, researchers and practitioners are continually seeking innovative ways to handle complex data types. One such advancement is the use of text embeddings, a powerful technique that transforms text data into meaningful numerical representations. This blog post delves into the intricate world of text embeddings and explores how they…

Unveiling Double/Debiased Machine Learning (DML): A Practical Guide
Understanding the true effect of a variable (like a new medication or policy) on an outcome (such as health improvement or economic growth) can be challenging. Confounding variables—factors that affect both the treatment and the outcome—often complicate this task. Double/Debiased Machine Learning (DML) provides a powerful method to uncover these causal relationships, even in complex,…

Introduction to Testing DAG Validity: Local Markov and Edge Dependence Tests
In the realm of data science and causal inference, Directed Acyclic Graphs (DAGs) are powerful tools for modeling the causal relationships between variables. However, creating a DAG is only the first step. To ensure the accuracy and reliability of the causal inferences drawn from these models, we need to validate that the DAG accurately represents…