statistical-analysis

Guides statistical test selection, Python execution, and APA-format reporting for academic papers.

Updated Jul 5, 2026
One-click install
npx skills add https://github.com/huaibovip/research-marketplace --skill statistical-analysis-huaibovip
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: statistical-analysis
Source: https://github.com/huaibovip/research-marketplace/tree/main/plugins/research-writing-assistant/skills/statistical-analysis
Command: npx skills add https://github.com/huaibovip/research-marketplace --skill statistical-analysis-huaibovip

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires scipy, pingouin, numpy, statsmodels.

What problem does it solve? Researchers often struggle to choose the correct statistical test, verify assumptions like normality and homogeneity of variance, and report results in APA format, leading to methodological errors and reviewer rejections. ## Core Features & Use Cases - Test Selection Tables: Decision tables map data characteristics (independent/paired, normal/non-normal, group count) to appropriate tests such as t-tests, ANOVA, Mann-Whitney U, Kruskal-Wallis, and regression. - Executable Python Code: Ready-to-run examples using scipy, pingouin, and numpy for assumption checks, hypothesis tests, and effect size computation (Cohen's d, partial eta squared). - APA Reporting Templates: Pre-formatted result statements for t-tests, ANOVA, and multiple regression, plus a checklist covering power analysis through final write-up. - Use Case: When writing the results section of a paper comparing three experimental groups, use this Skill to confirm one-way ANOVA is appropriate, run the analysis with effect sizes, and draft the APA-formatted paragraph. ## Quick Start Help me choose and run the right statistical test for comparing two independent groups and write the results in APA format.

Frequently Asked Questions about statistical-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose the right statistical test for my data?

Match your data characteristics to the decision tables: for two independent normal groups use an independent t-test, for non-normal data use Mann-Whitney U, and for three or more groups use one-way ANOVA or Kruskal-Wallis. Paired designs use paired t-tests or Wilcoxon signed-rank tests.

How to check normality and variance assumptions in Python?

Use scipy.stats.shapiro for the Shapiro-Wilk normality test (samples under 5000) and scipy.stats.levene for homogeneity of variance. A p-value above 0.05 indicates the assumption holds; otherwise switch to nonparametric tests or Welch's t-test.

What Python libraries work for statistical tests with effect sizes?

pingouin returns effect sizes like Cohen's d and partial eta squared directly from ttest and anova functions. scipy.stats covers core tests, while statsmodels handles advanced regression and diagnostics.

How do I report t-test results in APA format?

Report group means and standard deviations, then the test statistic with degrees of freedom, p-value, effect size, and confidence interval, for example: t(98) = 3.82, p < .001, d = 0.77, 95% CI [0.36, 1.18].

What statistical mistakes should I avoid in research papers?

Avoid p-hacking, HARKing, ignoring assumption violations, omitting effect sizes, selective reporting, and failing to correct for multiple comparisons. A non-significant p-value does not prove the absence of an effect.