# Interpreting the concordance statistic of a logistic regression model: relation to the variance and odds ratio of a continuous explanatory variable

- Peter C Austin
^{1, 2, 3}Email author and - Ewout W Steyerberg
^{4}

**12**:82

**DOI: **10.1186/1471-2288-12-82

© Austin and Steyerberg; licensee BioMed Central Ltd. 2012

**Received: **23 November 2011

**Accepted: **11 June 2012

**Published: **20 June 2012

## Abstract

### Background

When outcomes are binary, the c-statistic (equivalent to the area under the Receiver Operating Characteristic curve) is a standard measure of the predictive accuracy of a logistic regression model.

### Methods

An analytical expression was derived under the assumption that a continuous explanatory variable follows a normal distribution in those with and without the condition. We then conducted an extensive set of Monte Carlo simulations to examine whether the expressions derived under the assumption of binormality allowed for accurate prediction of the empirical c-statistic when the explanatory variable followed a normal distribution in the combined sample of those with and without the condition. We also examine the accuracy of the predicted c-statistic when the explanatory variable followed a gamma, log-normal or uniform distribution in combined sample of those with and without the condition.

### Results

Under the assumption of binormality with equality of variances, the c-statistic follows a standard normal cumulative distribution function with dependence on the product of the standard deviation of the normal components (reflecting more heterogeneity) and the log-odds ratio (reflecting larger effects). Under the assumption of binormality with unequal variances, the c-statistic follows a standard normal cumulative distribution function with dependence on the standardized difference of the explanatory variable in those with and without the condition. In our Monte Carlo simulations, we found that these expressions allowed for reasonably accurate prediction of the empirical c-statistic when the distribution of the explanatory variable was normal, gamma, log-normal, and uniform in the entire sample of those with and without the condition.

### Conclusions

The discriminative ability of a continuous explanatory variable cannot be judged by its odds ratio alone, but always needs to be considered in relation to the heterogeneity of the population.

### Keywords

Logistic regression c-statistic Area under the receiver operating characteristic curve ROC curve Discrimination Regression model Prediction Predictive model Predictive accuracy## Background

Logistic regression models are frequently used to determine the association between a set of explanatory variables and a binary or dichotomous outcome variable. There are three primary reasons for fitting a logistic regression model: i) to determine the independent predictors of a binary outcome; ii) to determine the association between a specific variable and the probability of the occurrence of an outcome after adjusting for a set of other covariates; and iii) to predict the probability of the occurrence of a binary outcome given a specific vector of covariates. The third reason for fitting a logistic regression model occurs frequently in biomedical research, where researchers are interested in predicting the prognosis of individual patients [1].

Two key elements in assessing the performance of a fitted logistic regression model are the assessment of model calibration and model discrimination. Calibration refers to the agreement between observed outcomes and predictions, while discrimination refers to the ability of model predictions to discriminate between those with and those without the outcome [1, 2]. The discriminative-ability of a logistic regression model is frequently assessed using the concordance (or c) statistic, a unitless index denoting the probability that a randomly selected subject who experienced the outcome will have a higher predicted probability of having the outcome occur compared to a randomly selected subject who did not experience the event. One can calculate the c-statistic by taking all possible pairs of subjects consisting of one subject who experienced the event of interest and one subject who did not experience the event of interest. The c-statistic is the proportion of such pairs in which the subject who experienced the event had a higher predicted probability of experiencing the event than the subject who did not experience the event [3]. The c-statistic can also be interpreted as the rank correlation between predicted probabilities of the outcome occurring and the observed response: it is equal to the Wilcoxon rank sum statistic for measuring the rank correlation between observed and predicted outcomes divided by the product of the number of subjects with the outcome or condition and the number of subjects without the outcome or condition [4, 5]. It is also related to Somer’s D_{
xy
} rank correlation between the predicted probability of the occurrence of the outcome and the observed outcome: ${D}_{\mathit{xy}}=2\left(c-0.5\right)$[3].

