# Predicting binary values with binary independent variables in logistic regression

I have two variables both are binary.

I would like to see how well one predicts the other.

Is it possible to do this in logistic regression? variables are coded as 0 and 1 but 1 does not indicate that something is 'correct'. can I still use logistic regression to see how well it is predicted?

• @rolando2, could you show an example of where chi-square / phi correlation would be better than logistic regression for estimating effects of other binaries? I use logistic regression on survey data quite frequently 1=increasing / 0=decreasing ~ personality attributes (0 or 1)... to understand the effect of personality attributes on likelihood to increase or decrease business with a company. – Brandon Bertelsen Aug 26 '11 at 0:05