Start learning →

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).
Practise this question with Quill — Claude →

Keep practising Linear Regression and Supervised Learning

Browse all Linear Regression and Supervised Learning questions for Claude, or explore more Aifoundations topics.

Start a Linear Regression and Supervised Learning lesson →
Related questions