金色时刻 · 15:48
让好资源,触手可及
AGENT SKILL

running-placebo-analysis

running-placebo-analysis 是面向研究的 Agent Skill,来自 pymc-labs/CausalPy。查看技能说明、操作步骤与使用约定,并通过原项目了解详细用法。

Performs placebo-in-time sensitivity analysis to validate causal claims. Use when checking model robustness, verifying lack of pre-intervention effects, or ensuring observed effects are not spurious.

SKILL.md

下载 MD ↓
namerunning-placebo-analysis
descriptionPerforms placebo-in-time sensitivity analysis to validate causal claims. Use when checking model robustness, verifying lack of pre-intervention effects, or ensuring observed effects are not spurious.

Running Placebo Analysis

Executes placebo-in-time sensitivity analysis to validate causal experiments.

Workflow

  1. Define Experiment Factory: Create a function that returns a fitted CausalPy experiment (e.g., ITS, DiD, SC) given a dataset and time boundaries.
  2. Configure Analysis: Initialize PlaceboAnalysis with the factory, dataset, intervention dates, and number of folds (cuts).
  3. Run Analysis: Execute .run() to fit models on pre-intervention data folds.
  4. Evaluate Results: Compare placebo effects (which should be null) to the actual intervention effect. Use histograms and hierarchical models to quantify the "status quo" distribution.

Key Concepts

  • Placebo-in-time: Simulating an intervention at a time when none occurred to check if the model falsely detects an effect.
  • Fold: A slice of pre-intervention data used to test a placebo period.
  • Factory Pattern: Decouples the placebo logic from the specific CausalPy experiment type.

References

来源:pymc-labs/CausalPy · Apache-2.0 许可 · 许可原文 · MD 为来源页保存的历史版本