Skip to content
Back to skills

Running Placebo Analysis Pymc Labs Causalpy 81e228ea

ASecurity

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.

  • 30 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 12, 2026
ai-agents

Security analysis

A100/100

Scanned November 12, 2026

npx -y skills add majiayu000/claude-skill-registry-data --skill running-placebo-analysis --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Running Placebo Analysis Pymc Labs Causalpy 81e228ea?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Running Placebo Analysis Pymc Labs Causalpy 81e228ea
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-running-placebo-analysis-pymc-labs-causalpy-81e228-claude-skill-registry-data/badge)](https://www.skillsdirectory.com/skills/majiayu000-running-placebo-analysis-pymc-labs-causalpy-81e228-claude-skill-registry-data)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: running-placebo-analysis
description: 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.
---

# 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

*   [Placebo-in-time Implementation](reference/placebo_in_time.md): Full code for the `PlaceboAnalysis` class, usage examples, and hierarchical status-quo modeling.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.