Interview Question: What is Logistic Regression? State an example of when you have used it recently.

Tracyrenee
6 min readDec 8, 2022

Logistic regression is a type of statistical model that is often used for classification and predictive analytics. It is used to estimate the relationship between a dependent variable and one or more independent variables, making a prediction about a categorical value. Logistic regression estimates the probability of an event occurring based on a given dataset of independent values. Since the outcome is a probability, the dependent variable is a value between 0 and 1.

In logistic regression, a logic transformation is applied to the odds, which means the probability of success is divided by the probability of failure. The result of this calculation is called the log odds or the natural logarithm of odds.

The formula for logistic regression is:-

For binary classification, a probability less than 0.5 will result in a 0, while a probability equal to or greater than 0.5 will result in a 1.

There are three types of logistic regression, being:-

  1. Binary logistic regression
  2. Multinomial logistic regression
  3. Ordinal logistic regression

--

--

Tracyrenee

I have close to five decades experience in the world of work, being in fast food, the military, business, non-profits, and the healthcare sector.