| Hand in Friday (except
as noted)regression with SPSS (copied from Day 14)
C. Use the SPSS Scatterplot handout and graph the regression line for govsal on avgpay (as shown, back page), also the lines for the 4 separate groups (either on one graph or on panels.) Print them out and keep them. Start answering questions 6-11, on p. 3 of the handout. Keep till you can answer all questions. (You should be able to do all except possibly #10 tonight) Moore p. 111 2.32 (Manatees) all parts. Import the dataset into
SPSS (Class Materials\Math151) In
D. For the data of Moore, p103, 2.22 (metabolism), (SPSS) Print
out a graph with the regression line
|
Read,
to discuss |
Op
tion al
|
| HW
on the 4 "facts": Work on these, Keep
till we finish the 4 "facts" (we did all but
fact #4 today)
p. 114, 2.33 prof. swims--two lines x->y, y->x Also,Make both graphs in SPSS, each with its regression line. Use SPSS to find the means for time and pulse, and draw (by hand is ok) the xbar, ybar lines on each graph. Note the Regression lines won't coincide if you flip one graph. p. 111, 2.30 heating degree days, checking
formulas on p. 109.
Import the dataset
p. 116, 2.35 beavers (prop. explained.) Do parts a and b on SPSS, c is just to answer. Note Text &Excel files are put in order, so look different,+ Text is MISSING the 23rd point, (5,56). You can just type it in. p. 128, 2.47 Julie's grade (Not SPSS,
just calculator)
E . Use the Excel RSquared page. ( R-Squared (or R-squared tab in ResidualsRSquared.xls: ClassMaterial\Math151\RegressionDemos)). Shift points around and get an r2 close to .8 (80%) (Between .75 and .85 is good enough.). Note that if r = +.9, then r2 = .81. Now shift the points so that r is negative and r2 is close to .8. Print the resulting page to hand in. (Data and graph) |
Read | Op
tion al
|
Formula yhat = a + b x. Govsal = a +
b avgpay
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. 2.10, p.107):
Find the x, go straight up to the line, then go over to the y-axis; that
y-value is the predicted y.
a is y-intercept.
b is slope:
If x increases one unit, yhat increases b units.
(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\RegressionDemos
We all get the same line from a batch of data because we use the "least-squares best fit" criterion (pp. 107-8): we'll investigate this more closely later.
Facts: 1, 3 first. Then 2. Thru again. Then 4.
| Sievers home | Math151-Fall04/Day15.htm | 4pm | 9/28/04 |