Stat 1_Q1_Week 8
Stat 1_Q1_Week 8
LINEAR REGRESSION
Part 1
LAST TIME…
LINEAR REGRESSION
LEAST-SQUARES REGRESSION
Linear regression attempts to model the
relationship between two variables by fitting a
linear equation to observed data.
http://www.stat.yale.edu/Courses/1997-98/101/linreg.htm
WEIGHT (KGS)
40 40
30 30
20 20
10 10
0 0
130 132 134 136 138 140 142 144 146 130 132 134 136 138 140 142 144 146
HEIGHT (CM) HEIGHT (CM)
3
LINEAR REGRESSION
LEAST-SQUARES REGRESSION
We want to have the least sum of the squares
of the residuals.
4
HOW TO FIND THE
EQUATION OF THE
REGRESSION LINE?
SLOPE-INTERCEPT FORM
LINEAR MODEL
LINEAR MODEL
7
LINEAR MODEL
8
LINEAR MODEL
9
Statistics 1
LINEAR REGRESSION
Part 2
LG 11.1
George Box
GOODNESS OF FIT
http://www.medicine.mcgill.ca/epidemiology/joseph
/courses/EPIB-621/fit.pdf
1. COEFFICIENT OF
DETERMINATION
2. EXAMINING RESIDUALS
REMEMBER
IDEAL RESIDUAL PLOT
• Mean (expected
value) is zero
• Symmetrical with
respect to y=0
• Normally distributed
(variance is
constant)
• No pattern
To know more about problematic residual plot
patterns, visit:
https://www.qualtrics.com/support/stats-
iq/analyses/regression-guides/interpreting-residual-plots-
improve-regression/#ExaminingPredictedResidual
2. EXAMINING RESIDUALS