Combinations and chi-squared values test