Linear regression is a statistical method used to model the relationship between a dependent variable (or response variable) and one or more independent variables (or predictor variables). The primary purpose of linear regression is to understand and quantify the relationship between these variables, and to make predictions based on this relationship.