본문으로 건너뛰기
cccskills
무료GitHub에 공개

causal-inference

Estimate causal effects from observational and experimental data — DAGs, confounding control, quasi-experimental designs, and sensitivity analysis. Use when you need "what causes what," not just correlation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md4.2 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Causal Inference

Correlation is cheap; causation is the question that matters for decisions. Causal inference is the toolkit for answering "what would happen if we did X?" — from experiments when possible, and from observational data with explicit assumptions when not.

Overview

Every causal claim rests on assumptions — the craft is making them explicit and testing them. Draw the causal graph (DAG) to see what confounds what. Choose the identification strategy that fits: randomization, or quasi-experiments (difference-in-differences, regression discontinuity, instrumental variables), or adjustment with careful confounder selection. Then probe robustness: sensitivity analysis asks how wrong the assumptions would need to be to overturn the conclusion.

When to use

  • Deciding whether an intervention works: policy, product change, treatment.
  • Estimating effects from data you didn't experimentally control.
  • Reviewing causal claims: checking whether the design supports the conclusion.
  • Choosing between running an experiment and analyzing existing data.

Core concepts

  • Potential outcomes: the causal effect is the difference between what happened with treatment and what would have happened without it. The fundamental problem: you never observe both. All methods are ways around this.
  • DAGs: directed acyclic graphs mapping assumed causal structure — confounders (common causes), mediators (mechanisms), colliders (conditioning on them biases). Draw it before choosing an analysis.
  • Confounding control: adjust for confounders (backdoor paths), never for mediators or colliders. The DAG tells you which variables to include — "control for everything" is wrong.
  • Quasi-experiments: difference-in-differences (parallel trends assumption), regression discontinuity (threshold assignment), instrumental variables (exclusion restriction). Each trades randomization for a different assumption — name it, defend it.
  • Propensity methods: matching, weighting, or doubly-robust estimation to balance treated and control groups on observables. Only as good as the observed confounders.
  • Sensitivity analysis: how strong would unmeasured confounding need to be to explain away the effect? Report it; it's the honest answer to "but what if you missed something?"

Practical workflow

  1. Define the treatment, outcome, and the decision the estimate informs.
  2. Draw the DAG: hypothesized confounders, mediators, colliders. Get domain experts to critique it.
  3. Choose identification: experiment if feasible; otherwise the quasi-experimental design whose assumptions you can best defend.
  4. Estimate with appropriate methods; use doubly-robust approaches where available.
  5. Run sensitivity analyses and placebo/falsification tests (effects where none should exist).
  6. Report the estimate with uncertainty, the assumptions it rests on, and what would overturn it.
Causal analysis checklist:
[ ] Treatment, outcome, estimand precisely defined
[ ] DAG drawn and critiqued; adjustment set derived from it
[ ] Identification strategy named with its key assumption
[ ] No adjustment for mediators/colliders
[ ] Falsification tests run (placebos, pre-trends)
[ ] Sensitivity to unmeasured confounding reported

Common pitfalls

  • Controlling for everything: adjusting for mediators (kills the effect) or colliders (creates bias). The DAG decides, not the kitchen sink.
  • Unstated assumptions: every observational method assumes something untestable. Name it explicitly.
  • No falsification: never testing where the method should find nothing. Placebos are cheap credibility.
  • Causal language from predictive models: a regression coefficient is not a causal effect without a causal design.
  • Ignoring the estimand: "the effect" of what, on whom, compared to what? Define it before estimating.
  • Fragile identification: an IV with a weak first stage or a DiD with shaky parallel trends. Weak designs produce confident-looking noise.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Master 1Password: vaults, Watchtower, passkeys, SSH agent, CLI, and family/team administration. Use when getting full value from 1Password personally or administering it for others.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aicodedecode/awesome-muse-skills252026년 10월 10일 업데이트

Create 3D visuals with modeling, texturing, lighting, rendering, and optimization for web and product.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aicodedecode/awesome-muse-skills252026년 10월 10일 업데이트

Create 3D web experiences: scene setup, models, materials, lighting, animation, scroll-driven scenes, and performance budgets. Use when adding 3D to websites beyond basic demos.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aicodedecode/awesome-muse-skills252026년 10월 10일 업데이트

Writing abstracts that get papers read — structured content, the 5-sentence core, and journal-specific constraints.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aicodedecode/awesome-muse-skills252026년 10월 10일 업데이트

Learn effectively from courses and academies: choosing programs, studying actively, and converting courses into skills. Use when investing time/money in structured learning.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aicodedecode/awesome-muse-skills252026년 10월 10일 업데이트

Audit designs for accessibility with WCAG checklists covering color, type, focus, motion, and content.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aicodedecode/awesome-muse-skills252026년 10월 10일 업데이트

aicodedecode의 스킬 모두 보기

이 스킬의 문제 신고