I am unsure how to do this properly. I have two binary data sets, i.e. values in each data set is either 1 or 0. I now wish to see if they are in any way correlated. I could use Pearson's, but I don't know if that is applicable to binary data as well ?
Basically I just have data that looks something like this:
x = [1, 0, 0, 0, 0, 0, 1, 1, 1, 0] y = [1, 0, 0, 0, 1, 0, 1, 0, 1, 0]
What I am trying to do is check whether my colleague is correct or not. He has stated that some particular set of data correlates with another set of data, and he therefore wants to discard/remove data points corresponding to where the value is 1 in
x, i.e. 40% here. So that would mean I would reduce (in this example) my data with 4 cases. So before doing that I just want to make sure that he/we are correct.