MATH121
Linear Regression on TI-89
| 1. Enter lists | |
| Clear a data matrix for use | |
| Use Data/Matrix Editor This is a New variable |
|
| Type in a variable name; xyvars | |
| Enter x values in c1 and y values
in c2; pressing |
|
| 2. Graph the data | |
| Plot setup | |
| Define Scatter Box |
|
| xs are in column 1 | |
| ys are in column 2 | |
| Save the plot definition; return to plot setup screen | |
| Go to the Y = screen; use the key to check Plot 1; and uncheck the rest | |
| ZoomData; the data is plotted | |
| 3. Do the linear regression; the equation will be of the form y(x) = ax + b | |
| Quit | |
| Use Data/Matrix Editor and current data | |
| Do LinReg | |
| Use xs from column 1 | |
| Use ys from column 2 | |
| Store RegEQ to y1(x) | |
| |
Values of a, b, corr, and r2 appear
on screen; a = slope; b = y intercept; corr = r |
| 4. The linear regression equation is in y1; graph it | |
| Go to the Y = screen | |
| ZoomData; regression line is graphed with data points | |
| 5. Use the regression line to make predictions | |
| Go to the Home screen | |
| y1(1985) |
Evaluate the regression equation y1 at 1985 (or the value of your choice) |
| 6. When regression is completed, turn scatter plots off | |
| Go to the Y = screen and highlight Plot 1: | |
| Uncheck Plot 1: | |
| Return to the home screen | |