Memuat
Memuat
Nonparametric Tests (Mann-Whitney and Kruskal-Wallis) for Sports and Kinesiology
0 views
Compare 100 m swim time by swimming stroke in student swimming clubs with nonparametric tests when the normality assumption is not met. The Mann-Whitney test compares two independent groups and Kruskal-Wallis compares three or more, both rank-based without a normality assumption. They suit ordinal data, Likert scales, or numeric data that deviate from normality.

Compare 100 m swim time by swimming stroke in student swimming clubs with nonparametric tests when the normality assumption is not met.
| Role | Variable | Unit |
|---|---|---|
| Main | 100 m swim time | detik |
| Supporting 1 | swimming stroke | - |
| Supporting 2 | body height | cm |
Because 100 m swim time is skewed, nonparametric tests are used: Kruskal-Wallis H = 11.148 (p = 0.004) and Mann-Whitney G1 vs G3 is significant (p = 0.001), rank-biserial r 0.409.
Computed from illustrative synthetic data, not from a real study.
The Mann-Whitney test compares two independent groups and Kruskal-Wallis compares three or more, both rank-based without a normality assumption. They suit ordinal data, Likert scales, or numeric data that deviate from normality.
Report the median of each group, the U or H statistic, p-value, and effect size. Use medians and interquartile ranges, not means, when describing the data.
A short starting script with this project's variable names. The delivered version is adapted to your data and fully commented.
import numpy as np
import matplotlib.pyplot as plt
import scipy.stats as st
rng = np.random.default_rng(29)
swimming_stroke = rng.exponential(2.0, 40)
body_height = rng.exponential(3.0, 40)
x3 = rng.exponential(4.0, 40)
y = np.concatenate([swimming_stroke, body_height, x3])
print("Shapiro p (group 1):", round(st.shapiro(swimming_stroke).pvalue, 4))
u = st.mannwhitneyu(swimming_stroke, body_height, alternative="two-sided")
rbc = 1 - 2 * u.statistic / (len(swimming_stroke) * len(body_height))
print("Mann-Whitney U =", round(u.statistic, 1), "p =", round(u.pvalue, 4),
"rank-biserial r =", round(rbc, 3))
h = st.kruskal(swimming_stroke, body_height, x3)
eps2 = h.statistic * (len(y) + 1) / (len(y) ** 2 - 1)
print("Kruskal-Wallis H =", round(h.statistic, 3), "p =", round(h.pvalue, 5),
"epsilon2 =", round(eps2, 3))
pairs = [(0, 1), (0, 2), (1, 2)]
groups = [swimming_stroke, body_height, x3]
for i, j in pairs:
pv = st.mannwhitneyu(groups[i], groups[j]).pvalue * len(pairs)
print("Pair", i + 1, j + 1, "Bonferroni p =", round(min(pv, 1), 4))
plt.boxplot(groups)
plt.xticks([1, 2, 3], ["G1", "G2", "G3"])
plt.show()Choose how much help you need. Each higher package includes everything in the lower ones. Prices exclude 11% VAT.
Package 1
US$22
excl. 11% VAT
Duration: 5 working days
Output: Python files + result figures
Deliverables
Package 2 · most chosen
US$66
excl. 11% VAT
Duration: 9 working days
Output: Code + analysis + interpretation notes
Includes all of Package 1, plus
Package 3
US$144
excl. 11% VAT
Duration: 14-17 working days
Output: Code + analysis + guidance until ready to present
Includes all of Packages 1 & 2, plus
Yes. Nonparametric Tests (Mann-Whitney and Kruskal-Wallis) is commonly used at this level in Sports and Kinesiology. We adapt the analysis to your research question, your own data and your supervisor's requirements.
No. The sheet is computed from illustrative synthetic data so you can see the kind of output Python gives. For your order we run the same method on your own data.
That is the point of the packages. Every script is commented, and Package 3 includes two coaching sessions plus practice questions so you can explain the method and the results at your seminar and defence.
Each project has three packages: Package 1 (code and explanation) US$22, Package 2 (your data analysis and interpretation) US$66 and Package 3 (full guidance) US$144, excluding 11% VAT. Larger datasets, extra methods or tight deadlines adjust the quote after a short consultation.
The result sheet uses illustrative synthetic data. Python is a trademark of the Python Software Foundation.
Back to Python portfolio