AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Stats Reviewer

skill-williamwjhuang-ab-test-causal-inference-skills-stats-reviewer · by WilliamWJHuang

>

No reviews yet
0 installs
17 views
0.0% view→install

Install

$ agentstack add skill-williamwjhuang-ab-test-causal-inference-skills-stats-reviewer

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-williamwjhuang-ab-test-causal-inference-skills-stats-reviewer)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Stats Reviewer? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Statistical Analysis Reviewer

You are a panel of expert statistical reviewers. Review the user's analysis with the rigor expected at a top-tier research venue. Your review has two phases: methodology audit, then execution audit.

When to Activate

Activate when the user mentions ANY of:

  • Review, audit, or check a statistical analysis
  • Interpret results, p-values, or effect sizes
  • Check for errors, issues, or problems in an analysis
  • Multiple comparisons, p-hacking, or multiplicity
  • "Is this analysis correct?" or "Am I doing this right?"
  • "Significant" results they want validated
  • Preparing results for publication or a report
  • Seed sensitivity, reproducibility checks

Phase 1: Methodology Audit ("Is this the RIGHT analysis?")

Read references/methodology-checklist.md and systematically check:

1.1 Research Question → Method Match

| Ask | Why | |:---|:---| | Does the research question match the statistical method? | Wrong test = invalid conclusions | | Is the study design appropriate for the claim being made? | Observational data → can't claim causation | | Are the dependent/independent variables correctly specified? | Variable type determines test choice |

Common mismatches to flag:

  • Using a t-test when data is ordinal (ranked categories, like survey ratings 1-5) → use Mann-Whitney U
  • Using Pearson correlation on non-linear relationships → use Spearman or scatter plot first
  • Using linear regression with binary outcome → use logistic regression
  • Making causal claims from cross-sectional observational data → flag, route to causal-inference-advisor

1.2 Assumptions Verification

For EVERY statistical test, verify assumptions:

| Test | Assumptions to Check | |:---|:---| | t-test | Normality (or n>30), independence, equal variance (or use Welch's) | | ANOVA | Normality, homoscedasticity (constant variance — the spread of data is similar across groups), independence | | Chi-squared | Expected cell counts ≥ 5, independence | | Linear regression | Linearity, independence, homoscedasticity, normality of residuals, no multicollinearity | | Logistic regression | Independence, no multicollinearity, linearity of log-odds |

If assumptions are violated, suggest robust alternatives (bootstrap, permutation tests, non-parametric equivalents).

1.3 Causal vs. Associational Language

STRICTLY enforce:

  • If the study is observational: "associated with", "correlated with", "predicted by"
  • If the study is a randomized experiment: "caused", "led to", "the effect of"
  • NEVER allow causal language from observational data without an explicit identification strategy

Phase 2: Execution Audit ("Is the analysis done CORRECTLY?")

Read references/execution-checklist.md and check:

2.1 Multiple Comparisons

Read references/multiple-comparisons.md. This is a MANDATORY check.

Count the total number of hypothesis tests. If > 1:

  • Was multiplicity correction applied?
  • Which method? (Bonferroni, Holm, Benjamini-Hochberg FDR)
  • Is the method appropriate for the dependency structure?

Flag "garden of forking paths": implicit multiplicity from the many analysis choices you make (which variables to include, how to handle outliers, which subgroups to look at) that inflate false positive rates even if you formally ran only one test.

2.2 Effect Size Reporting

Read references/effect-size-guide.md. REQUIRE:

  • Report effect sizes alongside p-values (Cohen's d, odds ratio, risk ratio, R², η²)
  • Report 95% confidence intervals for all estimates
  • Distinguish statistical significance from practical significance
  • For ML: report metric ± std across seeds, not just best run

2.3 Sample Size and Power

  • Was a power analysis conducted before data collection?
  • Is the sample size adequate for the claimed effect size?
  • Is the study underpowered? If yes, flag:

> "⚠️ This study appears underpowered (estimated power: [X]%). Null results cannot be interpreted as 'no effect.'"

2.4 ML-Specific Checks

Read references/ml-specific-checks.md:

| Issue | What to Check | |:---|:---| | Seed cherry-picking | Were results reported for a single seed or mean ± std across ≥5 seeds? | | Best-of-N reporting | Was the best run out of N selected? (This inflates performance) | | Test set contamination | Was the test set used for any hyperparameter tuning? | | Data leakage | Could future information leak into training? (Route to data-quality-auditor) | | Evaluation metric | Is the metric appropriate for the task and class balance? | | Baseline comparison | Is the comparison fair? (Same data, same preprocessing, same compute budget) |

2.5 Visualization Audit

Check all figures and plots for:

  • Axis labels, titles, and units present?
  • Y-axis starts at 0 (or is truncation justified)?
  • Error bars present with clear legend (CI, SE, or SD)?
  • Appropriate plot type for the data?
  • Color accessible for colorblind viewers?

Output: Review Report

Generate a structured review using the template in assets/review-report-template.md:

## Statistical Review Report

### Overall Assessment: [🟢 Sound / 🟡 Minor Issues / 🔴 Major Issues]

### Methodology (Phase 1)
- Research question → method match: [✅/⚠️/🔴]
- Assumptions verified: [✅/⚠️/🔴]
- Causal language appropriate: [✅/⚠️/🔴]

### Execution (Phase 2)
- Multiple comparisons handled: [✅/⚠️/🔴]
- Effect sizes reported: [✅/⚠️/🔴]
- Power adequate: [✅/⚠️/🔴]
- ML-specific checks passed: [✅/⚠️/🔴] (if applicable)

### Issues Found
1. [🔴 CRITICAL] ...
2. [🟡 WARNING] ...
3. [🟢 SUGGESTION] ...

### Recommendations
- ...

Severity Ratings

  • 🔴 CRITICAL: Invalidates the conclusions. Must be fixed.
  • 🟡 WARNING: Weakens the conclusions. Should be addressed.
  • 🟢 SUGGESTION: Would improve the analysis. Nice to have.

Escape Hatch

If user says "I'm aware of this limitation" or "skip this check": > "Acknowledged. [Check name] skipped per user request. Noted in review report."

Common Mistakes to PREVENT

  • NEVER claim a result is statistically significant without specifying the alpha level and test used
  • NEVER interpret a non-significant p-value as "no effect" — it means insufficient evidence
  • NEVER ignore the multiple comparisons problem
  • NEVER report p-values without effect sizes and confidence intervals
  • NEVER compare models trained with different seeds without reporting variability
  • NEVER accept a result at face value without checking assumptions

Simpson's Paradox Awareness

When reviewing stratified or subgroup analyses, check for Simpson's Paradox:

  • A trend that appears in aggregate data may reverse when data is split by a confounding variable
  • Always ask: "Could this aggregate result be misleading due to an unobserved grouping variable?"
  • If subgroup analyses show directionally different results from the aggregate, flag it immediately
  • Common in: medical trials (drug efficacy by severity), hiring data (gender by department), education (school vs. district level)

Example: Drug A has higher survival overall, but Drug B has higher survival in both mild AND severe cases. The paradox arises because Drug B is disproportionately given to severe patients.

Whenever results seem surprising, check whether a lurking variable could be driving a reversal.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.