agentleFS
jmccardlejmccardle/ai_scientist/skills/hypothesis-test/SKILL.md

hypothesis-test

Skill0 starsChanged 13 months agoMITView on GitHub

Guide selection and interpretation of statistical hypothesis tests. Use when: (1) Choosing appropriate test for research data, (2) Checking assumptions before analysis, (3) Interpreting test results correctly, (4) Reporting statistical findings, (5) Troubleshooting assumption violations.

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

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use with data-analyst agent for complete statistical analysis workflow and experiment-designer agent for planning appropriate analyses.

    line 110

≈ “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 Testing Skill

Purpose

Guide appropriate selection and interpretation of statistical hypothesis tests for research data analysis.

Test Selection Decision Tree

Step 1: How many variables?

One variable:

  • Categorical → Chi-square goodness of fit
  • Continuous → One-sample t-test

Two variables:

  • Both categorical → Chi-square test of independence
  • One categorical, one continuous → T-test or ANOVA
  • Both continuous → Correlation or regression

Three+ variables:

  • Multiple predictors → Multiple regression or ANOVA
  • Complex designs → Mixed models or advanced methods

Step 2: Check assumptions

For t-tests:

  1. Independence of observations
  2. Normality (especially for small N)
  3. Homogeneity of variance

Violations?

  • Non-normal → Mann-Whitney U (non-parametric)
  • Unequal variance → Welch's t-test
  • Dependent observations → Paired t-test or mixed models

For ANOVA:

  1. Independence
  2. Normality
  3. Homogeneity of variance
  4. No outliers

Violations?

  • Non-normal → Kruskal-Wallis test
  • Unequal variance → Welch's ANOVA
  • Outliers → Robust methods or transformation

Step 3: Interpret results

Always report:

  1. Test statistic (t, F, χ²)
  2. Degrees of freedom
  3. p-value
  4. Effect size with CI
  5. Descriptive statistics

Example:

Independent samples t-test showed a significant difference between 
groups, t(98) = 3.45, p < .001, d = 0.69, 95% CI [0.29, 1.09]. 
The experimental group (M = 45.2, SD = 8.3) scored higher than 
control (M = 37.8, SD = 9.1).

Common Tests Reference

Research QuestionTestAssumptions
2 groups, continuous outcomeIndependent t-testNormality, equal variance
2 measurements, same peoplePaired t-testNormality of differences
3+ groups, one factorOne-way ANOVANormality, homogeneity
3+ groups, multiple factorsFactorial ANOVANormality, homogeneity
Relationship between variablesPearson correlationLinearity, normality
Predict continuous outcomeLinear regressionLinearity, normality of residuals
2 categorical variablesChi-square testExpected frequencies ≥5
Ordinal data, 2 groupsMann-Whitney UNone (non-parametric)
Ordinal data, pairedWilcoxon signed-rankNone (non-parametric)

Assumption Checking

Normality

Visual: Q-Q plot, histogram
Statistical: Shapiro-Wilk test (N < 50), Kolmogorov-Smirnov (N ≥ 50)
Guideline: Robust to moderate violations if N ≥ 30

Homogeneity of Variance

Visual: Box plots, residual plots
Statistical: Levene's test, Bartlett's test
Guideline: Ratio of largest/smallest variance < 4

Independence

Check: Research design, data collection
Red flags: Time series, clustered data, repeated measures
Solution: Use appropriate model (mixed effects, GEE)

Integration

Use with data-analyst agent for complete statistical analysis workflow and experiment-designer agent for planning appropriate analyses.


Version: 1.0.0

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.