let wilcoxon_rank_sum_to_p arr1 arr2 = (* assumes a two-tailed distribution *) let z = wilcoxon_rank_sum_to_z arr1 arr2 in 2. *. (1. -. (cnd (Float.abs z)))