PS1007 #7 Mann-Whitney U Test: Principles, Assumptions, Mechanics, and SPSS Implementation
Statistical Foundations and Curricular Framework
Curricular Progression in Inferential Statistics:
Exploratory and descriptive foundations focus on summarizing data distributions using parameters and sample metrics such as the mean (, ), standard deviation (, ), skewness, and kurtosis.
Inferential frameworks introduce formal hypothesis testing, distinguishing between the null hypothesis () and the alternative hypothesis (), evaluating sampling error, and calculating probability values (-values) to inform inferential decisions.
Parametric procedures for mean comparisons include:
Paired-samples -tests: Applied in within-subjects (repeated-measures) experimental designs where the same participants are evaluated across two experimental conditions.
Independent-samples -tests: Applied in between-subjects (independent groups) designs where two distinct, non-overlapping cohorts of participants are compared.
Non-parametric procedures provide robust alternatives when foundational distribution-related assumptions are violated:
Mann-Whitney test: The non-parametric counterpart to the independent-samples -test, utilized for between-subjects designs involving two independent groups when normality is violated or when analyzing ordinal data.
Wilcoxon signed-rank test: The non-parametric counterpart to the paired-samples -test, utilized for within-subjects designs across two conditions when difference scores violate distributional assumptions.
Effect size indices quantify substantive magnitude independently of sample size, spanning metric effect sizes such as Cohen's for parametric comparisons and non-parametric equivalents including the rank-biserial correlation ().
Practical Software Architecture:
Computational execution of inferential tests is conducted using IBM SPSS Statistics, accessible via university network provisions (such as AppsAnywhere) or local client installations.
Experimental Design and Variable Classification
Variable Types in Empirical Research:
Independent Variable (IV): The factor systematically manipulated, controlled, or compared across distinct conditions or categorical groupings.
Dependent Variable (DV): The outcome variable measured by the researcher to determine whether the manipulation or group categorization exerts an effect.
Methodological Designs:
Between-Subjects (Independent Groups) Design:
Each participant is exposed to exactly one level of the independent variable (Condition A or Condition B).
Compares completely separate groups of individuals.
Parametric analysis: Independent-samples -test.
Non-parametric analysis: Mann-Whitney test.
Within-Subjects (Repeated Measures) Design:
Every participant completes all experimental conditions (Condition A and Condition B).
Compares matched scores across identical participants over time or across tasks.
Parametric analysis: Paired-samples -test.
Non-parametric analysis: Wilcoxon signed-rank test.
Levels of Measurement for the Dependent Variable:
Nominal Scale:
Qualitative categories characterized exclusively by identity and mutual exclusivity, lacking numerical value, order, or equal distance.
Examples: Gender classifications, political party affiliations, favourite colours, undergraduate degree courses.
Ordinal Scale:
Ordered categories characterized by rank sequence, where relative positions are known but the numerical distance between successive ranks is unequal or unknown.
Examples: Finishing positions in an athletic race (, , ), degree classifications (First, , ), Likert attitude ratings.
Interval Scale:
Quantitative measurement characterized by sequential order and known, equal intervals between units, but lacking an absolute, non-arbitrary true zero point.
Ratios between values are invalid because zero does not signify the absolute absence of the measured construct.
Example: Temperature measured in degrees Celsius (), where the difference between and equals the difference between and , yet cannot be described as twice as warm as .
Ratio Scale:
Quantitative continuous measurement featuring equal intervals between scale points and an absolute, physically meaningful zero point denoting total absence of the variable.
Mathematical operations and multiplicative comparisons are fully permissible.
Examples: Reaction time in milliseconds (), sleep latency duration in minutes, total count of words correctly recalled.
Continuous Data Classification: For parametric inferential procedures (-tests), the dependent variable must be continuous (comprising interval or ratio metrics).
Assumptions of Parametric Tests and Diagnostic Procedures
The Four Primary Ingredients for Parametric Tests:
Independence of Observations:
Every individual data point must be collected independently such that no participant's responses influence or depend upon another participant's responses.
Violation example: If participants (such as Alex and Laura) confer while completing an exam stress test, their responses become correlated, compromising the validity of standard standard-error calculations.
Continuous Scale of Measurement:
The dependent variable must be recorded on an interval or ratio scale.
Normality of Distribution:
The population distribution from which sample scores originate must conform to a Gaussian bell-shaped curve.
For an independent-samples -test, normality must hold within each individual group.
For a paired-samples -test, the difference scores between conditions must be normally distributed.
Homogeneity of Variance:
The variance (dispersion) across the comparison populations must be approximately equal.
Evaluated formally via Levene's Test for Equality of Variances:
If Levene's test is non-significant (): Equal variances are assumed; read the top row of the SPSS output table.
If Levene's test is statistically significant (): The assumption of equal variances is violated, indicating that one group is substantially more dispersed than the other; read the bottom row of the SPSS output table (Equal variances not assumed / Welch-Satterthwaite correction).
Note: Homogeneity of variance applies strictly to independent-samples designs and is not applicable to paired-samples designs.

