Quantify relationships between variables and fit lines to data.
Linear regression finds the line of best fit (least-squares line) that minimizes the sum of squared vertical distances from data points to the line. The correlation coefficient r measures the strength and direction of the linear relationship.
Correlation does not imply causation. A high |r| value means the variables are linearly related, not that one causes the other.
๐ก
Remember This!
Residuals = observed y โ predicted ลท. If the residual plot shows a random scatter (no pattern), the linear model is appropriate. A curved pattern suggests a non-linear model is better.
โ๏ธ Try It!
A linear regression gives ลท = 2.5x + 10. What does the slope 2.5 mean in context?