The discrimination of a logistic regression model can also be described by the area under the receiver operating characteristic (ROC) curve, often denoted by AUC [3]. Each value of the predicted probability of the occurrence of the outcome allows one to determine a threshold. For each possible threshold, one can dichotomize the predicted probabilities into those above and below the threshold. Subjects with a predicted probability below the threshold are classified as low risk, while those above the threshold are classified as high risk. One can then estimate the sensitivity and specificity of these classifications. The ROC curve is the plot of sensitivity vs. one minus specificity over all possible thresholds. The area under the ROC curve is equivalent to the c-statistic [4, 5].

The relationship between the c-statistic of a logistic regression model and the regression coefficients and the variance-covariance of the explanatory variables has not been fully explored. The objective of the current paper was to examine the relationship between the c-statistic and the regression parameters and the variance of the explanatory variable in the case of a univariate logistic regression model. We first use mathematical derivations to explicitly derive the relationship between the c-statistic and the outcome odds ratio and the variance of the continuous explanatory variable under the assumption that the continuous explanatory variable follows a normal distribution in subjects with and without the outcome. Second, we use Monte Carlo simulations to examine this relationship in a more general setting.

### Mathematical derivation of the c-statistic under the assumption of binormality

Many derivations concerning the discrimination of different procedures require the assumption that the distribution of a continuous explanatory variable is normally distributed in those with the condition or outcome and also in those without the condition or outcome [4, 6–9]. Thus, in each of the two populations (those with the condition or outcome and those without the outcome or condition), the explanatory variable is assumed to be normally distributed. Therefore there are two normal distributions: a normal distribution in those subjects with the condition or outcome and a normal distribution in those subjects without the condition or outcome. In the literature on statistical methods for diagnostic medicine, this assumption has been referred to as the binormality assumption [10].

Let Y denote the dichotomous response variable indicating the presence or absence of the outcome or condition of interest. Let X denote the continuous explanatory variable. We assume that X has means μ_{A} and μ_{U} and variances ${\sigma}_{A}^{2}$ and ${\sigma}_{U}^{2}$in the affected (Y = 1) and unaffected (Y = 0) populations, respectively. Finally, we assume that β is the log-odds ratio relating X to the dichotomous outcome Y: a one-unit increase in X results in a relative increase of the odds of the event occurring by exp(β). Finally, let $\Phi \left(\right)$ denote the standard normal cumulative distribution function. We let AUC denote the area under the ROC curve, which is equivalent to the c-statistic.

### General derivation: no restrictions on ${\sigma}_{A}^{2}$ and ${\sigma}_{U}^{2}$

where *d* denotes the standardized difference or Cohen’s effect size [11–14]. The standardized difference is the difference in means in units of pooled standard deviation. Thus, the c-statistic is a function only of the difference in means between those affected and unaffected by the condition, in units of standard deviation. Since the standard normal distribution function is an increasing function, the c-statistic increases as the difference in the mean of the explanatory variable between those with and without the condition increases.

### Special case: ${\sigma}_{A}^{2}$ = ${\sigma}_{U}^{2}$

^{2}denote the common variance of explanatory variable in the two groups. Then, the log-odds ratio relating the explanatory variable X to the log-odds of the occurrence of the condition has the following property: $\beta =\frac{{\mu}_{A}-{\mu}_{U}}{{\sigma}^{2}}$[15] (page 19). We then have that

Thus, when the explanatory variable is normally distributed in both those affected and unaffected by the condition, and furthermore has the same variance in both groups, then the c-statistic is a function of only the log-odds ratio relating the explanatory variable to the occurrence of the condition and the variance of the explanatory variable in each of the two groups. Since the standard normal distribution function is an increasing function, the c-statistic increases with increasing log-odds ratio relating the explanatory variable to the outcome and the standard deviation of the explanatory variable. Finally, the c-statistic is independent of the proportion of subjects with the condition.

### Accuracy of predicted c-statistic when the distribution of the explanatory variable is normal in the combined population of those with and without the condition

