shrividya-subramaniam

CausalLab AI — AI skill for Claude Code

AI community

A LangGraph and Claude agent for causal inference that proposes its assumptions, asks for human approval, tests its own answer, and is checked against a randomised experiment on Expedia hotel-search d.

How to install CausalLab AI

This entry records only its repository, not the path inside it, so there is no exact command to give. Open shrividya-subramaniam/CausalLab-AI and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What CausalLab AI does

A LangGraph and Claude agent for causal inference that proposes its assumptions, asks for human approval, tests its own answer, and is checked against a randomised experiment on Expedia hotel-search data.

Alternatives in AI

  • Inference Serving — ai-research-skills vLLM, SGLang, TensorRT-LLM, llama.cpp 5.4k ★
  • Deepreasoning — A high-performance LLM inference API and Chat UI that integrates DeepSeek R1's CoT reasoning traces with Anthr 5.4k ★
  • Genesys — Open-source causal graph memory for AI agents 23 ★

README

CausalLab AI

**How much of the extra clicking on top search results is caused by the position itself, and how much by the ranker putting better hotels on top?**

CausalLab AI is a LangGraph agent, using Claude, that takes a causal question in plain language, proposes the causal assumptions, asks a person to approve them, runs five estimators, tries to break its own answer, and then reports a result or declines to give one. It is tested on Expedia's 2012–13 hotel-search data, where about 30% of searches were ranked at random. That gives a randomised benchmark for the same effect the agent estimates from algorithm-ranked searches: a within-study comparison in the style of LaLonde (1986).

The full specification is in [`SPEC.md`](SPEC.md). The reference specification, fixed before the benchmark was computed, is in [`config/spec_locked.yaml`](config/spec_locked.yaml). Everything changed after that is listed under [What was fixed in advance, and what was not](#what-was-fixed-in-advance-and-what-was-not).

Findings in brief

  1. Adjustment removes most of the bias, but whether it removes all of it depends on the comparison group. Against positions 4–10 (the pre-registered comparison), the doubly robust estimate is 6.61 pp against an experimental 5.25 pp: a mismatch. Against every position from 4 down (the spec's sensitivity check), the doubly robust, weighting and double machine learning estimates all land within half a point of the experiment: a match. A "match" means the whole gap interval lies within ±20% of the benchmark, not that the gap is zero: AIPW's gap there is −0.27 pp [−0.46, −0.08], small but statistically different from zero.
  2. Part of the main gap comes from comparing different hotels, not only from confounding. The ranker fills the top ten with different hotels than random ranking does, and the effect differs by hotel. On synthetic data with a known answer, this alone produced a large false "mismatch". Two post-hoc comparisons that put bo