I want to test the hypothesis that correlation coefficient between X and Y is 0 with a bootstrap, however I don't know which is a correct way to construct bootstrap samples. I have several ideas, which may be wrong:
1) randomly permute Y among X's as in permutation test, but sample Y with replacement
2) permute Y among X's without replacement and sample pairs (X,Y) with replacement
Could you please tell me the right way to do bootstrapping in this case and justify it? Thank a lot!