Causal Machine Learning & Counterfactual Inference

Explore causal machine learning, treatment effect estimation, and counterfactual reasoning for reliable AI decision systems.


Deep dives into causal inference, treatment effect estimation, and counterfactual reasoning for robust decision-making.




Causal Machine Learning

How to Solve Time-Varying Confounding & Mediator Bias in Longitudinal ML Pipelines

[Series] Causal Machine Learning - 3. De-Biasing Sequential Telemetry and Multi-Period Decisions

Machine LearningDeep LearningData SciencePython

Standard machine learning and static causal models fail in multi-period sequential systems where time-varying telemetry acts simultaneously as a mediator and a confounder.

Naive feature flattening or standard conditioning triggers mediator-blocking bias and collider stratification bias—severely distorting downstream policy evaluation.

This guide explores the mathematics of sequential exchangeability, time-varying inverse propensity weighting (IPTW), and Marginal Structural Models (MSMs) with a production-ready Python implementation.

How to Solve Time-Varying Confounding & Mediator Bias in Longitudinal ML Pipelines

Kernel Labs | Kuriko IWAI | kuriko-iwai.com

Read more

Fixing Selection Bias in Enterprise Data with Inverse Propensity Scoring (IPS)

[Series] Causal Machine Learning - 2. De-Biasing Historical Data Logs (without Expensive A/B Tests)

Machine LearningDeep LearningData SciencePython

Standard machine learning models fail when observational data is poisoned by selection bias—mistaking baseline confounding for true treatment impact.

Inverse Propensity Scoring (IPS) provides an offline mathematical simulator that transforms biased operational logs into synthetic Randomized Controlled Trials (RCTs).

This guide breaks down the underlying propensity mathematics, positivity constraints, and production Python code to calculate unconfounded Average Treatment Effects (ATE).

Fixing Selection Bias in Enterprise Data with Inverse Propensity Scoring (IPS)

Kernel Labs | Kuriko IWAI | kuriko-iwai.com

Read more

Why Machine Learning Demands Causal Inference

[Series] Causal Machine Learning - 1. Rethinking the Predictive Paradigm

Machine LearningDeep LearningData SciencePython

Standard machine learning models excel at empirical risk minimization on static observational data, but fail catastrophically when an operational policy actively alters the data-generating distribution.

This advanced guide exposes the feature flattening trap—where models mistake downstream symptoms for upstream causes—and details how to deploy structurally invariant causal models using Judea Pearls Backdoor Criterion and Off-Policy Evaluation (OPE).

Why Machine Learning Demands Causal Inference

Kernel Labs | Kuriko IWAI | kuriko-iwai.com

Read more

Shipping AI Systems?

I help teams design and deploy scalable ML / RAG / LLM pipelines and MLOps infrastructure.



Or explore: