SkillAgentSearch skills...

statistical-analysis

Guided statistical analysis: test choice, assumption checks, effect sizes, power, APA reporting. Pick tests, verify assumptions, or format results for publication. Covers frequentist (t-test, ANOVA, chi-square, regression, correlation, survival, count, reliability) and Bayesian.

Install / Use

npx skills add jaechang-hits/SciAgent-Skills --skill statistical-analysis

Installs into whichever agent you are using.

About this skill
📄

SKILL.md

Installable skill definition

Quality Score

87/100

Supported Platforms

Universal

Tags

Our assessment of statistical-analysis

statistical-analysis scores 87/100 on our quality scale, 2049th of 4,619 Development & Engineering skills we index (top 45%).

Its SKILL.md is 19 KB long, well organised into 22 sections with 1 code example: a thorough specification that gives an agent plenty to work with.

It has 367 GitHub stars, a meaningful sign that others use it.

Substance
30/30
Structure
17/20
Description
15/15
Adoption
11/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated 37 days ago, so statistical-analysis is actively maintained.
  • No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
  • Its trust signals score 88/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

Safety scan

No issues found

Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.

Automated pattern scan on 2026-10-05. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.

statistical-analysis compared with similar skills

All 4 of these similar skills score higher than statistical-analysis; compare them before choosing.

SkillScoreStarsUpdatedFormat
statistical-analysis (this skill)by jaechang-hits8736737d agoSKILL.md
ai-job-searchby MadsLorentzen10045.0k1d agoCLAUDE.md
claude-howtoby luongnv8910041.7k4d agoCLAUDE.md
algorithmic-artby anthropics100177.9k12d agoSKILL.md
pptxby anthropics100177.9k12d agoSKILL.md

Frequently asked questions

How do I install statistical-analysis?
Run npx skills add jaechang-hits/SciAgent-Skills --skill statistical-analysis. The install tabs above show the steps for each supported agent.
Which AI agents does statistical-analysis work with?
It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
Is statistical-analysis safe to use?
Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It declares no license and scores 88/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is statistical-analysis still maintained?
The repository was last updated 37 days ago, so statistical-analysis is actively maintained.

name: statistical-analysis description: >- Guided statistical analysis: test choice, assumption checks, effect sizes, power, APA reporting. Pick tests, verify assumptions, or format results for publication. Covers frequentist (t-test, ANOVA, chi-square, regression, correlation, survival, count, reliability) and Bayesian. Use statsmodels or pymc-bayesian-modeling to fit. license: CC-BY-4.0

Statistical Analysis

Overview

Statistical analysis is the systematic process of selecting appropriate tests, verifying assumptions, quantifying effect magnitudes, and reporting results. This knowhow guides test selection, assumption diagnostics, and APA-style reporting for frequentist and Bayesian analyses in academic research.

Key Concepts

Frequentist vs Bayesian Framework

| Aspect | Frequentist | Bayesian | |--------|-------------|----------| | Core output | p-value, confidence interval | Posterior distribution, credible interval | | Interpretation | "How likely is this data if H0 is true?" | "How likely is H1 given the data?" | | Null support | Cannot support H0 (only fail to reject) | Can quantify evidence for H0 via Bayes Factor | | Prior info | Not used | Incorporated via prior distributions | | Sample size | Requires adequate power | Works with any sample size | | Best for | Standard analyses, large samples | Small samples, prior info, complex models |

Statistical vs Practical Significance

A statistically significant result (p < .05) may be trivially small in practice. Always report:

  • Effect size: Magnitude of the effect (Cohen's d, eta-squared, r, R-squared)
  • Confidence interval: Precision of the estimate
  • Context: Clinical/practical relevance in the domain

Common Effect Sizes

| Test | Effect Size | Small | Medium | Large | |------|-------------|-------|--------|-------| | t-test | Cohen's d | 0.20 | 0.50 | 0.80 | | t-test (small n) | Hedges' g | 0.20 | 0.50 | 0.80 | | ANOVA | eta-squared partial | 0.01 | 0.06 | 0.14 | | ANOVA | omega-squared | 0.01 | 0.06 | 0.14 | | Correlation | r | 0.10 | 0.30 | 0.50 | | Regression | R-squared | 0.02 | 0.13 | 0.26 | | Regression | f-squared | 0.02 | 0.15 | 0.35 | | Chi-square | Cramer's V | 0.07 | 0.21 | 0.35 | | Chi-square 2x2 | phi coefficient | 0.10 | 0.30 | 0.50 |

Cohen's benchmarks are guidelines, not rigid thresholds -- domain context always matters.

Assumptions Overview

Most parametric tests require:

  1. Independence: Observations are independent of each other
  2. Normality: Data (or residuals) are approximately normally distributed
  3. Homogeneity of variance: Groups have similar variances (for group comparisons)
  4. Linearity: Relationship between variables is linear (for regression)

When assumptions are violated:

  • Normality violated, n > 30: Proceed -- parametric tests are robust with large samples
  • Normality violated, n < 30: Use non-parametric alternative
  • Variance heterogeneity: Use Welch's correction (t-test) or Welch's ANOVA
  • Linearity violated: Add polynomial terms, transform variables, or use GAMs

Test-Specific Assumption Workflows

T-test assumptions: (1) Check normality per group with Shapiro-Wilk + Q-Q plots. (2) Check homogeneity with Levene's test. (3) If normality violated: Mann-Whitney U (independent) or Wilcoxon signed-rank (paired). If variance heterogeneity: use Welch's t-test.

ANOVA assumptions: (1) Normality per group. (2) Homogeneity via Levene's test. (3) For repeated measures: check sphericity (Mauchly's test); if violated, apply Greenhouse-Geisser (epsilon < 0.75) or Huynh-Feldt (epsilon > 0.75) correction. (4) If normality violated: Kruskal-Wallis (independent) or Friedman (repeated).

