Conditions for using a two-sample procedure