Paul,
You're right it's implicit in the null hypothesis for the test that sampling was random. (Explicitly the null hypothesis is about the independence of the variables that have been properly randomly sampled.)
I'd suppose one could attempt a "modus tolens" type of logic, but it would be a stretch: If it's (independently) believed that the variables are independent, then if a random sample is taken then you'd expect not to find significance. If the test finds significance (i.e. "refutes the consequent"), is this evidence that the randomness assumption was false? ....or is it evidence that the variables are not independent after all? I don't think one simple chi-square test can address all this at once.
Bill
Original Message------
Can the chi square test of independence in a 2x2 contingency table test whether or not the sample used to test independence is random or not?
It would seem odd if it could since the chi-sq test requires a random sample in the first place.
Thank you for your response.
Paul