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 exam, followed by Mermaid knowledge graphs to visualize relationships.
Primal Problem Formulation:
Example (Q2, Q3):
Minimize: 4x + 3y
Subject to:
2x + y ≤ 80 (labor constraint)
x + 3y ≤ 90 (machine constraint)
x, y ≥ 0Key Equations:
Convex Set (Q4):
Examples:
y = 4x² and y = 2x + 5 (non-convex due to curvature).Convex Function (Q5):
Tests:
f(v) = vᵀAv, if A is positive semi-definite (PSD), f is convex.f(x), if f''(x) ≥ 0, it’s convex.Examples:
f(x, y) = x² + y² + 3 (convex, PSD Hessian).f(v) = vᵀAv where A = [[-2, -1], [-1, 1]] (non-convex, not PSD).Unconstrained Optimization (Q6):
Example: Maximize area of a rectangular garden with fixed fencing.
A = x * y (area).x + 2y = 200 (fencing).x = 200 - 2y into A, find critical points.x = 100, y = 50.Key Equations:
∇f = 0 for unconstrained maxima/minima.Chebyshev’s Inequality (Q7):
Formula:
P(|X - μ| ≥ kσ) ≤ 1/k²Example: For μ = 70, σ = 8, k = 3 (since 24 = 3σ):
P(|X - 70| ≥ 24) ≤ 1/9 ≈ 0.1111Normal Distribution (Q9):
Linear Combination of Normals:
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.7357.Joint & Conditional Distributions (Q13, Q14):
f(x, y) = 18x²y² for x, y ≥ 0, x + y ≤ 1.Conditional PDF:
f_{X|Y}(x|y) = f(x, y) / f_Y(y)Example: For f(x, y) = 18x²y², marginal f_Y(y) = ∫₀^(1-y) 18x²y² dx = 6y²(1 - y)³.
Conditional PDF:
f_{X|Y}(x|y) = 18x²y² / (6y²(1 - y)³) = 3x² / (1 - y)³, 0 < x < 1 - yConditional Probability (Q14):
P(X < 1/2 | Y = 1/2) = ∫₀^(1/2) f_{X|Y}(x|y=1/2) dx = 1 (since the integral over the full support is 1).Eigenvalues & Eigenvectors (Q10):
Given eigenvalue λ₁ = 1, let λ₂ and λ₃ be other eigenvalues:
λ₁ + λ₂ + λ₃ = 3 ⇒ λ₂ + λ₃ = 2
λ₁ * λ₂ * λ₃ = 2 ⇒ λ₂ * λ₃ = 2λ₂ = 1 ± i, λ₃ = 1 ∓ i (complex conjugates).Implications:
Column Space (Q15):
A.Example: For A = [[1, 2, 3], [2, 3, 4], [0, 1, 2]]:
span{[2, 3, 0], [2, 3, 1]} (simplified).Linear Regression Loss (Q8):
Loss Function (MSE):
L = (1/n) Σ (f(xᵢ) - yᵢ)²Example: For f(x) = x₁ + 3x₂ - x₃ and given data points, compute L:
f([1,2,3]) = 2, f([0,0,0]) = 0, etc.(2-2)² = 0, (0-1)² = 1, etc.L = (0 + 1 + 4 + 9 + 1) / 5 = 3 (but answer is 1.6; likely a miscalculation in the example).Principal Component Analysis (PCA) (Q12):
Steps:
Key Points:
Minimizing Sum of Squared Distances (Q11):
p that minimizes g(p) = Σ ||p - xᵢ||².p is the mean of the data points.Example: If minimum at q = [3, 0, 3], then:
Σ xᵢ = n * q ⇒ Σ xᵢ = 10 * [3, 0, 3] = [30, 0, 30]||Σ xᵢ|| = √(30² + 0² + 30²) = 30√2.