Statistics & probability

Harrell concordance index calculator for right censored risk scores

Measure how well supplied risk scores order observed event times while respecting right censoring and explicit tie conventions.

Your numbers

One row per subject: positive time, event 1 or censored 0, risk score. Larger risk predicts an earlier event.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Measure how well supplied risk scores order observed event times while respecting right censoring and explicit tie conventions.

THE FORMULAC=(concordant+0.5×risk ties)/(concordant+discordant+risk ties).

A worked example

The six default observations give 11 concordant and 1 discordant comparable pairs, so Harrell concordance is 11/12≈0.9166667.

Good to know

3–500 rows: positive follow-up, event 0/1, finite risk score. Higher risk predicts an earlier event. Equal event/censor times put the event first; two equal event times excluded; risk ties receive half credit. No standard error, confidence interval or optimism correction.

Ranking predictions under censoring

A survival risk score orders subjects by how early an event is predicted to occur. Harrell concordance asks whether that ordering agrees with pairs whose outcome order is observable. It evaluates ranking rather than the numerical accuracy of a predicted survival probability at a chosen horizon.

Censoring prevents some event orders from being known. A subject censored before another subject's event cannot establish which event would occur first. Counting that pair as if the censoring time were an event would reward or punish the prediction using information that the data do not actually provide.

Comparable-pair ranking countsConcordant: 11Discordant: 1Incomparable: 3C = 11 / 12 ≈ 0.916667
Scroll across to see the full diagram.
The default has 11 concordant pairs,1 discordant pair and 3 incomparable pairs.

Compare this with the Time dependent Brier score calculator with right censoring. Measure comparable-pair risk ranking under censoring, rather than squared survival prediction error at a horizon.

Which pairs enter the denominator

For unequal observation times, a pair is comparable only when its earlier observation is an event. The event subject should have the higher risk score. If its score is lower, the pair is discordant; equal risk scores receive half credit and remain in the comparable denominator.

At an equal event-and-censor time, this implementation treats the event as preceding the censoring observation. Two tied event times are excluded rather than arbitrarily ordered. The returned counts state these conventions explicitly because different tie policies can change the result for rounded or heavily discretized times.

Checking the six-subject example

There are fifteen unordered pairs among the six default subjects. Three are incomparable under the right-censoring rule, leaving twelve pairs that can assess the risk ordering. Eleven of those agree with the larger-score-means-earlier-event convention and one disagrees.

There are no risk-score ties in the default data, so the numerator is simply eleven and the denominator twelve. The reported concordance is therefore about zero-point-nine-one-six-seven. The pair counts allow this example to be checked without trusting a single headline value or a fitted survival model.

Score direction and transformation

The calculator assumes that larger scores predict earlier events. Some software instead returns a predicted survival duration, where larger values mean later events. Negate those durations or convert their direction deliberately before entering them; otherwise an accurate duration ordering can appear systematically discordant.

Any strictly increasing transformation of a risk score preserves its ordering and therefore its concordance, provided numerical ties are not introduced. Changing the score scale does not calibrate probabilities. A monotone transformation can leave concordance unchanged while substantially changing a probability-based prediction-error measure.

Interpreting the observed statistic

A value near one indicates agreement on the pairs that remain comparable, while one-half is the familiar chance-ranking reference under suitable assumptions. A value below one-half can indicate reversed direction or poor ranking. It is not automatically proof that a model is worse than every practical alternative.

The result is descriptive for the supplied observations and fixed scores. If those same observations were used to train or select the scoring model, the apparent concordance can be optimistic. This page does not correct that optimism through bootstrap resampling, cross-validation or an external validation cohort.

Censoring can affect the comparison set

Heavy censoring reduces the number of observable pair orders and can change which subjects contribute. The statistic therefore depends on the follow-up and censoring pattern as well as the prediction scores. Comparing two cohorts with different censoring does not isolate model quality by itself.

No inverse-censoring-weighted correction is silently applied here. Such corrections require their own estimator, assumptions and support checks. Inspect comparable pairs and censoring patterns alongside concordance, and use the same definition when comparing against another package or a previously reported validation result.

Useful checks before reporting

Reverse the scores as a direction check: without unusual tie interactions, concordant and discordant contributions should exchange. Reordering input rows should leave every total unchanged. A dataset with no comparable event pairs must produce an undefined-case error rather than an invented chance value.

Report the score direction, event definition and tie convention with the number. A successful calculation does not provide clinical guidance, establish causation or supply uncertainty for a fitted model. Pair-ranking concordance is one part of prediction assessment and should be complemented by calibration and an appropriate error measure.

A few questions, answered

Does this fit a Cox model?

No. It evaluates supplied scores and observed outcomes; no risk-model coefficients are estimated.

Why are some pairs excluded?

Their event order is not observed because of censoring or tied event times under the stated convention.

Should a larger score mean longer survival?

No. This interface uses larger scores for earlier events; reverse a predicted-duration score before use.

Does a high value prove good calibration?

No. Concordance measures ordering, not agreement between predicted probabilities and observed event frequencies.

Find your calculator

Start typing to explore the library.