Maths Flashcards
(10 cards)
What is the cost function for Linear Regression (Mean Squared Error)?
J(θ) = (1/2n) Σ (yᵢ - (θ₀ + θ₁xᵢ))²
What is the hypothesis function for Linear Regression?
h(x) = θ₀ + θ₁x
What is the logistic (sigmoid) function formula?
σ(z) = 1 / (1 + exp(-z))
What is the cost function for Logistic Regression?
J(θ) = -(1/n) Σ [yᵢ log(h(xᵢ)) + (1 - yᵢ) log(1 - h(xᵢ))]
What is the Ridge Regression cost function?
J(θ) = (1/2n) Σ (yᵢ - h(xᵢ))² + λ Σ θⱼ²
What is the Lasso Regression cost function?
J(θ) = (1/2n) Σ (yᵢ - h(xᵢ))² + λ Σ |θⱼ|
What is the formula for the Bayes’ theorem?
P(A|B) = [P(B|A) × P(A)] / P(B)
What is the equation for a simple decision boundary in LDA?
δₖ(x) = xᵀΣ⁻¹μₖ - (1/2)μₖᵀΣ⁻¹μₖ + log(πₖ)
What is the PCA objective function?
Maximize variance = maximize (1/n) Σ (zᵢ)² where zᵢ are projections onto components.
What is the update rule for Gradient Descent?
θ := θ - α ∇J(θ)