The analytic derivations in the previous section assumed that the explanatory variable is normally distributed in those with and without the condition. A potentially more realistic scenario is when the explanatory variable is normally distributed in the overall sample, rather than in those with and without the condition. In many such instances, it would be reasonable to expect the distribution of the explanatory variable to be approximately normally distributed in those with and without the condition. In this section we describe an extensive set of Monte Carlo simulations conducted to examine the accuracy of the predicted c-statistic derived under the assumption of binormality in the setting when the explanatory variable is normally distributed in the overall population.

### Monte Carlo simulations-methods

We simulated a continuous explanatory variable for each of 1,000 subjects from a normal distribution with mean 0 and standard deviation ${\sigma}_{\text{mc}}$: ${x}_{i}~N\left(0,{\sigma}_{\text{mc}}\right)$ for *i* =1, …, 1,000. We determined a linear predictor as follows: $\text{logit}\left({p}_{i}\right)={\beta}_{0}+{\beta}_{1}{x}_{i}$, where ${p}_{i}$ denotes the probability of a binary condition occurring. For each subject, we then randomly generated a binary condition from a Bernoulli distribution with subject-specific parameter ${p}_{i}$. We then fit a univariate logistic regression model (in which the binary condition was regressed on the continuous explanatory variable X) in the simulated dataset and estimated the c-statistic of the fitted model, which we refer to as the empirical c-statistic. We also determined the predicted c-statistic using the formulas (1) and (2) from Sections 2.1 and 2.2, respectively. To apply formula (1) from Section 2.1, we determined the mean and variance of the explanatory variable in those with and without the condition. To apply formula (2) from Section 2.2, we used the estimated regression coefficient (log-odds ratio) from the logistic regression model relating the explanatory variable to the presence of the condition and an estimate of the common variance of the explanatory variable in those with and without the condition. This estimate of the common variance was obtained as the variance in the combined sample of those with and without the condition. We repeated the above process 500 times. The mean empirical c-statistic along with the mean of the predicted c-statistics was determined across the 500 simulated datasets.

These Monte Carlo simulations used a full factorial design in which the following factors were allowed to vary: ${\beta}_{0}$ (which will influence the overall probability of the condition occurring), $exp\left({\beta}_{1}\right)$, and ${\sigma}_{\text{mc}}$. We allowed ${\beta}_{0}$ to take on the values −2, −1, 0, 1, and 2; $exp\left({\beta}_{1}\right)$ to vary from 1 to 4 in increments of 0.2; and ${\sigma}_{\text{mc}}$ to vary from 0.2 to 4 in increments of 0.2. In each of the 1,600 (5 × 16 × 20) different scenarios, we computed: the mean of the empirical and predicted c-statistics and the mean of the skewness of the explanatory variable in those with and without the condition across the 500 simulated datasets that were generated under each scenario.

Data were simulated using the R statistical programming language [16]. The logistic regression models were fit using the *lrm* function in the *Design* package. The skewness of the explanatory variable was estimated using the *skewness* function in the *e1071* package.

### Monte Carlo simulations – results

### Accuracy of predictions under non-normal distributions of the explanatory variable

The analytic derivations in Section 2 required the assumption of binormality. In Section 3, using an extensive set of Monte Carlo simulations, we found that the formulas derived under the assumption of binormality allowed for relatively accurate prediction of the empirical c-statistic when the distribution of the explanatory variable was normally distributed in the entire sample of those with and without the condition. In this section, we examine the accuracy of these predictions when the distribution of the explanatory variable was non-normal in the combined sample. We considered the following three distributions: gamma, log-normal, and uniform.

## Methods

