A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

ROC Curves and AUC Analysis

Graduate Depth 229 in the knowledge graph ☐ I know this ☆ Set as goal
1,324prerequisites beneath it
See this on the map →
Diagnostic Test EvaluationLogistic Regression in Biostatistics→
ROC AUC discrimination threshold sensitivity specificity

Core Idea

A Receiver Operating Characteristic (ROC) curve plots sensitivity (true positive rate) against 1 - specificity (false positive rate) across all possible classification thresholds for a continuous diagnostic test or prediction model. Each point on the curve represents a different threshold, tracing the tradeoff between detecting true positives and generating false positives. The Area Under the ROC Curve (AUC) summarizes overall discriminative ability: AUC = 0.5 indicates no discrimination (equivalent to random guessing), AUC = 1.0 indicates perfect discrimination. AUC has a concordance interpretation — it equals the probability that a randomly chosen diseased individual has a higher test value than a randomly chosen non-diseased individual. ROC analysis separates discrimination (can the model distinguish cases from non-cases?) from calibration (are the predicted probabilities accurate?).

Explainer

From diagnostic test evaluation, you know that any test with a continuous measurement (blood glucose, tumor marker, risk score) requires a threshold to classify subjects as positive or negative. Lowering the threshold increases sensitivity (you catch more true cases) but decreases specificity (you also flag more healthy people). Raising the threshold does the opposite. The ROC curve displays this entire tradeoff at once by plotting sensitivity (y-axis) against 1 - specificity (x-axis) as the threshold sweeps from its minimum to maximum value.

The ROC curve always starts at (0, 0) — the highest possible threshold where everything is classified as negative (zero sensitivity, perfect specificity) — and ends at (1, 1) — the lowest possible threshold where everything is positive (perfect sensitivity, zero specificity). A perfect test has a curve that shoots straight up to (0, 1) and then across to (1, 1), hugging the upper-left corner. A useless test lies along the diagonal from (0, 0) to (1, 1), because raising sensitivity and raising the false positive rate occur at the same rate — the test contains no information.

The AUC collapses the entire curve into a single number. It has an elegant probabilistic interpretation: AUC equals the probability that a randomly chosen diseased subject has a higher test value than a randomly chosen non-diseased subject. An AUC of 0.90 means that 90% of all case-control pairs are correctly ordered by the model. This makes AUC a natural measure of discrimination — the model's ability to rank subjects by risk. Conventional benchmarks (though context-dependent) consider AUC of 0.7-0.8 as acceptable, 0.8-0.9 as excellent, and above 0.9 as outstanding.

However, AUC has limitations. It summarizes performance across all thresholds, including many that are clinically irrelevant. If you only care about high-sensitivity operating points (screening tests), the part of the ROC curve at low sensitivity is irrelevant but still contributes to the AUC. Two models with identical AUC can have very different performance at the threshold you would actually use. Furthermore, AUC measures discrimination but not calibration — whether the predicted probabilities are accurate. A model that assigns probability 0.8 to everyone with disease and 0.6 to everyone without has perfect discrimination (AUC = 1.0) but terrible calibration. For clinical decisions based on absolute risk thresholds, both discrimination and calibration matter, and AUC alone is insufficient.

