Updated formula for chi-squared in feature select