Demonstrating logistic regression