Skip to main content

Logistic Regression

Logistic regression is a statistical model for predicting the probability of a yes/no outcome from one or more predictor variables. In Honors Statistics, you use it for classification problems with categorical responses.

Last updated July 2026

What is Logistic Regression?

Logistic regression is a model in Honors Statistics for situations where the response variable has two categories, like yes/no, success/failure, or disease/no disease. Instead of predicting a raw outcome directly, it predicts the probability that one category will happen based on one or more predictor variables.

The main idea is that a straight-line regression model does not work well for probabilities, because predicted values can fall below 0 or above 1. Logistic regression fixes that by using a sigmoid function, also called an S-shaped curve. The curve squeezes predictions into the 0 to 1 range, which makes sense when you are modeling probabilities.

Under the hood, the model is usually built around the log-odds of the outcome. Odds compare the chance that something happens to the chance that it does not happen, and the logit is the natural log of those odds. That transformation turns the curved probability pattern into something that can be modeled more cleanly with a linear combination of predictors. So the model is linear in the log-odds, not in the probability itself.

If you have predictors like study time, age, or whether someone smokes, logistic regression can estimate how those variables change the probability of the outcome. A positive coefficient means the log-odds of the outcome go up as the predictor increases, while a negative coefficient means they go down. When a predictor is categorical, the model compares groups, like one treatment group against a baseline group.

A simple example is a health dataset with one outcome, whether a patient has a condition, and predictors such as blood pressure and age. The model might show that higher blood pressure increases the chance of the condition. That does not mean blood pressure causes the condition by itself, but it does mean the model sees a stronger association between the predictor and the binary outcome.

Why Logistic Regression matters in Honors Statistics

Logistic regression shows up when Honors Statistics moves from describing data to modeling real decisions with yes/no outcomes. It is one of the main tools for classification, so it gives you a way to turn messy variables into a probability you can interpret.

This matters because many real datasets are not naturally quantitative on the output side. A student survey might ask whether someone voted, a medical study might record whether a test result is positive, or a marketing dataset might track whether a customer bought a product. Logistic regression gives you a formal way to study patterns in those situations instead of forcing a straight-line model that does not fit the scale.

It also connects directly to interpretation skills. You are not just looking for a slope, you are reading how predictors change odds and probability. That makes this model a bridge between algebraic thinking and statistical reasoning, especially when you compare groups or explain whether a variable seems linked to a categorical outcome.

In class, logistic regression often sits near chi-square ideas because both deal with categorical data. Chi-square asks whether two categorical variables are associated, while logistic regression goes a step further by modeling the probability of the outcome using predictors. That extra step is what makes it useful when you want prediction, not just association.

Keep studying Honors Statistics Unit 11

How Logistic Regression connects across the course

Odds Ratio

Logistic regression often gets interpreted through odds ratios. A coefficient in the model can be converted into an odds ratio, which tells you how the odds change when a predictor increases by one unit or when you compare two groups. If the odds ratio is above 1, the odds increase; if it is below 1, the odds decrease.

Maximum Likelihood Estimation

This is the method usually used to fit a logistic regression model. The software searches for the coefficients that make the observed outcomes most probable under the model. In practice, that means the computer is not drawing a line by least squares, it is finding the parameter values that best explain the binary data.

Sigmoid Function

The sigmoid function is what keeps logistic regression predictions between 0 and 1. Without that S-shaped curve, predicted probabilities could go out of bounds. In a graph, it looks flat near 0 and 1, with the steepest change in the middle, which is why logistic regression behaves differently from linear regression.

Contingency Analysis

Contingency analysis also works with categorical variables, but it focuses on counts in a table rather than modeling a probability from predictors. If you are comparing two categorical variables and looking at patterns in frequencies, contingency analysis is often the starting point. Logistic regression goes further when you want to predict one category from other variables.

Is Logistic Regression on the Honors Statistics exam?

A quiz problem might give you a table or software output and ask you to interpret the logistic regression results. You may need to identify the response variable, tell whether the model fits a binary outcome, or explain what a coefficient means in terms of log-odds or odds ratio.

You might also be asked to decide whether logistic regression is the right method. If the outcome is categorical, especially yes/no, logistic regression is a strong candidate. If the question gives you observed counts in two-way tables and asks about association instead of prediction, you may need to connect the setup back to contingency analysis or a chi-square idea.

When you answer, focus on the direction of the relationship, the meaning of the predictor, and what probability is being estimated. A strong response says what increases the chance of the outcome, what decreases it, and how the model is being used to classify cases.

Key things to remember about Logistic Regression

  • Logistic regression models the probability of a binary outcome, not a continuous response.

  • The model uses a sigmoid curve so predicted probabilities stay between 0 and 1.

  • Coefficients are interpreted with log-odds, and often with odds ratios after conversion.

  • It works well when you want to predict or explain a yes/no result using one or more predictors.

  • In Honors Statistics, it often appears alongside chi-square and categorical data analysis.

Frequently asked questions about Logistic Regression

What is logistic regression in Honors Statistics?

Logistic regression is a model for predicting the probability of a binary outcome, like yes/no or success/failure, from predictor variables. It is used when the response is categorical, not continuous. In Honors Statistics, it is one of the main ways to model classification problems.

Why not use linear regression for logistic regression problems?

Linear regression can produce predicted values below 0 or above 1, which does not make sense for probabilities. Logistic regression solves that by using a sigmoid function and modeling the log-odds instead. That makes it a better fit for binary outcomes.

How do you interpret a logistic regression coefficient?

A coefficient tells you how the log-odds of the outcome change when a predictor increases by one unit, holding other variables constant. If the coefficient is positive, the outcome becomes more likely; if it is negative, it becomes less likely. Many classes also talk about the odds ratio because it is easier to interpret than log-odds.

Is logistic regression the same as chi-square test of independence?

No. A chi-square test checks whether two categorical variables are associated, usually by comparing observed and expected counts. Logistic regression goes further by modeling the probability of a binary outcome from one or more predictors, so it is more about prediction and effect size than just association.