Statistical tests for contingency tables