code: private static boolean checkCriticalValue(double score, int df, boolean is_twoTailed, double aLevel) {
          double probability=ContinuousDistributions.studentsCdf(score,df);
  
          boolean rejectH0=false;
  
          double a=aLevel;
          if(is_twoTailed) { //if to tailed test then split the statistical significance in half
              a=aLevel/2;
          }
          if(probability<=a || probability>=(1-a)) {
              rejectH0=true;
          }
  
          return rejectH0;
      }
docs: Checks the Critical Value to determine if the Hypothesis should be rejected
  
  @param score
  @param df
  @param is_twoTailed
  @param aLevel
  @return