STAT 4051 Fall 2026: Matrix Completion in Statistical Machine Learning
Overview
Prof Kazeem Adepoju compares six matrix-completion approaches on a 4-user-by-3-movie rating matrix with three hidden values, using held-out truth and RMSE to evaluate predictions. The methods progress from column means and KNN to rank-2 centered SVD, iterative PCA, regularized alternating least squares (ALS), and iterative nuclear-norm completion; nuclear norm gives the lowest error in this example, while the results are specific to this dataset.
Key takeaways
- A reliable comparison of matrix-completion methods requires hiding entries whose true values are known, fitting on the remaining matrix, and evaluating predictions with held-out RMSE.
- Column-mean imputation is a simple baseline, but it ignores relationships among variables and fails when an entire column has no observed entries.
- KNN predicts a missing rating from the average of the k most similar users, calculating distances only over shared observed ratings; with k = 2, it improves on the mean baseline in the worked example.
- Rank-2 SVD completion captures low-rank structure: singular values are square roots of eigenvalues, and retaining the two largest components gives an example RMSE of about 1.34.
- Iterative PCA repeatedly reconstructs missing entries while restoring observed values, reaching RMSE 1.1671 after roughly 100 updates in the example.
- Nuclear-norm completion applies soft-thresholding to singular values, here subtracting 0.5 and flooring at zero; it performs best among the compared methods on this dataset, not necessarily on others.
Chapters
- At 2:42, Prof Kazeem Adepoju welcomes the class and stresses regular attendance as upcoming statistical machine-learning topics become more complex.
- Midterm 1 grades are ready for publication, and students with perfect attendance can request 3 extra-credit points for a midterm, final, or assignment.
- Week materials and a step-by-step matrix-completion worksheet are available; the weekly assignment also covers PCA and sparse PCA.
- The example begins with a complete matrix, then hides three known entries: row 1, column 3; row 2, column 2; and row 4, column 1.
- Treat the hidden values as unknown during fitting, then compare each method's predictions with the preserved truth.
- The toy matrix represents 4 users rating 3 movies, making it possible to test completion methods directly.
- For the 3 hidden cells, calculate root mean square error by subtracting each prediction from its known value, squaring, averaging, and taking the square root.
- Squaring prevents positive and negative prediction errors from canceling, while lower RMSE indicates more accurate predictions on the held-out entries.
- Apply the same held-out evaluation to all six completion approaches for a fair comparison.
- The traditional baseline fills each missing cell with the mean of its observed column values.
- On the example matrix, the column-mean predictions produce an RMSE of about 1.6.
- Column means ignore relationships among variables and cannot estimate a column with no observed values.
- For each missing rating, compare the target user with candidate users using only coordinates observed for both.
- The worked example selects k = 2 nearest neighbors and averages their ratings to predict the missing value.
- KNN reduces the example's RMSE to about 1.4, improving on the column-mean baseline.
- One-shot centered SVD first initializes missing entries with column means, then centers the matrix by subtracting column means.
- Adepoju obtains singular values from the square roots of eigenvalues of the centered matrix's transpose-times-itself product.
- Retaining the top 2 singular components yields missing-value predictions with an RMSE of about 1.34.
- Iterative PCA starts with column-mean imputation and applies the rank-2 SVD reconstruction repeatedly.
- After each reconstruction, observed entries are restored to their original values while only the missing entries are updated.
- The example stabilizes after roughly 100 updates and reaches an RMSE of 1.1671.
- Nuclear-norm completion initializes missing entries with zero, computes an SVD, and shrinks each singular value by 0.5, flooring the result at zero.
- It reconstructs the matrix from the shrunk singular values and corresponding left and right singular vectors.
- After reconstruction, observed ratings are restored and missing entries are updated iteratively until convergence, reported after more than 100 iterations.
- The reported comparison ranks nuclear norm best on this particular matrix, followed by methods including ALS, iterative PCA, one-shot SVD, KNN, and column means.
- Adepoju cautions that nuclear norm is not universally best; rankings depend on the dataset and evaluation scenario.
- R code and supplementary worksheets are available on Canvas, and the teaching assistant will walk through implementing the methods in R.
- The lecture closes at about 50:29, followed by the remaining recording time through 52:53.
Transcript excerpt
2:02 Mhm. >> Okay. Uh good morning everyone. I want to welcome you to another
2:50 uh statistical machine learning class. Uh before I get started today, I'll quickly make announcement. Uh number one is very, very important to come to class regularly. Uh most especially the topics that we're going to be doing uh from now, they're very, very complicated. And um of course, you need to be around to be able to understand what is going on. Another announcement. Any moment from now, you're going to receive your midterm one grade because they are ready. So, um going to ask the TA to
3:40 uh publish that, so you're going to receive that any moment uh from now. Now, the last announcement before I go uh into this topic of uh already uploaded materials for the week. And I also uploaded uh some worksheet, you know, on this uh matrix completion that will enable you to follow through, you know, to see step-by-step. And um I'm also going to say this. If you have been coming to my class since the beginning of this semester and [snorts] you've never skipped a class, send me a message. I'm [snorts] actually giving you extra
4:26 credit of three points. The extra credit of three points can be added. You can advise me to add it maybe to your midterm or you want to save it for final or you want me to add it to the assignment. I'm going to say this again. If you have been coming to my class, you've never skipped a class since the beginning of this semester, send me a message. I'll give you extra credit of three points. Okay. I want to go into today's uh you know, uh topic of matrix uh completion. So, this is a worksheet.
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Prof Kazeem Adepoju.