Comprehensive Diagnostics for Normality:
Visual Graphical Diagnostics:
Histograms: A normal distribution demonstrates unimodal symmetry with minimal skewness and mesokurtic peak structure, conforming closely to the superimposed theoretical bell curve.
Quantile-Quantile (Q-Q) Plots: Observed score quantiles are plotted against expected normal quantiles. Normal data hug the diagonal reference line closely; systematic departures, sigmoidal S-shapes, or severe arching indicate skewness or heavy tails.
Box-and-Whisker Plots: Symmetrical positioning of the median horizontal bar within the interquartile range (IQR) box, symmetrical upper and lower whiskers, and an absence of extreme outliers (represented by open circles for mild outliers or asterisks for extreme scores).
Formal Statistical Hypothesis Testing for Normality:
Shapiro-Wilk Test: Preferred diagnostic test for small to moderate sample sizes ().
Kolmogorov-Smirnov Test (with Lilliefors Significance Correction): Standard diagnostic test for large sample cohorts ().
Interpretive Rule: The null hypothesis posits that the distribution is normal. Therefore, a non-significant result () signifies that the data do not deviate significantly from normality (assumption met). Conversely, a significant result () signifies a severe deviation from normality (assumption violated).
Theoretical Distinction: Parametric vs. Non-Parametric Frameworks
Parameters versus Statistics:
Population Parameter:
A fixed numerical summary index describing an entire population (e.g., population mean , population standard deviation ).
Typically unknown and unobservable because measuring every individual in a target population is impossible (e.g., the average time required for all university students in the United Kingdom to fall asleep).
Sample Statistic:
A numerical index calculated directly from observed sample data (e.g., sample mean , sample standard deviation ).
Functions as the empirical point estimate of the unobserved population parameter (e.g., sampled students demonstrating ).
The Mathematical Mechanism of Parametric Procedures:
The classical Gaussian distribution is completely characterized by two specific parameters: its mean (, locating the center) and standard deviation (, defining the width/spread).

Parametric tests (such as -tests) rely fundamentally on the assumption that populations conform to this parametric structure, operating directly through mathematical manipulation of means and variances.
The Sensitivity of Means to Distributional Skew and Outliers:
When data distributions contain severe skewness or extreme outliers, the arithmetic mean is drawn toward the long tail, providing an unrepresentative measure of central tendency.
By contrast, the median () is robust to extreme scores because it depends entirely on ordinal rank rather than numeric magnitude.
Consider an illustrative sleep latency data distribution where the bulk of scores cluster tightly around to , but a single extreme outlier sits at :
The median remains anchored at .
The mean is distorted upward to .

