Skip to main content
The new Teacher Workspace is here. Your first 3 assignments are free. Try it →

Logistic regression

Logistic regression is a method for predicting a binary outcome, like sick or not sick, from one or more exposure variables. In Intro to Epidemiology, it is used to estimate odds ratios and adjust for confounding.

Last updated July 2026

What is logistic regression?

Logistic regression is the epidemiology tool you use when the outcome has only two categories, like case versus control, infected versus not infected, or diseased versus not diseased. Instead of trying to predict a raw score, it estimates the probability that the event happens and then converts that into odds and log odds so the model stays mathematically workable.

That matters because epidemic and case-control data are often binary. You are not asking, "How much blood pressure changed?" You are asking, "Did this exposure make illness more likely?" Logistic regression fits that kind of question well, especially when the thing you are studying is a health event that either occurred or did not occur.

The output is usually interpreted with odds ratios. If an exposure has an odds ratio above 1, the event is more likely in the exposed group. If it is below 1, the exposure may be protective. If it is about 1, the exposure and outcome are not showing much association in the model.

One big reason epidemiologists use logistic regression is that it can adjust for confounding variables. For example, if you are studying whether a food is linked to an outbreak, you may also need to control for age, location, or other foods people ate. The model helps separate the exposure of interest from other factors that could distort the pattern.

Logistic regression is also practical because it does not require the outcome to be normally distributed, which is a bad fit for yes/no data anyway. In outbreak analysis, you may use it after collecting case information to see which exposures best predict illness, or in a case-control study to compare cases and controls while holding other variables constant.

Why logistic regression matters in Intro to Epidemiology

Logistic regression shows up whenever Intro to Epidemiology moves from describing patterns to testing which factors are actually linked to disease. If you are looking at an outbreak line of questioning, this method helps you sort real risk factors from noisy associations.

It also connects directly to case-control studies. Those studies start with outcome status, then look backward at exposures, which makes simple risk calculations harder. Logistic regression is one of the main ways epidemiologists analyze that kind of data and report adjusted odds ratios instead of raw comparisons.

The term also helps you read research tables correctly. When a worksheet or article gives you coefficients, odds ratios, confidence intervals, and p-values, logistic regression is often the engine behind those numbers. If you know what the model is doing, you can tell whether an exposure is linked to disease, whether confounding was handled, and whether the result is strong or weak.

In outbreak investigations, this method can point public health workers toward the most likely source, which matters for decisions like removing a food item, tracing contacts, or issuing control measures. It is less about fancy math and more about making a yes/no health question usable with real-world data.

Keep studying Intro to Epidemiology Unit 6

Official unit cheatsheet

open one-pager

How logistic regression connects across the course

Binary Outcome

Logistic regression is built for binary outcomes, meaning the dependent variable has two categories. In epidemiology, that is often a disease status question such as case or not case, hospitalized or not hospitalized, or exposed versus unexposed. If the outcome is not binary, logistic regression is usually not the right tool.

Odds Ratio

Odds ratios are the main way you read logistic regression results. The model estimates log odds, but the output is usually translated into odds ratios so you can compare the chance of an event across exposure groups. In an outbreak table, that is often the number you use to judge which exposure looks strongest.

Confounding Variable

Logistic regression can adjust for confounding variables, which is one reason epidemiologists rely on it. If age, sex, or another exposure is mixing up the relationship between the suspected cause and the outcome, the model can hold those factors constant. That makes the association easier to interpret.

Relative Risk

Relative risk and logistic regression are often discussed together, but they are not the same thing. Relative risk compares probabilities directly, while logistic regression usually gives odds ratios. In case-control studies, relative risk is often not available in the usual way, so logistic regression becomes the more useful analysis tool.

Is logistic regression on the Intro to Epidemiology exam?

A quiz or problem set may give you a small outbreak scenario and ask which analysis fits a yes/no outcome. You should recognize logistic regression when the question involves predicting disease status, estimating odds ratios, or adjusting for confounders in case-control data.

You may also be asked to interpret a result table. Look for the exposure variable, the odds ratio, and the confidence interval, then decide whether the factor seems associated with the outcome and whether the estimate is adjusted. If the outcome is binary and the model includes several predictors, logistic regression is usually what the question is pointing to.

In written work, you might explain why a researcher used logistic regression instead of a method for continuous data, or describe how it helps in outbreak analysis when several exposures are being compared at once.

Logistic regression vs linear regression

Linear regression predicts a continuous number, like weight or blood pressure, while logistic regression predicts a binary outcome. In epidemiology, the difference matters because yes/no disease data do not fit a straight-line model well. If the outcome is dichotomous, logistic regression is the better match.

Key things to remember about logistic regression

  • Logistic regression is used in Intro to Epidemiology when the outcome has two categories, such as sick versus not sick.

  • It estimates probabilities by modeling log odds, which lets researchers interpret results with odds ratios.

  • The method is especially useful in case-control studies and outbreak investigations because it can adjust for confounding variables.

  • You will often see logistic regression results in tables with coefficients, odds ratios, and confidence intervals.

  • If the question is about a binary health outcome, logistic regression is usually the analysis you should think of first.

Frequently asked questions about logistic regression

What is logistic regression in Intro to Epidemiology?

It is a statistical method for analyzing a binary outcome, like disease versus no disease, using one or more predictor variables. Epidemiologists use it to estimate odds ratios and see whether an exposure is associated with an outcome.

Why do epidemiologists use logistic regression instead of linear regression?

Because epidemiology often deals with yes/no outcomes, and linear regression is built for continuous numbers. Logistic regression is designed for dichotomous data, so it gives probabilities and odds ratios instead of trying to fit a straight line to binary events.

How does logistic regression help in a case-control study?

Case-control studies compare people with a condition to people without it, then look back at exposures. Logistic regression helps analyze those comparisons while controlling for confounders, so you can estimate which exposure is most strongly associated with the outcome.

What does an odds ratio from logistic regression mean?

An odds ratio tells you how the odds of the outcome change with an exposure. A value above 1 suggests higher odds, a value below 1 suggests lower odds, and a value near 1 suggests little association.

Logistic Regression | Intro to Epidemiology | Fiveable