Machine Learning Basics

Which of the following correctly describes the ROC curve and AUC used to evaluate two-class classification models?

  1. AA curve drawn by varying the decision threshold and plotting the true positive rate against the false positive rate; the closer the area under it (AUC) is to 1, the better the model separates positives from negatives
  2. BA curve of the accuracy at a fixed threshold plotted against the number of training passes (epochs), where AUC is the maximum of that curve and a larger value means faster training
  3. CA model with an AUC of 0.5 correctly separates positives from negatives at least half the time, so it can be considered good enough for practical use
Show answer and explanation

Answer: A. A curve drawn by varying the decision threshold and plotting the true positive rate against the false positive rate; the closer the area under it (AUC) is to 1, the better the model separates positives from negatives

The ROC curve is drawn by moving the threshold above which the model's output score is judged positive, plotting the false positive rate FP ÷ (FP + TN) on the horizontal axis and the true positive rate TP ÷ (TP + FN) on the vertical axis. AUC is the area under the curve, and it equals the probability that a randomly chosen positive example scores higher than a randomly chosen negative example. A model that separates the classes perfectly has an AUC of 1, and one that judges at random has 0.5. AUC compares models' ability to discriminate before a threshold is chosen, but for data with very few positives the PR curve, which plots precision against recall, can show differences more clearly.

  • A. Correct. It shows the relationship between the true positive rate and the false positive rate as the threshold changes, and the closer AUC is to 1, the better the model discriminates.
  • B. A curve that shows the progress of training is a learning curve. The ROC curve shows the relationship between the true positive rate and the false positive rate as the threshold changes.
  • C. An AUC of 0.5 is the same as judging at random and means the model has no ability to discriminate.
Practice this topic Back to topic

Related calculators

Books on Machine Learning Basics Ad

As an Amazon Associate I earn from qualifying purchases.

More Machine Learning Basics questions

  1. For data of 1000 items of which only 10 are positive, what is the accuracy of a model that predicts every item as negative?
  2. Four data points have actual values 3, 5, 2 and 6, and the model predicts 2, 5, 4 and 4 for them. What is the mean squared error (MSE)?
  3. A straight line y = ax + b is fitted by least squares to the three data points (x, y) = (1, 3), (2, 4) and (3, 8). What is the predicted value at x = 4?
  4. In logistic regression, z = 2x − 4 is passed through the sigmoid function σ(z) = 1 ÷ (1 + e^(−z)) and the result is output as the probability of being positive. What is the output when x = 2?
  5. A node of a decision tree holds 6 data points of class A and 4 of class B. What is the Gini impurity of this node?