Nonparametric Statistical Tests using Python: An Introductory Tutorial

Dr. Soumen Atta, Ph.D.
8 min readApr 8, 2022
Nonparametric Statistical Tests using Python: An Introductory Tutorial

This is a beginner-friendly introductory tutorial on nonparametric statistical tests using Python. Nonparametric tests in statistics are methods of statistical analysis that do not require the data to be normally distributed. Due to this reason, these types of tests are sometimes called distribution-free tests. Note that in this tutorial we are not going to discuss the theoretical details of these nonparametric statistical tests. Rather, we will discuss when and how to use these tests using Python. In addition, this tutorial assumes that the readers have a working knowledge of Python programming language. In this tutorial, we will use the SciPy (pronounced “Sigh Pie”) Python package used for mathematics, science, and engineering applications. SciPy is open-source.

In this tutorial, we discuss four nonparametric statistical tests. They are as follows:

  1. Mann-Whitney U Test,
  2. Wilcoxon Signed-Rank Test,
  3. Kruskal-Wallis H Test and
  4. Friedman Test.

--

--

Dr. Soumen Atta, Ph.D.

Assistant Professor, Center for Information Technologies and Applied Mathematics, School of Engineering and Management, University of Nova Gorica, Slovenia