How To Make A Residual Plot On A Ti-84 Or Desmos Graphing Calculator

Your Calculator Is Your Secret Weapon for Data Analysis

You’ve just run a linear regression. The line looks decent, the r-squared value seems okay, but something feels off. Is your model actually a good fit for the data, or is it hiding a pattern of mistakes? This is the exact moment statisticians and data-savvy students turn to a residual plot.

A residual plot is a simple, powerful graph that takes the guesswork out of model validation. It visually reveals patterns—like curves or funnels—that your eyes might miss in the original scatterplot. The best part? You don’t need expensive software. You can create one in minutes using the graphing calculator already on your desk.

Whether you’re checking a homework assignment, analyzing a science project, or preparing for an AP Statistics exam, mastering the residual plot on your TI-84, TI-Nspire, or Desmos calculator is a non-negotiable skill. This guide provides the complete, step-by-step process for each platform, along with crucial insights on how to interpret what you see.

What a Residual Plot Actually Shows You

Before we dive into the button presses, let’s solidify the “why.” A residual is the vertical distance between an observed data point and the point predicted by your regression line. It’s the error for that specific observation.

Formula: Residual = Observed y-value – Predicted y-value.

A positive residual means the point is above the line (the model under-predicted). A negative residual means the point is below the line (the model over-predicted). A residual plot simply graphs these errors against the x-values or the predicted y-values.

The magic is in the pattern. A good linear model will have a residual plot with no discernible pattern—just a random scatter of points centered around zero. If you see a clear curve, a funnel shape (increasing spread), or any systematic structure, it’s a red flag. Your data might have a nonlinear relationship, or the variability might not be constant, meaning a simple linear model is insufficient.

Creating a Residual Plot on a TI-84 Plus Calculator

The TI-84 family is the classroom standard. The process involves storing your regression results and then creating a special stat plot.

Step 1: Enter and Store Your Data

Press the STAT button and select 1:Edit. Clear any old data in L1 and L2. Enter your independent variable (x) data into list L1. Enter your dependent variable (y) data into list L2.

Step 2: Perform a Linear Regression

Press STAT again, move right to the CALC menu, and select 4:LinReg(ax+b). On the home screen, you’ll see “LinReg(ax+b)”. You need to tell it where your data is and where to store the equation.

Type: LinReg(ax+b) L1, L2, Y1. To get Y1, press VARS, move right to Y-VARS, select 1:Function, and then 1:Y1. Press ENTER.

This command runs the regression using L1 and L2 and automatically stores the best-fit line equation into the Y1 graphing function, which is critical for the next step.

Step 3: Calculate and Store the Residuals

Now you need to calculate the residual for each point: y – ŷ (y minus y-hat). The calculator can do this automatically and store the results in a list.

