Statistical Analysis
by Rukkha1024
Perform paired t-tests and repeated-measures ANOVA for biomechanical data analysis with formatted Excel output. Use when analyzing EMG, force, kinematics data with statistical comparisons, creating auto-updating Excel reports, or applying Excel formula automation. Always outputs publication-ready Excel files.
Skill Details
Repository Files
6 files in this skill directory
name: statistical-analysis description: Perform paired t-tests and repeated-measures ANOVA for biomechanical data analysis with formatted Excel output. Use when analyzing EMG, force, kinematics data with statistical comparisons, creating auto-updating Excel reports, or applying Excel formula automation. Always outputs publication-ready Excel files.
Statistical Analysis Skill
Biomechanical data statistical analysis with Excel output
Overview
This skill provides a complete workflow for biomechanical research:
- Paired t-test: Condition and task comparisons with Bonferroni correction
- Repeated-measures ANOVA: N×M within-subject design analysis
- Excel output: Formatted reports with standard color scheme and templates
- Excel formula automation: Auto-updating analysis with hybrid Python + formula approach
When to Use
- Analyzing EMG, force, or kinematic data
- Comparing conditions (e.g., new vs old cart)
- Comparing tasks (e.g., lift, pull, push)
- Running repeated-measures experiments
- Generating publication-ready statistical reports in Excel
- Creating auto-updating Excel analysis sheets
Files
| File | Purpose |
|---|---|
ttest_statistical_analysis.py |
Paired t-test function library |
anova_statistical_analysis.py |
Repeated-measures ANOVA function library |
excel_utils.py |
Common Excel formatting utilities |
excel-format.md |
Standard formatting templates (color scheme, sheet structure) |
excel-formula-automation.md |
Guide for Excel formula automation workflow |
Key Principle
⚠️ These are FUNCTION LIBRARIES, not standalone scripts.
The AI must:
- Inspect the data to determine column structure
- Identify dependent variable and condition factors
- Call functions with explicit parameters
- Always output results to Excel
Usage Example
T-test Analysis
from ttest_statistical_analysis import (
load_and_preprocess_data,
aggregate_trials,
paired_ttest_condition,
export_to_excel
)
# AI determines these by inspecting data
dependent_var = "rvc_norm_rms"
condition_col = "cart_categories"
condition_values = ["new", "old"]
# Run analysis
df = load_and_preprocess_data(data_path, dependent_var, condition_col)
df_agg = aggregate_trials(df, dependent_var, condition_col)
results = paired_ttest_condition(df_agg, condition_col, condition_values)
ANOVA Analysis
from anova_statistical_analysis import (
compute_cell_means,
find_valid_subjects,
run_rm_anova,
export_to_excel
)
# Run analysis
cell_means = compute_cell_means(df, dependent_var, condition_col)
valid_subjects, _ = find_valid_subjects(cell_means, condition_col, dependent_var)
anova_results = run_rm_anova(cell_means_valid, dependent_var, condition_col)
Excel Output Format
All analyses produce Excel files with standard sheets:
- methods: Analysis methodology (dynamically generated)
- descriptives: Mean, SD, SEM, N per condition
- statistical_tests: Test results with significance highlighting
- cell_means: Subject-level data (optional)
Standard Color Scheme
| Element | Color Code |
|---|---|
| Header Background | #4472C4 (Blue) |
| Header Font | White |
| Significant Cell BG | #C6EFCE (Light Green) |
| Significant Cell Font | #006100 (Dark Green) |
See excel-format.md for detailed formatting specifications.
See excel-formula-automation.md for formula automation workflow.
Related Skills
Xlsx
Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas
Clickhouse Io
ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.
Clickhouse Io
ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.
Analyzing Financial Statements
This skill calculates key financial ratios and metrics from financial statement data for investment analysis
Data Storytelling
Transform data into compelling narratives using visualization, context, and persuasive structure. Use when presenting analytics to stakeholders, creating data reports, or building executive presentations.
Kpi Dashboard Design
Design effective KPI dashboards with metrics selection, visualization best practices, and real-time monitoring patterns. Use when building business dashboards, selecting metrics, or designing data visualization layouts.
Dbt Transformation Patterns
Master dbt (data build tool) for analytics engineering with model organization, testing, documentation, and incremental strategies. Use when building data transformations, creating data models, or implementing analytics engineering best practices.
Sql Optimization Patterns
Master SQL query optimization, indexing strategies, and EXPLAIN analysis to dramatically improve database performance and eliminate slow queries. Use when debugging slow queries, designing database schemas, or optimizing application performance.
Anndata
This skill should be used when working with annotated data matrices in Python, particularly for single-cell genomics analysis, managing experimental measurements with metadata, or handling large-scale biological datasets. Use when tasks involve AnnData objects, h5ad files, single-cell RNA-seq data, or integration with scanpy/scverse tools.
Xlsx
Spreadsheet toolkit (.xlsx/.csv). Create/edit with formulas/formatting, analyze data, visualization, recalculate formulas, for spreadsheet processing and analysis.
