Home / Past papers / MLF End Term / this paper




























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 Foundations" exam, along with Mermaid knowledge graphs to visualize relationships.
Primal Optimization Problem:
Standard form:
Minimize: c₁x + c₂y
Subject to:
a₁₁x + a₁₂y ≤ b₁
a₂₁x + a₂₂y ≤ b₂
x, y ≥ 0Example (Q2, Q3):
2x + 3y (P1: ₹2, P2: ₹3).Constraints:
2x + y ≤ 80x + 3y ≤ 90x=40, y=0).Key Equations:
Convex Set (Q4):
S is convex if for any x, y ∈ S and λ ∈ [0,1], λx + (1-λ)y ∈ S.Examples:
Convex Function (Q5):
A function f is convex if:
f(λx + (1-λ)y) ≤ λf(x) + (1-λ)f(y) ∀ λ ∈ [0,1]Tests for Convexity:
Hessian Matrix: ∇²f ≥ 0 (positive semidefinite).
f(v) = vᵀAv, A must be PSD.Example (Q5B, Q5D):
A = [[2,1],[1,1]] (PSD, eigenvalues > 0).A = [[2,0],[0,1]] (PSD, diagonal entries > 0).f(x,y) = x² + y² + 3 (convex, Hessian = [[2,0],[0,2]]).Key Equations:
Hessian for f(x,y):
H = [∂²f/∂x² ∂²f/∂x∂y]
[∂²f/∂y∂x ∂²f/∂y²]Chebyshev’s Inequality (Q7):
Bounds the probability that a random variable X deviates from its mean μ:
P(|X - μ| ≥ kσ) ≤ 1/k²Example:
μ = 70, σ = 8, k = 2 (since 16 = 2σ).P(|X - 70| ≥ 16) ≤ 1/4 = 0.25.Normal Distribution (Q9):
If X ~ N(μ₁, σ₁²) and Y ~ N(μ₂, σ₂²), then:
aX + bY ~ N(aμ₁ + bμ₂, a²σ₁² + b²σ₂²)Example:
U = 2X - 3Y, where X ~ N(-1,11), Y ~ N(1,9).U ~ N(2*(-1) - 3*1, 4*11 + 9*9) = N(-5, 125).P(U > 2) = P(Z > (2 - (-5))/√125) ≈ P(Z > 0.63) ≈ 0.264.Joint & Conditional Distributions (Q13, Q14):
f(x,y) = 18x²y² for x + y ≤ 1.Conditional PDF:
f_X|Y(x|y) = f(x,y) / f_Y(y)Example (Q13):
f_Y(y) = ∫₀^(1-y) 18x²y² dx = 6y²(1-y)³.f_X|Y(x|y) = 3x²/(1-y)³ for 0 < x < 1-y.Conditional Probability (Q14):
P(X < 1/2 | Y = 1/2) = ∫₀^(1/2) f_X|Y(x|1/2) dx = 1.Eigenvalues & Diagonalization (Q10):
If 1 is an eigenvalue of A, then:
3 = 1 + λ₂ + λ₃.2 = 1 * λ₂ * λ₃.1, 1±i (since complex eigenvalues come in pairs).A is diagonalizable if it has n linearly independent eigenvectors.Nullspace (Q15):
A: All vectors x such that Ax = 0.Example:
For A = [[1,2,3],[2,3,4],[0,1,2]], solve Ax = 0:
x = t[1, -2, 1]ᵀ.span{[1, -2, 1]ᵀ}.Linear Regression & Loss Function (Q8):
f(x) = w₁x₁ + w₂x₂ + w₃x₃ (here w = [1, 2, 1]).Loss (MSE):
L = (1/n) Σ (f(xᵢ) - yᵢ)²Example Calculation:
x = [2,3,4], f(x) = 2 + 6 + 4 = 12, y = 9 → (12-9)² = 9.L = 4.2.PCA (Principal Component Analysis) (Q12):
Steps:
Key Points:
Maximizing Area with Constraints:
2w + l = 120 (fencing length).A = w * l = w(120 - 2w).dA/dw = 120 - 4w = 0 → w = 30, l = 60.30 * 60 = 1800.Minimizing Sum of Squared Distances:
p that minimizes g(p) = Σ ||p - xᵢ||².p is the mean of the data points.Example:
q = [4, 0, 3] → Mean of xᵢ is [40, 0, 30] (10 points).√(40² + 0² + 30²) = 50.| Topic | Equation | ||||
|---|---|---|---|---|---|
| Linear Programming | Minimize c₁x + c₂y s.t. a₁₁x + a₁₂y ≤ b₁, x,y ≥ 0 | ||||
| Chebyshev’s Inequality | `P( | X-μ | ≥ kσ) ≤ 1/k²` | ||
| Normal Distribution | aX + bY ~ N(aμ₁ + bμ₂, a²σ₁² + b²σ₂²) | ||||
| Conditional PDF | `f_X | Y(x | y) = f(x,y)/f_Y(y)` | ||
| PCA Objective | Maximize Var(X_projected) or minimize ` | X - X_reconstructed | ²` | ||
| MSE Loss | L = (1/n) Σ (f(xᵢ) - yᵢ)² | ||||
| Eigenvalues | Trace(A) = Σ λᵢ, det(A) = Π λᵢ | ||||
| Nullspace | Ax = 0 → Solve for x | ||||
| Sum of Squares | `g(p) = Σ | p - xᵢ | ² (minimized at p = mean(xᵢ)`) |