Press STAT, select 1:Edit again. Use the arrow keys to highlight the name of list L3 at the top. Press 2ND, then STAT (to bring up the LIST menu). Scroll right to the OPS menu and select 7:ΔList(.

You will see “ΔList(“. Now you need to input: L2 – Y1(L1). Here’s how:

– Type: 2ND, 2 (for L2)
– Type: –
– Press VARS, move to Y-VARS, select 1:Function, 1:Y1
– Type: ( 2ND, 1 (for L1) )
– Type: )

The command line should read: ΔList(L2-Y1(L1)). Press ENTER. The calculator will compute the residuals and store them in list L3.

how to make residual plot on calculator

Step 4: Set Up the Residual Plot

Press 2ND, then STAT PLOT (Y=). Select Plot1 by pressing ENTER. Turn it ON. For Type, select the first icon (the scatterplot). For Xlist, enter L1 (or you can use Y1(L1) for predicted values—L1 is more common). For Ylist, enter L3 (your residuals).

Press ZOOM and select 9:ZoomStat to frame the graph perfectly. You are now looking at your residual plot, with x-values (L1) on the horizontal axis and residuals (L3) on the vertical axis.

Step 5: Analyze the Graph

Look at the pattern. Is it a random cloud of points above and below the x-axis (y=0)? That’s good. Do you see a distinct U-shape or arch? This suggests a quadratic (curved) relationship was missed. Does the spread of points get wider as you move right? This indicates non-constant variance (heteroscedasticity).

You can press TRACE and use the arrow keys to move between points and see their exact (x, residual) coordinates.

Creating a Residual Plot on Desmos Graphing Calculator

Desmos offers a more visual, intuitive approach that is fantastic for learning. You build the plot piece by piece in an expression list.

Step 1: Input Your Data Table

Click the “+” icon in the top left and select “Table.” Enter your x-values in column x1 and your y-values in column y1.

Step 2: Perform the Linear Regression

In a new expression line (not in the table), type: y1 ~ mx1 + b. Desmos will automatically perform a linear regression and display the values for m (slope) and b (y-intercept). It will also draw the line of best fit on the graph.

Step 3: Calculate the Residuals

The residual for a point is: y_observed – y_predicted. You can create a list of these values directly.

In a new expression line, type: Residuals = y1 – (m x1 + b). Desmos will create a list called “Residuals” containing the calculated error for each data point. You can see the list of values on the left.

Step 4: Create the Residual Plot

In a new expression line, you will plot the points (x, residual). Type: (x1, Residuals). Desmos will instantly create a scatter plot of your x-values against their corresponding residuals.

To make the plot clearer, you can add a horizontal line at y=0. In another line, type: y = 0.

Step 5: Adjust Your View and Interpret

Use the zoom tools or your mouse to adjust the graph so all residual points are visible. The power of Desmos is the live link; if you click and drag a data point in your original table, both the regression line and the residual plot update in real time. This is an incredible way to build intuition for how outliers and patterns affect both graphs.

Interpreting Your Residual Plot: What to Look For

Creating the plot is only half the battle. Correct interpretation is key. Here are the common patterns and what they mean for your model.

The Ideal Random Scatter

Points are randomly dispersed above and below the horizontal axis (y=0), with no obvious trend in their spread. This is the gold standard. It suggests the linear model is appropriate, the assumptions of constant variance are met, and there are no lurking variables with a patterned effect.

The Curved Pattern (U-Shape or Arch)

This is the most common sign of a mis-specified model. A U-shape (residuals go negative, then positive, then negative again as x increases) suggests your data has a curved relationship, like a parabola. A linear line is trying to cut through a curve, systematically under- and over-predicting in a pattern. The fix is often to fit a quadratic or other nonlinear model.

how to make residual plot on calculator

The Funnel or Fan Shape

The spread of the residuals increases or decreases as the x-values increase. This indicates heteroscedasticity—the variability in your data is not constant. For example, predictions for larger values might be much less reliable than for smaller values. This violates a core assumption of ordinary least squares regression and can require data transformation or a different modeling technique.

Isolated Outliers

A single point with a very large positive or negative residual, far away from the main cluster. This point has a strong influence on the regression line, potentially pulling it out of alignment with the rest of the data. You should investigate this point. Was it a measurement error? Is it from a different population? You may need to run the regression with and without it to see its impact.

Troubleshooting Common Calculator Issues

Even with steps, things can go wrong. Here’s how to fix the frequent hiccups.

“Dim Mismatch” Error on TI-84: This means your lists are different lengths. Go to STAT > Edit and ensure L1 and L2 have the same number of entries. Clear any stray numbers.

Residuals List Shows Wrong Numbers: Double-check your LinReg command. You must store the equation to Y1. The command must be exactly: LinReg(ax+b) L1,L2,Y1. If you forget Y1, the ΔList(L2-Y1(L1)) calculation will use an empty or wrong function.

No Points Appear on Desmos Plot: Check that your table columns are named x1 and y1, and that you’ve used these exact names in your regression (y1 ~ m x1 + b) and residual plot ((x1, Residuals)) expressions. Case matters.

Graph Is Too Zoomed Out: On the TI-84, always use ZoomStat (9). On Desmos, use the “Zoom Fit” button (a square with arrows) or manually adjust the axis settings by clicking the wrench icon.

Beyond the Basics: Alternative Methods and Next Steps

Once you’ve mastered the standard plot, you can explore more advanced diagnostics.

Plotting Residuals vs. Predicted Values: Instead of using L1 (x) on the horizontal axis, use the predicted y-values (ŷ). On a TI-84, set your Stat Plot Xlist to Y1(L1). This is often preferred as it directly checks for correlation between the error and the prediction.

Using the TI-Nspire: The process is more streamlined. In a Lists & Spreadsheet page, enter data in columns A and B. Menu > Statistics > Stat Calculations > Linear Regression (a+bx). Set X and Y lists, and check the box for “Residuals” to store them automatically. Then, in a Data & Statistics page, add the residual list as the y-axis.

What If the Plot Shows a Problem? If you see a curve, consider a quadratic regression (LinReg(ax²+bx+c) on TI-84, or y1 ~ a x1² + b x1 + c on Desmos). If you see a funnel, try transforming your y-data (like using log(y)) and then re-running the linear regression on the transformed values.

Turning Analysis Into Insight

A residual plot is not just a procedural step to check off. It’s the critical bridge between fitting a line and truly understanding your data. It moves you from asking “What is the trend?” to the more sophisticated question: “Is my model for the trend actually valid?”

The ability to generate this plot quickly on your calculator empowers you to be a critical consumer of models, whether in a lab report, a business analysis, or a published study. Don’t just trust the r-squared value. Make the residual plot, look for the story in the scatter, and let the pattern of the errors guide you to a more accurate, trustworthy conclusion. Your calculator has the tool. Now you know exactly how to use it.

Leave a Comment

close