Regression, Logistic Regression and Maximum Entropy