90 minutes · 100 marks · 7 questions. Original self-study practice, not an official examination specification or weighting forecast. Answer every part; show essential calculations and proofs. Exact values are preferred; if a decimal answer is requested, state the rounding used. Consistent paired eigenvector/singular-vector sign changes are acceptable. Follow each question’s normalization, domain and tie rules; never assume an inverse exists. Use a Casio fx-50FH II for this practice; one double-sided A4 reference sheet may be used. These are practice conditions, not a new claim about official examination rules.
| Q | 1 | 2 | 3 | 4 | 5 | 6 | 7 | Total |
|---|---|---|---|---|---|---|---|---|
| Marks | 16 | 18 | 18 | 15 | 12 | 12 | 9 | 100 |
Q1. Least squares and transformed responses (16)
Fit the affine model to the four observations. Use observation minus prediction as the residual.
(a) [6]
Construct the design matrix, derive the normal equations, find the unique OLS coefficients, and justify uniqueness.
(b) [6]
Find the residual vector, RSS and R². Check both normal-equation orthogonality conditions and explain guaranteed nonnegative training R².
(c) [4]
For each displayed model give a transformed response, design matrix, actual squared-error objective, domain restrictions and parameter recovery. No numerical fit is required. Does either transformation guarantee minimum RSS in the original response scale?
Q2. Standardization, ridge and LASSO (18)
Standardize each feature using its population standard deviation. Do not standardize the response.
(a) [4]
Find means and standard deviations, construct M=[1 z₁ z₂], and compute MᵀM and Mᵀy.
(b) [6]
Derive the ridge equation, find all coefficients, and restore the model to u,v. The intercept is not penalized.
(c) [5]
Instead minimize the displayed LASSO objective. Derive the one-coordinate soft-threshold rule and find all coefficients. If the factor 1/2 is removed, what coefficient replaces 10 to preserve the fitted model?
(d) [3]
Explain the flaw in computing feature means/standard deviations on the entire dataset before k-fold selection of the ridge penalty. State the correct order within a fold.
Q3. Rectangular SVD and minimum norm (18)
Use the given matrix and right-hand side.
(a) [6]
Find a full SVD with U of size2×2, Σ of size2×3, V of size3×3. Order singular values decreasingly and show left/right vector pairing.
(b) [4]
Compute A⁺ and x*=A⁺b; directly verify Ax*=b.
(c) [5]
Describe all solutions. Use an orthogonal decomposition and norm identity to prove x* is the unique minimum-norm solution.
(d) [3]
Find the truncated rank-one approximation and both Frobenius and spectral error norms.
Q4. Centered PCA and reconstruction (15)
Observations are rows. Use sample covariance with denominator n−1, n=4.
(a) [4]
Find the mean, centered matrix and covariance.
(b) [6]
Find the principal direction with positive first coordinate, scores, and reconstructions in original coordinates.
(c) [5]
Compute the fraction of total variance retained and the total squared reconstruction error. For arbitrary unit q prove the displayed identity and use it to justify the principal direction.
Q5. Gonzalez farthest-first guarantee (12)
Run farthest-first with k=2, first center0, and smaller-coordinate tie breaking. The comparison optimum may place centers anywhere on the real line, not only at observations.
(a) [4]
Find the second center, show each nearest-center distance, and calculate the final radius.
(b) [3]
Find optimal unrestricted centers and radius. Prove optimality by a lower bound and compute the approximation ratio.
(c) [5]
Prove the general metric-space bound R_G≤2R*. Identify the k+1 points used in the pigeonhole argument and prove their pairwise separation.
Q6. Lloyd iterations and a suboptimal fixed point (12)
Use one-dimensional k-means with squared Euclidean loss. Start at centers0,1. Assign all observations first, then update nonempty clusters to their means. Ties go to cluster1. Stop when assignment is unchanged; no empty cluster occurs here.
(a) [6]
Show every assignment and center update through termination.
(b) [3]
Find final SSE and compare with the partition {0,1,4},{6,7,12}, each using its optimal center. Is the terminal solution globally optimal?
(c) [3]
Prove that replacing the center of any fixed nonempty cluster by its mean cannot increase SSE. Why does this not ensure a globally optimal final clustering?
Q7. Voronoi cells and center location (9)
Use ordinary Euclidean distance. Closed cells contain points no farther from their site than from others; boundaries may belong to several cells.
(a) [3]
Express all three cells as linear inequalities and find the point shared by all three.
(b) [3]
For arbitrary sites in Rᵖ derive the halfspace inequality for the distance comparison and prove every closed Euclidean Voronoi cell is convex.
(c) [3]
Prove the k-means center of a fixed nonempty cluster lies in its convex hull. Must it be observed? Contrast k-medoids.