12. Tests of goodness of fit and independence