Stat 2000: Assignment 6 Tips (Distance/Online Sections)
Published: Wed, 02/20/13
My tips for Assignment 6 are coming below, but first a couple of announcements.
Please note that my first review seminar for
Stat 2000 will be on Feb. 24 (one week before the midterm exam). Unfortunately, that means the seminar is the weekend at the end of the week-long Midterm Break, but it is out of my hands. This seminar will cover the lessons in Volume 1 of my book.
For more info about the seminar, and to register if you have not already done so, please click this link:
Make sure you do: Tips on How to Do Well in Stat 2000
Did you read my Tips on what kind of calculator you should get?
Did you miss my Tips for Assignment 5?
Tips for Assignment 6 (Distance/Online Sections D01, D02, D03, etc.)
Don't have my book? You can download a free sample containing Lesson 3 at my website here:
Study Lesson 9: Review of Linear Regression to review the principles of Linear Regression in my study book
then study Lesson 10: Inference for Regression at least up to the end of question 3 to prepare
for this assignment. You do not need to study the section on
Multiple Linear Regression at this time. Note that HW6, 7 and 8 will
all deal with concepts from Lesson 10.
Question 1 is
just an algebra problem, they have given you a value for x, y and the
slope and you can use that to compute the intercept. Note, they have
written out the least-squares regression equation for you, and all you
have to do is enter the values for the intercept and slope into the
boxes. Hint: You could actually use the formula that computes the slope
where you could sub in the given values for x and y in the places where
the formula calls for the mean values of x and y.
Question 2 gives
you all the info you need to compute the confidence intervals for the
slope. I give you the appropriate formula in Lesson 10.
You will use JMP for question 3. Open a "New Data Table" and
create three columns. Name the first column "Sex", the second column
"Speed", and the third column "Stride rate". Remember, to create a new
column, simply double-click in the space at the top of the column, to
the right of a pre-existing column. Enter in your data, typing "female"
or "male" as appropriate in the "Sex" column. Obviously, enter in all
the female data first, then all the male data. Now, on the left of the
spreadsheet where it numbers all the rows, click and drag to select all
the rows that have "female" scores Now select "Rows" and "Markers" and
choose whatever marker you want to represent the females. Now, click
and drag to select the "male" rows and select a marker to use for them.
Click in the top left corner of the spreadsheet (right above row 1) to
deselect the rows and we are now ready to analyze the data.
Question 3(a) and (b):
Select "Analyze" then "Fit Y by X". They never make it clear which is x
and which is y in this problem, but it appears they want x to be speed
and y to be stride rate, so select "Stride rate" and click "Y, Response"
and select "Speed" and click "X, Factor". Click OK. You will now see a
scatterplot with the two different markers plotted distinguishing the
female and male scores. Click the red triangle next to "Bivariate Fit
..." and select "Fit Line" to have JMP compute and graph the
least-squares regression line. Select and copy the printout and paste
into a file ready for upload.
Question 3(c):
Click the red triangle next to "Linear Fit" and select "Save
Residuals". JMP will now add a fourth column to your spread sheet
called "Residuals Stride rate". Select and copy the entire data table
(or just the residuals column) and paste into your file ready for
upload. They do not make it clear whether they actually want you to
include the residuals in your upload, but why ask you to compute them
then?
Question 3(d):
Click the red triangle next to "Linear Fit" and select
"PlotResiduals". I have no idea what they are getting at in this
question. You would expect to see some obvious pattern like the males
tend to have positive residuals and the females have negative residuals,
or something that makes the females look different from the males, but
good luck seeing anything here.
Question 3(e):
JMP already did this test for you when you selected "Fit Line". The
ANOVA table and the "Parameter Estimates" for the "Stride rate" are
giving you all the info you need, but be sure to write out your
hypotheses and conclusion in the file you are uploading. You can
determine if there is a linear relationship by either testing the
hypothesis about zero correlation or a hypothesis about zero slope. JMP
gives us the latter in the ANOVA and Parameter Estimates, so I would do
the zero slope hypothesis. I show you how to read these outputs in my
question 3 of Lesson 10.
Question 4(a):
Copy and paste your data into a "New Data Table" being sure to select
"Edit" and "Paste with column names" if you are using JMP 8. Select
"Analyze" then "Distribution", highlight both columns and click "Y,
Columns" then click OK. The "Summary Statistics" give you the means and standard
deviations they request.
Question 4(b):
Select "Analyze" then "Fit Y by X". Assign x and y as they have
indicated in part (a). Click OK. Click the red triangle next to
"Bivariate Fit ..." and select "Fit Line" to have JMP compute and graph
the least-squares regression line. You will see the least-squares
regression equation directly below "Linear Fit". I assume they want the
t statistic for the correlation which is also the t statistic for the
slope which you can read off the "Parameter Estimates" (See my question
3 in Lesson 10 for how to read the printouts.) Note, JMP gives us the
coefficient of determination, r-squared which we can easily change into
r. Remember, r always has the same sign as the slope.
Question 5:
Use the same approach used in question 4 to get all the info they
request. Make sure you think about which is x and which is y in this
problem (they pretty much spell it out in part (c)). Note,
you will use the "Parameter Estimates" to get the slope and its
standard error, but then finish computing the confidence interval
yourself.