Linear regression finds the linear relationship between a dependent variable (y) and independent variable (x) using an equation (y* = a + bx) that minimizes the sum of squared differences between observed and predicted y-values. The slope (b) of the regression line indicates the average change in y for a 1-unit change in x. A confidence interval for the slope is calculated using the slope value, standard error of the slope, confidence level, and t-score with degrees of freedom of n-2.