I demonstrate how to perform a binary (a.k.a., binomial) logistic regression. The data were simulated to correspond to a "real-life" case where an attempt is made to build a model to predict the probability that a person would default on a loan, using annual salary and gender as predictors.