juniorLinear Regression
What is Linear Regression?
Updated May 16, 2026
Short answer
Linear Regression models the relationship between input features and a continuous target using a linear equation.
Deep explanation
Linear Regression assumes a linear relationship between independent variables (X) and dependent variable (y). It finds coefficients that minimize the difference between predicted and actual values, typically using least squares. The model is expressed as y = b0 + b1x1 + ... + bnxn.
Real-world example
Predicting house prices based on area, number of rooms, and location score.
Common mistakes
- Assuming linear regression works well on non-linear relationships without transformation.
Follow-up questions
- When should linear regression not be used?