correct the ratio of calculate_Chi