Skip to main content
VierApparatus
On this page
  1. References

Level 08 · Biostatistics and Biological Data Science

Parametric and Nonparametric Tests

The distinction between parametric tests, which assume a distribution with parameters such as the normal, and nonparametric tests, which use the ranks of the data and make fewer assumptions, covering the t test and analysis of variance, the Mann-Whitney, Wilcoxon signed-rank and Kruskal-Wallis rank tests, the comparison of agreement between two methods of measurement, the efficiency of each family when its assumptions hold and the choice of test for a given biological design.

1 min read · Updated

Listen to this moduleComing soon

Learning objectives

  • Explain the difference between a parametric and a nonparametric test and state the assumptions each requires.
  • Choose a parametric or a rank-based test for a given biological design and state the reason for the choice.

A parametric test assumes that the data come from a distribution with a known form, usually the normal, and uses its parameters to compute the test. The t test and analysis of variance are the main examples. A nonparametric test makes no assumption about the form of the distribution and replaces the values by their ranks, so that the test depends only on the order of the observations. Rank tests are more robust to skewed data and outliers, and they are less powerful than the parametric tests when those tests' assumptions hold.

The topic covers the two families and the tests that represent each. The Mann-Whitney test, described by Mann and Whitney (1947), compares two independent groups by their ranks. The Wilcoxon signed-rank test, from Wilcoxon (1945), handles matched pairs. The Kruskal-Wallis test, from Kruskal and Wallis (1952), extends the comparison to several groups. The Bland-Altman analysis, from Bland and Altman (1986), addresses agreement between two methods of measurement, which is a different question from the difference between groups.

The choice between the families is a judgement about the data and the design. A test is not chosen because it gives the desired result. Student (1908) derived the t distribution for normal data, and the t test remains the standard when its assumptions are reasonable, while the rank tests are preferred for small skewed samples and ordinal data. The decision should be made from the design and the distribution before the comparison is run.

Sandve et al. (2013) recommended recording the test chosen and the reason for the choice, and the ranks used, the handling of ties and the software version, since rank tests have details that affect the result.

Chapters in this module

  • When Parametric Tests Apply

    The conditions under which parametric tests are valid and efficient, including the assumptions of a known distribution family, independence, equal variances across groups and an adequate sample size, how the central limit theorem relaxes the normality requirement for large samples, the efficiency gain of parametric tests when their assumptions hold and the checks that decide whether a parametric test is justified for a given biological dataset.

  • The t Test and Its Assumptions

    The t test in the form in which it is applied to biological comparisons, the pooled and the Welch versions for two groups, the assumptions of normal errors, independence and equal or unequal variances, the diagnostic checks that inform the choice of version, the reporting of the t statistic with its degrees of freedom and the effect with its interval, and the circumstances in which a t test should be replaced by a rank test or a transformation.

  • Analysis of Variance

    Analysis of variance as a parametric test that compares the means of several groups by partitioning the total variation into the variation between groups and the variation within them, the F statistic as the ratio of these components, the assumptions of normal errors and equal variances that it shares with the t test, the follow-up comparisons that must be corrected for multiplicity and the reasons a significant overall test does not identify which groups differ.

  • The Mann-Whitney Test

    The Mann-Whitney test for comparing two independent groups by the ranks of their observations, the calculation of the rank-sum statistic, the null hypothesis it tests in terms of the probability that a value from one group exceeds a value from the other, the handling of ties, the normal approximation for larger samples and the reasons it compares distributions in position rather than the means of the groups.

  • The Wilcoxon Signed-Rank Test

    The Wilcoxon signed-rank test for paired or matched observations, the calculation of the differences within each pair, the ranking of their absolute values, the sum of the ranks of the positive and negative differences, the assumption that the distribution of the differences is symmetric about the median, the handling of zero differences and the reasons the test is preferred to the sign test when the magnitudes of the differences carry information.

  • The Kruskal-Wallis Test

    The Kruskal-Wallis test for comparing three or more independent groups by their ranks, the statistic computed from the rank sums of the groups, its approximate chi-squared distribution, the interpretation of a significant result as evidence that at least one group differs, the follow-up comparisons between pairs of groups with their correction and the reasons the test is the rank analogue of one-way analysis of variance.

  • Agreement Between Two Methods

    How two methods of measurement are compared for agreement rather than for association, the Bland-Altman analysis that plots the difference between the methods against their average, the bias as the mean difference, the limits of agreement as the bias plus and minus about two standard deviations of the differences, the reasons correlation and a t test of the means do not establish agreement and the interpretation of the limits against the clinical or biological tolerance that matters.

  • Choosing a Test

    A structured approach to choosing a statistical test for a biological design, covering the type of variable and the number of groups, the pairing or independence of the observations, the distribution and the sample size, the test that follows from each combination and the discipline of fixing the choice in advance and reporting the reasons, so that the test is chosen from the design rather than from the result it gives.

References

  1. Mann, H. B., & Whitney, D. R. (1947). On a test of whether one of two random variables is stochastically larger than the other. The Annals of Mathematical Statistics, 18(1), 50-60. https://doi.org/10.1214/aoms/1177730491
  2. Wilcoxon, F. (1945). Individual comparisons by ranking methods. Biometrics Bulletin, 1(6), 80-83. https://doi.org/10.2307/3001968
  3. Kruskal, W. H., & Wallis, W. A. (1952). Use of ranks in one-criterion variance analysis. Journal of the American Statistical Association, 47(260), 583-621. https://doi.org/10.1080/01621459.1952.10483441
  4. Bland, J. M., & Altman, D. G. (1986). Statistical methods for assessing agreement between two methods of clinical measurement. The Lancet, 327(8476), 307-310. https://doi.org/10.1016/S0140-6736(86)90837-8
  5. Student. (1908). The probable error of a mean. Biometrika, 6(1), 1-25. https://doi.org/10.2307/2331554
  6. Sandve, G. K., Nekrutenko, A., Taylor, J., & Hovig, E. (2013). Ten Simple Rules for Reproducible Computational Research. PLoS Computational Biology, 9(10), e1003285. https://doi.org/10.1371/journal.pcbi.1003285

Callouts marked Commentary or Speculation in the lesson separate interpretation and open questions from established findings.