In this paper we present ROC methodology and analyze the ROC curve. We describe first the historical background and its relation with signal detection theory. Some mathematical properties of this curve are given, and in particular the relation with stochastic orders and statistical hypotheses testing are described. We present also a medical application of the Neymann–Pearson lemma