public static void assertChiSquareAccept(double[] expected,long[] observed,double alpha){
  String[] labels=new String[expected.length];
  for (int i=0; i < labels.length; i++) {
    labels[i]=Integer.toString(i + 1);
  }
  assertChiSquareAccept(labels,expected,observed,alpha);
}

public static void assertChiSquareAccept ( double [ ] expected , long [ ] observed , double alpha ) { String [ ] labels = new String [ expected . length ] ; for ( int i = 0 ; i < labels . length ; i ++ ) { labels [ i ] = Integer . toString ( i + 1 ) ; } assertChiSquareAccept ( labels , expected , observed , alpha ) ; }
asserts the null hypothesis for a chisquare test . fails and dumps arguments and test statistics if the null hypothesis can be rejected with confidence 100 * ( 1 - alpha ) %
