






















Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity
Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium
Esta página no es visible en la vista previa
¡No te pierdas las partes importantes!























Linear Regression
another?
from an intelligence test?
using a motivational scale?
Slide 4 - 2
says “There seems to be a linear
association between these two variables,”.
straight line through the data.
but a straight line can summarize the general
pattern with only a couple of parameters.
value and its associated predicted value is
called the residual.
the predicted value from the observed
one:
residual = observed − predicted = y −
y
means the predicted
value’s too big (an
overestimate).
the predicted value’s too
small (an underestimate).
estimated fat of the BK
Broiler chicken sandwich
is 36 g, while the true
value of fat is 25 g, so the
residual is –11 g of fat.
scatterplot of z -scores for
fat and protein.
protein content, it should
have about average fat
content too.
deviation away from the
mean in x moves us r
standard deviations away
from the mean in y.
written as:
equation are just our predicted values, not the actual
data values.
follow a straight line.
closely around it.
y = mx + b
y = b
0
1
x
y
1
standard deviations:
b
1
= r
s
y
s
x
( b
0
slope:
b
0
= y − b
1
x
closely related, we need to check the
same conditions for regressions as we did
for correlations:
relationship between the two variables is a
perfect straight line. The residuals are the
part of the data that hasn’t been modeled.
Data = Model + Residual
or (equivalently)
Residual = Data – Model
Or, in symbols,
e = y −
y
look appropriately boring:
e
,
measures how much the points spread around
the regression line.
the same amount of scatter throughout. Check
the Equal Variance Assumption with the Does the
Plot Thicken? Condition.
s
e
e
2
n − 2