Week 6 Discussion Questions
Week 6 results
Discussion honors
Team honors are based on the class ratings recorded during the discussion.
-
1
Gold
Team 6
Team members
- Conner
- Dehui
- Lu
- Runting
- Urva
- Wenhao
- Yanxi
-
2
Silver
Team 4
Team members
- Krishay
- Cameron
- Karisma
- Owen
- Ryan
- Shushi
-
3
Bronze
Team 8
Team members
- Ally
- Chahak
- Jiachen
- Nupur
- Ruitong
- Shirley
- Sheetal
- Zhiyuan
These questions were selected and adapted from the Week 6 student submissions. Work through the reasoning with your group and be prepared to explain your conclusions.
Ten questions are listed below. Contributor NetIDs appear at the end of each question. Questions discussed in class are marked.
Question 01Class imbalance and Bayes decisions
Should Class Imbalance Change the Cutoff?
The notes say that class imbalance alone does not change the Bayes cutoff of . But in the logistic example only 29 percent of the cases are positive, and at cutoff the model catches only about 31 percent of them. Lowering the cutoff feels like the natural fix.
If imbalance is not a reason to move the cutoff, is lowering it really just a hidden way of saying that missing a positive costs more than a false alarm?
This question is contributed by cgao19.
Question 02ROC curves and model choice
ROC Curves and Classification Cutoffs
My logistic regression model has a slightly higher test AUC than KNN. If missing a malignant case is more costly than incorrectly flagging a benign case, could KNN still be preferable? How should I use the ROC curves to choose both the model and its classification cutoff?
This question is contributed by jingyi64.
Question 03Unequal error costs and cutoff choice
Cost-Weighted Cutoff: Why 0.2 Instead of 0.5?
If a false negative costs four times as much as a false positive, why does the cost-minimizing rule classify an observation as positive when its estimated probability is above 0.2 instead of 0.5? And how would lowering the cutoff from 0.5 to 0.2 change sensitivity and specificity?
This question is contributed by nnigam2.
Question 04KNN training and test performance
Does More Data Close the 1-NN Training and Test AUC Gap? (Discussed)
In Homework 6, 1-NN had a training AUC of 1.0000 and a lower test AUC. When each training observation is returned as its own nearest neighbor, its fitted probability equals its label. If we keep and increase the training sample size, must the test AUC approach 1? How does overlap between the classes affect the answer? Would allowing to grow with sample size change your reasoning?
This question is adapted from a related question contributed by chahak2.
Question 05Predictor scaling and model invariance
Why Does Predictor Scaling Affect KNN and Logistic Regression Differently? (Discussed)
Suppose we center and scale predictors using training-set statistics. How can this change the nearest neighbors and predictions of KNN with Euclidean distance? Why can an unpenalized logistic regression with an intercept retain the same fitted probabilities after its coefficients are adjusted for the rescaling? Would this still hold with a penalty on the coefficients?
This question is adapted from a related question contributed by ruitong7.
Question 06Bayes error and probability estimation
Bayes Error, Bias, and Variance
If we knew the true probability for every observation, why could we still make classification errors, and how would those errors differ from errors caused by estimating probabilities?
This question is contributed by brianc19.
Question 07AUC and operating cutoffs
Why Lean on AUC If You Pick One Cutoff?
A model can have a great AUC and still make bad calls at the cutoff you actually use, since AUC only scores ranking. If you only ever predict at one threshold, why do we lean on AUC so much instead of judging the model at that threshold directly?
This question is contributed by amoghu2.
Question 08ROC ranking and class decisions
Same AUC, Different Decisions (Discussed)
Could two models have exactly the same ROC curve and AUC but make different predictions at a cutoff of 0.5? What would explain this?
This question is contributed by kum2.
Question 09Crossing ROC curves and partial AUC
Comparing Models When ROC Curves Cross
In my Homework 6 Question 1, the KNN () and logistic regression ROC curves cross: KNN is higher at false positive rates below about , logistic catches up above that, and their AUCs differ by only . If a cancer screen will only ever operate at low false positive rates, should we compare partial AUC over that range (or sensitivity at a fixed specificity) instead of total AUC, and how do we choose that range before looking at the test data?
This question is contributed by hx27.
Question 10AI-assisted code review
How Should We Handle Duplicated AI-Generated Analysis Code?
During peer review, I found duplicated AI-generated code in Parts A and B of a homework report. How could we consolidate it without changing the analysis, and what results should we compare before and after the change?
This question is adapted from a related question contributed by ericc13.