TI-84 Plus CE Guide • AP Statistics & ACT Math

How to Run Linear Regression & Turn On r / r² on TI-84 Plus CE

Enter data into L1 and L2, turn on DiagnosticOn so r and r² appear, and compute the least-squares regression line.

LinReg(ax+b) L1, L2
STAT EDIT STAT → CALC 4: LinReg(ax+b)

When & Why to Use This Command

Linear regression on the TI-84 Plus CE fits the least-squares regression line (LSRL) that minimizes the sum of squared vertical residuals across paired (x, y) data. Along with slope and y-intercept, turning on Stat Diagnostics displays Pearson's correlation coefficient (r) and the coefficient of determination (r²), letting you quantify both direction/strength and percentage of explained variance.

Core Example

Find the least-squares regression line and correlation coefficient r for the points (1, 4), (2, 7), (3, 9), and (4, 13).

Step-by-Step Keystrokes

  1. Press [STAT] then [1: Edit...] and type your x-values into L1 and y-values into L2.
  2. If r and r² do not normally show up, press [2nd] [0] (CATALOG), scroll to DiagnosticOn, and press [ENTER] twice (or press [MODE] and set STAT DIAGNOSTICS to ON).
  3. Press [STAT], arrow right to CALC, and select 4:LinReg(ax+b).
  4. Verify Xlist: L1 and Ylist: L2, select Calculate, and read a = 2.9, b = 1.0, r = 0.9949, and r² = 0.9899.
Tutor Tip: In AP Statistics, use 8:LinReg(a+bx) instead of 4:LinReg(ax+b) so 'a' is the y-intercept and 'b' is the slope, matching the AP formula sheet.
See How to Run Linear Regression & R² in Excel →

Additional Worked Exam Variations

Storing the Regression Line Directly into Y1 for Predictions

After entering data in L1 and L2, save the fitted equation to Y1 so you can graph it and evaluate predictions.

Store RegEQ: [ALPHA] [TRACE] (F4) → 1:Y1 → Calculate
Result: Y1 automatically stores 2.9x + 1.0

On the home screen, type Y1(5.5) to predict y when x = 5.5 without manually copying rounded coefficients.

Creating a Residual Plot to Check Linearity

Verify whether a linear model is appropriate after running LinReg.

2nd [Y=] (STAT PLOT) → Plot1 ON → Scatter → Xlist: L1, Ylist: [2nd][STAT] RESID
Result: Press [ZOOM] [9: ZoomStat] to inspect residuals

The TI-84 automatically refreshes the built-in RESID list every time you run LinReg. Random scatter around 0 confirms linearity; a curved pattern indicates a non-linear model is needed.

Troubleshooting Common TI-84 Errors

Error / Issue How to Fix It
r and r² are missing from the LinReg screen Press [MODE], scroll down to STAT DIAGNOSTICS, highlight ON, and press [ENTER]. Re-run LinReg and both r and r² will appear.
ERR:DIM MISMATCH Your L1 and L2 lists have different lengths! Press [STAT] [1: Edit] and check the bottom of both columns for an extra or missing value.
Accidentally deleted L1 or L2 column header If you pressed [DEL] instead of [CLEAR] on the L1 header, press [STAT] [5: SetUpEditor] [ENTER] to restore all default lists (L1–L6) instantly.

Frequently Asked Questions

What is the difference between 4:LinReg(ax+b) and 8:LinReg(a+bx)?

They calculate the exact same line—only the letters swap. In 4:LinReg(ax+b), 'a' is slope and 'b' is y-intercept (Algebra/SAT style). In 8:LinReg(a+bx), 'a' is y-intercept and 'b' is slope (AP Statistics style).

How do I clear old data from L1 quickly without deleting the list?

Highlight the L1 header at the very top of the column, press [CLEAR] (NOT [DEL]), and then press [ENTER] or the down arrow.

How do I interpret r² = 0.9899 in context?

Approximately 98.99% of the variation in y is accounted for by the linear relationship with x.

More TI-84 Plus CE Guides