With and no ties, sampling ranks without replacement gives the displayed mean and variance. For observed rank sum below its mean, a continuity-corrected lower-tail statistic is . Ties of sizes replace the variance by . These formulas concern the raw rank sum; the Mann–Whitney U test statistic subtracts from both the observation and its mean.
The first output uses the equal-variance, pooled Student's t-test, as shown by its seven statistical degrees of freedom. Its exact model assumes two independent samples from normal distributions, with means and a common unknown variance . The hypotheses are against . The sample means are and , and the unbiased within-sample sample variances are
The pooled sample variance and its resulting standard error are
Hence
To justify its reference distribution, under the null is standard normal, while is , independently of the two sample means. Dividing the first variable by the square root of the second divided by seven gives the exact pooled two-sample t statistic, with Student t-distribution . Its one-sided p-value is the lower tail
The associated one-sided 95% confidence interval for is
The printed missing lower bound means that this is a one-sided upper confidence limit, not that a finite lower endpoint should be estimated. With such small samples the normality and common-variance assumptions matter; a Welch analysis would use a different variance estimate and generally different degrees of freedom.
The second output is the Wilcoxon rank sum test for two independent continuous samples. Under a common-distribution null hypothesis, labels are exchangeable conditional on the pooled values, so the four ranks assigned to the first sample form a uniformly chosen four-element subset of . The first sample receives ranks , giving raw rank sum
Equivalently the Mann–Whitney U test statistic is , the number of cross-sample pairs with an observation larger than a observation. This output reports the raw rank sum, rather than the shifted statistic used by some software.
A first sample tending to be smaller has a small rank sum. Under the null, all rank allocations have equal probability. Only and have rank sum at most 11. By the exact rank-sum tail one above the minimum, the exact lower-tail p-value is
No large-sample normal approximation or continuity correction is involved; the absence of ties makes this simple enumeration valid. For a common-shape location-shift family, the test's alternative is a negative location shift of relative to . Without that model, the null is equality of distributions and the rank comparison is not simply a test of equality of means or medians.
Both tests reject at the 5% level in the direction of smaller observations; only the pooled t-test rejects at 1%. The t-test uses the numerical spacing and targets a mean difference under its normal model. The rank-sum test uses ordering and an exact exchangeability calculation, avoiding the normality and common-normal-variance assumptions. Their different p-values therefore reflect both different statistics and different modelling assumptions, not a numerical contradiction.
For the one-sided Wilcoxon rank sum test, suppose and are independent samples, iid within each sample, with continuous distributions. The null hypothesis is a common distribution. For a lower-tail alternative, the distribution is stochastically smaller. In the common-shape location model , this is against ; in that model it also compares medians. Without a location-family assumption, equality or inequality of medians alone is not the defining rank-sum hypothesis.
Rank all observations from smallest to largest and form . Reject for small . Under , the labels are exchangeable, so every subset of of the ranks is equally probable. The exact null distribution of a rank sum is therefore
Enumerate these subsets, or use the coefficient of in . An efficient recursion adds rank either to the selected sample or not: , starting with . The lower-tail P-value is . A nonrandomized level- test chooses a lower-tail rejection region whose null probability is at most .
The shifted Mann–Whitney U test statistic is . It counts pairs with , so the same lower-tail test uses small . The distinction is important for these S-Plus outputs: the printed values are raw rank sums, not the shifted statistic used by some other software.
For the one-sided Wilcoxon signed-rank test, the pairs are independent between individuals but their two measurements may be dependent. Let , and assume the differences are iid, continuous and symmetric about a common location . Test against . Rank the absolute differences and use
Under the null, conditional on their absolute values, the signs are independent fair signs. Every subset of ranks therefore has probability of being the positive-sign subset, giving the exact null distribution of . Reject for small and calculate the lower-tail probability. Its null mean and variance are and . The symmetry assumption is essential: zero median by itself does not give this law. With zeros or ties, omit zero differences in the usual signed-rank version and use average ranks for ties, adjusting the distribution accordingly. The paired test is not appropriate for the independent RHR samples here.
For the experienced participants, let denote RHR1 running time and denote RHR2 running time. The null hypothesis is identical running-time distributions; under the location interpretation it is zero RHR1-minus-RHR2 shift. The one-sided alternative is a negative shift, so RHR1 participants tend to run faster. With , the printed statistic is
At , reject the null in favour of faster RHR1 running times. The sample medians and minutes agree with that direction; their difference is descriptive, not the rank-sum test statistic.
For the new participants the same independent-sample Wilcoxon rank sum test compares eight RHR1 times against nine RHR2 times, again with a lower-tail alternative. Here
The exact null distribution of a rank sum gives this probability. It does not reject at , although it is just below . The data suggest the same direction but are less decisive; this is not evidence that the two new-participant distributions are equal.
The final command pools the experienced and new RHR1 samples into observations, and the corresponding RHR2 samples into . It repeats the lower-tail rank-sum comparison on these two pooled groups. exact=F requests a normal approximation for a rank sum with a continuity correction. Without ties,
The lower-tail statistic is , with the usual tie-adjusted variance if ties occur. The supplied output is
where is the standard normal distribution function. Thus the pooled test rejects at . The unreported pooled ranks must be formed afresh: the within-cohort raw rank sums cannot simply be added because pooling introduces cross-cohort comparisons.
Taken together, there is evidence that participants classified as RHR1 have shorter running times among the experienced men and in the pooled sample. The smaller new-participant samples give weaker evidence in the same direction. A significant result in one cohort and a nonsignificant result in another does not itself prove that their RHR effects differ. Pooling also assumes a meaningful pooled comparison; if programme duration changes the distributions, a cohort-adjusted analysis would be more informative. These observational comparisons do not establish that the fitness programme caused the differences, and none of the three tests directly compares experienced participants with new participants.