Why not a straight line? Default (0 or 1) against card balance, 600 simulated customers
logistic p(x) = 1 / (1 + e^−(β₀ + β₁x))least squares on 0/1customer (0 = paid, 1 = defaulted; jittered)

Bayes' theorem as a classifier: one predictor, two Gaussian classes
π₀ f₀(x)π₁ f₁(x)Pr(class 1 | x)decision boundary

Logistic regression, LDA, QDA and naive Bayes on the same 100 training points
class 0class 1

One score, many classifiers: the threshold, the confusion matrix and the ROC curve

predicted probability by true class

ROC curve: every threshold at once