VerifiedEvidence: highv1.0.0

Logistic Regression

A modelling technique estimating the relationship between predictor variables and a binary outcome, expressing results as odds ratios.

Last reviewedDarrin Baines IP Ltd

Concept Architecture

Concept


Theoretically, Logistic Regression is a generalised linear modelling technique used to estimate the relationship between one or more explanatory variables and a binary outcome. Unlike linear regression, logistic regression models the probability of an event by transforming probabilities into log-odds using the logistic function. The method exists to estimate risk, identify predictors of binary outcomes and quantify associations when the dependent variable represents the occurrence or absence of an event.

Mathematically, logistic regression represents the logarithm of the odds of the outcome as a linear function of predictor variables. Model parameters are estimated using Maximum Likelihood Estimation rather than Ordinary Least Squares because the outcome follows a binomial distribution. Estimated regression coefficients describe changes in the log-odds of the outcome, while exponentiation of the coefficients yields odds ratios that are widely used for interpretation.

In practice, logistic regression is applied to datasets containing binary outcomes such as disease occurrence, hospital admission, treatment response or mortality. In health economics, it is commonly used to model treatment success, healthcare utilisation, adverse events, screening outcomes and patient behaviour. Estimated probabilities are frequently incorporated into decision models, cost-effectiveness analyses and risk prediction tools.

Purpose


Used to model binary outcomes, estimate event probabilities, quantify associations through odds ratios, identify significant predictors and generate risk predictions for health economic and clinical decision-making.


Mathematical Formulae

Primary Formula

Logistic regression model:

log(p / (1 ? p)) = ?? + ??X? + ??X? + ? + ??X?

Probability form:

p = 1 / (1 + e???? ? ???? ? ? ? ?????)

where:

  • p = probability of the outcome
  • ?? = intercept
  • ????? = regression coefficients
  • X??X? = explanatory variables

Supporting Formulae

Odds:

Odds = p / (1 ? p)

Odds Ratio:

OR = e?

Log-likelihood:

ln(L) = ?[y?ln(p?) + (1 ? y?)ln(1 ? p?)]

Related Mathematical Methods

  • Generalised Linear Models
  • Maximum Likelihood Estimation
  • Probit Regression
  • Multinomial Logistic Regression
  • Ordinal Logistic Regression
  • Penalised Logistic Regression
  • Receiver Operating Characteristic Analysis

Example

A health economist models the probability of hospital readmission within 30 days using age, number of chronic conditions and treatment group.

The estimated model is:

log(p / (1 ? p)) = ?2.40 + 0.03(Age) + 0.45(Chronic Conditions) ? 0.60(Treatment)

For a patient aged 70 years with two chronic conditions receiving the treatment:

Linear predictor:

? = ?2.40 + (0.03 ? 70) + (0.45 ? 2) ? 0.60

? = 0.00

Predicted probability:

p = 1 / (1 + e?)

p = 0.50

The model estimates a 50% probability of hospital readmission for this patient. The treatment odds ratio is:

OR = e??�?? = 0.55

indicating that treatment is associated with approximately a 45% reduction in the odds of readmission.


Excel Implementation

FunctionExample FormulaHealth Economics Application
EXP=1/(1+EXP(-(B0+B1*A2+B2*C2)))Calculate predicted probabilities from the fitted logistic model.
LN=LN(D2/(1-D2))Calculate the log-odds of an event.
EXP=EXP(B1)Convert regression coefficients into odds ratios.
SolverMaximise the log-likelihood function by varying regression coefficients.Estimate logistic regression parameters using maximum likelihood.
IF=IF(E2>=0.5,1,0)Classify observations according to predicted probability.

VBA (Optional)

A VBA routine can automate maximum likelihood estimation, calculate predicted probabilities and odds ratios, and generate classification and diagnostic summaries for logistic regression models.


