Week 3 Discussion Questions
Week 3 results
Discussion honors
Team honors are based on the class ratings recorded during the discussion.
-
1
Gold
Team 6
Team members
- Conner
- Haoran
- Lu
- Runting
- Urva
- Wenhao
-
2
Silver
Team 5
Team members
- Bich-Yen
- Brian
- Caleb
- Eric
- Steven
- Katherine
- Ziqi
-
3
Bronze
Team 1
Team members
- Brisa
- Jessica
- Lyndsey
- Maeve
- Ricky
Top challenger
- Shih-Peng Chuang
These questions were selected from the Week 3 student submissions. Work through the reasoning with your group and be prepared to explain your conclusions.
Eleven questions are listed below. Contributor NetIDs appear at the end of each question. Questions discussed in class are marked.
Question 01Ridge geometry
Question 02Ridge geometry and scaling
Does Changing Coordinates Change Ridge?
Two predictors and are centered and scaled to unit variance, and they are not perfectly correlated. Replace them by
Fit ridge using these new predictors with the same , without further standardization. Will the predictions change? Could the answer change if we standardize and to unit variance before fitting? Explain why in each case.
This question is contributed by chahak2 and shushim2.
Question 03Bias and variance
Why Shrink a Coefficient That Is Already Estimated Precisely? (Discussed)
One predictor is independent of the others and has a strong relationship with the response. Several other predictors are highly correlated with each other, making their individual coefficients unstable. Ridge applies the same penalty to all coefficients. Could a penalty that helps the unstable group hurt prediction by shrinking the strong predictor too much? Explain when the overall tradeoff would be worthwhile.
This question is contributed by nkalele2.
Question 04Effective degrees of freedom
Does the Same Effective Degree of Freedom Mean the Same Prediction Performance? (Discussed)
Consider two models fitted to the same data with two predictors. Both minimize
where is the squared-error loss and the intercept is not penalized. The models use different choices of and , so they shrink the two coefficients differently, but they have the same effective degrees of freedom. Should we expect the same prediction performance because the models are equally complex according to this measure? Explain your reasoning.
This question is contributed by amoghu2.
Question 05Bias and variance
Does Ridge Become More Useful When We Collect More Data?
Ridge improves prediction over OLS with 50 training observations. We then collect 5,000 observations from the same population, keeping the number of predictors fixed. Should we expect ridge’s advantage to become larger or smaller? Explain how increasing the sample size changes the bias-variance tradeoff and whether we should keep the same penalty.
This question is contributed by cudzich3 and lugong2.
Question 06Intercept and centering
What Changes When We Penalize the Intercept?
Fit a ridge regression with an intercept. Now add 100 to every response and refit using the same predictors and the same . Should every prediction increase by exactly 100? Compare leaving the intercept unpenalized with including it in the ridge penalty. Explain why the two approaches can behave differently.
This question is contributed by connerj2, lb16, and ousher2.
Question 07Cross-validation
Can Predictor Standardization Leak Information into Cross-Validation?
Before cross-validation, an analyst standardizes the predictors using means and standard deviations calculated from the entire dataset. The response is left unchanged. The analyst argues that there is no data leakage because standardization uses only the predictors, not the response. Is this reasoning correct? Explain how validation information could enter the fitted procedure and where standardization should take place.
This question is contributed by allyw2, bugatha2, and runting5.
Question 08Cross-validation
Is the One-Standard-Error Rule Always a Safer Choice? (Discussed)
A ridge cross-validation curve is nearly flat around its minimum, and the estimated standard error is large. The one-standard-error rule selects a much larger penalty than the penalty that minimizes CV error. Is this necessarily a safer choice for prediction? Explain what could go wrong and what information from cross-validation you would examine before choosing between the two penalties, without using the test data.
This question is contributed by owenp3.
Question 09Optimization
Can Early Stopping Act Like Ridge Regularization?
Use gradient descent to fit least squares with no ridge penalty. Work with centered data, start the coefficients at zero, and use a small fixed step size. Instead of running the algorithm to convergence, stop after a limited number of iterations. Can early stopping act as regularization? Must the resulting fit be exactly the same as a ridge fit for some ? Explain your reasoning.
This question is contributed by prerith2.
Question 10AI workflow: skill verification
Does Your Explain-to-Me Skill Work as Intended?
After creating an explain-to-me skill with AI, how would you test whether it actually explains homework questions in the way you intended?
This question is contributed by mp79.
Question 11AI workflow: skill discovery
Why Did a Skill Only Work After Reloading the Editor?
A student saved an explain-to-me skill in the project’s skill folder, but the agent reported “Unknown skill.” Moving it to the user-level skill folder did not solve the problem. The skill only worked after reloading the editor. What could explain this, and how should the agent diagnose the problem?
This question is contributed by stewary2.