Skip to content
Agentmart
Submit a tool

stats-advisor

Recommend and execute the right statistical test for a given question, with plain-English interpretation.

Skill by tezansahu

IndexedGPL-3.0★ 16
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/tezansahu-stats-advisor

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Recommend and execute the right statistical test for a given question, with plain-English interpretation. Trigger when the user asks about "A/B test", "hypothesis test", "statistical significance", "p-value", "confidence interval", "is this difference significant", "compare two groups", "correlation test", "chi-squared", "t-test", "ANOVA", "power analysis", "sample size", "Bayesian vs frequentist", "statistical test", "effect size", or any question about whether an observed difference is real or due to chance. Also triggers on "which test should I use" or "analyze this experiment".

Use cases: testing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/stats-advisor

What's inside

Skill name
stats-advisor
Description
Recommend and execute the right statistical test for a given question, with plain-English interpretation. Trigger when the user asks about "A/B test", "hypothesis test", "statistical significance", "p-value", "confidence interval", "is this difference significant", "compare two groups", "correlation test", "chi-squared", "t-test", "ANOVA", "power analysis", "sample size", "Bayesian vs frequentist", "statistical test", "effect size", or any question about whether an observed difference is real or due to chance. Also triggers on "which test should I use" or "analyze this experiment".
License
GPL-3.0
Instructions
162 lines in SKILL.md · view on GitHub

Files (3)

  • SKILL.md
  • ab-testing.md · references/
  • test-selector.md · references/

SKILL.md (first lines)

# Stats Advisor

Recommend, execute, and interpret the right statistical test with clear, honest communication.

---

## Workflow

```
1. Understand the question
2. Select the appropriate test (references/test-selector.md)
3. Check assumptions
4. Execute test
5. Interpret and report results
```

---

## Step 1 -- Understand the Question

Determine:
- **What is being compared?** (means, proportions, distributions, relationships)
- **How many groups?** (1, 2, 3+)
- **Paired or independent?** (same subjects measured twice vs. different groups)
- **Sample size?** (affects test choice and power)
- **What is the practical question?** (not just "is p < 0.05" but "should we ship this?")

---

## Step 2 -- Select Test

Read `references/test-selector.md` for the full decision tree.

Quick reference:

| Question | Test |
|---|---|
| Two means, independent groups | Independent t-test (or Welch's t-test) |
| Two means, paired/matched | Paired t-test |
| Two proportions | Chi-squared test or Z-test for proportions |
| Two distributions | Mann-Whitney U (non-parametric) |
| Three+ group means | One-way ANOVA (+ Tukey post-hoc) |
| Three+ group distributions | Kruskal-Wallis |
| Correlation (linear) | Pearson's r |
| Correlation (ordinal/non-linear) | Spearman's rho |
| Association (categorical) | Chi-squared test of independence |
| One proportion vs expected | Binomial test |
| Normality check | Shapiro-Wilk test |
| Variance equality | Levene's test |

---

## Step 3 -- Check Assumptions

Before running any test, verify its assumptions:

### For Parametric Tests (t-test, ANOVA)
1. **Normality**: Shapiro-Wilk test or visual QQ plot. If p < 0.05, consider non-parametric alternative.
2. **Equal variances**: Levene's test. If violated, use Welch's t-test.
3. **Independence**: Observations must be independent (study design, not a test).
4. **Sample size**: n >= 30 per group for Central Limit Theorem to help.

### For Chi-Squared
1. **Expected frequency**: All expected cell counts >= 5. If not, use Fisher's exact test.
2. **Independence**: Observations are independent.

If assumptions are violated, recommend the non-parametric alternative and explain why.

---

## Step 4 -- Execute Test

### Standard Implementation Pattern

```python
from scipy import stats
import numpy as np

# Example: Independent t-test
t_stat, p_value = stats.ttest_ind(group_a, group_b, equal_var=False)  # Welch's by default

# Effect size (Cohen's d)
cohens_d = (np.mean(group_a) - np.mean(group_b)) / np.sqrt(
    (np.std(group_a, ddof=1)**2 + np.std(group_b, ddof=1)**2) / 2
)

# Confidence interval for difference of means
from scipy.stats import sem
diff = np.mean(group_a) - np.mean(group_b)
se_diff = np.sqrt(sem(group_a)**2 + sem(group_b)**2)
ci_95 = (diff - 1.96 * se_diff, diff + 1.96 * se_diff)
```

**Always compute and report:**
1. Test statistic
2. p-value
3. Effect size (Cohen's d, Cramer's V, etc.)
4. Confidence interval

---

## Step 5 -- Interpret and Report

### Interpretation Template

```markdown
## Statistical Analysis: [Question]

### Setup
- **Groups**: [Group A] (n=[N]) vs [Group B] (n=[N])
- **Test**: [Test name]
- **Significance level**: alpha = 0.05

### Results
- **[Group A] mean**: [value] (SD = [value])
- **[Group B] mean**: [value] (SD = [value])
- **Difference**: [value] ([CI lower], [CI upper])
- **Test statistic**: [name] = [value]
- **p-value**: [value]

From tezansahu/ai-garage, GPL-3.0.

More from tezansahu/ai-garage

Signals

Stars
16
Forks
8
Open issues
1
Last commit (this folder)
Jul 7, 2026 (3 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
GPL-3.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from tezansahu

Cite this page

stats-advisor skill. Agent Mart. https://agentmart.dev/skills/tezansahu-stats-advisor (last updated 2026-10-24)