Hand in Friday:
If you didn't already do these for today,
copied from Day 14 page, do:
Review of straight lines:
p. 124, 2.39, 2.40. Most people did fine on lines
on the pretest. If these are a problem, ask someone NOW! Any MathClinic
assistant can help with these. Also Just the Basics on reserve
covers it.
B.Practice fitting
"least squares best fit" lines:
Author's website, http://www.whfreeman.com/scc,
(ClickNetscape toolbars to minimize them, if needed.)
Choose "Statistical Applets", Correlation/Regression.
Check in the "Show least-squares line" box and put in some data points.
Check in the "Show Mean X &Mean Y lines" box; see if #3 below holds.
Repeat for a few data sets.
--Try fitting the line yourself: Put in
some data points. Now click Draw Line. Click and drag in the
picture and you'll get a line with 3 blobs. Drag the center and it will
go up and down, Drag an end and the slope will change. Put the line in
the best place for predicting y's from x's. If you do well by the
"least squares" criterion, the green bar up top will shrink close to 0.
Check in the "Show Mean X &Mean Y lines" box; adjust your line.
Check in the "Show least-squares line" box and see how you did.
Try to fit at least 4 different data sets.
Write
down on your paper what you discovered
(were your judgment errors
consistent in any ways--did you have any surprises?)
Moore p. 111, 2.31 acid rain No data, therefore
no SPSS (draw the line by hand)
C. Use the SPSS handout and graph
the regression line for govsal on avgpay (as shown), also the lines for
the 4 separate groups (either on one graph or on panels.)
Moorep. 111 2.32 (Manatees) Import the
dataset into SPSS (Class Materials\Math151) In SPSS, Print the plain
graph, and one with the regression line. Draw the regression line BY HAND
as best you can on the plain graph. Check with the other one. For part
b, pencil in the new points on the graph with the printed line. Find the
mean by hand(calculator)...
p. 126, 2.44 p. 129, 2.48 Sarah grows....
Use SPSS for parts a and b, calculator for the rest.
D. For the data of Moore, p103, 2.22 (metabolism),
Print out a graph with the regression line for all the
people, and another with 2 separate lines
(M and F). Use the equations to calculate the predicted
metabolic rate for
a) a person of mass
45 kg.
b) a female of mass
45 kg.
c) a male of mass 45
kg.
Now use the "up and over" method of Fig.
2.10 p. 107, with a pencil and straightedge to mark the
predicted values on the y-scale. Write
down your computed answers next to them. Make sure the two
methods give consistent answers.
+ + + + + + + + + + + + + + + + + + + + + + +
A. Open the Excel file RegressionSlope
(or in the folder RegressionDemos in ClassMaterial\Math151). Change
x-y values in the yellow boxes and watch the line change. Change
x-values
in col. F and watch the "run" (red line) change. Notice the slope =
the coefficient of x = the rise/run = increase in y per unit increase in
x. Fix it so the increase in x (the "run") is exactly 1. Print
the page to hand in.
- - - - - - - - - - - - - - -
With the 4 "facts":
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. 104. Import the dataset
into SPSS. Use SPSS to get the formula
in part a (again), and the mean, s.d., and correl. coeff. in part b.
Then use your calculator to calculate the slope and intercept. Compare
with SPSS's.
p. 116, 2.35 beavers (prop. explained.) Do parts a and
b on SPSS, c is just to answer.
p. 128, 2.47 Julie's grade (Not SPSS, just calculator)
p. 129, 2.51 "regression" (Not SPSS, just calculator)
Hint below*
B (another B). 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 |
Optional
|