We used Monte Carlo simulations similar to those described in Section 3. For each of the three non-normal distributions, we used a full factorial design. When the explanatory variable followed a gamma distribution, we allowed ${\beta}_{0}$ to take on the values −1, 0, and 1 and $exp\left({\beta}_{1}\right)$ to vary from 1 to 4 in increments of 0.25. The gamma distribution had the scale parameter fixed at 1, and the shape parameter was allow to vary from 0.25 to 4 in increments of 0.25. We thus considered 624 (3 × 13 × 16) different scenarios. When the explanatory variable followed a uniform distribution, we allowed ${\beta}_{0}$ to take on the values −2, −1, 0, 1, and 2, $exp\left({\beta}_{1}\right)$ to vary from 1 to 4 in increments of 0.2, and the parameter of the uniform distribution to vary from 0.2 to 4 in increments of 0.2 (the uniform distribution U(a) was parameterized so that its range was from –a to + a). We thus considered 1,600 (5 × 16 × 20) different scenarios. When the explanatory variable followed a log-normal distribution, we allowed ${\beta}_{0}$ to take on the values −1, 0, and 1, $exp\left({\beta}_{1}\right)$ to vary from 1 to 4 in increments of 0.25. The logarithm of the log-normal distribution had mean zero and its standard deviation varied from 0.1 to 2 in increments of 0.1. We thus considered 780 (3 × 13 × 20) different scenarios.

## Results

### Case study

We examined the ability of our derived formulas to predict the c-statistic for two logistic regression models in a sample of subjects hospitalized with acute myocardial infarction (AMI).

### Data sources

We used patients from the first phase of Enhanced Feedback for Effective Cardiac Treatment (EFFECT) Study, an initiative to improve the quality of care for patients with cardiovascular disease in Ontario [17, 18]. Detailed clinical data were collected on patients hospitalized with AMI between April 1, 1999 and March 31, 2001 at 86 hospital corporations in Ontario, Canada, by retrospective chart review. Data on patient demographics, vital signs at presentation, medical history, and results of laboratory tests were collected for these patients. After excluding subjects with missing data on key variables, 9,298 subjects were available for use in this case study.

### Methods

The outcome of interest for the current example was whether the patient died within 30 days of hospitalization. We fit two different logistic regression models. The first was a univariate logistic regression model in which we regressed 30-day mortality on patient age. In the second model, we regressed mortality on the following baseline covariates: age, sex, cardiogenic shock, acute congestive heart failure/pulmonary edema, systolic blood pressure, diastolic blood pressure, heart rate, respiratory rate, diabetes, hypertension, current smoking status, dyslipidemia, family history of coronary artery disease, cerebrovascular disease/transient ischemic attack, angina, cancer, dementia, peptic ulcer disease, previous AMI, asthma, depression, peripheral vascular disease, previous revascularization, congestive heart failure, hyperthyroidism, aortic stenosis, haemoglobin, white blood count, sodium, potassium, glucose, urea, and creatinine.

We determined the empirical c-statistic for each of the two logistic regression models. We estimated the components of the distribution of age and of the linear predictor from the second logistic regression model that were necessary to predict the c-statistic using formulas (1) and (2). When using formula (2) with the multivariable model, we used β = 1, since the regression coefficient for the linear predictor would be one if the outcome were regressed on the linear predictor alone.

### Results

The empirical c-statistic of the univariate logistic regression model that regressed 30-day mortality on age was 0.759. The corresponding predicted c-statistics were 0.760 and 0.790 when formulas (1) and (2) were used, respectively. The empirical c-statistic of the multivariable model was 0.853. The corresponding predicted c-statistics were 0.849 and 0.855 when formulas (1) and (2) were used, respectively. The improved accuracy of prediction of the c-statistic for the multivariable model is likely due to the distribution of the linear predictor having a distribution that is closer to a normal distribution compared to the distribution of age.

## Discussion

Under the assumption that the explanatory variable was normally distributed in those with and without the condition, we derived an explicit expression for the c-statistic. We demonstrated that the c-statistic is a function of only the mean and variance of the explanatory variable in those with and without the condition. In particular, the c-statistic is a function of the standardized difference comparing the mean of the explanatory variable between those with and without the covariate. When the explanatory variable had the same variance in those with and without the condition, we demonstrated that the model c-statistic is an increasing function of the standard deviation of the normal distributions and of the log-odds ratio. The primary novelty of our findings is that the functional relationship of the c-statistic of a logistic regression model has now been described. Using an extensive set of Monte Carlo simulations, we found that our formulas provided reasonably accurate prediction when the distribution of the explanatory variable was normal in the entire sample of those with and without the condition. Some of our findings corroborate previous observations based on Monte Carlo simulations on how the c-statistic improved with increases in the odds ratio [19]. While our derivations are based on a single explanatory variable that is normally distributed in those with and without the condition, our results will generalize to any setting in which there is a real valued transformation of a set of explanatory variables, f(**X**), such that the distribution of f(**X**) is normal in those with and without the condition.

