seniorLinear Regression
Why does Linear Regression objective remain convex?
Updated May 16, 2026
Short answer
Because MSE is a quadratic function in parameters, forming a convex surface.
Deep explanation
The loss function is a sum of squared residuals, which expands into a quadratic form βᵀXᵀXβ - 2βᵀXᵀy. Since XᵀX is positive semi-definite, the function is convex, ensuring a global minimum.
Unlock with a Pro subscription to view this section.
View pricingReal-world example
No real-world example available yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProCommon mistakes
No common mistakes listed yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProFollow-up questions
No follow-up questions available yet.
Unlock with a Pro subscription to view this section.
Upgrade to Pro