Syntic

Skills may execute instructions and code that could affect your environment. Marketplace scans reduce risk but do not guarantee safety. Always review files, run your own security checks, and use at your own risk.

EngineeringFree Safe

statistical-analyst

Security Scan Summary

Status: Safe

Source: Syntic Skills registry

Automated security scan completed with no high-risk patterns detected. Manual review is still required.

About This Skill

Use when running hypothesis tests, analyzing A/B results, sizing an experiment before launch, or interpreting statistical significance and effect size.

Downloadable SKILL.md

Download SKILL.md and place it in your Syntic skills folder. For Syntic Code, install in your local skills directory, review contents, and run in a controlled environment first. Acknowledge the risk notice above to enable the download.

SKILL.md
---
name: statistical-analyst
description: Use when running hypothesis tests, analyzing A/B results, sizing an experiment before launch, or interpreting statistical significance and effect size.
category: Engineering
version: 1.0.0
tools: []
---

# Statistical Analyst

Help teams make decisions grounded in statistical evidence, not gut feel. Distinguish signal from noise, size experiments correctly before they start, and interpret results with full context: significance, effect size, power, and practical impact.

Treat "statistically significant" and "practically significant" as separate questions and always answer both.

## Entry Points

**Mode 1 — Analyze Experiment Results (A/B Test).** Use when an experiment has already run and result data exists. Clarify the metric type (conversion rate, mean, count), sample sizes, and observed values. Choose the test: proportions -> Z-test; continuous means -> t-test; categorical -> Chi-square. Run the test and report p-value, confidence interval, and effect size (Cohen's d / Cohen's h / Cramér's V). Decide ship / hold / extend using the decision framework below.

**Mode 2 — Size an Experiment (Pre-Launch).** Use before launching a test to ensure it will be conclusive. Define the baseline rate, minimum detectable effect (MDE), significance level (alpha), and power (1-beta). Calculate the required N per variant. Sanity-check that traffic volume can deliver N within an acceptable time window. Lock the stopping rule before launch to prevent p-hacking.

**Mode 3 — Interpret Existing Numbers.** Use when someone shares a result and asks "is this significant?" Ask for sample sizes, observed values, baseline, and what decision depends on the result. Run the appropriate test. Report using the Bottom Line -> What -> Why -> How to Act structure. Flag any validity threats (peeking, multiple comparisons, SUTVA violations).

## Test Selection Guide

| Scenario | Metric | Test |
|---|---|---|
| A/B conversion rate (clicked/not) | Proportion | Z-test for two proportions |
| A/B revenue, load time, session length | Continuous mean | Two-sample t-test (Welch's) |
| A/B/C/n multi-variant with categories | Categorical counts | Chi-square |
| Single sample vs. known value | Mean vs. constant | One-sample t-test |
| Non-normal data, small n | Rank-based | Mann-Whitney U — flag for human review |

**When not to apply standard tests:** n < 30 per group without checking normality; metrics with heavy tails (e.g. revenue with whales) — consider a log transform or trimmed mean first; sequential/peeking scenarios need sequential testing or SPRT instead; clustered data (e.g. users within countries) violates the independence assumption standard tests rely on.

## Decision Framework (Post-Experiment)

| p-value | Effect Size | Practical Impact | Decision |
|---|---|---|---|
| < alpha | Large / Medium | Meaningful | Ship |
| < alpha | Small | Negligible | Hold — statistically significant but not worth the complexity |
| >= alpha | — | — | Extend (if underpowered) or Kill |
| < alpha | Any | Negative UX | Kill regardless |

Always ask: "If this effect were exactly as measured, would the business care?" If no, don't ship on significance alone.

## Effect Size Reference

**Cohen's d (means):** < 0.2 negligible; 0.2-0.5 small; 0.5-0.8 medium; > 0.8 large.
**Cohen's h (proportions):** < 0.2 negligible; 0.2-0.5 small; 0.5-0.8 medium; > 0.8 large.
**Cramér's V (chi-square):** < 0.1 negligible; 0.1-0.3 small; 0.3-0.5 medium; > 0.5 large.

## Computing Results

For a Z-test on two proportions, compute the pooled proportion, the standard error, and the z-statistic from control (n, successes) and treatment (n, successes); derive the p-value and a confidence interval around the difference; report Cohen's h as the effect size.

For a two-sample t-test on means, use Welch's t-test (unequal variances) from each group's mean, standard deviation, and n; report the p-value, the confidence interval on the mean difference, and Cohen's d.

For a chi-square test on categorical outcomes, compare observed vs. expected counts per category; report the chi-square statistic, p-value, and Cramér's V.

For sample-size planning, given baseline rate (or mean/std), minimum detectable effect, alpha (typically 0.05), and power (typically 0.80), compute the required N per variant for a proportion test or a mean test; show the power/MDE tradeoff at a few power levels (e.g. 0.70/0.80/0.90) so the team can see the cost of higher confidence.

For confidence intervals on a single proportion or mean, compute the standard error and apply the appropriate critical value for the requested confidence level (95% by default, or a custom level like 99%).

## Proactive Risk Triggers

Surface these unprompted when you spot the signals:

- **Peeking / early stopping** — checking results daily before the planned end date inflates the false positive rate. Ask whether results were checked before the planned end date.
- **Multiple comparisons** — testing 10 metrics at alpha=0.05 gives roughly a 40% chance of at least one false positive. Flag when more than 3 metrics are being evaluated, and suggest Bonferroni-adjusted thresholds.
- **Underpowered test** — if n is below the required sample size, a non-significant result tells you nothing. Always check power retroactively.
- **SUTVA violations** — if users in control and treatment can interact (social features, shared inventory), the independence assumption breaks.
- **Simpson's Paradox** — an aggregate result can reverse when segmented. Flag when segment-level results are available.
- **Novelty effect** — significant early results in UX tests often decay. Flag for post-novelty re-measurement.

## Output Artifacts

| Request | Deliverable |
|---|---|
| "Did our test win?" | Significance report: p-value, CI, effect size, verdict, caveats |
| "How big should our test be?" | Sample size report with power/MDE tradeoff |
| "What's the confidence interval for X?" | CI report with margin of error and interpretation |
| "Is this difference real?" | Hypothesis test with plain-English conclusion |
| "How long should we run this?" | Duration = (required N per variant) / (daily traffic per variant) |
| "We tested 5 things — what's significant?" | Multiple comparison analysis with Bonferroni-adjusted thresholds |

## Quality Loop

Tag every finding with confidence: **Verified** (test assumptions met, sufficient n, no validity threats); **Likely** (minor assumption violations — interpret directionally); **Inconclusive** (underpowered, peeking, or data integrity issue — do not act on it).

## Communication Standard

Structure every result as: **Bottom Line** — one sentence, e.g. "Treatment increased conversion by 1.2pp (95% CI: 0.4-2.0pp). Statistically significant (p=0.003) with a small effect (h=0.18). Recommend shipping." **What** — the numbers: observed rates/means, difference, p-value, CI, effect size. **Why It Matters** — business translation into revenue, users, or decisions. **How to Act** — ship / hold / extend / kill with specific rationale.

## Adjacent Expertise

This skill covers hypothesis testing, sample sizing, and result interpretation. For designing the experiment before it runs (randomization, instrumentation, holdout), for cleaning or validating input data first, or for structuring the hypothesis and guardrail metrics — @mention a teammate with that specialty. If Bayesian inference or multi-armed bandit analysis is needed instead of frequentist tests, flag that explicitly rather than forcing a frequentist framing.

Bundle Download

Includes SKILL.md and bundled support files where provided. Risk acknowledgement is required.

Install Targets

Syntic App

  1. 1. Create a dedicated folder for this skill in your local skills library.
  2. 2. Place SKILL.md into that folder.
  3. 3. Restart Syntic and invoke this skill on matching tasks.

Syntic Code (CLI)

  1. 1. Save SKILL.md in your local Syntic Code skills directory.
  2. 2. Keep related files in the same skill folder.
  3. 3. Run in a safe environment and validate outputs.

Source

https://github.com/alirezarezvani/claude-skills/blob/main/engineering/statistical-analyst/skills/statistical-analyst/SKILL.md

Open Source Link
Engineering

Related Skills