code: private static boolean checkCriticalValue(double score, int h, double aLevel, int p, int q) { //p and q are used only in ARIMA Models (p,0,q).
          double probability=ContinuousDistributions.chisquareCdf(score,h - p - q);
  
          boolean rejectH0=false;
  
          double a=aLevel;
          if(probability>=(1-a)) {
              rejectH0=true;
          }
  
          return rejectH0;
      }
docs: Checks the Critical Value to determine if the Hypothesis should be rejected
  
  @param score
  @param h
  @param aLevel
  @param p
  @param q
  @return