MT LESSON 9
📚 MT-LESSON-9.pdf
Brief overview
This document provides an in-depth introduction to non-parametric statistical methods. It covers various tests, their applications, and how to perform them using different computational tools. Understanding these methods is crucial for analyzing data that does not meet parametric assumptions.
Key points
- Overview of non-parametric statistics and their comparison to parametric methods.
- Application and execution of chi-square tests: independence, homogeneity, and goodness-of-fit.
- How the Kruskal-Wallis H test and Friedman test compare medians across multiple groups.
- Using the Wilcoxon signed-rank and Mann-Whitney U tests for two-group comparisons.
- Exploration of additional non-parametric tests including the Sign Test and Scheffe's test.
1. Introduction to non-parametric statistics (part 1)
1.1 What are non-parametric statistics?
- Non-parametric statistics: Methods that do not require data to fit a normal distribution.
- Often use ordinal data. This means data is ranked or ordered, not strictly numerical.
- Also called distribution-free tests. They make no assumptions about the population's distribution shape.
Non-parametric tests are useful when you don't know if your data follows a bell curve.
1.2 Parametric vs. Non-parametric statistics
| Feature | Parametric Statistics | Non-Parametric Statistics |
|---|---|---|
| Distribution | Assumes data comes from a normal distribution. | Does not assume any specific distribution shape. |
| Parameters | Uses population parameters (e.g., mean, variance). | Does not rely on population parameters. |
| Data Type | Typically uses interval or ratio data. | Can use nominal or ordinal data. |
| Assumptions | Makes more assumptions about the data. | Makes fewer assumptions about the data. |
| Computation | Can be more complex. | Often easier to compute, especially for smaller samples. |
| Information Usage | Can be more efficient if assumptions are met. | May "waste" information if parametric tests could be used. |
| Sample Size | Often requires larger sample sizes for robustness. | Can be used with smaller sample sizes. |
| Data Transformation | May require converting ratio data to ordinal scale. | Naturally handles ordinal data. |
1.3 Advantages and disadvantages of non-parametric tests
- Advantages:
- Easier to compute, especially with older computing methods.
- Make fewer assumptions about the data.
- Do not need to estimate population parameters.
- Results can be as exact as parametric methods.
- Disadvantages:
- May be less efficient if data fits parametric assumptions.
- Can be difficult to compute by hand for large datasets.
- Tables for critical values are not always widely available.
1.4 Steps in non-parametric statistical procedures
- State hypotheses: Define the null hypothesis (Ho) (no difference) and the alternative hypothesis (Ha) (predicts a difference).
- Set risk level: Choose the significance level (alpha, α), typically 0.05. This is the risk of a Type I error (rejecting a true null hypothesis).
- Choose test statistic: Select the appropriate test based on data characteristics, like the number of samples.
- Compute test statistic: Calculate the "obtained value" based on the chosen test and your data.
- Determine critical value: Find the threshold value from a critical values table (for small samples) or a critical region (for large samples).
- Compare values: Compare the obtained value to the critical value to decide whether to reject or fail to reject the null hypothesis.
- Interpret results: Explain the meaning of your findings in the context of your research question.
- Report results: Communicate your findings clearly and comprehensibly.
The general process is: state hypotheses, set your risk, pick a test, compute, compare, interpret, and report.
1.5 Frequently used non-parametric tests
- Chi-Square Test
- Goodness-of-fit Test
- Test of Homogeneity
- Test of Independence
- Kruskal Wallis H-Test (unrelated samples)
- Friedman Test (related samples)
- Wilcoxon Signed Rank Test (related samples)
- Mann-Whitney Test (unrelated samples)
- McNemar’s Test for Correlated Proportions
- Sign Test (two independent or two correlated samples)
- Scheffe’s Test
1.6 The Chi-Square test
- Used with ordinal data presented as frequencies or proportions.
- Compares observed frequencies (O) to expected frequencies (E).
- Formula: χ2=∑i=1mEi(Oi−Ei)2
1.6.1 Types of Chi-Square tests
| Test Type | Purpose | Data Structure |
|---|---|---|
| Test of Independence | To determine if there is a relationship between two categorical variables. | Two-way contingency table (bivariate). |
| Test of Homogeneity | To check if multiple sets of proportions come from the same population proportions. | Compares proportions across groups. |
| Goodness-of-fit Test | To test if observed counts fit a pre-specified set of population proportions. | Compares observed counts to expected counts. |
1.6.2 Chi-square test of independence example
- Problem: Is there a relationship between college group and their response to a university security measure's effectiveness?
- Data: A contingency table showing observed frequencies of responses (Strongly Approved, Approved, Disapprove, Strongly Disapprove) by 5 student groups.
| GROUP | STRONGLY APPROVED | APPROVED | DISAPPROVE | STRONGLY DISAPPROVE | TOTAL |
|---|---|---|---|---|---|
| 1 | 12 | 5 | 12 | 11 | 40 |
| 2 | 5 | 14 | 14 | 11 | 44 |
| 3 | 5 | 6 | 12 | 11 | 34 |
| 4 | 10 | 8 | 13 | 13 | 44 |
| 5 | 15 | 20 | 5 | 5 | 45 |
| TOTAL | 47 | 53 | 56 | 51 | 207 |
- Hypotheses:
- Ho: The responses of the five groups do not significantly differ.
- Ha: The responses of the five groups do significantly differ.
- Significance Level: α=0.01 (1%)
- Expected Values Calculation: E=(overall total)(row total)×(column total)
- Example: E11=20740×47≈9.08
- Computed χ2 value: 28.41
- Degrees of Freedom (df): (c−1)(r−1)=(4−1)(5−1)=3×4=12
- Tabular value: 26.217 (at α=0.01, df=12)
- Decision: Since 28.41>26.217, reject Ho.
- Conclusion: There is a significant difference in how the five groups responded to the security measure's effectiveness.
1.6.3 Chi-square test of independence in Excel
- Purpose: To test if two categorical variables (e.g., gender and political party preference) are associated.
- Steps:
- Define hypotheses: H0: Variables are independent. H1: Variables are not independent.
- Calculate expected values: E=(table sum)(row sum)×(column sum) per cell.
- Calculate (O−E)2/E: For each cell, compute this value.
- Calculate χ2 and p-value: Sum the values from step 3 for χ2. Use the
=CHISQ.DIST.RT(x, deg_freedom)function for the p-value.- x: computed χ2 statistic.
- deg_freedom: (\text{# rows} - 1) \times (\text{# columns} - 1).
- Example Outcome: χ2=0.8640, p=0.649198.
- Conclusion: Since p>0.05, fail to reject H0. No significant evidence of association between gender and political party preference.
1.6.4 Chi-square test of independence in SPSS
- Assumptions:
- Two variables measured at ordinal or nominal level (categorical).
- Variables consist of two or more independent categorical groups.
- Example: Is gender (male/female) associated with preferred learning medium (online/books)?
- SPSS Procedure:
- Analyze > Descriptives Statistics > Crosstabs.
- Move one variable to "Row(s)" and the other to "Column(s)".
- Click "Statistics" and select "Chi-square" and "Phi and Cramer's V".
- Click "Cells" and select "Observed" counts and "Row," "Column," and "Total" percentages.
- Click "OK" to generate output.
- Interpreting SPSS Output:
- Crosstabulation Table: Shows observed counts and percentages for each combination of categories.
- Chi-Square Tests Table: Focus on the "Pearson Chi-Square" row. The χ2 value and its p-value indicate significance. A p-value > 0.05 suggests no significant association.
- Symmetric Measures Table: Shows Phi and Cramer's V for the strength of association, typically very weak if χ2 is not significant.
- Bar Chart: Visualizes the data, showing group categories and frequencies.
SPSS makes performing Chi-Square tests much simpler and provides direct p-values for interpretation.
🔑 Important: Non-parametric tests are essential when data doesn't meet the strict assumptions of parametric tests, especially when dealing with categorical or ranked data.
2. Introduction to non-parametric statistics (part 2)
2.1 Chi-square test of homogeneity
The chi-square test of homogeneity compares two or more samples using a single criterion variable. It assesses if multiple populations share the same distribution for this variable.
This test is used when you want to find a significant difference between groups.
The formula for the test is: χ2=klmnN(ad−bc)2
Where:
- χ2 is the Chi-Square test statistic.
- N is the grand total of observations.
- klmn represents the product of row and column totals.
The test of homogeneity samples subgroups separately to compare their distributions.
2.1.1 Homogeneity test example
A researcher wants to know if males and females react differently to same-sex marriage. With 150 participants, the null hypothesis is that there is no significant difference in reactions.
| Reaction | Male | Female | Total |
|---|---|---|---|
| Positive | 45 (a) | 50 (c) | 95 (m) |
| Negative | 30 (b) | 25 (d) | 55 (n) |
| Total | 75 (k) | 75 (l) | 150 (N) |
- Significance level: α=0.05
- Degrees of freedom (df): (rows−1)(columns−1)=(2−1)(2−1)=1
- Tabular chi-square value: χ0.052=3.841
Calculations: χ2=150[−]2 . χ2=29390625150[1125−1500]2 χ2=29390625150[−375]2 χ2=29390625150=2939062521093750=0.72 .
Decision: If the computed χ2 is greater than the tabular value, reject the null hypothesis.
Conclusion: Since 0.72<3.841, the null hypothesis is accepted. There is no significant difference in reactions between males and females.
2.1.2 Homogeneity vs. Independence tests
The chi-square test of independence and homogeneity differ in data collection design.
- Independence: Randomly sample from one population, observe two categorical variables for each unit.
- Homogeneity: Randomly sample from each subgroup separately and observe one categorical variable.
Homogeneity: Separate samples, same variable distribution. Independence: One sample, two variable relationships.
2.2 Chi-square goodness-of-fit test
The goodness-of-fit test compares one set of observed frequencies to expected or theoretical frequencies. It uses a one-way classification table.
The formula is: χ2=∑E(O−E)2
Where:
- χ2 is the Chi-Square test statistic.
- O is the observed frequency.
- E is the expected frequency.
2.2.1 Goodness-of-fit example 1
University deans classified 100 professors into three categories: Excellent, Satisfactory, and Needs Improvement. The goal is to see if the distribution of ratings differs from an expected normal distribution.
| Rating | Observed (O) | Expected (E) |
|---|---|---|
| Excellent | 10 | 1.59 |
| Satisfactory | 85 | 58.02 |
| Needs Improvement | 5 | 0.79 |
| Total | 100 | 60.40 |
- Hypotheses:
- H0: No significant difference between observed and expected rating distributions.
- H1: Significant difference between observed and expected rating distributions.
- Significance level: α=0.05
- Degrees of freedom (df): number_of_categories−1=3−1=2
- Tabular chi-square value: χ0.05,df=22=5.991
Expected frequency calculation: Based on dividing a normal curve. The middle segment is 68.26%, outer segments are 31.74% (15.87% on each tail).
- EExcellent=0.1587×100=15.87 (Note: The example calculation uses 1.59, suggesting a misapplication or different theoretical distribution in the source, but we follow the calculation provided).
- ESatisfactory=0.6826×100=68.26
- ENeedsImprovement=0.1587×100=15.87
Calculations (using the source's provided expected values for "Excellent" and "Needs Improvement"): χ2=1.59(10−1.59)2+58.02(85−58.02)2+0.79(5−0.79)2 χ2=1.5944.51+58.0212.54+0.7922.29 χ2≈28.00+0.22+28.22≈56.44 (Note: The source's final calculated value of 79.44 appears inconsistent with its own intermediate steps and provided expected values. We will use the formula and the structure.)
Conclusion: The computed value (based on source's calculation logic of 79.44) is greater than the tabular value (5.991). Therefore, the null hypothesis is rejected.
The deans' rating distribution differs significantly from expected ratings.
2.2.2 Goodness-of-fit example 2
A situation where observed data is compared to a theoretical ratio. The observed data has 510 total participants across four categories with a theoretical ratio of 5:2:3:1.
| Category | Ratio | Observed (O) | Expected (E) |
|---|---|---|---|
| Eldest | 5 | 200 | 231.80 |
| Middle Child | 2 | 120 | 92.72 |
| Youngest | 3 | 115 | 139.08 |
| Only Child | 1 | 75 | 46.36 |
| Total | 11 | 510 | 509.96 |
- Null Hypothesis (H0): No significant difference between observed and expected frequencies.
- Significance level: α=0.05
- Degrees of freedom (df): number_of_categories−1=4−1=3
- Tabular chi-square value: χ0.05,df=32=7.815
Expected frequencies calculation:
- Sum of ratios = 11.
- Multiplier = Total Observed / Sum of Ratios = 510 / 11 = 46.36.
- EEldest=46.36×5=231.80
- EMiddle Child=46.36×2=92.72
- EYoungest=46.36×3=139.08
- EOnly Child=46.36×1=46.36
Calculations: χ2=231.80(200−231.80)2+92.72(120−92.72)2+139.08(115−139.08)2+46.36(75−46.36)2 χ2=231.80(−31.8)2+92.72(27.28)2+139.08(−24.08)2+46.36(28.64)2 χ2=231.801011.24+92.72744.1984+139.08579.8464+46.36820.2496 χ2≈4.36+8.03+4.17+17.69=34.25
Decision: If the computed value is greater than the tabular value, reject the null hypothesis.
Conclusion: Since 34.25>7.815, the null hypothesis is rejected. There is a significant difference between observed and expected frequencies, meaning the theory (ratio) is not true.
2.3 Chi-square goodness-of-fit test in software
2.3.1 Using MS Excel
The CHISQ.DIST.RT(x, deg_freedom) function in Excel calculates the right-tailed probability for a Chi-Square test.
- Input: Observed frequencies (O) and Expected frequencies (E) in separate columns.
- Calculation for each row: E(O−E)2
- Test statistic: Sum of the values calculated for each row.
- P-value: Use
CHISQ.DIST.RT(test_statistic, degrees_of_freedom). - Degrees of freedom (df): number_of_categories−1.
Example: A shop owner claims an equal number of customers visit daily. Over a week, 250 customers were recorded.
The expected number per day is 50.
| Day | Observed (O) | Expected (E) | E(O−E)2 |
|---|---|---|---|
| Monday | 50 | 50 | 0.00 |
| Tuesday | 60 | 50 | 2.00 |
| Wednesday | 40 | 50 | 2.00 |
| Thursday | 47 | 50 | 0.18 |
| Friday | 53 | 50 | 0.18 |
| Total | 250 | 250 | 4.36 |
- Test statistic (χ2): 4.36
- P-value: 0.36 (using Excel function with df=4)
- Decision: If p-value < α (0.05), reject H0.
Conclusion: Since 0.36>0.05, we fail to reject the null hypothesis. There is insufficient evidence to say the customer distribution differs from the claimed equal daily visits.
2.3.2 Using SPSS Statistics
The Chi-Square Goodness-of-Fit test in SPSS is a single-sample nonparametric test. It checks if a categorical variable's distribution matches a hypothesized one.
Assumptions:
- One categorical variable (dichotomous, nominal, or ordinal).
- Independence of observations (no relationship between cases).
- Groups of the categorical variable must be mutually exclusive.
- At least 5 expected frequencies in each group.
Procedure in SPSS:
- Input data:
- Create a column for the categorical variable (e.g.,
gift_type). - If frequencies are already summed, create a
frequencycolumn and use the "Weight Cases" option. - If data is raw, SPSS calculates frequencies.
- Create a column for the categorical variable (e.g.,
- Navigate:
Analyze > Nonparametric Tests > Legacy Dialogs > Chi-square... - In the dialog box:
- Move the categorical variable to "Test Variable(s)".
- Under "Expected Values", select "All categories equal" for equal proportions, or "Values" to specify unequal proportions.
- Click "OK".
SPSS Output Interpretation:
- A table shows observed (Observed N) and expected frequencies (Expected N) for each category.
- The "Test Statistics" table provides the Chi-Square statistic (χ2) and the p-value.
- A statistically significant result (p < α) leads to rejecting the null hypothesis.
SPSS output includes observed, expected, and residual frequencies, along with the test statistic and p-value.
🔑 Important: Chi-square tests compare observed counts to expected counts for categorical variables. They are based on the differences between these frequencies.
3. Kruskal-Wallis H test and Friedman test
3.1 Kruskal-Wallis H test (unrelated designs)
The Kruskal-Wallis H test is a non-parametric statistical test. It compares medians across three or more independent groups.
This test is used when your data is ordinal or continuous and your design is unrelated. In an unrelated design, different participants are in each group.
It is an extension of the Mann-Whitney U test to multiple groups.
Kruskal-Wallis: Non-parametric, unrelated groups, ≥3 groups, compares medians.
3.1.1 Purpose and application
- Purpose: To determine if there are statistically significant differences between the medians of independent groups.
- Application: Used when assumptions for parametric tests like one-way ANOVA are not met. Suitable for ordinal or continuous dependent variables.
- Example: Comparing recall scores for participants exposed to lists of letters, numbers, or alphanumeric characters.
3.1.2 Assumptions
- Dependent variable: Measured at ordinal or continuous level (interval/ratio).
- Independent variable: Consists of three or more categorical, independent groups.
- Independence of observations: No relationship between observations within or between groups. Participants must be in only one group.
- Similar distribution shapes: The distributions of scores in each group should have the same shape. This allows for median comparison; otherwise, only mean ranks can be compared.
3.1.3 Manual calculation steps
- Rank all scores: Combine all scores from all groups and rank them from smallest to largest.
- Calculate rank totals: Sum the ranks for each individual group.
- Calculate H statistic: Use the formula:
H = \left[ \frac{12}{N(N+1)} \sum \frac{T_j^2}{n_j} \right - 3(N+1)
- N: Total number of participants.
- Tj: Rank total for group j.
- nj: Number of participants in group j.
- Determine degrees of freedom (df): df=c−1, where c is the number of conditions (groups).
- Decision: Compare the calculated H value to a critical chi-square value. If H is greater than the critical value, reject the null hypothesis.
3.1.4 Reporting results
Report the test statistic (H), degrees of freedom (df), and the p-value.
- Example: A Kruskal-Wallis H test was performed to compare scores across three groups (H=value,p=value) 2.
3.1.5 Software implementation (MS Excel & SPSS)
- MS Excel: Uses formulas like
RANK.AVG()and calculations based on the H statistic formula. - SPSS: Use
Analyze > Nonparametric Tests > Legacy Dialogs > K Independent Samples.... Select Kruskal-Wallis as the test type and define the grouping variable's range.
3.2 Friedman test (related designs)
The Friedman test is a non-parametric statistical test used for related designs. It compares medians across three or more conditions when the same participants are in all groups.
It is the non-parametric alternative to a repeated-measures ANOVA.
Friedman: Non-parametric, related groups, ≥3 conditions, compares medians.
3.2.1 Purpose and application
- Purpose: To determine if there are statistically significant differences between the medians of related groups.
- Application: Used when the same subjects are measured under multiple conditions. Suitable for ordinal or continuous dependent variables where repeated-measures ANOVA assumptions are violated.
- Example: A publisher assessing children's ratings for three different book illustrations.
3.2.2 Assumptions
- One group measured: The same group of participants is measured on three or more different occasions or under different conditions.
- Random sample: The group is a random sample from the population.
- Dependent variable: Measured at the ordinal or continuous level.
- No normality assumption: Data does not need to be normally distributed.
3.2.3 Manual calculation steps
- Rank scores per participant: For each participant (row), rank their scores across all conditions from smallest to largest.
- Calculate rank totals: Sum the ranks for each condition (column).
- Calculate χT2 statistic: Use the formula:
\chi_T^2 = \left[ \frac{12}{NC(C+1)} \sum T_j^2 \right - 3N(C+1)
- N: Number of participants.
- C: Number of conditions.
- Tj: Rank total for condition j.
- Determine degrees of freedom (df): df=C−1.
- Decision: Compare the calculated χT2 value to a critical chi-square value. If χT2 is greater than the critical value, reject the null hypothesis.
3.2.4 Post hoc tests
Since the Friedman test is an omnibus test, post hoc tests are needed to find which specific groups differ.
- Method: Run pairwise Wilcoxon signed-rank tests on all combinations of related groups.
- Correction: Apply a Bonferroni correction to the significance level to control for Type I errors. Divide the original alpha (e.g., 0.05) by the number of comparisons.
3.2.5 Software implementation (SPSS)
- SPSS: Use
Analyze > Nonparametric Tests > Legacy Dialogs > K Related Samples.... Transfer the dependent variables (each representing a condition) to the "Test Variables" box. Ensure Friedman is selected.
🔑 Important: Kruskal-Wallis is for independent groups, Friedman is for related groups; both are non-parametric alternatives to ANOVA for ≥3 groups/conditions.
🔑 Important: Both Kruskal-Wallis and Friedman tests are omnibus tests; they indicate overall differences but do not specify which groups differ. Post hoc tests are often required.
4. Wilcoxon and Mann-Whitney U tests
4.1 Wilcoxon signed-rank test
The Wilcoxon signed-rank test is a non-parametric alternative to the paired samples t-test. It is used when data are not normally distributed.
This test is suitable for related samples, meaning the same participants are in both conditions.
- Purpose: Compares two related groups.
- Data: Ordinal or continuous.
- Assumptions:
- Dependent variable is ordinal or continuous.
- Independent variable has two related groups.
- Distribution of differences is symmetric.
4.2 Manual calculation
The test involves several steps to determine the test statistic, W.
- Calculate differences: Find the difference (d) between each pair of scores.
- Rank differences: Rank the absolute values of these differences from smallest to largest. Ignore zero differences. Handle ties by assigning the average rank.
- Sum signed ranks: Add the ranks for positive differences (W+) and negative differences (W−) separately.
- Test statistic (W): The smaller of W+ and W− is the test statistic.
- Decision: Reject the null hypothesis (H0) if the observed W is less than or equal to the critical value.
The sum of ranks (ignoring signs) equals n(n+1)/2.
4.3 Using MS Excel
Excel functions can be used to perform the Wilcoxon signed-rank test.
- Difference Column:
=B2-C2 - Absolute Difference Column:
=abs(D2) - Ranks of Difference Column:
=RANK.AVG(F2,EURFEUR 2:EURFEUR 16,1) - Signed Ranks:
=G1*E2 - Sum of Ranks: Use
SUMIFfor positive and negative sums.
4.4 Using SPSS Statistics
SPSS can perform the Wilcoxon signed-rank test through its "Legacy Dialogs > 2 Related Samples" or "Nonparametric Tests > Related Samples" procedures.
- Key Output Tables:
- Descriptives: Provides descriptive and quartile statistics for the variables.
- Ranks: Shows the number of participants with higher scores before or after treatment, and those with no change.
- Test Statistics: Contains the Z statistic and the p-value (Asymp. Sig. (2-tailed)).
A significant result (p < 0.05) indicates a statistically significant difference between the related groups.
4.5 Mann-Whitney U test
The Mann-Whitney U test (also known as the Wilcoxon rank-sum test) is a non-parametric test for two independent groups. It is used when data are ordinal or continuous but not normally distributed.
- Purpose: Compares two independent groups.
- Independent variable has two independent groups.
- Independence of observations (no relationship between observations).
- Distributions of the two groups have the same shape (for comparing medians). If shapes differ, only mean ranks can be compared.
4.6 Manual calculation
The calculation involves ranking all scores across both groups.
- Rank all scores: Combine scores from both groups and rank them from lowest to highest.
- Sum ranks: Calculate the sum of ranks for each group (T1 and T2).
- Calculate U: Use the formula U=n1n2+2n1(n1+1)−T1.
- Calculate U1: U1=n1n2−U.
- Test statistic (U): The smaller value between U and U1 is the test statistic.
- Decision: Reject the null hypothesis (H0) if the calculated U is less than the critical value found in a Mann-Whitney U table.
The Mann-Whitney U test is the non-parametric equivalent of the independent samples t-test.
4.7 Using MS Excel
Excel can be used to perform the Mann-Whitney U test, though the formulas are complex.
- Rank Calculation: A specialized formula combines ranking and handling ties to assign ranks to each group's data.
- Test Statistic Calculation: Formulas are used to sum ranks, find sample sizes, and calculate the U and Z test statistics, along with the p-value.
4.8 Using SPSS Statistics
SPSS can perform the Mann-Whitney U test using "Legacy Dialogs > 2 Independent Samples" or "Nonparametric Tests > Independent Samples".
-
Test Procedure:
- Select "Analyze > Nonparametric Tests > Legacy Dialogs > 2 Independent Samples...".
- Transfer the dependent variable to "Test Variable List" and the independent grouping variable to "Grouping Variable".
- Define the groups by entering their numerical values (e.g., 1 and 2).
- Ensure "Mann-Whitney U" is selected in the "Test Type" area.
- Click "OK" to run the test.
- Descriptives: Generally recommended to ignore for Mann-Whitney U test interpretation.
- Ranks: Shows mean rank and sum of ranks for each group. The group with the higher mean rank generally has higher overall scores.
- Test Statistics: Provides the U statistic and the asymptotic significance (2-tailed) p-value.
A significant result (p < 0.05) indicates a statistically significant difference between the independent groups.
🔑 Important: Wilcoxon signed-rank is for related samples, while Mann-Whitney U is for independent samples. Both are used when data are not normally distributed.
4.9 Wilcoxon signed-rank test for matched pairs
The Wilcoxon signed-rank test is a non-parametric test used for matched samples. It assesses significant changes between two related conditions, often a before-and-after design.
This test is an alternative to the paired t-test when data does not meet parametric assumptions.
The core idea is to rank the differences between paired observations. The test then compares the sum of positive ranks to the sum of negative ranks.
📝 Example: Testing if a new teaching method improves student scores by comparing scores of the same students before and after the intervention.
4.10 Mann-Whitney U test for independent samples
The Mann-Whitney U test is a non-parametric alternative to the independent samples t-test. It compares the medians of two independent groups.
This test is suitable when the data is not normally distributed.
The test ranks all observations from both samples combined. It then compares the sum of ranks for each group to determine if there's a significant difference between their medians.
📝 Example: Comparing the test scores of male and female students on a spelling test to see if there's a difference in their median performance.
4.11 Applying the Mann-Whitney U test
To apply the Mann-Whitney U test, follow these steps:
- Rank all data points from both samples together.
- Assign a sign to each observation based on whether it is above or below the joint median.
- Calculate the number of positive (+) and negative (-) signs for each sample.
- Use a chi-square statistic with appropriate degrees of freedom to test for significant differences in these sign frequencies.
The test statistic formula is often presented as a chi-square calculation: χ2=klmnN(ad−bc)2 Where:
- N is the total number of observations.
- a and c are the observed positive frequencies in each group.
- b and d are the observed negative frequencies in each group.
- k and l are the row totals for each group.
- m and n are the column totals for each group.
The degrees of freedom for this test are typically (2−1)(2−1)=1.
🔑 Important: The Mann-Whitney U test is sensitive to differences in medians between two independent groups.
📝 Example: Comparing test scores of 12 female and 9 male students. The joint median is calculated, and scores are marked as (+) if above the median and (-) if at or below. This is then tabulated to calculate the chi-square statistic.
| Group | Positive (+) | Negative (-) | Total |
|---|---|---|---|
| Female | 7 (a) | 5 (b) | 12 (k) |
| Male | 5 (c) | 4 (d) | 9 (l) |
| Total | 12 (m) | 9 (n) | 21 (N) |
Using the formula χ2=21×((7×4)−(5×5))2, the calculated χ2 is 0.016. If this value is less than the critical χ2 value (e.g., 3.841 at α=0.05), the null hypothesis of no significant difference is accepted 12 9.
🔑 Important: The Mann-Whitney U test is a robust choice when comparing medians of two independent groups with non-normally distributed data.
5. Other non-parametric tests and appendices
5.1 Sign test for correlated samples
The Sign Test is a non-parametric method for two correlated samples. It is similar to a paired t-test but for non-normally distributed data.
The test uses paired observations to check for significant differences.
5.1.1 How the Sign Test works
- Core idea: Differences between paired observations should be positive about half the time and negative the other half.
- Calculation: The test uses a Z-score formula: Z=N∣D∣−1
Z: The computed Z-score for the Sign Test.D: The difference between the count of positive and negative signs.N: The number of pairs with non-zero differences.
5.1.2 Example: Pretest vs. Post-test Scores
Consider pre-test and post-test scores for 10 students. The goal is to see if there's a significant difference.
| Pretest (x) | Post-test (y) | Difference (x-y) | Sign |
|---|---|---|---|
| 15 | 19 | -4 | - |
| 19 | 30 | -11 | - |
| 31 | 26 | +5 | + |
| 36 | 8 | +28 | + |
| 10 | 10 | 0 | 0 |
| 11 | 6 | +5 | + |
| 19 | 17 | +2 | + |
| 15 | 13 | +2 | + |
| 10 | 22 | -12 | - |
| 16 | 8 | +8 | + |
- There are 6 positive signs, 3 negative signs, and 1 zero.
- The zero difference is disregarded, so N=9.
- D=∣6−3∣=3.
- Computed Z=93−1=32≈0.67.
5.1.3 Decision and Conclusion
- Decision Rule: If the computed Z-value is greater than the tabular Z-value (critical value), reject the null hypothesis.
- Conclusion: At a significance level of α=0.05, the critical Z-value is ±1.96. Since 0.67<1.96, the null hypothesis is confirmed. There is no significant difference between pre-test and post-test results 88 89.
5.2 Scheffé's test for post-hoc comparisons
Scheffé's Test is used for post-hoc analysis after an ANOVA finds a significant overall difference between group means. It helps identify which specific group means differ from each other.
🔑 Important: Scheffé's test offers flexibility to test any comparisons but has lower statistical power compared to other post-hoc tests.
5.2.1 Calculating Scheffé's Test Statistic
Scheffé's test uses an F-statistic formula adapted for pairwise comparisons:
F1=SW2(n11+n21)(xˉ1−xˉ2)2
- F1: The Scheffé's test statistic.
- xˉ1,xˉ2: The means of the two groups being compared.
- n1,n2: The number of samples in each group.
- SW2: The within-group mean squares from the ANOVA.
5.2.2 Example: Shampoo Brand Sales
Assume an ANOVA found a significant difference in average sales for four shampoo brands (A, B, C, D). SW2=3.02.
The sample sizes for each brand are n1=n2=7. The means are: xˉA=5.28, xˉB=8.14, xˉC=3.71, xˉD=5.14.
Here's a comparison of the calculated Scheffé F-values:
| Comparison | Mean Difference Squared | Calculation for Denominator | F1 (Computed) | Critical F (K-1) | Interpretation |
|---|---|---|---|---|---|
| A vs B | (5.28−8.14)2=8.1796 | 3.02(71+71)=0.86 | 9.51 | 9.06 | Significant |
| A vs C | (5.28−3.71)2=2.4669 | 3.02(71+71)=0.86 | 2.87 | 9.06 | Not Significant |
| A vs D | (5.28−5.14)2=0.0196 | 3.02(71+71)=0.86 | 0.02 | 9.06 | Not Significant |
| B vs C | (8.14−3.71)2=19.6249 | 3.02(71+71)=0.86 | 22.82 | 9.06 | Significant |
| B vs D | (8.14−5.14)2=9.00 | 3.02(71+71)=0.86 | 10.46 | 9.06 | Significant |
| C vs D | (3.71−5.14)2=2.0449 | 3.02(71+71)=0.86 | 2.39 | 9.06 | Not Significant |
- The critical F-value for K-1 degrees of freedom (where K is the number of groups, 4 in this case) at α=0.05 is approximately 9.06 90.
5.2.3 Interpretation of Results
- Significant differences exist between:
- Brand A and Brand B
- Brand B and Brand C
- Brand B and Brand D
- No significant differences were found between:
- Brand A and Brand C
- Brand A and Brand D
- Brand C and Brand D
- This indicates Brand B has significantly higher sales than brands A, C, and D.
🔑 Important: Brand B's sales are significantly higher than brands A, C, and D, based on Scheffé's test results 91.
5.3 Appendices: Critical Values Tables
The appendices provide critical values for common statistical tests. These are essential for hypothesis testing to determine if observed results are statistically significant.
5.3.1 T-distribution table
- Provides critical values for the t-test.
- Used to determine significance based on degrees of freedom and the chosen alpha level 92.
5.3.2 F-distribution table
- Provides critical values for the F-distribution, primarily used in ANOVA.
- Tables are available for α=0.05 and α=0.01 significance levels.
- To use: Find the intersection of your obtained F-ratio's degrees of freedom (numerator and denominator) in the table. If your calculated F-ratio is equal to or larger than the critical value, the result is significant.
📝 Example: An F-ratio of 3.96 with (2, 24) degrees of freedom. The critical F at 0.05 is 3.40. Since 3.96 > 3.40, the result is significant 93.
5.3.3 Chi-Square distribution table
- Provides critical values for the Chi-Square (χ2) test.
- Used for tests concerning categorical data, like goodness-of-fit or independence 97.
🔑 Important: Always compare your calculated test statistic to the appropriate critical value from the relevant appendix table to make a decision about your null hypothesis 98 99.
© 2026 Maeve. All rights reserved. This content is protected by copyright.