Intrinsic test of independence in contingency tables