Home / Past papers / MLT End Term / this paper
For a given dataset, a 1-Nearest Neighbor (1-NN) and a 3-Nearest Neighbor (3-NN) classifier are applied. Which classifier is likely to exhibit a higher Leave-One-Out Cross Validation (LOOCV) error? In case of tie-breaker, assign a positive class (+) to the data point.



































Auto-generated summary from the source site. Handy as a checklist; the lessons above explain each idea from scratch.
Here’s a structured summary of core topics, concepts, principles, and equations for the Diploma-Level Machine Learning Techniques exam, followed by Mermaid knowledge graphs to visualize relationships.
k-Nearest Neighbors (k-NN)
k nearest neighbors.LOOCV (Leave-One-Out Cross-Validation):
k (e.g., 3-NN) smooths decision boundaries → lower variance but higher bias → lower LOOCV error than 1-NN (which overfits).+) if ties occur.Linear Regression & Ridge Regression
Effect of λ (Regularization Parameter):
θ3 in Q3).θ2 in Q3).θ3 (λ=0.1) > θ1 (λ=10) > θ2 (λ=50) (magnitude of coefficients).Logistic Regression & Lasso (L1 Regularization)
Effect of Increasing λ:
Support Vector Machines (SVM)
Subject to:
Effect of C:
AdaBoost
Algorithm:
D1(i) = 1/4 for 4 points).Weight Update Example (Q5):
1/6.1/2.Decision Trees
Balanced Binary Tree:
d → 2^d leaf nodes (Q10: depth 3 → 8 leaves).K-Means (Lloyd’s Algorithm)
Steps:
(1,2) and (9,10) in Q11).(3,2) and (7,8) → product c1 × c2 = 21 Correction: The correct answer is 24, implying centroids are (4,3) and (6,4)).Principal Component Analysis (PCA) vs. Kernel PCA
PCA:
Kernel PCA:
Bagging (Bootstrap Aggregating)
Key Ideas:
Boosting (AdaBoost)
Naïve Bayes
Parameter Counting (Q13):
2 features × 2 classes × 2 params = 8.2.Maximum Likelihood Estimation (MLE)
Uniform Distribution [0, θ]:
{10,15,12,20,17} → 20).Single-Layer Perceptron
Multi-Layer Perceptron (MLP)
Forward Pass (Q18):
Correction: The exact calculation yields ~0.66 (between 0.64–0.68).
p > 0.5 → label 1 (Q19).Polynomial Kernel (Degree 2)
Decision Boundary:
w = [-25, 1, 2, 0, 0, 0] → boundary:This is an ellipse (Q16: Option C).
Support Vectors:
w correspond to 1, x1^2, x2^2.x1 = 3/2 or x1^2 = 4/4 (Q17: Options A, C are not support vectors).| Topic | Equation |
|---|---|
| Linear Regression | |
| Ridge Regression | |
| Lasso Regression | |
| Soft-Margin SVM | |
| AdaBoost Weight Update | |
| PCA Objective | (maximize variance) |
| Kernel PCA | (non-linear map) |
| MLE for Uniform [0,θ] | |
| Perceptron Update | |
| Sigmoid Function |
k → smoother boundaries → lower LOOCV error.λ → more shrinkage (Lasso sets coefficients to zero).C → wider margin; large C → stricter classification.