Sources

  • Hosmer DW, Lemeshow S, Sturdivant RX. Applied Logistic Regression. Wiley.
  • Agresti A. Categorical Data Analysis. Wiley.
  • McCullagh P, Nelder JA. Generalized Linear Models. Chapman & Hall.
  • Harrell FE. Regression Modeling Strategies. Springer.
  • Briggs A, Claxton K, Sculpher M. Decision Modelling for Health Economic Evaluation. Oxford University Press.
  • Drummond MF, et al. Methods for the Economic Evaluation of Health Care Programmes. Oxford University Press.
  • ISPOR Good Practice Reports.

Library

Publications

1
  • Book

    Statistical Analysis of Cost-Effectiveness Data — Willan & Briggs, 1st Edition ed., 2006 (John Wiley & Sons)

    A synthesis of statistical methods for analysing cost-effectiveness data, including net-benefit regression, confidence intervals for the ICER, cost-effectiveness acceptability curves, and covariate adjustment. Part of the Wiley Statistics in Practice series.

Frequently Asked Questions (6)

  • What is logistic regression?

    A modelling technique estimating the relationship between predictor variables and a binary outcome, expressing results as odds ratios.

    Source: Cox 1958

  • What kind of outcome does logistic regression model?

    Logistic regression models a binary outcome, one with two possibilities such as disease or no disease, relating it to a set of predictor variables. Rather than predicting the outcome directly, it models the odds of it occurring, so its coefficients translate into odds ratios that say how each predictor multiplies those odds. This makes it the standard tool for studying what raises or lowers the chance of a yes-or-no event. Relating predictors to the odds of an event is its purpose. Kirkwood and Sterne (2003) describe this technique.

    Source: Kirkwood & Sterne 2003

  • How does logistic regression work?

    Logistic regression works by modelling the log-odds of the binary outcome as a linear combination of the predictors, so that the probability of the outcome is related to the predictors through the logistic function, which keeps the predicted probability between zero and one. The coefficients are estimated by maximum likelihood. So logistic regression works by fitting a linear model to the log-odds of the outcome, transforming the linear predictor into a probability via the logistic function, and estimating the coefficients that make the observed outcomes most probable, which yields effects expressed as odds ratios and predicted probabilities for the binary outcome.

    Source: Cox 1958

  • How are the results of logistic regression interpreted?

    The results of logistic regression are interpreted through odds ratios, obtained by exponentiating the coefficients: an odds ratio above one indicates that the predictor increases the odds of the outcome, below one that it decreases them, holding the other predictors constant. Predicted probabilities can also be derived. So logistic regression results are interpreted as the effect of each predictor on the odds of the outcome, with the odds ratio conveying the multiplicative change in odds per unit of the predictor, adjusted for the others, though odds ratios must not be read as risk ratios when the outcome is common, since they then overstate the relative risk.

    Source: Cox 1958

  • When is logistic regression used?

    Logistic regression is used when the outcome is binary and the aim is to model how predictors relate to the probability or odds of that outcome, for prediction of the outcome, for estimating adjusted associations, or for controlling confounding. It is common in health research for outcomes such as disease presence. So logistic regression is used for binary outcomes to quantify predictor effects as odds ratios, to predict outcome probabilities, and to adjust for other variables, which makes it one of the most widely used regression methods in epidemiology and clinical research, applicable whenever a yes-or-no outcome is modelled against one or more predictors.

    Source: Cox 1958

  • What are the assumptions of logistic regression?

    The assumptions of logistic regression include a linear relationship between the predictors and the log-odds of the outcome; independence of observations; the absence of severe collinearity among predictors; and an adequate number of outcome events relative to the number of predictors. Unlike linear regression, it does not assume normally distributed errors. So logistic regression rests on assumptions of linearity in the log-odds, independence, limited collinearity, and sufficient events, and its validity depends on these, which is why they are checked, since departures such as non-linearity in the log-odds, correlated observations, or too few events per predictor can bias the estimates or make them unstable.

    Source: Cox 1958

Trust Record

Verified by Dr Darrin Baines

British health economist

Professional identity: darrinbaines.org

Verification date: 18 Dec 2025

Content version: 1.0.0

Canonical Identity

Term code
HE-ES-SA-105

Stable URI · Machine-readable · Resolvable · CC BY 4.0