Practice Questions 4 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → One-to-One Correspondence → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Making 10 as an Addition Strategy → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Dividing Integers → Unit Rates → Proportions → Percent Concept → Converting Between Fractions, Decimals, and Percents → Operations with Rational Numbers → Two-Step Equations → Solving Multi-Step Equations → Equations with Variables on Both Sides → Angle Pairs: Complementary, Supplementary, and Vertical → Parallel Lines and Transversals → Corresponding Angles → Alternate Interior Angles → Triangle Angle Sum Theorem → Exterior Angle Theorem → Triangle Inequality Theorem → Similar Triangles: AA Similarity → Similar Triangles: SSS and SAS Similarity → Proportions in Similar Triangles → Right Triangle Trigonometry Introduction → Sine, Cosine, and Tangent Ratios → Trigonometric Ratios Review → Radian Measure → Converting Between Degrees and Radians → The Unit Circle → Graphing Sine and Cosine → Graphing Tangent and Reciprocal Trigonometric Functions → Derivatives of Trigonometric Functions → Antiderivatives → Iterated Integrals and Fubini's Theorem → Double Integrals in Cartesian Coordinates → Double Integrals in Polar Coordinates → Double Integrals in Polar Coordinates → Double Integrals: Definition and Setup → Iterated Integrals and Fubini's Theorem → Double Integrals over Rectangular Regions → Double Integrals over General Regions → Applications of Double Integrals: Area, Mass, and Moments → Triple Integrals in Cartesian Coordinates → Triple Integrals in Cylindrical and Spherical Coordinates → Change of Variables and the Jacobian Determinant → Applications of Triple Integrals: Volume and Mass → Vector Fields and Their Representations → Line Integrals of Vector Fields → Work and Circulation → Line Integrals of Scalar and Vector Functions → Fundamental Theorem for Line Integrals → Conservative Vector Fields → Conservative Vector Fields and Potential Functions → Curl and Divergence of Vector Fields → Curl and Divergence → Divergence Theorem → Electric Flux and Divergence Theorem → Gauss's Law: Integral Form and Meaning → Solving Problems with Gauss's Law → Conductors in Electrostatic Equilibrium → Capacitance and Capacitors → Dielectrics → Dielectric Constant and Relative Permittivity → Electric Field Inside Dielectric Materials → Dielectric Materials and Polarization → Dielectric Susceptibility and Permittivity → Energy Density in Electric Fields → Electric Current and Current Density → Electrical Resistance and Resistivity → Ohm's Law and Circuit Elements → Electromotive Force (EMF) and Batteries → Kirchhoff's Circuit Laws: Voltage and Current → DC Circuit Network Analysis Methods → Transient Response in RC Circuits → RC Circuits → LC and RLC Circuits → AC Circuits: Fundamentals → Impedance and Reactance → AC Power and Resonance → Electromagnetic Waves → Postulates of Special Relativity → Time Dilation → Length Contraction → Lorentz Transformation → Relativistic Velocity Addition → Relativistic Momentum and Energy → Mass-Energy Equivalence and E=mc² → Photons as Particles with Energy and Momentum → Planck-Einstein Relation: Energy and Frequency → Photoelectric Effect → The Photon: Light as Quanta → Compton Scattering → Wave-Particle Duality → de Broglie Wavelength → The Schrödinger Equation → State Vectors and Wavefunctions → Quantum Superposition → The Measurement Problem → Interpretations of Quantum Mechanics → Postulates of Quantum Mechanics → Observables and Quantum Operators → Commutators and Commutation Relations → Quantum Angular Momentum → Quantum Mechanical Treatment of Hydrogen → Solving the Schrödinger Equation for Hydrogen Atom → Quantum Numbers → Electron Configuration → Periodic Trends → Covalent Bonding → Electronegativity and Bond Polarity → Ionic Bonding → Lewis Structures → VSEPR Theory and Molecular Geometry → Molecular Geometry and Electron Pair Geometry → Molecular Polarity and Dipole Moments → Intermolecular Forces → States of Matter and Phase Changes: Melting, Boiling, and Sublimation → Gas Laws and the Ideal Gas Equation → Gas Stoichiometry and Volume-Volume Calculations → Thermochemistry and Enthalpy → Heat Capacity and Calorimetry → Entropy and Molecular Disorder → Spontaneity and ΔG → Entropy and Gibbs Free Energy → Chemical Equilibrium → Acid-Base Chemistry → Weak Acid Ionization → Weak Base Ionization → Acid and Base Strength: Ka, Kb, and Ionization → Leaving Groups and Nucleofugality → SN2 Substitution Reactions → SN1 Substitution Reactions → E1 Elimination Reactions → Alcohols and Ethers: Structure, Properties, and Nomenclature → Reactions of Alcohols → Aldehydes and Ketones: Structure and Reactivity → Oxidation Reactions in Organic Chemistry → Oxidation of Alcohols to Aldehydes and Ketones → Aldehyde and Ketone Structure and Nomenclature → Nucleophilic Addition to Aldehydes and Ketones → Carboxylic Acids and Their Derivatives → IUPAC Nomenclature of Carbonyls and Carboxylic Acids → IUPAC Nomenclature of Alkenes → Electrophilic Addition to Alkenes → Aromaticity and Benzene → Electrophilic Aromatic Substitution (EAS) → Nucleophilic Aromatic Substitution (SNAr) → Nucleophilic Acyl Substitution → Amines: Structure, Basicity, and Reactions → Amine Reactivity: Nucleophilicity and Basicity → Amino Acid Structure and Properties → Peptide Bonds and Polypeptide Formation → Protein Primary Structure → Protein Secondary Structure → Protein Tertiary Structure → Enzyme Structure and Function → Transcription: DNA to RNA → RNA Types and Structure → RNA Structure and Intramolecular Base Pairing → RNA Processing and Splicing → Translation: RNA to Protein → Ribosomes: Protein Synthesis Machines → Translation: Initiation and Elongation → Post-Translational Modifications → Proteasomal Degradation and Ubiquitin-Mediated Marking → Cell Cycle Regulation and Checkpoints → Cell Cycle Checkpoints: Ensuring Genome Integrity → Cell Cycle Checkpoints and Cancer Prevention → Mitotic Spindle Checkpoint and Chromosome Segregation → Kinetochore Structure and Function → Mitochondria: Structure and Function → Cellular Respiration Overview → Bacterial Metabolism Overview → Antibiotic Resistance Mechanisms → Infectious Disease Epidemiology → Foundations of Epidemiology → Measuring Disease Frequency: Incidence and Prevalence → Epidemiologic Study Designs → Study Design in Biostatistics → Logistic Regression in Biostatistics → Diagnostic Test Evaluation → ROC Curves and AUC Analysis

Longest path: 230 steps · 1324 total prerequisite topics

Prerequisites (2)

Leads To (0)

No topics depend on this one yet.