Linear regression assumptions: (1) Linearity via residuals-vs-fitted plot. (2) Independence via Durbin-Watson test (1.5-2.5 acceptable). (3) Homoscedasticity via Breusch-Pagan test + scale-location plot. (4) Normality of residuals via Q-Q plot + Shapiro-Wilk. (5) Multicollinearity via VIF (>10 = severe, >5 = moderate).

Logistic regression assumptions: (1) Independence. (2) Linearity of log-odds with continuous predictors (Box-Tidwell test). (3) No perfect multicollinearity (VIF). (4) Adequate sample size (10-20 events per predictor minimum).

Specialized Test Categories

Beyond the main decision flowchart, several specialized test families address specific data types:

Survival / time-to-event analysis:

  • Log-rank test: Compares survival curves between groups (non-parametric)
  • Cox proportional hazards: Models time-to-event with covariates; assumes proportional hazards
  • Parametric survival models: Weibull, exponential, log-normal for known distributional forms
  • Use when outcome is time until an event (death, relapse, failure) with possible censoring

Count outcome models:

  • Poisson regression: For count data where mean approximately equals variance
  • Negative binomial regression: For overdispersed counts (variance > mean)
  • Zero-inflated models: For excess zeros beyond what Poisson/NB predicts
  • Use when outcome is a count (number of events, incidents, occurrences)

Agreement and reliability:

  • Cohen's kappa: Inter-rater agreement for categorical ratings (2 raters)
  • Fleiss' kappa / Krippendorff's alpha: Agreement for >2 raters
  • Intraclass correlation coefficient (ICC): Continuous ratings reliability
  • Cronbach's alpha: Internal consistency of multi-item scales
  • Bland-Altman analysis: Agreement between two measurement methods (continuous)
  • Use when assessing measurement reliability or inter-rater consistency

Categorical data extensions:

  • McNemar's test: Paired binary outcomes (2x2)
  • Cochran's Q test: Paired binary outcomes (3+ conditions)
  • Cochran-Armitage trend test: Ordered categories in contingency tables

Decision Framework

Test Selection Flowchart

What is your research question?
|
+-- Comparing GROUPS on a continuous outcome?
|   |
|   +-- How many groups?
|   |   +-- 2 groups
|   |   |   +-- Independent -> Independent t-test (or Mann-Whitney U)
|   |   |   +-- Paired/repeated -> Paired t-test (or Wilcoxon signed-rank)
|   |   +-- 3+ groups
|   |      +-- Independent -> One-way ANOVA (or Kruskal-Wallis)
|   |      +-- Repeated -> Repeated-measures ANOVA (or Friedman)
|   |
|   +-- Multiple factors? -> Factorial ANOVA / Mixed ANOVA
|   +-- With covariates? -> ANCOVA
|
+-- Testing a RELATIONSHIP between variables?
|   |
|   +-- Both continuous?
|   |   +-- Normal -> Pearson correlation
|   |   +-- Non-normal or ordinal -> Spearman correlation
|   |
|   +-- Predicting continuous outcome?
|   |   +-- 1 predictor -> Simple linear regression
|   |   +-- Multiple predictors -> Multiple linear regression
|   |
|   +-- Predicting categorical outcome?
|   |   +-- Binary -> Logistic regression
|   |   +-- Ordinal -> Ordinal logistic regression
|   |
|   +-- Predicting count outcome?
|   |   +-- Equidispersed -> Poisson regression
|   |   +-- Overdispersed -> Negative binomial regression
|   |   +-- Excess zeros -> Zero-inflated Poisson/NB
|   |
|   +-- Time-to-event outcome?
|       +-- Compare survival curves -> Log-rank test
|       +-- With covariates -> Cox proportional hazards
|
+-- Testing ASSOCIATION between categorical variables?
|   +-- Expected cell count >= 5 -> Chi-square test
|   +-- Expected cell count < 5 -> Fisher's exact test
|   +-- Ordered categories -> Cochran-Armitage trend test
|   +-- Paired categories -> McNemar's test
|
+-- Assessing AGREEMENT / RELIABILITY?
    +-- Categorical, 2 raters -> Cohen's kappa
    +-- Categorical, >2 raters -> Fleiss' kappa
    +-- Continuous ratings -> ICC
    +-- Two measurement methods -> Bland-Altman analysis
    +-- Internal consistency -> Cronbach's alpha

