Statistical Tests
A complete guide to all 14+ hypothesis tests -- when to use each one, how to run them, and how to interpret results.
Statistical Tests
What is Hypothesis Testing?
Hypothesis testing is a way to make decisions based on data. You start with a question, collect data, and use math to determine if the answer is statistically significant -- meaning it is unlikely to have occurred by chance.
Example: "Is the average delivery time in City A different from City B?"
You run a test and get a p-value. If the p-value is below 0.05, the difference is likely real (statistically significant). If above 0.05, the difference could be due to random chance.
Understanding P-Values
| P-Value | Meaning |
|---|---|
| < 0.01 | Very strong evidence -- highly significant |
| 0.01 - 0.05 | Good evidence -- significant |
| 0.05 - 0.10 | Weak evidence -- borderline |
| > 0.10 | No evidence -- not significant |
All Available Tests
One-Sample T-Test
- Question: Is the average of my data equal to a specific value?
- Example: Is the average exam score equal to 75?
- Inputs: One numeric column + a test value
- Interpret: p < 0.05 means the average is significantly different from the test value
Two-Sample T-Test
- Question: Are the averages of two groups different?
- Example: Do students in Class A score differently than Class B?
- Inputs: One numeric column + one grouping column (2 groups)
- Interpret: p < 0.05 means the groups have significantly different averages
Paired T-Test
- Question: Did the same group change between two measurements?
- Example: Did test scores improve after a training program?
- Inputs: Two numeric columns (before and after)
- Interpret: p < 0.05 means there was a significant change
Sign Test
- Question: Is the median of the differences different from zero?
- Example: Non-parametric alternative to paired t-test
- Inputs: Two numeric columns
- Interpret: p < 0.05 means significant median difference
One-Way ANOVA
- Question: Are the averages of three or more groups different?
- Example: Do three different fertilizers produce different crop yields?
- Inputs: One numeric column + one grouping column (3+ groups)
- Interpret: p < 0.05 means at least one group is significantly different
Two-Way ANOVA
- Question: Do two factors affect the outcome, and do they interact?
- Example: Do both gender AND teaching method affect test scores?
- Inputs: One numeric column + two grouping columns
- Interpret: Separate p-values for each factor and their interaction
Chi-Square Test
- Question: Are two categorical variables related?
- Example: Is product choice related to customer age group?
- Inputs: Two categorical columns
- Interpret: p < 0.05 means the variables are significantly related
Mann-Whitney U Test
- Question: Are two groups different? (non-parametric)
- Example: Same as two-sample t-test, but when data is not normally distributed
- Inputs: One numeric column + one grouping column (2 groups)
- Interpret: p < 0.05 means significant difference between groups
Wilcoxon Signed-Rank Test
- Question: Did paired measurements change? (non-parametric)
- Example: Non-parametric alternative to paired t-test
- Inputs: Two numeric columns
- Interpret: p < 0.05 means significant change
Kruskal-Wallis Test
- Question: Are three or more groups different? (non-parametric)
- Example: Non-parametric alternative to one-way ANOVA
- Inputs: One numeric column + one grouping column (3+ groups)
- Interpret: p < 0.05 means at least one group differs
Shapiro-Wilk Test
- Question: Is my data normally distributed (bell-shaped)?
- Example: Check before running a t-test (which assumes normality)
- Inputs: One numeric column
- Interpret: p < 0.05 means data is NOT normal; p >= 0.05 means it could be normal
Kolmogorov-Smirnov Test (One-Sample)
- Question: Does my data follow a specific distribution?
- Example: Is my data uniformly distributed?
- Inputs: One numeric column + reference distribution
- Interpret: p < 0.05 means data does NOT follow that distribution
Kolmogorov-Smirnov Test (Two-Sample)
- Question: Do two samples come from the same distribution?
- Example: Do sales in January and July follow the same pattern?
- Inputs: Two numeric columns
- Interpret: p < 0.05 means different distributions
Levene's Test
- Question: Do groups have equal variance (spread)?
- Example: Check before running ANOVA
- Inputs: One numeric column + one grouping column
- Interpret: p < 0.05 means variances are significantly different
Mood's Median Test
- Question: Do groups have the same median?
- Example: Robust alternative to comparing means
- Inputs: One numeric column + one grouping column
- Interpret: p < 0.05 means medians differ
Pearson Correlation
- Question: Is there a linear relationship between two variables?
- Range: -1 (perfect negative) to +1 (perfect positive)
- Interpret: |r| > 0.7 strong, 0.3-0.7 moderate, < 0.3 weak
Spearman Correlation
- Question: Is there a monotonic relationship? (non-parametric)
- Range: -1 to +1
- Use when: Data is ordinal or not normally distributed
Which Test Should I Use?
| Your Question | Data Type | Groups | Use This Test |
|---|---|---|---|
| Is the average equal to X? | Numeric | 1 | One-Sample T-Test |
| Are two groups different? | Numeric, normal | 2 | Two-Sample T-Test |
| Are two groups different? | Numeric, not normal | 2 | Mann-Whitney U |
| Did paired values change? | Numeric, normal | Paired | Paired T-Test |
| Did paired values change? | Numeric, not normal | Paired | Wilcoxon |
| Are 3+ groups different? | Numeric, normal | 3+ | One-Way ANOVA |
| Are 3+ groups different? | Numeric, not normal | 3+ | Kruskal-Wallis |
| Are categories related? | Categorical | 2 | Chi-Square |
| Is data normally distributed? | Numeric | 1 | Shapiro-Wilk |
| Are variances equal? | Numeric | 2+ | Levene's Test |
| Are two variables related? | Numeric, normal | 2 | Pearson Correlation |
| Are two variables related? | Numeric/Ordinal | 2 | Spearman Correlation |
How to Run a Test
- Go to Statistical Tests in the sidebar
- Select your dataset
- Choose the test from the dropdown
- Select the required columns
- Set any parameters (significance level, test value)
- Click Run Test
- Read the results:
Related Articles
Statistics Overview: What Are Statistics and How to Use Them
A beginner-friendly introduction to statistics, descriptive vs inferential analysis, the Statistics workspace layout, and running your first analysis.
Sampling: Random, Stratified, Systematic, and More
Learn why we sample data, and how to use Random, Stratified, Systematic, Cluster, Lazy, and Train-Test split methods—plus distribution preview.
Was this helpful?