Checking the degree of sample dependence