ENS185 Module on Statistical Tests (1)
ENS185 Module on Statistical Tests (1)
Introduction
Statistical tests play a crucial role in research and data analysis. Choosing the
appropriate test is essential for drawing valid conclusions. This module aims to
provide an overview of common statistical tests and guidelines for their proper
application.
1
• y is the value of the second variable
• x̄ is the mean of the first variable
• ȳ is the mean of the second variable
•
P
is the sum of the values
Steps:
1. Collect data.
2. Plot data.
3. Calculate the coefficient.
4. Interpret.
2
Chi-Square Test of Independence
Description: Tests if two categorical variables are independent.
Key points:
1. Collect data.
2. Create a contingency table.
3. Calculate the statistic.
4. Compare to critical value.
5. Interpret.
T-test
Description: Compares the means of two groups.
Type: Parametric.
Key points:
• Assumes data is normally distributed.
• Uses the t-statistic.
3
Formula:
x̄1 − x̄2
t= q
s̄ n11 + n12
where:
• t is the t-statistic
• x̄1 is the mean of the first group
• x̄2 is the mean of the second group
• s̄ is the pooled standard deviation
• n1 is the number of observations in the first group
• n2 is the number of observations in the second group
Steps:
1. Collect data.
2. Calculate mean and standard deviation.
3. Calculate the t-statistic.
4. Compare to critical value.
5. Interpret.
ANOVA
Description: Compares the means of three or more groups.
Type: Parametric.
Key points:
• Assumes data is normally distributed.
• Uses the F-statistic.
Formula:
M SB
F =
M SW
where:
• F is the F-statistic
• M SB is the mean square between groups
• M SW is the mean square within groups (or error)
Steps:
1. Collect data.
4
2. Calculate mean and standard deviation for each group.
3. Calculate Sum of Squares Between (SSB), Sum of Squares Within (SSW),
and Total Sum of Squares (SST).
Steps:
1. Collect data.
2. Create a contingency table.
5
Mann-Whitney U Test
Description: Compares means of two independent groups.
Type: Non-parametric.
Key points:
• Does not assume normal distribution.
• Uses ranks.
Formula:
U = n1 (n1 + 1)/2 − R1
where:
1. Collect data.
2. Rank data.
3. Calculate the statistic.
6
Steps:
1. Collect data.
2. Rank data.
Steps:
1. Rank all data.
2. Assign ranks to groups.
3. Calculate the H-statistic.
7
Friedman 2-Way ANOVA
Description: Compares means of three or more related groups.
Type: Non-parametric.
Key points:
• Substitute for repeated measures ANOVA.
• Does not assume normal distribution.
Formula:
12 k(k + 1)(2k + 1)
X2 = (R(1) + R(2) + ... + R(k)) −
N 6
where:
• X 2 is the chi-square statistic
• N is the total number of observations
• R(i) is the sum of the ranks for group i
• k is the number of groups
Steps:
1. Rank data within each group.
2. Calculate sum of ranks.
3. Calculate chi-square statistic.
4. Compare to critical value.
5. Interpret.
Key Considerations
• Type of data (nominal, ordinal, interval/ratio)
• Number of groups/samples
• Looking for differences or relationships
• Assumptions of parametric tests
8
Table of Appropriate Tests
Looking for Type of Data Comparing
Difference of Parametric 2 groups/samples: t-test
groups/samples for Independent samples,
t-test for paired samples
3 or more groups:
ANOVA
Non-Parametric 2 groups/samples:
Mann Whitney U-Test,
Wilcoxon Signed Rank
Test
3 or more groups:
Kruskal-Wallis 1-way
ANOVA, Friedman 2-way
ANOVA
Relationship of Parametric (Inter- Pearson r, Linear Regres-
variables val/Ratio) sion
Non-Parametric Chi-square
(Nominal)
Non-Parametric Spearman Rank
(Ordinal)
Conclusion
Understanding and correctly applying statistical tests is crucial for drawing ac-
curate and reliable conclusions from data. This module has provided an overview
of common tests and guidelines for their appropriate use.