# Binomial family in logistic regression

I was asked in an interview why do we use the binomial distribution in logistic regression and how is it related to the class that we are predicting?

Could anyone explain, without any mathematical equations, why do we use binomial instead on any other distribution?

• I would argue that we aren’t predicting a class. Logistic regression gives a probability (log-odds that we can convert to probability), and that probability is a parameter in a binomial distribution.
– Dave
Commented Aug 10, 2020 at 11:15

..., the binomial distribution with parameters n and $\rho$ is the discrete probability distribution of the number of successes in a sequence of n independent experiments, each asking a yes–no question, and each with its own boolean-valued outcome: a random variable containing a single bit of information: success/yes/true/one (with probability $\rho$) or failure/no/false/zero (with probability $\rho = 1 − \rho$).
Assume that you have a time variable and you observe at each time and at a certain bus stop if there is a bus arriving or not. Let the probability that a bus arrives at a bus stop at time $t$ be denoted as $p(t)$. This essence of success/failure is a binomial distribution and Logistic regression computes/predicts $p(t)$ by shifting and stretching the logistic curve.