# Difference between two correlations measure methods

I am trying to measure the correlation between two binary categorical variables. I tried in two ways.

1. Use the chi-square test for independence of two-way table. The p-value as the correlation.

2. Treat them as numerical variables with value of 0/1. Calculate the correlation between them.

The results are so different, the first gives 9.5e(-31) and the second gives around 0.3.

How to interpret these two correlations and why the difference can be so large?

• Are you using the p-value to determine the strength of correlation? I don't think that's a good idea. – Vishal Mar 30 '16 at 21:23
• The second is a phi coefficient and is fine. But what makes you believe that the p-value from the chi-square test can be interpreted as a correlation? – Wolfgang Mar 30 '16 at 21:23
• @Vishal I think since the smaller P-value is, the less likely two variables are independent. That's very similar to a measure of strength of correlation. Not sure it makes sense. – fangh Mar 31 '16 at 13:30
• @Wolfgang That's my doubt here also. Can p-value of the A/B test here give the measure to strength of correlation. Why or why not? – fangh Mar 31 '16 at 13:37
• The p-value depends also upon sample size, and not only upon the correlation – kjetil b halvorsen Sep 26 '18 at 13:46