FRM Part I · FRM Exam Part I · Machine Learning and Prediction
A single standardized predictor has OLS coefficient 0.80 with sum of x squared equal to 50. The LASSO objective is (1/2) times the sum of squared residuals plus lambda times the absolute coefficient. The LASSO solution is the soft-threshold of the OLS estimate: sign(b) times max(|b| - lambda/Sxx, 0). Consider lambda = 20, then lambda = 50. What are the LASSO coefficients, respectively?
The coefficients are 0.40 and 0.00. Soft-thresholding subtracts lambda divided by the sum of x squared from the OLS magnitude. For lambda 20 the shift is 0.40, giving 0.40; for lambda 50 the shift is 1.00, exceeding 0.80, so the coefficient is truncated to zero.
- A0.40 and 0.00Correct
- B0.60 and 0.30
- C0.40 and -0.20
- D0.80 and 0.00
Explanation
Threshold is lambda/Sxx. For lambda=20: 20/50 = 0.40, so the coefficient is 0.80 - 0.40 = 0.40. For lambda=50: 50/50 = 1.00, which exceeds 0.80, so the coefficient is set to 0. A negative value (-0.20) ignores the max with zero, which is the mistake in that distractor.
Did you get it right without looking?
One question tells you little. A timed set on Machine Learning and Prediction shows your real accuracy, how long you take and where you lose marks.
More Machine Learning and Prediction questions
- A data scientist has 5,000 observations and wants to select among several models and then report an unbiased estimate of final performance. …
- A risk team has 40 yield-curve and macro predictors and is predicting credit spread changes. They run PCA on the full dataset, keep the firs…
- A data scientist increases the complexity of a prediction model by adding many more predictors and higher-order terms. Holding the training …
- A risk analyst wants to group a bank's corporate borrowers into clusters based on financial ratios, with no predefined default labels availa…
- A risk analyst builds a model to predict loan defaults. The model achieves 99% accuracy on the training data but only 70% accuracy on a held…
- A PCA on six standardized predictors yields eigenvalues of 3.0, 1.5, 0.6, 0.45, 0.3 and 0.15. What is the smallest number of components need…