liveBook · Manning

Area under the curve

As explained in Causal Inference for Data Science

The area under the ROC curve is a threshold-independent measure of binary classification performance based on the receiver operating characteristic curve.

The area under the receiver operating characteristic curve (AUC) measures binary-classifier performance without choosing a single threshold. It equals the probability that the model ranks a randomly selected positive instance above a randomly selected negative instance. section 5.3.2

AUC is useful when a propensity-score model predicts the probability of receiving treatment from observed confounders. Unlike ordinary classification, the goal is not simply to maximize AUC: a lower AUC can indicate that treatment assignment is less predictable from those confounders, supporting the positivity assumption. section 5.3.2

Use AUC carefully when building and checking propensity scores:

  • Select models through cross-validation and compare predictive capability on held-out data rather than training accuracy alone. section 5.3.2
  • Expect a high AUC to signal strong treatment predictability in ordinary classification, but potentially poor overlap for propensity-score analysis. section 5.3.2
  • Check overfitting by comparing cross-validated AUC with AUC computed from predictions on the same training dataset. section 5.4.1
  • Inspect propensity-score density by treatment group after modeling to assess whether the groups are comparable. section 5.4.1

Treatment assignment and confounders

For patients described by confounders C1 through Cp, predict the treatment indicator T. Compare models such as logistic regression and boosting with cross-validation, then interpret the resulting AUC in relation to treatment overlap rather than predictive success alone. section 5.3.2 section 5.4.1

Table 5.1 Table describing whether each patient was treated (variable T) and their description in terms of confounders (C1, …, Cp)
T
C 1
…
Cp
t 1
c 1 1
…
c 1 p
…
…
…
…
t n
c n 1
…
c n p

Browse the patient-by-treatment table to see the observations from which treatment probabilities and AUC comparisons are constructed. section 5.3.2

How Causal Inference for Data Science covers it

How deep it goes
Defines ranking-based AUC and applies cross-validation, overfitting checks, and treatment-group inspection, without deriving ROC internals.
Examples
Uses patient treatment indicators, confounder tables, logistic regression, boosting, and treatment-group propensity-score density plots.
What it assumes
Assumes binary treatment, observed confounders, supervised prediction, and familiarity with propensity scores and the positivity assumption.
What you can do after
Evaluate propensity-score models with cross-validated AUC and diagnose overfitting or weak treatment overlap.
How it connects
Connects AUC to propensity scores, confounders, cross-validation, positivity, logistic regression, random forests, boosting, and deep learning.

Also explained in

Compare how 12 books explain area under the curve →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Causal Inference for Data Science. The section links point to the parts of the book it draws on.