Stat Causal Inference
Apply causal inference methods — counterfactual framework, instrumental variables, propensity score matching, and difference-in-differences — to estimate causal effects from observational data. Use this skill when the user needs to determine if X caused Y from non-experimental data, evaluate program/policy impact without a randomized trial, or control for confounders — even if they say 'did this change cause the improvement', 'how do we measure the impact without an experiment', or 'is this correlation or causation'.
Install
npx skills add asgard-ai-platform/skills --skill stat-causal-inferencegit clone --depth 1 https://github.com/asgard-ai-platform/skills.git /tmp/skills
mkdir -p ~/.claude/skills
cp -r /tmp/skills/stat-causal-inference ~/.claude/skills/stat-causal-inferencePersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Causal Inference ## Framework ``` IRON LAW: Correlation Is Not Causation — But Causation Is Estimable Observational data cannot prove causation through correlation alone. BUT with the right methodology (matching, IV, DID, RDD), we CAN estimate causal effects from observational data — IF the assumptions of each method are satisfied and explicitly tested. The key question is always: "What would have happened WITHOUT the treatment?" (the counterfactual) ``` ### The Fundamental Problem We observe: `Y_i(treated)` — what happened to the treated unit. We want to know: `Y_i(treated) - Y_i(untreated)` — the causal effect. We can never observe: `Y_i(untreated)` for the same unit at the same time. **All causal inference methods estimate the counterfactual** — what would have happened without the treatment. ### Method Selection Guide | Method | When to Use | Key Assumption | |--------|-----------|----------------| | **RCT** | You can randomize | Random assignment eliminates confounders | | **Propensity Score Matching (PSM)** | Treatment is non-random but based on observables | No unobserved confounders (selection on observables) | | **Instrumental Variables (IV)** | Unobserved confounders exist but you have an instrument | Instrument affects treatment but not outcome directly | | **Difference-in-Differences (DID)** | Policy/event creates natural treatment/control groups | Parallel trends: groups would have trended similarly without treatment |
Details
- Skill name
stat-causal-inference- Repository
- asgard-ai-platform/skills
- Path
stat-causal-inference/SKILL.md- License
- MIT
- Repo updated
- 6 June 2026
FAQ
What does the Stat Causal Inference skill do?
Apply causal inference methods — counterfactual framework, instrumental variables, propensity score matching, and difference-in-differences — to estimate causal effects from observational data. Use this skill when the user needs to determine if X caused Y from non-experimental data, evaluate program/policy impact without a randomized trial, or control for confounders — even if they say 'did this change cause the improvement', 'how do we measure the impact without an experiment', or 'is this correlation or causation'.
How do I install the Stat Causal Inference skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add asgard-ai-platform/skills --skill stat-causal-inference. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Stat Causal Inference popular?
It lives in asgard-ai-platform/skills, which has 248 GitHub stars and 30 forks.
Related skills
Algo Ad Bidding
248asgard-ai-platform/skills
Implement and select ad bidding strategies from manual CPC to automated target-CPA and target-ROAS. Use this skill when the user needs to choose a bidding strategy, set up automated bidding, or optimize bid parameters — even if they say 'what bidding strategy should I use', 'target CPA setup', or 'smart bidding configuration'.
Algo Ad Budget
248asgard-ai-platform/skills
Optimize advertising budget allocation across campaigns using marginal returns analysis. Use this skill when the user needs to distribute budget across multiple campaigns, optimize spend pacing, or maximize overall ROAS under budget constraints — even if they say 'how to split my ad budget', 'campaign budget optimization', or 'diminishing returns on ad spend'.
Algo Ad Ctr
248asgard-ai-platform/skills
Build CTR prediction models for estimating ad click-through rates from features. Use this skill when the user needs to predict click probability, build an ad ranking model, or evaluate ad creative performance — even if they say 'predict click rate', 'ad relevance scoring', or 'which ad will get more clicks'.
Tech API Integration
248asgard-ai-platform/skills
Guide REST API integration including HTTP methods, authentication, error handling, and rate limiting. Use this skill when the user needs to connect to a third-party API, design an API client, troubleshoot API errors, or understand API concepts — even if they say 'connect to this API', 'why is the API returning errors', 'how do I authenticate', or 'build an API integration'.
Mfg Supplier Scorecard
248asgard-ai-platform/skills
Evaluate and manage suppliers using weighted scorecards across quality, delivery, price, and service dimensions. Use this skill when the user needs to assess supplier performance, compare vendors for selection, design a supplier rating system, or manage supplier development — even if they say 'which supplier should we choose', 'rate our vendors', 'this supplier keeps delivering late', or 'build a vendor evaluation system'.
Tw Ecom Dtc Shopline
248asgard-ai-platform/skills
Integrate and operate Shopline in Taiwan e-commerce context via mcp-shopline. Use when the user needs to sync orders, manage products, run promotions, or reconcile inventory on Shopline stores; when comparing Shopline vs 91APP/Shopify for Taiwan DTC; or when debugging async write propagation. Do NOT use for API schema lookup (go to mcp-shopline docs) or non-Taiwan Shopline deployments.
Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.