Linear regression is a fundamental statistical method used to model relationships between variables. It works by finding the best-fitting straight line through a set of data points. This line helps us predict outcomes and understand how one variable affects another. The red line you see represents the linear relationship between our independent variable X and dependent variable Y.