Plan and report statistical analyses: estimand framing, test/model choice, assumption checks, power/sensitivity notes, effect sizes, uncertainty, and reproducible reporting.
Resources
2Install
npx skillscat add yuukias/ai-skills-collection/statistical-analysis Install via the SkillsCat registry.
Statistical Analysis
Workflow inheritance
For complex tasks, first apply the global codex-workflow-protocol skill. This skill only adds domain-specific knowledge, gates, and validation requirements. It must not weaken the global completion, escalation, or verification rules.
Workflow
- Translate the user question into estimand, outcome, predictors/groups, unit of analysis, and dependency structure.
- Inspect data quality, missingness, measurement scale, outliers, and study design before choosing tests.
- Choose the simplest defensible analysis: descriptive summary, hypothesis test, regression, survival model, Bayesian model, or simulation.
- Check assumptions and identify robust or nonparametric alternatives.
- Report effect sizes, uncertainty intervals, p-values only when appropriate, multiplicity caveats, and practical significance.
- Validate by rerunning calculations, checking sensitivity choices, and making the code reproducible.
Completion boundary
Do not claim completion from a smoke simulation, tiny dryrun, notebook import, or one successful toy run alone. Simulation, inference, or theorem-heavy research coding is complete only when the estimand, model assumptions, data-generating or likelihood assumptions, and requested validation evidence are checked at the intended scale or a precise residual risk is reported.
Bayesian/domain-specific acceptance should include prior justification, convergence diagnostics where applicable, posterior predictive or sensitivity checks where applicable, and a clear distinction between exploratory and confirmatory claims.
References
- Read
references/statistical-decision-notes.mdfor test/model selection and reporting conventions. - Read
references/legacy-full-skill.mdfor older examples and extended background. - Use
statsmodelsfor Python model implementation,pymcfor PyMC models,bayesian-ppl-diagnosticsfor convergence and PPL diagnostics, andsimpyfor process-based simulation.
Validation
- The analysis states assumptions, missing-data handling, and unit of analysis.
- Results distinguish exploratory, confirmatory, and sensitivity analyses.
- Budget warnings for full Bayesian/statistics domain installs are advisory only.