{"data":{"slug":"github-aipoch-medical-research-skills-scientific-skills-data-analysis-experimental-data-analysis-820139b01a6f","title":"Experimental Data Analysis and Reporting","summary":"Perform statistical analysis and generate reproducible reports for experimental datasets in CSV format, including t-tests, ANOVA, and assumption validation.","url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-experimental-data-analysis-820139b01a6f","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-experimental-data-analysis-820139b01a6f","markdown_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-experimental-data-analysis-820139b01a6f.md","download_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-experimental-data-analysis-820139b01a6f\/download","category":{"slug":"data-research","name":"Data & Research"},"editor_note":"Before running the analysis, initialize a new run directory using `scripts\/init_run.py` to create a timestamped output directory and populate initial inputs\/config. All artifacts must be written inside the run directory.","instructions":"---\nname: experimental-data-analysis\ndescription: Statistical analysis and reporting for experimental datasets; use when you need to interpret experimental results, test significance (t-tests\/ANOVA), or generate reproducible reports.\nlicense: MIT\nauthor: AIPOCH\n---\n> **Source**: [https:\/\/github.com\/aipoch\/medical-research-skills](https:\/\/github.com\/aipoch\/medical-research-skills)\n\n## When to Use\n\n- You have experimental results in CSV form and need a reproducible end-to-end analysis workflow (clean \u2192 test \u2192 report).\n- You need to compare two conditions (independent or paired) and determine statistical significance with effect sizes.\n- You need to compare 3+ groups (one-way) or multiple factors (multi-way) using ANOVA and post-hoc multiple comparisons.\n- You must validate assumptions (normality, homogeneity of variance) and document them in a report.\n- You need standardized run outputs (timestamped run directories) for traceability and auditing.\n\n## Key Features\n\n- Reproducible, run-based execution that writes all artifacts into `outputs\/runs\/<timestamp>\/`.\n- Data preparation guidance: missing values, outliers, and variable type identification (continuous\/categorical; grouping factors).\n- Descriptive statistics: means, standard deviations, confidence intervals, and grouped summary tables.\n- Inferential testing:\n  - t-tests (independent\/paired) and non-parametric alternatives when assumptions fail.\n  - ANOVA (one-way and multi-way) with post-hoc testing (e.g., Tukey).\n- Reporting outputs: test statistics, p-values, effect sizes, tables, charts, and explicit assumption notes.\n- Reference materials for method selection and reporting templates:\n  - `references\/stats-method-selection.md`\n  - `references\/reporting-template.md`\n\n## Dependencies\n\n- Python 3.10+\n- pandas >= 2.0\n- numpy >= 1.24\n- scipy >= 1.10\n\n## Example Usage\n\nThe workflow is run-directory based. Initialize a new run, then analyze using the latest run by default.\n\n```bash\n# 1) Initialize a new run directory with sample inputs\/config\npython scripts\/init_run.py\n\n# 2) Run analysis (uses the latest outputs\/runs\/<timestamp>\/ by default)\npython scripts\/analyze_experiment.py\n```\n\nExpected directory conventions:\n\n- A new run directory is created at: `outputs\/runs\/<timestamp>\/`\n- Configuration file location: `outputs\/runs\/<timestamp>\/config.json`\n- All intermediate and final artifacts (config, inputs, outputs, figures, tables) must be written inside the run directory.\n- Writing outside the run directory is prohibited.\n\n## Implementation Details\n\n### Reproducible Run Management\n\n- Before each execution, run:\n  - `scripts\/init_run.py` to create `outputs\/runs\/<timestamp>\/` and populate initial inputs\/config.\n- Analysis scripts default to the latest run directory under `outputs\/runs\/` unless explicitly overridden (if supported by the script).\n\n### Analysis Pipeline\n\n1. **Data Preparation**\n   - Handle missing values (e.g., drop, impute, or flag) according to the experimental design.\n   - Detect and treat outliers (e.g., robust rules, domain thresholds), documenting any exclusions.\n   - Identify variable roles:\n     - Outcome variable(s): typically continuous measurements.\n     - Grouping factors: categorical condition labels (treatment\/control, timepoint, genotype, etc.).\n\n2. **Descriptive Statistics**\n   - Compute summary metrics per group:\n     - Mean, standard deviation, and confidence intervals (commonly 95% CI).\n   - Produce grouped summary tables suitable for reporting.\n\n3. **Inferential Statistics**\n   - **Two-group comparisons**\n     - Use an independent t-test for separate groups.\n     - Use a paired t-test for repeated measures \/ matched pairs.\n     - If assumptions are violated, switch to an appropriate non-parametric alternative.\n   - **Multi-group \/ multi-factor comparisons**\n     - Use one-way ANOVA for a single factor with 3+ levels.\n     - Use multi-way ANOVA when multiple factors are present.\n   - **Multiple comparisons**\n     - Apply post-hoc procedures (e.g., Tukey) after ANOVA when needed.\n     - Define and document the multiple-comparison control strategy.\n\n4. **Assumption Checks and Reporting Standards**\n   - Validate and report:\n     - Normality (per group or model residuals, as appropriate).\n     - Homogeneity of variance.\n   - Report, at minimum:\n     - Test statistic, degrees of freedom (if applicable), p-value.\n     - Effect size(s) and confidence intervals where applicable.\n   - Retain analysis code and random seeds to ensure reproducibility.","use_cases":["Analyzing experimental results in CSV format to determine statistical significance and generate reports.","Comparing two conditions (independent or paired) to assess statistical significance and effect sizes.","Evaluating multiple groups or factors using ANOVA and post-hoc testing for multi-way comparisons."],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/aipoch\/medical-research-skills\/blob\/686e09dfdb45d9fa1a08664f06bb93769b3c9d91\/scientific-skills\/Data%20Analysis\/experimental-data-analysis\/SKILL.md","source_commit":"686e09dfdb45d9fa1a08664f06bb93769b3c9d91","license":"MIT","version":null,"listing_approved_at":"2026-11-24","created_at":"2026-11-23T11:27:50.000000Z","updated_at":"2026-11-24T07:14:56.000000Z","seo_title":"Experimental Data Analysis and Reporting","seo_description":"Statistical analysis and reporting for experimental datasets with reproducible workflows, inferential testing, and assumption validation.","seo_keywords":["experimental data analysis","statistical reporting","t-test analysis","ANOVA reporting","reproducible research"]}}