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 | 20 | 14 | 15 | 9 | 9 | 15 | 18 | 100 |
Q1. Weighted polynomial regression and uniqueness (20)
Fit a quadratic using the specified residual multipliers. The weights are squared in the objective; do not replace them by unsquared weights.
(a) [4]
Write the design matrix M, diagonal W and weighted normal equations. Derive the equations from the objective.
(b) [7]
Calculate the fitted polynomial, residual vector r=y−Mc, and minimum R(c).
(c) [5]
Now let x₁,…,xₙ be arbitrary distinct real inputs and let weights be nonnegative. Prove MᵀW²M is invertible if and only if at least three weights are positive.
(d) [4]
For unregularized quadratic LOOCV with retained observations all assigned weight1 and distinct inputs, find the smallest n guaranteeing a unique fit in every fold. Prove sufficiency and minimality.
Q2. Regularization, training scores and validation (14)
Keep the loss and intercept-penalty conventions explicit in each part.
(a) [6]
Fit a constant to y₁=2,y₂=4 using the displayed objective. Find its minimizer and training R². Explain why negative training R² here does not contradict ordinary least squares with an intercept.
(b) [4]
For X∈Rⁿˣᵖ and TSS>0, prove every global minimizer of the displayed objective with unpenalized intercept has training0≤R²≤1.
(c) [4]
A student standardizes and fits PCA on all data, then splits training/test data, evaluates ten ridge penalties repeatedly on the test set, and reports the best test score. Identify two distinct leaks and give a corrected procedure.
Q3. Negative dominant eigenvalue and one completion step (15)
Part(a) and parts(b)–(c) use different matrices.
(a) [4]
Perform one normalized power iteration and compute its Rayleigh quotient. Give the limiting eigenvalue estimate and explain the signs of the iterates.
(b) [6]
Find a full real SVD of the prescribed initialization, with nonnegative singular values decreasingly ordered. Verify the pairing of left and right vectors.
(c) [5]
Perform exactly one step with fixed thresholdλ=1: replace σᵢ by(σᵢ−1)₊ to obtain Y, then restore all observed P entries to obtain X¹. Give both ranks and explain why they need not agree.
Q4. Classical multidimensional scaling (9)
The matrix contains Euclidean distances between three objects. D⁽²⁾ means entrywise squares, not matrix multiplication.
(a) [5]
Explain why G=−HD⁽²⁾H/2 is the centered Gram matrix and calculate G.
(b) [4]
Find all eigenvalues and a one-dimensional centered coordinate representation reproducing all three distances. State its remaining ambiguity.
Q5. LDA with specified covariance normalization (9)
Use the class and covariance definitions exactly as given.
(a) [4]
Find the two class means, overall mean, ΣW and ΣB.
(b) [3]
Find a unit direction maximizing the Fisher ratio, with positive first coordinate, and its generalized eigenvalue.
(c) [2]
Compute all four raw projected coordinates uᵀxᵢ.
Q6. Hierarchical clustering: linkage matters (15)
Use ordinary absolute distance, not squared distance. Start with singleton clusters. If tied, choose the pair whose sorted sequence of member labels is lexicographically smallest.
(a) [4]
Perform single-linkage agglomeration and give every merge and height.
(b) [7]
Repeat using average linkage. Show all updated intercluster distances after the first merge and calculate the final merge height.
(c) [4]
For disjoint nonempty S,T,U derive the update of d_av(S∪T,U) from the two previous distances. When is their unweighted mean guaranteed correct?
Q7. DBSCAN: a shared border point is not a core bridge (18)
Process points alphabetically. Neighborhoods include the point itself and equality at the radius. Only core points expand clusters. A reachable noncore point may join as border but does not expand. A border reached by two core components stays assigned to the first processed component and is not reassigned. Unassigned points are noise.
(a) [6]
Calculate every neighborhood count and classify all ten points as core, border or noise.
(b) [4]
State the final clusters under the stated order and the noise set.
(c) [4]
A researcher instead connects p,q by an undirected edge whenever distance≤ε and at least one endpoint is core, then uses connected components. Does the component containing D reproduce standard DBSCAN? Explain with explicit edges.
(d) [4]
Let core₄(p) be the fourth-smallest distance including p itself. Compute core₄(D),core₄(E) and their mutual reachability distance. Explain how it reduces the influence of a sparse bridge.