There are two implications of these findings for researchers constructing and interpreting predictive models for binary outcomes. First, it is widely known that greater discrimination is possible when the regression model contains independent explanatory variables that are strongly associated with the outcome [20]. However, we have demonstrated that when comparing the performance of the same regression model in different populations, a higher c-statistic is to be expected for the model fit in the population in which there is greater variation in the explanatory variable. Conversely, diminished predictive accuracy is to be expected in more homogeneous populations and samples, even if the odds ratio is transportable across populations. In a multivariable model, the linear predictor was recently suggested as the summary continuous variable to indicate population heterogeneity, with direct impact on the magnitude of the c-statistic [21]. In our case-study, we found that accurate prediction of the c-statistic was obtained from the distribution of the linear predictor. As noted above, the linear predictor is a real-valued function of the set of explanatory variables. Furthermore, the central limit theorem suggests that the distribution of the linear predictor will tend to be approximately normally distributed as both the sample size and the number of explanatory variables increases.

## Conclusions

In conclusion, when a continuous explanatory variable is normally distributed both in those with and without the outcome or condition, and these two normal distributions have equal variances, then the c-statistic follows a standard normal cumulative distribution function with dependence on the product of the standard deviation of the normal components (reflecting more heterogeneity) and the log-odds ratio (reflecting larger effects). When the explanatory variable is normally distributed in the combined population of subjects, then the formulas that we derived provide a reasonably accurate prediction of the empirical c-statistic. We conclude that discriminative ability of an explanatory variable cannot be judged by its odds ratio alone, but always needs to be considered in relation to the heterogeneity of the population.

## Declarations

### Acknowledgements

The Institute for Clinical Evaluative Sciences (ICES) is supported in part by a grant from the Ontario Ministry of Health and Long Term Care. The opinions, results and conclusions are those of the authors and no endorsement by the Ministry of Health and Long-Term Care or by the Institute for Clinical Evaluative Sciences is intended or should be inferred. This research was supported by operating grant from the Canadian Institutes of Health Research (CIHR) (MOP 86508). Dr. Austin is supported in part by a Career Investigator award from the Heart and Stroke Foundation of Ontario. Dr. Steyerberg is supported in part by the Netherlands Organization for Scientific Research (grant 9120.8004). The authors acknowledge the contributions made by two reviewers which substantially improved the manuscript.

## Authors’ Affiliations

## References