Quick Reference Table

| Research Question | Data Type | Normal? | Test | Non-parametric Alternative | |-------------------|-----------|---------|------|---------------------------| | 2 independent groups | Continuous | Yes | Independent t-test | Mann-Whitney U | | 2 paired groups | Continuous | Yes | Paired t-test | Wilcoxon signed-rank | | 3+ independent groups | Continuous | Yes | One-way ANOVA | Kruskal-Wallis | | 3+ repeated groups | Continuous | Yes | Repeated-measures ANOVA | Friedman test | | 2 variables | Continuous | Yes | Pearson r | Spearman rho | | Predict continuous | Mixed | -- | Linear regression | -- | | Predict binary | Mixed | -- | Logistic regression | -- | | Predict counts | Count | -- | Poisson / Negative binomial | -- | | Time-to-event | Survival | -- | Cox PH / Log-rank | -- | | 2 categorical | Categorical | -- | Chi-square / Fisher's exact | -- | | Rater agreement | Categorical | -- | Cohen's kappa / Fleiss' kappa | -- | | Method agreement | Continuous | -- | Bland-Altman / ICC | -- |

Best Practices

  1. Pre-register analyses when possible to distinguish confirmatory from exploratory findings. Specify primary outcome, tests, and correction methods before data collection
  2. Always check assumptions before interpreting results. Run normality tests (Shapiro-Wilk), homogeneity tests (Levene's), and residual diagnostics. Document results even when assumptions are met
  3. Report effect sizes with confidence intervals for every test. p-values alone are insufficient -- effect sizes convey practical importance
  4. Report all planned analyses including non-significant findings. Selective reporting inflates false positive rates
  5. Use appropriate multiple comparison corrections. Bonferroni (conservative), Holm (step-down, less conservative), or FDR/Benjamini-Hochberg (for many tests). Choose based on the number of comparisons and acceptable error rate
  6. Visualize data before and after analysis. Box plots for group comparisons, scatter plots for correlations, residual plots for regression diagnostics
  7. Conduct sensitivity analyses to assess robustness: re-run with outliers removed, different transformations, or alternative tests
  8. Anti-pattern -- p-hacking: Testing multiple outcomes, subgroups, or model specifications until p < .05 inflates false positives. Pre-register to avoid
  9. Anti-pattern -- HARKing (Hypothesizing After Results are Known): Presenting exploratory findings as confirmatory undermines scientific integrity
  10. Anti-pattern -- misinterpreting non-significance: Failure to reject H0 does not mean H0 is true. Use Bayesian methods or equivalence testing to support null

Common Pitfalls

  1. Misinterpreting p-values as probability of the hypothesis being true. p-values measure P(data | H0), not P(H0 | data). How to avoid: Use precise language: "If the null hypothesis were true, the probability of observing data this extreme is p = ..."

  2. Confusing statistical significance with practical importance. A large sample can make trivially small effects significant. How to avoid: Always report and interpret effect sizes alongside p-values

  3. Running post-hoc power analysis after a non-significant result. Post-hoc power is a mathematical function of the p-value and adds no new information. How to avoid: Use sensitivity analysis instead -- determine what effect size the study could detect at 80% power

  4. Ignoring assumption violations and proceeding with parametric tests. How to avoid: Run assumption checks systematically. Use Welch's corrections, non-parametric alternatives, or transformations when violated

  5. Multiple comparisons without correction. Running 20 tests at alpha = .05 gives ~64% chance of at least one false positive. How to avoid: Apply Bonferroni, Holm, or FDR correction. Report both corrected and uncorrected p-values

  6. Treating ordinal data as continuous. Likert scales are ordinal -- means and standard deviations assume equal intervals. How to avoid: Use non-parametric tests (Mann-Whitney, Kruskal-Wallis) or ordinal regression

  7. Ignoring missing data patterns. Listwise d

Truncated for display — read the full file on GitHub.

Related Skills

View on GitHub
GitHub Stars367
CategoryDevelopment
Updated1mo ago
Forks36

Languages

Python

Trust signals

88/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

1 medium
statistical-analysis — Universal Skill: Install & Safety Check | SkillAgent