code: public static boolean checkCriticalValue(double score, int n, int k, boolean is_twoTailed, double aLevel) {
          /*
          if(n<=200 && k<=20) {
              //Calculate it from tables
              //http://www3.nd.edu/~wevans1/econ30331/Durbin_Watson_tables.pdf
          }
          */
          
          //Follows normal distribution for large samples
          //References: http://econometrics.com/guide/dwdist.htm
          double z=(score-2.0)/Math.sqrt(4.0/n);
  
          double probability=ContinuousDistributions.gaussCdf(z);
  
          boolean rejectH0=false;
  
          double a=aLevel;
          if(is_twoTailed) { //if to tailed test then split the statistical significance in half
              a=aLevel/2.0;
          }
          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 n
  @param k
  @param is_twoTailed
  @param aLevel
  @return