C-Index from scratch in Python

Dimitrij Tschodu
5 min readJan 12, 2022

David Deutsch has this tweet:

If you can’t program it, you haven’t understood it.

If you do some work in medicine, statistics, or even biophysics, you are surely familiar with the C-Index, also called the C-statistics, or Harrell’s index . Frank Harrell introduced it to measure the ability of a model to discriminate patients with different prognosis. This means:

Consider two patients. Patient A lived longer than patient B.

If the predicted survival time for the patient A is longer than the predicted…

--

--

Dimitrij Tschodu

PhD student in biophysics at Leipzig university | Physicist | ML & AI researcher | author | former blogger of PhysiPhi.com