Linear regression is the statistical workhorse of the social and physical sciences. At its core, regression is a fairly simple method that fits a line (or a curve) through a set of data points. But the technique can be much more than just fitting a line. It can be thought of as a way to quantify how a variable \(y\) (a outcome, dependent, or target variable) tends to change as input variables\(X\) (the explanatory or independent variables) change.