AI SKILLS / MORE · TMG PICK
Statistical Analysis
Statistical Analysis provides a complete statistical analysis solution, including guidance on selecting methods such as t-tests, ANOVA, regression analysis, and Bayesian statistics. It automatically validates statistical assumptions, calculates effect sizes and conducts power analysis, and generates academic reports in accordance with APA standards, helping researchers complete high-quality statistical analyses.
Choosing a statistical test requires considering data type (continuous/categorical), number of groups (two groups/multiple groups), study design type (independent/paired), and distribution characteristics. This skill provides a decision tree and a reference document test_selection_guide.md to help you select suitable tests based on your research design. Simple rule of thumb: for continuous data, two independent groups use a t-test; multiple groups use ANOVA; paired designs use a paired t-test or repeated-measures ANOVA; when normality assumptions are not met, use nonparametric tests such as Mann-Whitney U or Kruskal-Wallis.
When assumptions such as normality, homogeneity of variances, or linearity are violated, you should not simply use the original test results. If violations are mild and sample sizes are large (n > 30), parametric tests are somewhat robust. For moderate violations, nonparametric alternatives are recommended. For severe violations, consider data transformation or robust methods such as Welch correction or Brown-Forsythe. The skill’s assumption_checks.py will automatically detect assumption violations and provide specific recommendations, including whether data transformation is needed, which alternative tests to use, or what correction methods to apply.
Bayesian methods are particularly useful in these situations: when sample sizes are small (e.g., n < 30) and stronger inference is needed; when you want direct probability statements (e.g., “95% probability that the effect is positive”) rather than confidence intervals; when you need to quantify evidence supporting the null hypothesis; when prior information is available to use; when adopting sequential data analysis designs; and when models are complex (e.g., hierarchical structures, missing data). This skill integrates PyMC and ArviZ, supports complete analysis workflows from simple Bayesian t-tests to complex hierarchical models, automatically checks convergence (R-hat, ESS), and generates posterior predictive checks.