Linear regression analyzes the relationship between two variables, where one variable (X) is considered to predict or cause changes in the other variable (Y). It fits a straight line through the data points on a scatterplot to represent the trend of Y values as X changes. The regression line shows the average relationship between X and Y, allowing Y values to be estimated based on X. Higher correlation values (closer to 1 or -1) indicate stronger linear relationships between the variables.