How to Make a Scatter Plot and Do Linear Regression on the TI-84
I still remember the first scatter plot I ever made on my TI-84. I had a table of study hours and test scores, and my teacher wanted a graph and a line of best fit. I drew the points by hand first, because that was how I had always done it, and the result looked like a drunk spider had walked across my graph paper. Then a classmate showed me the scatter plot feature, and in about three minutes the calculator drew a perfect plot, fitted a line through it, and told me how strong the relationship was. That was the day I stopped doing scatter plots by hand. This guide shows you the same routine, from typing in your data to reading the regression equation, with the exact buttons at every step.
What a Scatter Plot Shows (and Why Regression Matters)
A scatter plot is just a picture of two things changing together. Each pair of numbers becomes one dot: the x-value goes across, the y-value goes up. When the dots drift upward from left to right, the two things rise together. When they drift downward, one rises as the other falls. When they look like a random spray of paint, there is probably no relationship at all. Linear regression goes one step further. It finds the straight line that sits closest to all your dots, the famous line of best fit, and it gives you the equation of that line plus a number called r that tells you how well the line fits. Teachers love this topic because it turns a messy table of numbers into a picture and a prediction. You can estimate a test score for a student who studied six hours, or a height for a plant after ten days, without guessing. The TI-84 does all of it, and once you know the routine, a whole homework set takes minutes.
Before You Start: Turn On the Right Settings
Two settings cause most of the trouble with scatter plots, so let us fix them first. The first is the diagnostic setting. If you want the calculator to show you r, the correlation coefficient, you need diagnostics turned on. Press 2nd, then 0 to open the CATALOG. Press the down arrow or use the letter keys to find DiagnosticOn, then press ENTER twice. The screen says Done. You only have to do this once; the calculator remembers it. The second setting is the plot itself. Press 2nd, then Y= to open the STAT PLOT menu. Press 1 to open Plot1. Press ENTER on On to highlight it, choose the scatter plot icon (the first type, with dots and no connecting line), and make sure Xlist is L1 and Ylist is L2. If you are using other lists, set those instead. Finally, make sure no other plots are turned on and that no function is entered in Y=. A leftover graph from yesterday’s homework will sit on top of your scatter plot and confuse everything, so press Y= and clear any equations there. Two minutes of setup here saves ten minutes of wondering why your screen is blank later.
Step-by-Step: Enter Your Data
Let us use a real example all the way through this guide. Suppose five students studied 1, 2, 3, 4, and 5 hours and scored 55, 62, 71, 78, and 88 on a test. Here is how that data goes in.
- Press STAT, then 4, then 2nd, 1, ENTER to clear L1. Repeat with L2 by pressing STAT, 4, 2nd, 2, ENTER.
- Press STAT, then 1 to open the list editor.
- Type the study hours into L1: 1 ENTER, 2 ENTER, 3 ENTER, 4 ENTER, 5 ENTER.
- Move to L2 and type the test scores: 55 ENTER, 62 ENTER, 71 ENTER, 78 ENTER, 88 ENTER.
- Scroll through both lists and check every number. One wrong digit changes the whole line, so this quick check is worth it.
That is all the typing there is. The calculator now holds your data, and everything else is just asking it to draw and calculate.
Step-by-Step: Draw the Scatter Plot
Now for the fun part, the picture itself.
- Press 2nd, Y=, and make sure Plot1 is On, set to the scatter plot type, with Xlist L1 and Ylist L2.
- Press ZOOM, then 9 to choose ZoomStat. This is the magic step. ZoomStat looks at your data and sets the window so every point fits on the screen.
- Look at your graph. You should see five dots rising from the lower left to the upper right.
- Press TRACE and use the left and right arrows to hop from dot to dot. The screen shows the x and y of each point, so you can check that the dots match your data.
If the screen is blank, do not worry. The usual causes are Plot1 being off, a function still sitting in Y=, or the wrong lists chosen in the plot setup. Check those three things in that order and try ZoomStat again. If you see a connected line instead of dots, you picked the xyLine type in the plot setup instead of the scatter type, so go back and choose the first icon. ZoomStat is your best friend here, because guessing window settings by hand for a scatter plot is slow and fiddly. Let the calculator do it.
Step-by-Step: Find the Line of Best Fit
With the dots on screen, the line of best fit is only a few presses away.
- Press STAT, then use the right arrow to move to CALC.
- Press 4 to choose LinReg(ax+b). The screen shows LinReg(ax+b) on the home screen.
- Since your data is in L1 and L2, just press ENTER. If your data is in other lists, enter them first, for example LinReg(ax+b) L3, L4, then ENTER.
- Read the results. The screen shows a, the slope, b, the y-intercept, r-squared, and r, the correlation coefficient.
For our study example, you should get a = 8.3, b = 46.1, r-squared = 0.993, and r = 0.997. That gives the regression equation y = 8.3x + 46.1. In plain English, each extra hour of study is worth about 8.3 test marks, and a student who studied zero hours would be predicted to score about 46. The r value of 0.997 is very close to 1, which means the points sit almost exactly on a straight line and the relationship is very strong. If r does not appear on your screen, diagnostics is off, so go back and turn on DiagnosticOn from the CATALOG, then run LinReg again.
Using the Equation to Make Predictions
The equation is only useful if you can use it, so let us predict a score for a student who studied six hours. The quick way is to type the equation into the calculator by hand: 8.3 times 6 plus 46.1 gives 95.9, so you would predict about 96 marks. The neat way is to store the regression equation straight into Y= so you can graph the line over your dots. After running LinReg, press VARS, then 5 for Statistics, then right arrow to EQ, then 1 to choose RegEq. That pastes the equation into your expression. Or, even better, before you press ENTER on LinReg, add a comma and VARS, 5, right arrow, 1, ENTER to store it to Y1, like this: LinReg(ax+b) L1, L2, Y1. Then press GRAPH and you will see the line drawn through your dots, which is a lovely check that everything worked. A word of caution, though: predictions are only sensible inside the range of your data. Predicting for 6 hours when your data runs from 1 to 5 is a small stretch and probably fine. Predicting for 20 hours would be silly, because the straight-line pattern might not hold that far out. Teachers call that extrapolation, and they love to test whether you know its limits.
What the Numbers Mean: r and r-Squared
Two numbers on the regression screen deserve a little more attention. The correlation coefficient r runs from -1 to 1. A value near 1 means a strong positive relationship, near -1 means a strong negative one, and near 0 means the dots are basically random. Our r of 0.997 is about as strong as real data ever gets. The r-squared value, 0.993 here, tells you what fraction of the variation in y is explained by x. In our case, about 99.3 percent of the differences in test scores are explained by differences in study time, which is why the line fits so well. A low r-squared does not always mean you did something wrong. Real data is messy, and an r-squared of 0.4 can still be interesting if the relationship is real but noisy. What matters is that you can say, in words, what the numbers mean for your data, not just copy them down. If a question asks whether the relationship is strong, look at r. If it asks how well the line predicts, look at r-squared.
Common Mistakes and How to Fix Them
The most common mistake is a blank graph, and as I said, that is almost always Plot1 off, a leftover Y= function, or the wrong lists. The second most common is r missing from the output, which is always diagnostics being off. The third is getting LinReg to run but the line looks wrong, which usually means L1 and L2 are not paired up correctly, maybe because you typed the scores into L3 by accident, or because the lists have different lengths. Check n by running 1-Var Stats on L1 and on L2 and making sure both counts match. The fourth mistake is forgetting to clear old data, so your new five points sit under ten old ones and the line is nonsense. Clear your lists first, every time. And the fifth is a subtle one: after you draw the scatter plot, if you press GRAPH again later without ZoomStat, the calculator uses the old window and your new data might be off-screen. Press ZOOM, 9 again and it will fit the new data. Keep these five in your back pocket and scatter plots will stop being scary.
Frequently Asked Questions
Why is my scatter plot blank? Check that Plot1 is On, that no function is entered in Y=, and that Xlist and Ylist match the lists holding your data. Then press ZOOM, 9 for ZoomStat.
Why does r not show up after LinReg? DiagnosticOn is off. Press 2nd, 0, find DiagnosticOn, press ENTER twice, then run LinReg again.
How do I store the regression line in Y=? Run LinReg with Y1 at the end: LinReg(ax+b) L1, L2, Y1. You get Y1 by pressing VARS, 5, right arrow, 1, ENTER after the comma.
Can I do regression with data in lists other than L1 and L2? Yes. Tell the calculator which lists you used, for example LinReg(ax+b) L3, L4, and set Xlist and Ylist in the plot setup to match.
What is the difference between LinReg(ax+b) and LinReg(a+bx)? They are the same line written in a different order. LinReg(ax+b) gives y = ax + b, while LinReg(a+bx) gives y = a + bx. Use whichever form your class uses.