I have 2 datasets. Dataset X looks like this:
Jmp_o Nws_r
1 0
0 1
1 1
0 1
0 1
1 0
1 0
... ...
I calculate the conditional probability P(jmp_o=1|nws_r=1). There is another dataset Y which is like:
Jmp_o Nws_r
1 0
0 0
1 0
0 0
0 0
1 0
1 0
... ...
From dataset Y I calculate unconditional probability P(jmp_o=1).
I want to test whether these 2 probabilities are statistically different (by means of p-value).
What test should I perform?
Further clarification: first I have dataset X from where I calculate the conditional probability. Then from dataset X I create a subsample which has Nws_r=0. After creating dataset Y, I calculate the unconditional probability. Now I need to check whether they are different.