agentleFS
ChrisGVEChrisGVE/localdata-mcp/skills/statistical/hypothesis-test/SKILL.md

hypothesis-test

Skill4 starsChanged 15 months agoApache-2.0View on GitHub

Run a hypothesis test with assumption checks, test selection, and plain-language interpretation. Use when comparing groups or testing a specific statistical claim.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Explore the data: Call describe_database with the database name from $ARGUMENTS.

    line 14
  2. Very specific:

    Extract and inspect: Call execute_query to pull the relevant columns.

    line 16
  3. Very specific:

    Check assumptions: Call execute_query to compute summary statistics per group (mean, median, sd, skewness).

    line 22
  4. Very specific:

    Compute effect sizes: Call analyze_effect_sizes with the same data.

    line 35
  5. Distinctive:

    Test selected and why (citing assumption check results)

    line 39
  6. Distinctive:

    Test statistic, degrees of freedom, p-value

    line 40

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Hypothesis Test

Select and run the appropriate statistical test based on data characteristics, with full assumption checking and effect size reporting.

Steps

  1. Explore the data. Call describe_database with the database name from $ARGUMENTS. Identify the columns to compare and the grouping variable. Call get_data_quality_report to check for missing values that could bias results.
  2. Extract and inspect. Call execute_query to pull the relevant columns. Determine:
    • Number of groups (2 vs 3+)
    • Sample size per group
    • Whether observations are paired or independent
    • Whether the outcome is continuous or categorical
  3. Check assumptions. Call execute_query to compute summary statistics per group (mean, median, sd, skewness). Assess:
    • Normality: skewness beyond +/-1 or small samples (n < 30) suggest non-parametric tests
    • Variance homogeneity: ratio of largest to smallest group SD above 2 suggests unequal variances
    • Sample balance: highly unequal group sizes affect test power
  4. Select and run the test. Based on the assessment:
    • 2 groups, normal, equal variance: call analyze_hypothesis_test with independent t-test
    • 2 groups, normal, unequal variance: call analyze_hypothesis_test with Welch's t-test
    • 2 groups, non-normal: call analyze_hypothesis_test with Mann-Whitney U
    • 2 groups, paired: call analyze_hypothesis_test with paired t-test or Wilcoxon signed-rank
    • 3+ groups: call analyze_anova with appropriate post-hoc tests
    • Categorical outcome: call analyze_hypothesis_test with chi-squared test
  5. Compute effect sizes. Call analyze_effect_sizes with the same data. Report Cohen's d (two groups), eta-squared (ANOVA), or Cramer's V (chi-squared). Classify as small, medium, or large.
  6. Interpret results. Present:
    • Hypotheses stated in plain language
    • Test selected and why (citing assumption check results)
    • Test statistic, degrees of freedom, p-value
    • Effect size with confidence interval
    • One-sentence conclusion: what this means for the question at hand
  7. Flag caveats. Report any assumption violations, small sample warnings, or multiple comparison adjustments. If the result is statistically significant but the effect is trivial, say so explicitly.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.