This site is designed solely for the use of Mr. Habib's MAT 120 classes. All rights reserved. No part of this site or its contents from MAT textbook (STATISTICS Informed Decisions Using Data by: Michael Sullivan, III) may be reproduced by any process without written permission by the author or publisher and/or Mr. Habib.
Is A Linear Model Appropriate?
Example: The data in the table below represent the closing price of Harley Davidson stock at the end of each year from 1994 through 2001. Determine whether the relation between the closing price and the year is linear.
|
Year, x |
Closing Price, y |
|
1994 |
6.8032 |
|
1995 |
7.0328 |
|
1996 |
11.5585 |
|
1997 |
13.4799 |
|
1998 |
23.5424 |
|
1999 |
31.9342 |
|
2000 |
39.7277 |
|
2001 |
54.31 |
Using the data in table above, enter the X-values into L1 and the Y-values into L2. (Note: You may notice that the values displayed in L2 are rounded values. These rounded values are for display purposes only; the actual values are still stored in the calculator.) Press STAT , highlight CALC and select 4:LinReg (ax +b) and press ENTER.
To plot the residuals, first make sure that there is nothing stored in the Y-registers. Press Y= and check the Y-registers. If any of them contain a function, move the cursor to that Y-register and press CLEAR.
Press 2nd
,
select 1:Plot 1, turn ON plot 1 and press ENTER. For Type of graph, select the
scatter plot which is the first selection. Press ENTER. Enter L1 for Xlist. Move
the cursor to Ylist. Press 2nd
and
select 7:Resid. Highlight the first selection, the small square, for the type of
Mark. Press ENTER. Press ZOOM and 9 to select ZoomStat.
This
graph of the residuals vs. the predictor variable (years) shows a U-shaped
pattern, which indicates that the linear model is not appropriate.