Tests of Significance
A test of significance is a formal statistical procedure to decide whether sample data provides sufficient evidence to reject a null hypothesis about a population parameter. It answers the question: "Could this result have occurred by chance alone?"
Core Concepts (Foundation)
Null Hypothesis (H₀) vs. Alternative Hypothesis (H₁)
| |
|---|
| H₀ (Null) | Assumes no effect, no difference, or no association |
| H₁ (Alternative) | Assumes an effect, difference, or association exists |
Significance Level (α)
- The threshold probability for rejecting H₀
- Commonly set at α = 0.05 (5%) or α = 0.01 (1%)
- Represents the acceptable risk of a Type I error
p-value
- The probability of obtaining the observed result (or more extreme) if H₀ were true
- p < α → Reject H₀ (result is statistically significant)
- p ≥ α → Fail to reject H₀ (insufficient evidence)
Important: A small p-value does NOT prove H₁ is true - it only means the data is unlikely under H₀.
Types of Errors
| H₀ is True | H₀ is False |
|---|
| Reject H₀ | Type I Error (α) - False Positive | Correct (Power = 1-β) |
| Fail to Reject H₀ | Correct (1-α) | Type II Error (β) - False Negative |
One-tailed vs. Two-tailed Tests
- Two-tailed: Tests for difference in either direction (H₁: μ₁ ≠ μ₂) - most common
- One-tailed: Tests for difference in a specific direction (H₁: μ₁ > μ₂ or μ₁ < μ₂)
Major Tests of Significance
1. Z-Test
Purpose: Tests the mean of a sample against a known population mean.
Formula:
$$z = \frac{\bar{x} - \mu}{\sigma / \sqrt{n}}$$
Conditions:
- Population standard deviation (σ) is known
- Sample size n ≥ 30 (large sample)
- Data is normally distributed
Critical values: z = ±1.96 (α = 0.05, two-tailed); z = ±2.576 (α = 0.01)
Types:
- One-sample Z-test: Compare sample mean to population mean
- Two-sample Z-test: Compare means of two independent large samples
- Z-test for proportions: Compare a sample proportion to a known population proportion
2. t-Test (Student's t-Test)
Purpose: Tests means when population SD is unknown and/or sample is small.
Formula:
$$t = \frac{\bar{x} - \mu}{s / \sqrt{n}}$$
Conditions:
- Population SD is unknown
- Small sample (n < 30), though valid for any n
- Data approximately normally distributed
Degrees of freedom (df): n - 1 (one-sample); n₁ + n₂ - 2 (two-sample)
Types:
| Type | When Used |
|---|
| One-sample t-test | Compare sample mean to a known/hypothesized population mean |
| Independent (two-sample) t-test | Compare means of two separate, unrelated groups |
| Paired t-test | Compare means of the same group at two time points (before/after) |
Example: Testing whether a new drug changes blood pressure compared to a control group.
3. Chi-Square Test (χ²)
Purpose: Tests relationships between categorical variables (no numerical means involved).
Formula:
$$\chi^2 = \sum \frac{(O - E)^2}{E}$$
Where O = observed frequency, E = expected frequency
Types:
| Type | Purpose |
|---|
| Chi-square goodness of fit | Tests if observed data fits an expected distribution |
| Chi-square test of independence | Tests if two categorical variables are associated |
Conditions:
- Data must be in frequency/count form
- Expected frequency in each cell ≥ 5
- Observations are independent
Example: Is there an association between smoking (yes/no) and lung disease (yes/no)?
4. F-Test / ANOVA (Analysis of Variance)
Purpose: Compares means of three or more groups simultaneously.
Formula:
$$F = \frac{\text{Variance Between Groups}}{\text{Variance Within Groups}} = \frac{MS_{between}}{MS_{within}}$$
Types:
| Type | Description |
|---|
| One-way ANOVA | One independent variable with 3+ groups |
| Two-way ANOVA | Two independent variables; also tests interaction effects |
| Repeated measures ANOVA | Same subjects measured multiple times |
Why not just use multiple t-tests? Running multiple t-tests inflates the Type I error rate. ANOVA controls this with a single test.
Post-hoc tests (after significant ANOVA): Tukey's HSD, Bonferroni, Scheffe - identify which groups differ.
5. Correlation Tests
| Test | Variables | Purpose |
|---|
| Pearson's r | Two continuous, normally distributed | Linear relationship strength |
| Spearman's ρ (rho) | Ordinal or non-normal continuous | Rank-based correlation |
| Kendall's τ (tau) | Ordinal, small samples | Rank-based, more robust |
6. Non-Parametric Tests
Used when data does not meet parametric assumptions (normality, equal variance):
| Non-Parametric Test | Parametric Equivalent |
|---|
| Mann-Whitney U test | Independent t-test |
| Wilcoxon signed-rank test | Paired t-test |
| Kruskal-Wallis test | One-way ANOVA |
| Friedman test | Repeated measures ANOVA |
| Fisher's exact test | Chi-square (small samples) |
Quick Selection Guide
What type of data?
├── Categorical → Chi-square test (or Fisher's exact)
└── Numerical
├── Comparing to a known population mean?
│ ├── σ known, n ≥ 30 → Z-test
│ └── σ unknown or n < 30 → One-sample t-test
├── Comparing TWO groups?
│ ├── Independent groups → Independent t-test (or Mann-Whitney)
│ └── Same group, two time points → Paired t-test (or Wilcoxon)
└── Comparing THREE or more groups?
└── ANOVA (or Kruskal-Wallis if non-parametric)
Summary Table
| Test | Data Type | Groups | SD Known? | Sample Size |
|---|
| Z-test | Numerical | 1 or 2 | Yes | Large (≥30) |
| t-test | Numerical | 1 or 2 | No | Any (esp. small) |
| Chi-square | Categorical | Any | - | Expected freq ≥ 5 |
| ANOVA (F) | Numerical | 3+ | No | Any |
| Mann-Whitney | Ordinal/Non-normal | 2 | - | Any |
| Kruskal-Wallis | Ordinal/Non-normal | 3+ | - | Any |
Steps in Performing a Test of Significance
- State the hypotheses - H₀ and H₁
- Set the significance level (α = 0.05 or 0.01)
- Choose the appropriate test (based on data type, sample size, number of groups)
- Calculate the test statistic (z, t, χ², F)
- Find the p-value (or compare test statistic to critical value)
- Make a decision - Reject or fail to reject H₀
- State the conclusion in context
Key reminder: Statistical significance ≠ Practical significance. A result can be statistically significant with a tiny real-world effect (especially with large samples), and a meaningful effect can fail to reach significance with a small sample. Always consider effect size (Cohen's d, η², r) alongside p-values.