Statistical Power Calculator

by dkyazzentwatwa

testing

Use when asked to calculate statistical power, determine sample size, or plan experiments for hypothesis testing.

Skill Details

Repository Files

3 files in this skill directory


name: statistical-power-calculator description: Use when asked to calculate statistical power, determine sample size, or plan experiments for hypothesis testing.

Statistical Power Calculator

Calculate statistical power and determine required sample sizes for hypothesis testing and experimental design.

Purpose

Experiment planning for:

  • Clinical trial design
  • A/B test planning
  • Research study sizing
  • Survey sample size determination
  • Power analysis and validation

Features

  • Power Calculation: Calculate statistical power for tests
  • Sample Size: Determine required sample size for desired power
  • Effect Size: Estimate detectable effect size
  • Multiple Tests: t-test, proportion test, ANOVA, chi-square
  • Visualizations: Power curves, sample size charts
  • Reports: Detailed analysis reports with recommendations

Quick Start

from statistical_power_calculator import PowerCalculator

# Calculate required sample size
calc = PowerCalculator()
result = calc.sample_size_ttest(
    effect_size=0.5,
    alpha=0.05,
    power=0.8
)
print(f"Required n per group: {result.n_per_group}")

# Calculate power
power = calc.power_ttest(n_per_group=100, effect_size=0.5, alpha=0.05)

CLI Usage

# Calculate sample size for t-test
python statistical_power_calculator.py --test ttest --effect-size 0.5 --power 0.8

# Calculate power
python statistical_power_calculator.py --test ttest --n 100 --effect-size 0.5

Related Skills

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.

testingdocumenttool

Senior Data Scientist

World-class data science skill for statistical modeling, experimentation, causal inference, and advanced analytics. Expertise in Python (NumPy, Pandas, Scikit-learn), R, SQL, statistical methods, A/B testing, time series, and business intelligence. Includes experiment design, feature engineering, model evaluation, and stakeholder communication. Use when designing experiments, building predictive models, performing causal analysis, or driving data-driven decisions.

designtestingdata

Hypogenic

Automated hypothesis generation and testing using large language models. Use this skill when generating scientific hypotheses from datasets, combining literature insights with empirical data, testing hypotheses against observational data, or conducting systematic hypothesis exploration for research discovery in domains like deception detection, AI content detection, mental health analysis, or other empirical research tasks.

testingdata

Ux Researcher Designer

UX research and design toolkit for Senior UX Designer/Researcher including data-driven persona generation, journey mapping, usability testing frameworks, and research synthesis. Use for user research, persona creation, journey mapping, and design validation.

designtestingtool

Hypogenic

Automated LLM-driven hypothesis generation and testing on tabular datasets. Use when you want to systematically explore hypotheses about patterns in empirical data (e.g., deception detection, content analysis). Combines literature insights with data-driven hypothesis testing. For manual hypothesis formulation use hypothesis-generation; for creative ideation use scientific-brainstorming.

testingdata

Data Engineering Data Driven Feature

Build features guided by data insights, A/B testing, and continuous measurement using specialized agents for analysis, implementation, and experimentation.

testingdata

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.

testingdocumenttool

Dashboard Design

USE THIS SKILL FIRST when user wants to create and design a dashboard, ESPECIALLY Vizro dashboards. This skill enforces a 3-step workflow (requirements, layout, visualization) that must be followed before implementation. For implementation and testing, use the dashboard-build skill after completing Steps 1-3.

designtestingworkflow

Ux Researcher Designer

UX research and design toolkit for Senior UX Designer/Researcher including data-driven persona generation, journey mapping, usability testing frameworks, and research synthesis. Use for user research, persona creation, journey mapping, and design validation.

designtestingtool

Performance Testing

Benchmark indicator performance with BenchmarkDotNet. Use for Series/Buffer/Stream benchmarks, regression detection, and optimization patterns. Target 1.5x Series for StreamHub, 1.2x for BufferList.

testing

Skill Information

Category:Technical
Last Updated:12/16/2025