Statistical tests comparing arithmetic means under such conditions yield misleading inferential conclusions, necessitating procedures that do not depend on distributional parameters.
Non-Parametric ("Distribution-Free") Tests:
Do not assume that sample observations stem from an underlying population with a predetermined functional distribution shape (such as the Gaussian bell curve).
Raw measurement values are converted into relative ordinal positions (ranks), discarding the absolute numerical distances between data points.
Summarized and reported using non-parametric descriptive statistics: Median () for central tendency, and Interquartile Range () for dispersion.
Optimal for: Skewed distributions, extreme uncorrectable outliers, strictly ordinal data structures (e.g., Likert survey measures), and small sample sizes where verifying normality is unfeasible.
The Crucial Trade-Off: Statistical Power:
When the required distributional assumptions are fully satisfied, parametric tests are demonstrably more statistically powerful than their non-parametric counterparts.
Higher statistical power reduces the probability of committing a Type II error (erroneously failing to reject a false null hypothesis, thereby missing a true population effect).
Non-parametric tests should therefore not be adopted indiscriminately; they are reserved for circumstances where parametric recipe conditions are explicitly broken.
Critical Rule for Two-Group Comparisons: Normality must hold across both comparison groups. If even one group violates normality, the foundational assumption of the independent-samples -test is broken, mandating a non-parametric test.
Feature | Parametric Tests (-tests) | Non-Parametric Tests (Mann-Whitney , Wilcoxon) |
|---|---|---|
Underlying Distribution | Assumes population normality (Gaussian) | Distribution-free (no shape assumption) |
Data Type (DV) | Continuous (Interval or Ratio) | Ordinal, Interval, or Ratio |
Central Metric Compared | Means () | Ranks (Evaluated via Medians, ) |
Dispersion Metric | Standard Deviation () | Interquartile Range () |
Independence | Strictly required | Strictly required |
Equal Variances | Required for independent -test | Not required |
Vulnerability to Outliers | High (Mean is easily distorted) | Low / Resistant (Ranks mitigate extreme values) |
Relative Power | Maximum power when assumptions hold | Slightly lower power; avoids bias when violated |
Statistical Selection Framework: Decision Tree
Test Selection Logic Based on Design and Normality Diagnostics:

