Week 7 Discussion Questions
Week 7 results
Discussion honors
Team honors are based on the class ratings recorded during the discussion.
-
1
Gold
Team 6
Team members
- Conner
- Dehui
- Haoran
- Lu
- Runting
- Urva
- Wenhao
-
1
Gold
Team 9
Team members
- Charles
- Nick
- Shreyas
- Will
-
3
Bronze
Team 4
Team members
- Krishay
- Cameron
- Karisma
- Owen
- Ryan
- Shushi
Top challenger
- Owen Park
These questions draw on student submissions and instructor prompts. Work through the reasoning with your group and be prepared to explain your conclusions.
Nine questions are listed below. Credits appear at the end of each question. Questions discussed in class are marked.
Question 01Covariance pooling and test error
When Does Pooling Help LDA?
In the Homework 7 simulation, the class covariance matrices become more different as moves away from zero. At small positive , LDA can have lower test error than QDA even though its shared-covariance assumption is false. Why can pooling help here, and how would increasing the training sample size change the comparison?
This question is adapted from a related question contributed by chahak2.
Question 02Decision boundaries and class covariance
Can Covariance Alone Distinguish Two Classes?
Suppose two Gaussian classes have the same population mean and equal prior probabilities, but different covariance matrices. At the population level, can LDA distinguish the classes? Can QDA? Explain how their covariance assumptions shape the decision boundaries.
This question is adapted from a related question contributed by rruiz35.
Question 03High-dimensional QDA and predictor screening
How Many Predictors Can QDA Use? (Discussed)
In the Week 7 lecture, ordinary QDA could not use all 256 pixel predictors when each digit class had only 100 training images: its within-class covariance matrices were singular. Homework 7 uses the full training file; selecting 40 pixels allows QDA to fit, while selecting 10 gives higher test error. How should we choose the screening rule and number of pixels so the covariance estimates are stable without losing class information or using test data to make these choices? When must screening and the choice of dimension happen during cross-validation, and why?
This question is adapted from related questions contributed by stewary2 and owenp3.
Question 04Generative and direct probability models
Discriminant Analysis or Logistic Regression?
For a binary outcome, logistic regression directly models , while discriminant analysis models the distribution of within each class and then applies Bayes’ rule. What are the advantages and disadvantages of each route? When might you expect one to outperform the other?
This question is contributed by nkalele2.
Question 05KNN tie-breaking rules
How Should KNN Break a Tied Vote? (Discussed)
Suppose a binary -nearest-neighbor classifier uses an even , and the selected neighbors split evenly between the two classes. Propose two rules for breaking the vote tie. What are the advantages and disadvantages of each, particularly for reproducibility and whether the rule favors one class?
This question is contributed by the instructor, motivated by a Week 6 question on KNN probability ties from haorans9.
Question 06Probability loss and classification accuracy
Does Lower Brier Loss Guarantee Higher Accuracy? (Discussed)
Two binary classifiers are evaluated on the same observations. Model A has lower average Brier loss than Model B. Must Model A also have higher classification accuracy when both use a cutoff of 0.5? Explain or construct a counterexample.
This question is adapted from a related question contributed by schuang7 in Week 6.
Question 07Uncertainty in test error
Is a One-Point Test Error Difference Meaningful?
Two KNN models using different distance metrics have test error rates of 12.5% and 13.5% on the same test set. Is that enough to conclude that the first model will predict better on new observations? If not, how would you assess whether the difference reflects a real performance gap or random variation?
This question is adapted from a related question contributed by panico2 in Week 6.
Question 08Sharing covariance information
Question 09LDA and logistic regression in large samples
Will LDA and Logistic Regression Eventually Agree?
For binary classification, both LDA and logistic regression produce linear decision boundaries and estimate . A student argues: “Because they solve the same classification problem, as the training sample grows their decision rules must converge to the same rule.” Is this necessarily true when the same probability cutoff is used? Explain why or why not, and state conditions under which you would expect the two rules to agree in the large-sample limit.
This question is contributed by the instructor.