- Steyerberg EW: Clinical Prediction Models. 2009, Springer, New YorkView ArticleGoogle Scholar
- Steyerberg EW, Vickers AJ, Cook NR, Gerds T, Gonen M, Obuchowski N, et al: Assessing the performance of prediction models: a framework for traditional and novel measures. Epidemiology. 2010, 21: 128-138. 10.1097/EDE.0b013e3181c30fb2.View ArticlePubMedPubMed CentralGoogle Scholar
- Harrell FE: Regression modeling strategies. 2001, Springer, New York, NYView ArticleGoogle Scholar
- Hanley JA, McNeil BJ: The meaning and use of the area under a Receiver Operating Characteristic (ROC) curve. Radiology. 1982, 143: 29-36.View ArticlePubMedGoogle Scholar
- Bamber D: The area above the ordinal dominance graph and the area below the receiver operating characteristic graph. J Math Psychol. 1975, 12: 387-415. 10.1016/0022-2496(75)90001-2.View ArticleGoogle Scholar
- Demler OV, Pencina MJ, D’Agostino RB: Equivalence of improvement in area under ROC curve and linear discriminant analysis coefficient under assumption of normality. Statistics in Medicine. 2011, 30: 1410-1418.PubMedGoogle Scholar
- Royston P, Altman DG: Visualizing and assessing discrimination in the logistic regression model. Statistics in Medicine. 2010, 29: 2508-2520. 10.1002/sim.3994.View ArticlePubMedGoogle Scholar
- Royston P, Thompson SG: Model-based screening by risk with application to Down’s syndrome. Statistics in Medicine. 1992, 11: 257-268. 10.1002/sim.4780110211.View ArticlePubMedGoogle Scholar
- Deeks JJ, Macaskill P, Irwig L: The performance of tests of publication bias and other sample size effects in systematic reviews of diagnostic test accuracy was assessed. Journal of Clinical Epidemiology. 2005, 58: 882-893. 10.1016/j.jclinepi.2005.01.016.View ArticlePubMedGoogle Scholar
- Zhou X, Obuchowski N, McClish D: Statistical Methods in diagnostic medicine. 2002, Wiley-Interscience, New YorkView ArticleGoogle Scholar
- Cohen J: Statistical Power Analysis for the Behavioural Sciences. 1988, Lawrence Erlbaum Associates, Hillsdale, NJ, 2Google Scholar
- Flury BK, Riedwyl H: Standard distance in univariate and multivariate analysis. Am Stat. 1986, 40: 249-251.Google Scholar
- Austin PC: Balance diagnostics for comparing the distribution of baseline covariates between treatment groups in propensity-score matched samples. Statistics in Medicine. 2009, 28: 3083-3107. 10.1002/sim.3697.View ArticlePubMedPubMed CentralGoogle Scholar
- Normand ST, Landrum MB, Guadagnoli E, Ayanian JZ, Ryan TJ, Cleary PD, et al: Validating recommendations for coronary angiography following acute myocardial infarction in the elderly: a matched analysis using propensity scores. Journal of Clinical Epidemiology. 2001, 54: 387-398. 10.1016/S0895-4356(00)00321-8.View ArticlePubMedGoogle Scholar
- Hosmer DW, Lemeshow S: Applied Logistic Regression. 1989, John Wiley & Sons, New York, NYGoogle Scholar
- R Core Development Team: R: a language and environment for statistical computing. 2005, R Foundation for Statistical Computing, ViennaGoogle Scholar
- Tu JV, Donovan LR, Lee DS, Wang JT, Austin PC, Alter DA, et al: Effectiveness of public report cards for improving the quality of cardiac care: the EFFECT study: a randomized trial. JAMA. 2009, 302: 2330-2337. 10.1001/jama.2009.1731.View ArticlePubMedGoogle Scholar
- Tu JV, Donovan LR, Lee DS, Austin PC, Ko DT, Wang JT, et al: Quality of Cardiac Care in Ontario. 2004, Institute for Clinical Evaluative Sciences, Toronto, OntarioGoogle Scholar
- Janssens AC, Moonesinghe R, Yang Q, Steyerberg EW, van Duijn CM, Khoury MJ: The impact of genotype frequencies on the clinical validity of genomic profiling for predicting common chronic diseases. Genetics in Medicine. 2007, 9: 528-535. 10.1097/GIM.0b013e31812eece0.View ArticlePubMedGoogle Scholar
- Pepe MS, Janes H, Longton G, Leisenring W, Newcomb P: Limitations of the odds ratio in gauging the performance of a diagnostic, prognostic, or screening marker. Am J Epidemiol. 2004, 159: 882-890. 10.1093/aje/kwh101.View ArticlePubMedGoogle Scholar
- Vergouwe Y, Moons KG, Steyerberg EW: External validity of risk models: Use of benchmark values to disentangle a case-mix effect from incorrect coefficients. Am J Epidemiol. 2010, 172: 971-980. 10.1093/aje/kwq223.View ArticlePubMedPubMed CentralGoogle Scholar
- The pre-publication history for this paper can be accessed here:http://www.biomedcentral.com/1471-2288/12/82/prepub

### Pre-publication history

## Copyright

This article is published under license to BioMed Central Ltd. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.