Jumping from the logistic function to logistic regression