Skip to content
aj-geddes avatar

Statistical Hypothesis Testing

Reusable Python hypothesis-testing playbook covering t-tests, ANOVA, chi-square, and non-parametric alternatives with effect sizes.

CCM score
40 of 100
skills.sh installs
505
GitHub stars
396
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the testing framework from H0 and H1 through p-value and α interpretation, then applies common tests in code
  • Includes t-tests (independent, paired, and Welch), ANOVA, chi-square, Mann-Whitney U, and Kruskal-Wallis, with Cohen's d and eta-squared
  • Adds assumption checks such as Shapiro-Wilk normality, Levene's variance test, Bonferroni correction, and power analysis
  • Designed for analysts validating A/B test results and checking whether observed group differences are statistically significant

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill 'Statistical Hypothesis Testing' -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Statistical Hypothesis Testing

Overview

Hypothesis testing provides a framework for making data-driven decisions by testing whether observed differences are statistically significant or due to chance.

Testing Framework

  • Null Hypothesis (H0): No effect or difference exists
  • Alternative Hypothesis (H1): Effect or difference exists
  • Significance Level (α): Threshold for rejecting H0 (typically 0.05)
  • P-value: Probability of observing data if H0 is true

Common Tests

  • T-test: Compare means between two groups
  • ANOVA: Compare means across multiple groups
  • Chi-square: Test independence of categorical variables
  • Mann-Whitney U: Non-parametric alternative to t-test
  • Kruskal-Wallis: Non-parametric alternative to ANOVA

Implementation with Python

import pandas as pd
import numpy as np
from scipy import stats
import matplotlib.pyplot as plt

# Sample data
group_a = np.random.normal(100, 15, 50)  # Mean=100, SD=15
group_b = np.random.normal(105, 15, 50)  # Mean=105, SD=15

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
Data Science & Analytics, Research & Academic
First seen
Jun 3, 2026

Questions

What does the Statistical Hypothesis Testing skill do?

Statistical Hypothesis Testing runs t-tests, chi-square tests, ANOVA and p-value analysis to check whether observed differences are statistically significant. It also covers hypothesis validation and A/B testing, with Python code using scipy for each test.

How do I install the Statistical Hypothesis Testing skill?

Run npx -y skills add aj-geddes/useful-ai-prompts --skill 'Statistical Hypothesis Testing' -y in your project. After that, the agent can apply Statistical Hypothesis Testing when you ask for significance checks or A/B test analysis.

Where does Statistical Hypothesis Testing stand in its category?

Statistical Hypothesis Testing is listed under Data Science & Analytics on Claude Marketplaces, alongside azure-kusto, analyze-project, run-train, explore-run and add-analytics-instrumentation. It stands out for its focus on hypothesis tests, effect sizes and confidence intervals in one guide.

What do I need to run the Statistical Hypothesis Testing code?

The Python examples need pandas, numpy, scipy and matplotlib installed. The skill gives you the sample data, so you can run the tests on your own arrays or tables.

More from aj-geddes/useful-ai-prompts

All 258

Similar to Statistical Hypothesis Testing

More Data Science & Analytics