Statistics
GradesGeometry & FunctionsStatisticsCorrelation & Linear Regression

Correlation & Linear Regression

๐Ÿ“Š Statistics
๐Ÿ“ˆ

Correlation & Linear Regression

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.

r=โˆ‘(xiโˆ’xห‰)(yiโˆ’yห‰)โˆ‘(xiโˆ’xห‰)2โ‹…โˆ‘(yiโˆ’yห‰)2r = \frac{\sum (x_i - \bar{x})(y_i - \bar{y})}{\sqrt{\sum(x_i-\bar{x})^2 \cdot \sum(y_i-\bar{y})^2}}

Interpreting r

r = 1: perfect positive linear relationshipr = โˆ’1: perfect negative linear relationshipr = 0: no linear relationship|r| > 0.8: strong correlation0.5 < |r| < 0.8: moderate correlation
y^=a+bxwhereย b=rโ‹…sysx,โ€…โ€Ša=yห‰โˆ’bxห‰\hat{y} = a + bx \quad \text{where } b = r\cdot\frac{s_y}{s_x},\; a = \bar{y} - b\bar{x}
โš ๏ธ

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?

Take Quiz ๐Ÿ“ โ€” 24 Questions