diff --git a/education/statistics/Correlation and Regression.md b/education/statistics/Correlation and Regression.md index 19cc306..8bbf158 100644 --- a/education/statistics/Correlation and Regression.md +++ b/education/statistics/Correlation and Regression.md @@ -85,4 +85,5 @@ Given a scatter diagram where the average of each set lies on the point $(75, 70 - The regression line is *used to predict* the y variable when the x variable is given - The regression line also goes through the point of averages $$ slope = r(\frac{\sigma_y}{\sigma_x}) $$ -- You can find the regression line by multiplying $\sigma_y$ by $r$, for the rise, then using $\sigma_x$ for the run from the point of averages. \ No newline at end of file +- You can find the regression line by multiplying $\sigma_y$ by $r$, for the rise, then using $\sigma_x$ for the run from the point of averages. +$$ z_x = \frac{x-\bar{x}}{\sigma_x} * r * \sigma_y + \bar{y} $$ \ No newline at end of file