statistical-analysis

Conduct hypothesis tests, regression, and Bayesian analyses with assumption checks and APA reporting.

Updated Aug 28, 2026
One-click install
npx skills add https://github.com/listentomi/Orcajack --skill statistical-analysis-listentomi
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: statistical-analysis
Source: https://github.com/listentomi/Orcajack/tree/main/skills/science/statistical-analysis
Command: npx skills add https://github.com/listentomi/Orcajack --skill statistical-analysis-listentomi

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Researchers often struggle to choose the right statistical test, verify assumptions, calculate effect sizes, and report results in APA format. This Skill guides the full analysis workflow from test selection through publication-ready reporting, reducing errors like violated assumptions, missing effect sizes, and misreported statistics. ## Core Features & Use Cases - Test Selection & Assumption Checking: Decision trees for choosing t-tests, ANOVA, chi-square, regression, or non-parametric alternatives, plus automated normality, variance, and outlier diagnostics via scripts/assumption_checks.py. - Frequentist & Bayesian Analysis: Worked examples using scipy, statsmodels, pingouin, and pymc, including Bayes Factors and posterior interpretation. - Effect Sizes, Power Analysis & APA Reporting: Compute Cohen's d, eta-squared, and Cramér's V with confidence intervals, run a priori power analyses, and generate APA-style result write-ups. - Use Case: A graduate student comparing exam scores across three teaching methods can check ANOVA assumptions, run the test with Tukey post-hoc comparisons, report partial eta-squared, and produce a formatted APA results paragraph. ## Quick Start Analyze my dataset comparing test scores across three groups, check the assumptions, run the appropriate test with effect sizes, 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?▼

Test selection depends on the number of groups, whether data is paired or independent, and whether distributions are normal. The included test_selection_guide.md provides a decision tree covering t-tests, ANOVA, chi-square, correlations, and their non-parametric alternatives.

How do I check ANOVA and t-test assumptions in Python?▼

Use the assumption_checks.py script, which runs Shapiro-Wilk normality tests, Levene's homogeneity of variance test, and outlier detection with Q-Q plots and box plots. It returns interpretations and recommendations when assumptions are violated.

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 posterior diagnostics.

When should I use Bayesian statistics instead of frequentist tests?▼

Bayesian methods are appropriate when you have prior information, want direct probability statements about hypotheses, need to quantify evidence for the null, or work with small samples and hierarchical models. The bayesian_statistics.md reference covers priors, Bayes Factors, and credible intervals.

What should I do when normality assumptions are violated?▼

For mild violations with n over 30 per group, parametric tests remain robust. For moderate violations, switch to non-parametric alternatives like Mann-Whitney U or Kruskal-Wallis. Severe violations call for data transformation or non-parametric methods.

Why is post-hoc power analysis not recommended?▼

Post-hoc power calculated from observed effects adds no information beyond the p-value and is often misleading. The skill recommends sensitivity analysis instead, which determines the minimum detectable effect size given your sample and alpha level.