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 pricing

Real-world example

No real-world example available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Common mistakes

No common mistakes listed yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Follow-up questions

No follow-up questions available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

More Linear Regression interview questions

View all →