Statistical analysis and reporting for experimental datasets; use when you need to interpret experimental results, test significance (t-tests/ANOVA), or generate reproducible reports.
Start a fresh conversation. Replace the highlighted placeholders.
Use experimental-data-analysis to analyze [CSV file] for [outcome variable] across [grouping variable], validate assumptions, select appropriate tests, and produce a reproducible report with effect sizes, confidence intervals, tables, and charts.
Required inputs
[CSV file]
[outcome variable]
[grouping variable]
User-approved starter prompt based on a pinned source version; check current skill requirements before running. Task evidence ↗
SKILL.md
name: experimental-data-analysisdescription: Statistical analysis and reporting for experimental datasets; use when you need to interpret experimental results, test significance (t-tests/ANOVA), or generate reproducible reports.license: MITauthor: AIPOCH
You have experimental results in CSV form and need a reproducible end-to-end analysis workflow (clean → test → report).
You need to compare two conditions (independent or paired) and determine statistical significance with effect sizes.
You need to compare 3+ groups (one-way) or multiple factors (multi-way) using ANOVA and post-hoc multiple comparisons.
You must validate assumptions (normality, homogeneity of variance) and document them in a report.
You need standardized run outputs (timestamped run directories) for traceability and auditing.
Key Features
Reproducible, run-based execution that writes all artifacts into outputs/runs/<timestamp>/.
Data preparation guidance: missing values, outliers, and variable type identification (continuous/categorical; grouping factors).
Descriptive statistics: means, standard deviations, confidence intervals, and grouped summary tables.
Inferential testing:
t-tests (independent/paired) and non-parametric alternatives when assumptions fail.
ANOVA (one-way and multi-way) with post-hoc testing (e.g., Tukey).
Reporting outputs: test statistics, p-values, effect sizes, tables, charts, and explicit assumption notes.
Reference materials for method selection and reporting templates:
references/stats-method-selection.md
references/reporting-template.md
Dependencies
Python 3.10+
pandas >= 2.0
numpy >= 1.24
scipy >= 1.10
Example Usage
The workflow is run-directory based. Initialize a new run, then analyze using the latest run by default.
# 1) Initialize a new run directory with sample inputs/config
python scripts/init_run.py
# 2) Run analysis (uses the latest outputs/runs/<timestamp>/ by default)
python scripts/analyze_experiment.py
Expected directory conventions:
A new run directory is created at: outputs/runs/<timestamp>/