statistical-analysis

Guides statistical test selection, assumption checking, and APA-formatted reporting for research data.

Updated Aug 12, 2026
One-click install
npx skills add https://github.com/littlt-momo-c-yfc/skills --skill statistical-analysis-littlt-momo-c-yfc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: statistical-analysis
Source: https://github.com/littlt-momo-c-yfc/skills/tree/main/skills/scientific-toolkit-skill/references/scientific-skills/statistical-analysis
Command: npx skills add https://github.com/littlt-momo-c-yfc/skills --skill statistical-analysis-littlt-momo-c-yfc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, pandas, scipy, matplotlib, seaborn, statsmodels, pingouin, pymc, arviz, and includes scripts (resource) and references (resource) components.

What problem does it solve? Choosing the right statistical test, verifying its assumptions, and reporting results in APA format is error-prone for researchers, often leading to invalid conclusions or rejected manuscripts. ## Core Features & Use Cases - Test Selection Guidance: Decision trees map research questions and data characteristics to appropriate tests (t-tests, ANOVA, chi-square, regression, non-parametric alternatives). - Automated Assumption Checking: The assumption_checks.py script runs normality tests, Levene's test, outlier detection, and diagnostic plots with interpretive recommendations. - Effect Sizes, Power Analysis, and Bayesian Methods: Calculate Cohen's d, eta-squared, and Bayes Factors, and run a priori power analyses to determine sample sizes. - Use Case: A graduate student comparing exam scores across three teaching conditions uses the skill to select a one-way ANOVA, verify normality and homogeneity, run Tukey post-hoc tests, and produce an APA-formatted results paragraph. ## Quick Start Help me choose and run the right statistical test to compare exam scores across my three experimental groups, check the assumptions, and write up the results in APA style.

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 the test to your design and data type: independent t-test or Mann-Whitney U for two groups, ANOVA or Kruskal-Wallis for three or more groups, Pearson or Spearman for correlations, and regression for prediction. The included test selection guide walks through each decision based on normality and pairing.

How do I check normality and homogeneity of variance in Python?

Use the Shapiro-Wilk test from scipy for normality and Levene's test for homogeneity of variance, combined with Q-Q plots and box plots. The assumption_checks.py script automates both checks and recommends remedies such as Welch's correction or non-parametric alternatives.

What Python libraries are used for statistical analysis here?

The workflow uses scipy.stats for core tests, statsmodels for regression and power analysis, pingouin for tests with built-in effect sizes, and pymc with arviz for Bayesian modeling and diagnostics.

When should I use Bayesian statistics instead of frequentist tests?

Use Bayesian methods when you have prior information to incorporate, want direct probability statements about hypotheses, have small samples, or need to quantify evidence for the null hypothesis. Frequentist tests remain sufficient for standard analyses with large samples.

What should I do when statistical assumptions are violated?

For violated normality, use non-parametric alternatives or transformations; for unequal variances, use Welch's t-test or Welch's ANOVA; for regression non-linearity, add polynomial terms or transform variables. Mild violations are tolerable with more than 30 observations per group.

Why is post-hoc power analysis not recommended?

Post-hoc power is a direct function of the observed p-value and adds no information beyond it. Instead, conduct a sensitivity analysis to determine the minimum detectable effect size given your sample, or report confidence intervals for effect sizes.