Detailed mind map
Linear Regression
Every topic and subtopic. Tap a topic to open its notes.
Swipe sideways to explore branches, or tap Stack Cards above.
Concept and least squares
4 ideas
Trick: Least squares penalizes big misses harshly by squaring errors before adding them up.
Meaning of regression
Estimates the average value of a dependent variable from an independent variable.
Two regression lines
Y on X predicts Y from X; X on Y predicts X from Y.
Residuals (errors)
Vertical deviation between observed value y_i and predicted value y_hat_i.
Principle of least squares
Chooses constants a and b to minimize the sum of squared residuals.
Regression lines and coefficients
4 ideas
Trick: In b_YX, the second letter X goes to the bottom (denominator); in b_XY, the second letter Y goes to the bottom.
Regression line of Y on X
Passes through (x_bar, y_bar) with slope b_YX.
Coefficient b_YX formulas
Ratio of covariance to variance of X, or r times sigma_Y / sigma_X.
Regression line of X on Y
Expresses X in terms of Y, passing through (x_bar, y_bar).
Coefficient b_XY formulas
Ratio of covariance to variance of Y, or r times sigma_X / sigma_Y.
Mind MapLinear Regression4 topics · 16 ideas
Properties of coefficients
4 ideas
Trick: Three musketeers: b_YX, b_XY, and r always march with the same sign, and one cannot let the other cross 1 together.
Geometric mean gives r
Product of b_YX and b_XY equals r squared; r takes their common sign.
Same sign property
b_YX, b_XY and r always share the exact same sign (+, -, or 0).
Product bound (<= 1)
Since r^2 <= 1, if one regression coefficient exceeds 1, the other must be below 1.
AM-GM inequality
For positive coefficients, their arithmetic mean is at least r.
Origin shift and solving lines
4 ideas
Trick: Origin shift is free (no factor); scale shift flips back with k/h for Y on X.
Change of origin (h = k = 1)
Shifting X and Y by constants a and b leaves b_YX and b_XY unchanged.
Change of scale
Dividing by h and k scales b_YX by k/h and b_XY by h/k.
Finding means from two lines
Solve the two given linear regression equations simultaneously for (x_bar, y_bar).
Identifying each line
Test an assignment of lines; accept only the choice where b_YX times b_XY <= 1.