The AUC is calculated by plotting the Receiver Operating Characteristic (ROC) curve, which illustrates the true positive rate (TPR) against the false positive rate (FPR) at various threshold settings. The area under this curve is the AUC. An AUC of 0.5 suggests no discriminative power (equivalent to random guessing), while an AUC of 1.0 indicates perfect discrimination.