add chi square statistics