diff --git a/education/statistics/Correlation and Regression.md b/education/statistics/Correlation and Regression.md index 2fe435f..1cfe9fd 100644 --- a/education/statistics/Correlation and Regression.md +++ b/education/statistics/Correlation and Regression.md @@ -104,7 +104,7 @@ $$ \hat{y} = \frac{x-\bar{x}}{\sigma_x} * r * \sigma_y + \bar{y} $$ Predicting a y value for a given x value can be calculated when given the regression equation. $$ y = mx + b $$ Where $y$ is the predicted value, $m$ is the slope, $x$ is the given value and the $b$ is the intercept. -$$ intercept = \bar{y} - $$ +$$ intercept = \bar{y} - slope*\bar{x} $$ $$ slope = \frac{r * \sigma_y}{\sigma_x} $$