JavaNPTS: NonParametric Statistical Test in Java

JavaNPST

JavaNPST is a Java library featuring 40 well-known nonparametric tests in the literature.

It is an user-friendly library, entirely written in Java, without using any external sources not located in the standard distribution. Its main features are the following:

  • JavaNPST covers most of the situations where hypothesis testing procedures would be needed. For each kind of problem, it contains one or several tests that will fit with the requeriments of the data to analize.
  • JavaNPST is an easy-to-use library. It only requires to define the adequate set of structures for storing the data and the objects representing the tests selected. Therefore, it can be helpful for academical research or teaching in statistics and other related fields.
  • JavaNPST comes with several examples of use, which are provided in this website.
  • JavaNPST can be plugged in other software projects just by including the library as a new resource. No configuration process are needed, thus the tests are ready to be used as soon as the library is included.
  • JavaNPST is free and open source.

In this website, you can find the JavaNPST library and many additional resources, including documentation and examples of use. They are available through the different sections shown in the left menu.

Tests available

JavaNPST features 40 nonparametric tests which can be used in different situations. They are categorized with respect to the kind of problem tackled by each one.

Below you can find a table with all the implemented tests, sorted by families. In addition, a code snippet is provided as an example of use for each test. For instructions about how to run these examples, check the Installation section of the web.

Category Tests   Examples  
Tests of randomness Number of Runs
Runs Up and Down
  Runs Up and Down (Median)  
Von Neumann
Tests of goodness of fit Chi-Square test
Kolmogorov-Smirnov
Lilliefors
Anderson-Darling
One-sample and paired-samples Confidence Quantile
Population Quantile
Sign test
Wilcoxon Signed-Ranks
Two-Sample general procedures Wald-Wolfowitz
Median test
Control Median
Kolmogorov-Smirnov
Location problem Wilcoxon Rank-Sum
van der Waerden
Scale problem David-Barton
Freund-Ansari-Bradley
Mood
Klotz
Siegel-Tukey
Sukhatme
Equality of independent samples Extended Median test
Kruskal-Wallis
Jonckheere-Terpstra
Charkraborti-Desu
Association for bivariate samples Kendall
Daniel Trend
Association in multiple classifications Friedman
Page
Concordance Coefficient
Incomplete Concordance
Partial Correlation
Analysis of count data Contingency Coefficient
Fisher's exact test
McNemar
Multinomial Equality test
Ordered Equality test

Installation

To install JavaNPST, download the JAR file that contains the library (available at the downloads section) and make it available to the JDK installed in the system. Typically, this can be done adjusting the contents of the CLASSPATH variable, so that it contains the path to the JAR file.

Further information about the CLASSPATH variable can be found at The Java Tutorial.

Downloads

In this page you can obtain JavaNPST and other related sources which can be useful when developing software with the library.

License   GPL V.3

We offer JavaNPST as an open source software. Therefore, terms of the GNU General Public License Version 3 (GPLv3) must be acknowledged before using or modifiying it:

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Acknowledgements

You can freely use this software as far as the terms of the GPLv3 licence were met. However, if you publish material based on this software, please, cite it as follows:
 

JavaNPST library

  • Version 1.0    JavaNPST JAR File

JavaNPST source code

  • Version 1.0    JavaNPST source code
  • License    License

Documentation

  • API Reference    JavaNPST API Reference
  • Examples    JavaNPST Examples