Professional Documents
Culture Documents
1
11/21/16
Introduction
to
Linear
R egression
(cont.) Introduction
to
Linear
R egression
(cont.)
The
equation
for
the
regression
l ine
i s
• How
well
a
set
of
d ata
points
fits
a
s traight
line
can
be
measured
by
calculating
the
distance
between
the
data
points
and
the
line.
• The
total
error
between
the
d ata
points
and
the
line
Ŷ =
predicted
Y
v alue
is
obtained
by
s quaring
each
distance
and
then
summing
the
squared
values.
b
(slope):
determines
how
much
Y
w ill
change
when
X
is
increased
by
1
• The
regression
equation
is
d esigned
to
p roduce
the
minimum
sum
of
s quared
errors.
a (Y-‐intercept):
value
for
Y
w hen
X
is
zero
(0)
Example
• The
rate
for
using
the
Psych
Lab
is
P500
plus
P100
for
every
succeeding
hour.
• How
much
is
the
rate
for
using
the
Psych
Lab
for
3
hours?
• Y
=
bX +
a
• Y
=
100
(3)
+
500
• Y
=
300
+
500
• Y
=
P800
(rate
for
using
the
Psych
Lab
for
3
hours)
2
11/21/16
• a = 𝑀/ − 𝑏𝑀-