code: private static double scoreToPvalue(double score, int n) {
          double T= score/Math.sqrt((1-score*score)/(n-2));
          return ContinuousDistributions.studentsCdf(T, n-2);
      }
docs: Returns the Pvalue for a particular score
  
  @param score
  @param n
  @return