Practice free →
HomeClaudeaifoundationslinear_regression_and_supervised_learning › The closed-form 'normal equations' solution for …

The closed-form 'normal equations' solution for least-squares linear regression is

Aθ = (X y)⁻¹
Bθ = (XᵀX)⁻¹ Xᵀ y
Cθ = X⁻¹ y
Dθ = Xᵀ y
Answer & Solution
Correct answer: B. θ = (XᵀX)⁻¹ Xᵀ y
Setting ∇_θ J(θ) = 0 yields XᵀX θ = Xᵀy, hence θ = (XᵀX)⁻¹ Xᵀy provided XᵀX is invertible (full column rank).
Solve this in the app — Claude practice & 24k+ MCQs →
Related questions