Math Behind Logistic Regression Sex