How to Calculate Linear Regression on a TI-84
Finding the line of best fit for a scatter plot is a fundamental task in statistics, biology, and chemistry classes. The TI-84 processes linear regression (matching data to the formula $y = ax + b$) rapidly. However, there is a hidden setting you must enable first to get full credit on your homework.
Step 1: Turn on Diagnostics (Crucial First Step)
By default, the TI-84 hides the correlation coefficient ($r$) and the coefficient of determination ($r^2$). To see how "strong" your line of best fit is, you MUST turn on diagnostics.
- Press 2nd then 0 to open the CATALOG.
- This is an alphabetical list of every command. Press the x⁻¹ key (which has the green letter 'D' above it) to jump straight to the D section.
- Scroll down until the arrow points to DiagnosticOn.
- Press ENTER twice. The screen should say "Done".
Step 2: Enter Your Data Points
Now we need to input the X and Y coordinates of your scatter plot.
- Press STAT and select 1: Edit...
- Enter your Independent variables (X values) into the L1 column.
- Enter your Dependent variables (Y values) into the L2 column. Ensure both columns have the exact same number of entries!
Step 3: Calculate the Regression
- Press STAT.
- Press the right arrow to open the CALC menu tab.
- Select 4: LinReg(ax+b).
- A menu will appear. Confirm that
Xlistis set to L1 andYlistis set to L2. - Pro-tip: If you want the calculator to automatically copy the final equation into your graphing menu, scroll down to Store RegEQ:, press ALPHA + TRACE (F4), and select Y1.
- Scroll down to Calculate and press ENTER.
The screen will display your slope ($a$), your y-intercept ($b$), and because you turned diagnostics on, the $r$ and $r^2$ values indicating the strength of the correlation.
Linear Regression Example on a TI-84
For example, enter these values into your calculator: X values in L1 and Y values in L2.
| X (L1) | Y (L2) |
|---|---|
| 1 | 3 |
| 2 | 5 |
| 3 | 7 |
| 4 | 9 |
After running LinReg(ax+b), the calculator returns the equation y = 2x + 1 for this dataset.
- Slope (a) = 2: Y increases by 2 whenever X increases by 1.
- Y-intercept (b) = 1: The line crosses the Y-axis at 1.
- r = 1: These points have a perfect positive linear relationship.
- r² = 1: The line explains 100% of the variation in these example Y-values.
To practice, enter the four pairs into L1 and L2, then follow Step 3 above to calculate the regression.
Need to practice this?
Try our free online graphing calculator. No download or installation required.
Open Free TI-84 Emulator