TI 84 Linear Regression: Line of Best Fit Calculator Guide
Learn how to perform linear regression on TI 84 calculator to find the line of best fit. This guide covers entering data, calculating regression, interpreting results, and graphing on TI 84 Plus CE.
Linear Regression Equation
Where a = slope, b = y-intercept
What is Linear Regression?
Linear regression is a foundational statistical method that finds the straight line that best fits a set of paired data points. This line, called the line of best fit or least-squares regression line, minimizes the vertical distances between each data point and the line itself.
The TI 84 linear regression feature automates this calculation. Instead of computing sums of squares and solving equations by hand, you enter data into lists and let the calculator handle the math. It returns the slope, y-intercept, and key diagnostic statistics like the correlation coefficient r and the coefficient of determination r².
Linear regression helps you answer questions like: How strongly are two variables related? Can I predict one variable from another? What is the rate of change between them? Students in algebra, statistics, and economics courses use the free graphing calculator online at Calc84 or the physical TI-84 to perform regression analysis for homework, labs, and exam problems.
Why Linear Regression Matters
Linear regression is one of the most widely used statistical tools across many fields:
- Science — Analyze experimental data to find relationships between variables, such as temperature and reaction rate.
- Economics — Model supply and demand, predict consumer spending based on income, or forecast stock trends.
- Education — Study the relationship between study hours and test scores, attendance and grades, or tutoring frequency and GPA improvement.
- Business — Forecast sales based on advertising spend, predict customer retention rates, or analyze pricing effects on revenue.
Mastering linear regression on TI 84 calculators gives you a practical skill that carries into college-level statistics and beyond. The same regression techniques apply whether you use a physical calculator or an online emulator.
Step-by-step: how to do linear regression on the TI-84
This five-step workflow is identical on the physical TI-84 and on the online TI-84 calculator at Calc84. Practice it a few times and it becomes second nature. The online version also keeps your lists saved in local storage, so you can return to a dataset later without re-entering values.
Worked example: study hours vs. test scores
Scenario: A teacher collects data from 10 students: how many hours each student studied and their score on a 100-point test.
| Student | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
|---|---|---|---|---|---|---|---|---|---|---|
| Hours (X) | 1.0 | 1.5 | 2.0 | 2.5 | 3.0 | 3.5 | 4.0 | 4.5 | 5.0 | 5.5 |
| Score (Y) | 45 | 52 | 55 | 60 | 65 | 68 | 72 | 75 | 78 | 85 |
Step 1: Enter hours in L1 (1, 1.5, 2, ..., 5.5) and scores in L2 (45, 52, 55, ..., 85).
Step 2: Run STAT → CALC → 4: LinReg(ax+b).
TI-84 output:
- y = ax + b
- a = 8.12 (slope)
- b = 38.6 (y-intercept)
- r² = 0.961 (coefficient of determination)
- r = 0.980 (correlation coefficient)
Interpretation: The equation is Score = 8.12(Hours) + 38.6. The slope means each additional hour of study predicts about 8.1 more points on the test. The y-intercept (38.6) represents the predicted score for a student who studied zero hours — though this extrapolation may not be meaningful, since a student who does not study at all could score anywhere on the range. The r value of 0.980 indicates a very strong positive linear relationship between study hours and test performance.
Understanding r²: the coefficient of determination
The coefficient of determination (r²) tells you what proportion of the variation in Y is explained by X. It always falls between 0 and 1, and higher values mean a better fit to the linear model.
- r² = 0.96: 96% of the variation in test scores is explained by variation in study hours. Only 4% is due to other factors (natural aptitude, test anxiety, prior knowledge, measurement error). This is a very strong model.
- r² = 0.50: Only half the variation in Y is explained by X. The other half is noise. A scatter plot with r² = 0.50 looks noticeably scattered around the regression line.
- r² = 0.10: Almost none of the variation in Y is explained by X. The regression line is nearly useless for prediction, even if the slope is statistically significant with a large sample size.
A common misinterpretation is treating r² as a "grade" where 0.80 is a B and 0.70 is a C. In reality, what counts as a "good" r² depends on the field. In physics experiments with controlled lab conditions, r² below 0.95 may indicate measurement problems. In social sciences like education or psychology, where human variability is high, r² values of 0.30 to 0.50 are often considered meaningful.
The correlation coefficient r is simply the square root of r² with the sign of the slope. If the relationship is positive (Y increases as X increases), r is positive. If negative, r is negative. r ranges from -1 to +1, with 0 meaning no linear correlation. The sign of r tells you direction; r² tells you strength.
Common mistakes in linear regression
- Confusing correlation with causation: A high r value means X and Y move together — it does not mean X causes Y. In the study hours example, r = 0.980 is strong evidence that study hours and test scores are associated. But a lurking variable (like overall academic motivation) could drive both: motivated students both study more and score higher, regardless of how much the studying itself helps. To argue causation, you need a controlled experiment, not just a regression line. This is one of the most commonly tested concepts in AP Statistics.
- Extrapolation beyond the data range: The regression equation from our example predicts a score of 8.12(20) + 38.6 = 201 for a student who studies 20 hours. But the test is out of 100 points. The model is only valid within (or very close to) the range of the original X values (1 to 5.5 hours). Outside that range, predictions become increasingly unreliable. On the TI-84, the regression line extends infinitely in both directions — but the real-world relationship does not.
- Using linear regression on nonlinear data: Always graph your scatter plot before running LinReg. If the points follow a curve, a linear model will give misleading results even if r looks reasonable. For curved patterns, try quadratic (QuadReg), cubic (CubicReg), exponential (ExpReg), or logarithmic (LnReg) regression instead — all available in the STAT → CALC menu.
- Forgetting DiagnosticOn: If r and r² do not show after running LinReg, the diagnostics are off. Press 2nd + 0 (CATALOG), arrow down to DiagnosticOn, press ENTER twice. You only need to do this once — the setting persists until you clear the calculator's RAM.
Reading residual plots: what good and bad fits look like
A residual is the vertical distance between an observed data point and the regression line: residual = observed Y - predicted Y. After running a regression, the TI-84 automatically stores residuals in a list called RESID (accessible via 2nd + STAT → NAMES → RESID).
Plotting residuals against the X values is the best way to check whether a linear model is appropriate:
- Good linear fit: The residual plot looks like a random scatter of points with no clear pattern — points are roughly evenly spread above and below the horizontal axis (residual = 0), with no fanning, curving, or clustering. Imagine sprinkling pepper randomly on a page: no structure, no trend. This indicates that a straight line captures all the systematic variation in the data, and what is left is just random noise.
- Bad linear fit (curved pattern): The residuals form a U-shape or inverted U-shape. Points dip below zero at the left, rise above zero in the middle, and dip again at the right. This means the true relationship is curved, and a linear model is not capturing it. The TI-84's LinReg will still give you an equation and an r value, but both are misleading. Switch to a quadratic or other nonlinear model.
- Bad linear fit (fanning pattern): The residuals spread out as X increases — narrow on the left, wide on the right (or vice versa). This indicates heteroscedasticity (non-constant variance). A linear model may still give reasonable predictions, but the uncertainty in those predictions changes with X, which violates a key assumption of regression. In high school statistics courses, this is often a sign to consider transforming the data (e.g., taking log(Y)) before fitting a linear model.
To create a residual plot on the TI-84: after running LinReg, go to STAT PLOT (2nd + Y=), set Plot 1's Ylist to RESID (press 2nd + STAT, arrow to NAMES, select RESID), and press ZOOM → 9: ZoomStat. The resulting plot is your diagnostic tool for judging whether a linear model is appropriate.
Ready to try regression yourself? The free TI-84 calculator online at Calc84 runs LinReg(ax+b) with the same output as the hardware. Enter your data in the STAT editor, run the regression, and practice interpreting r and r² with your own datasets. For more statistical tools, see the statistics suite.