Start by proving OLS invariance under invertible linear transformations using the normal equations and the fact that the column space is unchanged. Then derive the coefficient mapping β = A^{-T} γ. For penalties, analyze ridge by expressing the objective in terms of the transformed coefficients and showing that the solution is a linear transformation of the OLS solution, hence predictions are identical. For lasso, provide a simple counterexample with two data points where the L1 penalty breaks invariance.
Pro tip: Emphasize that the key to invariance is whether the penalty is applied in a way that respects the linear transformation. For ridge, the penalty is quadratic and thus invariant under orthogonal transformations, but for general invertible transformations, the penalty term changes unless the transformation is orthogonal. For lasso, the L1 penalty is not invariant even under orthogonal transformations because it is not rotationally invariant.
Show that OLS predictions are identical for any invertible linear transformation by noting that the column space of the design matrix is unchanged, so the projection onto that space is the same. Use the normal equations to derive the coefficient mapping.
Given X = Z A^{-1} (or Z = X A), show that the OLS coefficients satisfy β = A^{-T} γ, where β are coefficients for X and γ for Z. Verify that predictions Xβ = Zγ.
Write the ridge objective in both parameterizations. Show that the ridge solution for Z is γ = (Z^T Z + λ I)^{-1} Z^T y, and for X is β = (X^T X + λ I)^{-1} X^T y. Demonstrate that predictions are identical only if A is orthogonal (i.e., A^T A = I), because then the penalty term is invariant.
Explain that lasso does not preserve invariance even for orthogonal transformations because the L1 penalty is not rotationally invariant. Provide a concrete counterexample with a small dataset and a specific transformation where predictions differ.
Conclude that OLS is invariant under any invertible linear transformation, ridge is invariant only under orthogonal transformations, and lasso is not invariant in general.
AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.