statistical-analysis

Guides statistical test selection, assumption checking, power analysis, and APA-formatted reporting in Python.

Updated Sep 2, 2026
One-click install
npx skills add https://github.com/ricfulop/cba-agentic-engineering-bootstrap --skill statistical-analysis-ricfulop
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: statistical-analysis
Source: https://github.com/ricfulop/cba-agentic-engineering-bootstrap/tree/main/skills/statistical-analysis
Command: npx skills add https://github.com/ricfulop/cba-agentic-engineering-bootstrap --skill statistical-analysis-ricfulop

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, pandas, scipy, matplotlib, seaborn, pingouin, statsmodels, 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 correctly is error-prone for researchers. This Skill provides a guided workflow for hypothesis testing, regression, correlation, and Bayesian analysis with automated assumption checks and APA-style reporting templates. ## Core Features & Use Cases - Test Selection & Assumption Checking: Decision trees for choosing t-tests, ANOVA, chi-square, or non-parametric alternatives, plus an automated assumption_checks.py module for normality, homogeneity of variance, linearity, and outlier detection. - Effect Sizes & Power Analysis: Calculate Cohen's d, eta-squared, Cramér's V, and Bayes Factors with confidence intervals, and run a priori or sensitivity power analyses via statsmodels. - APA Reporting: Ready-made templates for reporting t-tests, ANOVA, regression, chi-square, and Bayesian results with all required statistics. - Use Case: A graduate student comparing exam scores across three teaching conditions uses the Skill to verify ANOVA assumptions, run the test with Tukey post-hoc comparisons, compute partial eta-squared, and produce a publication-ready results paragraph. ## Quick Start Use the statistical-analysis skill to compare my two groups in scores.csv, check the assumptions, and report 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 the test to your design: 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 logistic regression for binary outcomes. The Skill's test selection guide walks through these decisions based on normality and data type.

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

Use the bundled assumption_checks.py module, which runs Shapiro-Wilk tests with Q-Q plots for normality and Levene's test with box plots for variance homogeneity. The comprehensive_assumption_check function runs the full workflow and recommends parametric or non-parametric tests.

What Python libraries does this Skill use for statistics?

It uses pingouin for user-friendly tests with effect sizes, scipy.stats for core tests, statsmodels for regression and power analysis, and pymc with arviz for Bayesian modeling. Install them with uv pip install as shown in the Skill's installation section.

When should I use Bayesian statistics instead of a t-test?

Use Bayesian methods when you have prior information, want direct probability statements about hypotheses, have small samples, or need to quantify evidence for the null hypothesis via Bayes Factors. The Skill implements Bayesian t-tests and regression with PyMC.

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. The Skill recommends sensitivity analysis instead, which determines the minimum detectable effect size given your sample, alpha, and desired power.