Branch 1: Between-Subjects Experimental Design (Two Separate Groups):
Data Normally Distributed?:
YES Independent-Samples -Test.
NO Mann-Whitney Test.
Branch 2: Within-Subjects Experimental Design (Same Participants / Repeated Measures):
Difference Scores Normally Distributed?:
YES Paired-Samples -Test.
NO Wilcoxon Signed-Rank Test.
The Mann-Whitney U Test: Mechanics and Manual Computation
Theoretical Mechanism of the Mann-Whitney Test:
Designed to evaluate whether the distribution of ranks for one group systematically exceeds or falls below the distribution of ranks for another independent group.
Instead of calculating sample means, all observed scores from both groups are pooled into a single combined distribution, arranged in ascending order, and assigned ordinal ranks ( for the lowest score through for the highest score).
The test assesses head-to-head pairs across the two groups: for every participant in Group 1 paired with every participant in Group 2, it determines which group achieved the higher score.
The test statistic quantifies the frequency with which one group ranks above the other across all possible pairwise comparisons.
Under the null hypothesis (), both groups originate from identical populations, meaning their ranks should be evenly distributed throughout the ordered series. Consequently, the number of head-to-head wins should be roughly equal for both groups (.
Extreme discrepancy between the observed value of and this expected midpoint reflects systematic divergence between the two groups.
Handling Tied Observations:
When identical scores occur across observations, each tied score is allocated the arithmetic average of the consecutive ordinal ranks they would otherwise occupy.
For instance, if two observations tie across the third and fourth ordinal positions, their allocated rank is:
Complete Manual Worked Example:
Context: Two independent participant cohorts (, ) completed a performance test.
Raw Observations:
Group 1 (): , , , ,
Group 2 (): , , , ,
Step 1: Order All Scores Systematically by Magnitude:
Aggregate all observations into a single ascending continuum while tracking group membership:
(Group 1)
(Group 2)
(Group 1)
(Group 1)
(Group 2)
(Group 1)
(Group 2)
(Group 2)
(Group 1)
(Group 2)
Step 2 & 3: Assign Ordinal Ranks and Resolve Ties:
Positions 1 and 2: Score ; Score .
Positions 3 and 4: Both scores are (Group 1). Average rank assigned: .
Positions 5 through 10: Score ; Score ; Score ; Score ; Score ; Score .
Group | Raw Score | Assigned Rank |
|---|---|---|
1 | ||
2 | ||
1 | ||
1 | ||
2 | ||
1 | ||
2 | ||
2 | ||
1 | ||
2 |
Step 4: Calculate Sum of Ranks per Group ( and ):
Group 1 Rank Sum ():
Group 2 Rank Sum ():
Step 5: Compute the Statistic Using the Algebraic Formulas:
Formula for based on Group 1's ranks:
Formula for based on Group 2's ranks:
Internal Cross-Check Equation:
Step 6: Empirical Demonstration via Pairwise Head-to-Head Comparisons:
Construct a comparison matrix evaluating every pairwise combination:

Total pairwise matches evaluated: .
Pairwise wins for Group 1 (): Exactly matches.
Pairwise wins for Group 2 (): Exactly matches.
These match counts correspond to the calculated algebraic values.
Step 7: Selection of the Formal Test Statistic:
By universal statistical convention (and in SPSS output), the test statistic is defined as the smaller of the two calculated values:
Step 8: Critical Value Determination and Decision Rule:
Statistical tables establish critical values derived from sampling distributions generated under the assumption that is true.

* For a two-tailed evaluation at significance level , cross-referencing row with column yields a critical value of .
* *Formal Decision Rule*: For the Mann-Whitney test, the observed test statistic must be **less than or equal to** the critical value to achieve statistical significance:
Step 9: Hypothesis Decision and Substantive Interpretation:
Observed value
Critical value
Evaluation: . The observed is strictly greater than the critical value.
Conclusion: The result is not statistically significant (). We fail to reject .
Interpretive Caution: A non-significant outcome must never be phrased as proving "no difference" between groups; rather, the data provide insufficient empirical evidence to detect a difference.
Large-Sample Normal Approximation:
For small cohorts, statistical tables yield exact probabilities.
As sample size increases (), the sampling distribution of approaches a continuous Gaussian distribution.
Computational software converts into a standardized -score to derive asymptotic -values (
Asymp. Sig. (2-tailed)).
Empirical Case Study: Pre-Sleep Screen Exposure and Sleep Latency
Research Background and Experimental Methodology:
Inspired by research on light-emitting electronic devices and circadian physiology (Chang et al., 2015, PNAS).
Sample: first-year undergraduate university students.
Experimental Manipulation: Participants were randomly assigned to one of two experimental conditions ( per group):
Phone Group (): Engaged in of smartphone screen scrolling immediately prior to sleeping.
Book Group (): Engaged in of reading a physical paper book immediately prior to sleeping.
Dependent Variable (DV): Latency duration to sleep onset, measured continuously in minutes (
Minutes_asleep).Design Structure: Between-subjects (two independent groups).
Formal Hypotheses:
Null Hypothesis (): There is no difference in the duration of time required to fall asleep between students who scroll on their phones and students who read a physical book prior to sleeping ().
Alternative Hypothesis (): The duration of time required to fall asleep differs significantly between students who scroll on their phones and students who read a physical book prior to sleeping ().
SPSS Data Architecture:
In independent between-subjects analyses, data must be structured across two distinct columns:
Column 1: Continuous dependent variable score (
Minutes_asleep).Column 2: Independent categorical grouping variable (
Group), with numeric codes denoting cohort membership (e.g., , .Each individual row corresponds to a single participant.
Testing Assumptions in SPSS: Step-by-Step Protocol:
Menu Navigation:
Analyze > Descriptive Statistics > Explore...Specification Setup:
Move
Minutes_asleepinto the Dependent List.Move
Groupinto the Factor List.Click Plots…:
Untick
Stem-and-leaf.Tick
Histogram.Tick
Normality plots with tests.
Click Continue, then click OK.
Diagnostic Evaluation of the Case Study Output:
Inferential Tests of Normality:
Phone Group: Kolmogorov-Smirnov statistic = (); Shapiro-Wilk statistic = ().
Book Group: Kolmogorov-Smirnov statistic = (); Shapiro-Wilk statistic = ().
Interpretation: Because the sample size per condition is (), the Shapiro-Wilk test is the primary benchmark. Both groups yield (), indicating statistically significant departures from normality across both cohorts.
Histogram Inspection:
Both distributions display positive skewness, with the bulk of observations clustered at shorter durations and long, drawn-out tails extending toward the right.
Q-Q Plot Inspection:
Points curve away from the theoretical diagonal line across both groups, with extreme observations at the upper ends deviating substantially.
Boxplot Inspection:
Both distributions exhibit positive skew, evidenced by the median line positioned toward the lower boundary of the box and extended upper whiskers.
The Phone group contains three identified outliers (Cases , , and an extreme starred outlier Case at .
The Book group contains one identified outlier (Case at .
The Book box sits lower along the scale (indicating faster sleep onset) and shows narrower vertical span (less dispersion).

Complete Empirical Descriptive Output:
Phone Group ():
Mean () = (
Confidence Interval for Mean: Lower Bound = , Upper Bound =
Trimmed Mean =
Median () =
Variance =
Standard Deviation () =
Minimum = , Maximum = , Range =
Interquartile Range () =
Skewness = (
Kurtosis = (
Book Group ():
Mean () = (
Confidence Interval for Mean: Lower Bound = , Upper Bound =
Trimmed Mean =
Median () =
Variance =
Standard Deviation () =
Minimum = , Maximum = , Range =
Interquartile Range () =
Skewness = (
Kurtosis = (
Methodological Justification for Test Selection:
Design: Between-subjects comparing two independent groups.
Scale: Continuous ratio dependent variable.
Assumption check: Severe positive skew, heavy tails, uncorrectable outliers, and significant Shapiro-Wilk tests () violate normality across both groups.
Decision: The independent-samples -test cannot be used; the Mann-Whitney test is the appropriate inferential procedure.
Running the Mann-Whitney Test in SPSS:
Menu Navigation:
Analyze > Nonparametric Tests > Legacy Dialogs > 2 Independent Samples...Specification Setup:
Move
Minutes_asleepinto the Test Variable List.Move
Groupinto the Grouping Variable field.Click Define Groups…: Enter
1for Group 1 and2for Group 2; click Continue.Ensure the checkbox for Mann-Whitney U is ticked under Test Type.
Click OK.
Interpretation of the SPSS Test Statistics Output:

Output Statistics:
Mann-Whitney =
Wilcoxon =
Standardized = (rounds to
Asymptotic Significance (
Asymp. Sig. (2-tailed))
Statistical Context of :
With and , the total number of pairwise matches is .
Under the null hypothesis of no difference, each group would be expected to win approximately half of the pairwise comparisons ().
The Book group won only matches, which is sufficiently smaller than the expected to produce a statistically significant outcome (). Because , the null hypothesis is rejected.
APA Reporting Standards and Formal Academic Write-Up
Formatting Guidelines (APA 7th Edition):
Symbol Typography:
All statistical symbols and test abbreviations must be italicized: , , , , , , , , , , , , .
Precision and Decimal Rules:
Report most descriptive and test statistics to two decimal places (e.g., , , ,
Include a leading zero before the decimal point for numbers that can exceed (e.g., ,
Omit the leading zero for numbers bounded between and , such as probabilities and correlations (e.g., ,
Report exact -values to three decimal places. For values smaller than , report as
Apply mathematical spacing before and after operators (e.g., , not ).
Structured Reporting Sequence:
Justify: State the diagnostic basis for selecting the non-parametric procedure.
Name: Explicitly identify the test conducted.
Descriptives: Report medians () and interquartile ranges () for each condition.
Inferential: Report the test statistic (), the standardized score (), and the exact probability value (
Effect Size: Quantify magnitude (e.g., rank-biserial correlation
Meaning: Provide an interpretation resolving the original research question in plain language.
Model APA Write-Up:
"Data exploration showed that time to fall asleep was not normally distributed in either group: histograms and box plots showed positive skew with outliers, Q-Q plots deviated from the line, and Shapiro-Wilk tests were significant for both the phone and book groups (both ). Therefore, a Mann-Whitney test was conducted to compare time to fall asleep between the phone and book groups. Students who scrolled on their phone before bed took longer to fall asleep (, ) than students who read a book (, ). This difference was statistically significant, , , . This suggests that scrolling on a phone before bed may delay falling asleep compared with reading a book."
Summary: Core Principles of the Mann-Whitney U Test
When to Select the Test:
Between-subjects designs evaluating two independent groups when the continuous dependent variable violates normality, exhibits substantial skewness or uncorrectable outliers, or is measured on an ordinal scale.
What the Test Evaluates:
Assesses whether the distribution of ranks in one group systematically differs from another by calculating pairwise comparisons (head-to-head wins).
Core Assumptions:
Requires independent observations and an ordinal, interval, or ratio dependent variable. Does not require normality or homogeneity of variance.
Key Inferential Output Metrics:
The test statistic (), the standardized score (), and the significance value ().
Reporting Protocol:
Report condition medians () and interquartile ranges (), followed by , , and . If , describe the result as "not statistically significant"; never state that there is "no difference" between groups.