90 minutes · 100 marks · 7 questions · 27 subparts.
This is an original self-study practice paper, not an official examination specification. Its question count, topic weighting, calculator practice instructions and marking suggestions do not forecast official requirements.
Answer all questions on separate paper before opening solutions. Show essential calculations, conditions and proofs. Use exact values where practicable; state rounding when using decimals. Consistently paired sign choices for eigenvectors or singular vectors are acceptable. Use the definitions, normalization factors and tie rules stated in each question; never assume an inverse exists without justification.
For this practice use a Casio fx-50FH II; one double-sided A4 reference sheet may be used. These are practice instructions, not a statement of current official exam permission. Write the mathematical setup before using scalar arithmetic. Ordinary REG output does not replace weighted, multivariable or regularized derivations; no CAS or full matrix functionality is assumed.
Detailed solutions and marking · MATH3320
| Q | marks | min |
|---|---|---|
| 1 | 16 | 14 |
| 2 | 18 | 16 |
| 3 | 17 | 15 |
| 4 | 16 | 14 |
| 5 | 14 | 13 |
| 6 | 13 | 12 |
| 7 | 6 | 6 |
| Total | 100 | 90 |
Q1. Robust loss and validation (16)
Detailed solutions and marking Q1
For residual r define the following two losses. They act on residuals, not coefficients. Four observations are , . Fit the constant model .
(a) [4]
Find , including , and explain why is convex.
Detailed solutions and marking Q1(a)
(b) [6]
Find the unique minimizer of F and justify global optimality. Also find the ordinary least-squares constant. If changes from 8 to 80, does the Huber minimizer change? Explain.
Detailed solutions and marking Q1(b)
(c) [3]
Differentiate . Compare its derivative for large with that of , and explain the relevance to a large residual.
Detailed solutions and marking Q1(c)
(d) [3]
A student standardizes every predictor using the full dataset, performs five-fold CV to select a loss, then reports the smallest CV error as an independent test error. Identify two distinct problems and give a corrected evaluation procedure.
Detailed solutions and marking Q1(d)
Q2. Greedy fitting, refitting, and nested models (18)
Detailed solutions and marking Q2
The algorithms below have no regularization penalty. For matching pursuit (MP), start with , choose the largest , set , then update , . Orthogonal matching pursuit (OMP) uses the same selection rule but jointly refits all selected columns by least squares after every choice. Never select an already active index in OMP. Break correlation ties by the smaller index.
(a) [2]
Check all column norms, compute the initial correlations, and identify the first selected column.
Detailed solutions and marking Q2(a)
(b) [5]
Perform exactly two MP iterations. Give selected indices, coefficient increments, final coefficients, residual, and RSS.
Detailed solutions and marking Q2(b)
(c) [5]
Perform exactly two OMP iterations. Write and solve the normal equations for the second refit; give final coefficients, residual, and RSS.
Detailed solutions and marking Q2(c)
(d) [3]
Compute inner products of the final MP residual with and compare with OMP. Explain why the algorithms differ after two iterations.
Detailed solutions and marking Q2(d)
(e) [3]
For least-squares model spaces , prove . Does this also guarantee non-increasing training MAE of the least-squares fits? Explain.
Detailed solutions and marking Q2(e)
Q3. Kernel PCA and its normalization (17)
Detailed solutions and marking Q3
Take and , with kernel . Let have rows . Use the definitions below and sample covariance .
(a) [5]
Compute the feature mean, . Verify .
Detailed solutions and marking Q3(a)
(b) [4]
Find all eigenvalues of and a unit eigenvector q for the largest eigenvalue . Choose its third entry positive.
Detailed solutions and marking Q3(b)
(c) [4]
For , prove and compute . Explain why omitting the normalizing factor fails to produce a unit principal direction.
Detailed solutions and marking Q3(c)
(d) [4]
Compute the first-component variance, explained-variance ratio, and total squared feature-space reconstruction error when retaining only that component.
Detailed solutions and marking Q3(d)
Q4. Learned distances and random projections (16)
Detailed solutions and marking Q4
Use for the following matrix and points.
(a) [4]
Factor with L having one row. Prove positive semidefiniteness; find rank and null space.
Detailed solutions and marking Q4(a)
(b) [3]
Compute . Is this a metric on all of ? For , , compute and explain the change.
Detailed solutions and marking Q4(b)
(c) [3]
Let have independent entries. For fixed , prove .
Detailed solutions and marking Q4(c)
(d) [6]
A fixed set of points is chosen before R. For each fixed nonzero difference a, assume the bound below, where , . Use a union bound to give a sufficient k for all pairwise squared distances to obey simultaneously with probability at least , . Explain why this guarantees neither every draw nor preservation of all distances in by one map with .
Detailed solutions and marking Q4(d)
Q5. One complete Gaussian EM iteration (14)
Detailed solutions and marking Q5
For observations , use standard soft EM for the mixture likelihood with the parameters and density below. Update all weights, means, and variances. Here log is natural logarithm.
(a) [4]
Calculate the entire responsibility matrix . Use old parameters for both observations.
Detailed solutions and marking Q5(a)
(b) [6]
Compute , then all six updated parameters for k=1,2, using exact values.
Detailed solutions and marking Q5(b)
(c) [2]
Why is the variance denominator rather than , and why use the new mean in squared deviations?
Detailed solutions and marking Q5(c)
(d) [2]
State the monotonicity guarantee of an exact EM iteration. Does it ensure a unique global optimum or correct underlying labels?
Detailed solutions and marking Q5(d)
Q6. Mean-shift and a density hierarchy (13)
Detailed solutions and marking Q6
Use the definitions in each subpart; the datasets in (a) and (b) are separate.
(a) [4]
For fixed reference points , use the flat kernel and update below. Start at , list every selected neighborhood, and iterate until unchanged. Never move the original observations.
Detailed solutions and marking Q6(a)
(b) [4]
For separate data , define as the third-smallest distance, including self-distance zero. For distinct points use the mutual reachability formula below. Compute four core distances and all six edge weights.
Detailed solutions and marking Q6(b)
(c) [3]
Construct an MST by scanning edges in increasing weight, skipping cycles; break equal weights lexicographically by with . Give selected edges and total weight.
Detailed solutions and marking Q6(c)
(d) [2]
Keep only tree edges of weight at most 3. Give connected components and explain why these alone do not specify the final HDBSCAN output.
Detailed solutions and marking Q6(d)
Q7. Soft regions and median centers (6)
Detailed solutions and marking Q7
Use ordinary distances as specified below.
(a) [3]
Original sites on a line are . Insert x=3. Let be its new Voronoi interval and the old regions. Compute for j=1,2. Show the old boundary, new interval, and overlap lengths.
Detailed solutions and marking Q7(a)
(b) [3]
For observations 0,2,9,11 with absolute distance, give all optimal one-median centers allowed anywhere on the line and all optimal one-medoid centers restricted to observations. In higher dimensions, which norm permits coordinatewise medians to minimize total distance? Does the same rule generally hold for Euclidean distance?