|
Hand in: Regression
Problems in this color were given also
on F. Day 15, to work ahead. Repeated here. |
Read, to discuss |
Op tion al
|
Formula yhat = a + b x. Govsal = a
+
b avgpay
Govsal = 28,569.69 + 2.709*avgpay
yhat = 28,569.69 + 2.709* x
To predict
or
estimate a y-value for a given x-value, plug the x value into
the
formula and calculate.
To do it graphically, use the Up-and-Over method (Fig. 5.1, p.116):
Find the x, go straight up to the line, then go over to the y-axis;
that
y-value is the predicted y.
Calculating:
Montana (17,895,
55,502) Govsal = 28,569.69 + 2.709*avgpay
Predicted
Govsal
= 28,569.69 + 2.709*17,895 = 28,569.69 48,477.56 = 77,047.25
(higher than actual)
(Graphing a straight line: pick an x-value at one end
of the
useful range. Plug in to the formula and calculate the
corresponding y. Graph the (x,y) pair. Repeat with an x
value at the other end of the range. Connect the 2 dots with a
line (see pretest). Insurance: Pick a third x and calculate
the y. This point must also lie on the line, if you did it right.)
a is y-intercept.
b is slope:
If x increases one unit, yhat increases b
units.
If you know that yhat increases 12 units for every one that x
increases, you know that the slope of the line b = 12.
Governor's salaries increase (on the average across the states)
$2.71 for every increase of $1 of average pay.
This is a summary of the linear
relationship, in the same way that the mean of a distribution is one
summary of the distribution. Particular states won't match this
exactly.
(In a straight-line relationship, the amount that y
increases
for one unit increase in x is the same no matter what value of
x
you start with) RegressionSlope.xls
or
in ClassMaterial\Math151-BPS4e \RegressionDemos Excel BPS4e
Income depends on height?!
What is "$789", and what kind of analysis
did they do? (HW)
We all get the same line from a batch of data because we use the "least-squares best fit" criterion (p. 119): we'll investigate this more closely later.
Facts: 1, 2 lite, 3 first. Then 4. Then 2 &Formulas p. 120, from 2&3.
| Sievers home | Math151-Sp08/Days16.htm | 12noon | 3/3/08 |