multi_perm_test, *args, reps=1000, workers=1)

Permutation test for the p-value of a nonparametric test with multiple variables.

  • calc_stat (callable) -- The method used to calculate the test statistic (must use hyppo API).

  • *args (ndarray) -- Variable length input data matrices. All inputs must have the same number of samples. That is, the shapes must be (n, p), (n, q), etc., where n is the number of samples and p and q are the number of dimensions.

  • reps (int, default: 1000) -- The number of replications used to estimate the null distribution when using the permutation test used to calculate the p-value.

  • workers (int, default: 1) -- The number of cores to parallelize the p-value computation over. Supply -1 to use all cores available to the Process.


  • stat (float) -- The computed test statistic.

  • pvalue (float) -- The computed p-value.

  • null_dist (list of float) -- The approximated null distribution of shape (reps,).

Examples using