Free Get it onGoogle Play (1600 Free app)

Lesson 4 of 5

Two-variable Data: Models and Scatterplots

TVD.4 · 13 min32 practice questions

Residuals

Residual = actual − predicted; points above the line are positive.

Video transcript 9 min video

Let's jump right into this explainer and absolutely demystify how the digital SAT tests your knowledge of data models. We're talking about that tricky little gap between expectation and reality. In the world of statistics, this goes by a very specific name, residuals. If you've ever stared at a scatterplot and wondered how to mathematically describe the messy reality of data compared to the clean perfection of a line of best fit, well, you are definitely in the right place. Here's our quick roadmap for today. We'll start by meeting the residual, then move into visualizing the gap, tackle calculations in context, learn about dodging common traps, and finish up with the final test. Alright, section one, meet the residual. So the absolute most crucial thing to wrap your head around is that a residual is literally just a mathematical way to measure the gap between reality and expectation. The formula itself? It's beautifully simple. But listen up, the order is completely non-negotiable. It is always actual y minus predicted y. Your predicted y comes straight from your line of best fit, right?

And the actual y is the data point's own real world value. This single powerful little number tells you exactly how far off your model was and in which direction. If you think about this visually, it makes perfect sense. If a data point is sitting right above our prediction line, it's got a positive residual. Why? Because the actual reality was, well, more than we predicted. On the flip side, if it sits below the line, that's a negative residual, meaning reality fell short of our model. And hey, if it lands perfectly on the line, that means our expectation perfectly matched reality, so the residual is just zero. Moving right along, section two, visualizing the gap. Now, when you're actually looking at a scatter plot, you have to remember that a residual is always a vertical distance, and it always has a sign attached to it. You might be wondering, why vertical? Well, because these models predict y from a given x, the x is already locked in place. We're only measuring the error in y. So you find your point's actual y height, find the line's predicted y height at that exact same x-coordinate, and you measure straight up or down.

Let's actually see this in action. Imagine a line of best fit where the equation is y equals 1.2x plus 2. At an x value of 5, our model predicts a y value of exactly 8.0. But let's say our actual data point, right there at x equals 5, is sitting at an actual y of 8.4. To find the residual, we just subtract the predicted 8.0 from the actual 8.4, which gives us a positive residual of 0.4. It is literally 0.4 units straight up from the line. Calculations and Context. Now, this is really interesting. Notice how data points can actually be equally far from the line, but on completely opposite sides. Check out the model y equals 2.5x plus 4. If we have a real-world data point at 8, 27, the math gives us a residual of positive 3. But for a point at 4, 11, the residual is negative 3. The absolute size, that number 3, shows us exactly how far off the model is, while the positive or negative sign tells us the direction of that error.

Here's the kicker. Sometimes you're going to have to work backwards. Imagine for that exact same model at x equals 6, they just outright tell you the residual is negative 1.5 and you need to find the actual y value. Don't panic, just rearrange the formula. Actual equals predicted plus residual. Your predicted value is 19, add your residual of negative 1.5 and boom, your actual y value is 17.5. Seriously, memorizing this rearranged formula is an absolute game changer for saving time. When we're dealing with real-world context, say a word problem about plant growth, always, always remember the magic phrase, then predicted. A residual of two centimeters absolutely does not mean the plant was two centimeters taller than all the other plants. It means it was two centimeters taller than the model predicted it would be for its age. A residual only ever compares a single observation strictly against the model's expectation. You've also got to pay extremely close attention to the test's wording here. If a question asks for the largest residual, it literally just means the largest in absolute size.

So a residual of negative 10 is actually a larger residual than a positive 5. Because it is physically further away from the line. But if they specifically ask for the largest positive residual, you are only looking for the point highest above the line. You just ignore the negative ones completely. Let's move to section four, dodging common traps. These four traps right here, this is where so many students lose easy points. Number one, never calculate predicted minus actual. Charit gives you the right size, but it gives you the entirely wrong sign. And believe me, test makers love sneaking that trap into the multiple choice options. Two, never measure the gap horizontally. Remember, it's always a vertical jump. Three, always use the model's equation for your prediction, not just some neighboring real world dot. And four, never ignore the sign when the question specifically asks for a positive or negative value. you. All right, we've made it to section five, the final test. To truly master this whole concept, remember that residuals are just combining our predictions with our raw data.

A massive residual, that's really just statistical speak for an outlier. A reliable, solid model is going to have small residuals scattered completely randomly above and below the line. But listen, if you plot your residuals and they suddenly form a distinct curve, that is a massive red flag. It tells you your linear model is a terrible fit, and you honestly need a different type of model all together. Let's take a quick pause and see if you can actually calculate the residual for this worked example. Say your model is y equals 3x plus 12, and your data point is at 6 comma 28. Keep our golden rule in mind, actual minus predicted. How would you go about solving this? Okay, let's break it down together. First, we plug that x value of 6 into the model. 3 times 6 is 18 plus 12 gives us a perfectly predicted value of 30. Now our actual y value is 28, so 28 minus 30 gives us a residual of negative 2. Simply put, our reality fell exactly two units short of our expectation. Now let's consider a data table for the model y equals 2x plus 8.

Without getting too bogged down in the math, can you spot which data point is farthest from the line vertically? Remember, farthest from the line means we're hunting for the largest absolute residual and we don't care if it's positive or negative. If you went ahead and calculated them all, you'd find that the point at x equals 2 has a residual of negative 4. The point at 6 has a residual of 3. But look at point 7 comma 27. The predicted value there is 22. So actual 27 minus predicted 22 gives us a residual of positive 5. that makes it the absolute largest in size. And therefore, it's the farthest vertically from our line. All right, time for one last quick check. Using the model y equals 2x plus five, which of these four data points has a positive residual? This means we are only looking for the specific point where the actual y is strictly greater than the predicted y. And the answer is the point three comma 16. If we plug three into the model, two times three is six, plus five is 11. Our actual y is 16.

So 16-11 gives us a positive 5. All the other points in that table actually yield negative residuals, meaning they all sit, sadly, below our models line. By understanding this seemingly simple vertical gap, the actual minus the predicted, you've honestly unlocked a massive advantage for analyzing two variable data. You now know exactly how to visualize that distance, calculate the error, and totally dodge those tricky traps designed to trip you up on test A. But it does leave us with a much bigger, slightly provocative question. If these linear models predict our expectations so well, what happens to all our math when reality stubbornly refuses to fit into a straight line at all? Thanks so much for joining me on The this explainer and keep mastering those models.

Slides

15 slides. Click one to open it full screen.

Lesson

What this question type asks

Residual questions compare what a model predicts with what actually happened. You might be asked to compute a residual for one data point, decide which point has a positive or negative residual, or find the point with the largest residual. They all rest on one short formula and one picture.

The core idea

residual = actual y − predicted y

The predicted y comes from the line of best fit at the point's x-value. The actual y is the data point's own y-value. So the residual tells you how far, and in which direction, the real data point is from the model.

Point's position Residual
above the line positive (actual is more than predicted)
below the line negative (actual is less than predicted)
on the line zero

On a graph, the residual is the vertical distance from the point to the line, with a sign. It is vertical because the model predicts y for a given x, and the residual measures the error in y.

Mini-example 1: a positive residual

A line of best fit is y = 2.5x + 4. One data point is (8, 27).

  • Predicted y at x = 8: 2.5(8) + 4 = 20 + 4 = 24
  • Residual: 27 − 24 = 3
  • The point is 3 units above the line: the actual value was 3 more than the model predicted.

Mini-example 2: a negative residual

Same line, data point (4, 11).

  • Predicted y at x = 4: 2.5(4) + 4 = 10 + 4 = 14
  • Residual: 11 − 14 = −3
  • The point is 3 units below the line.

Notice that both points are equally far from the line, but on opposite sides. The size of the residual (3) shows how far off the model is; the sign shows the direction.

Mini-example 3: working backward

For the same model, a data point at x = 6 has a residual of −1.5. What is its actual y-value?

  • Predicted: 2.5(6) + 4 = 19
  • actual − predicted = −1.5, so actual = 19 + (−1.5) = 17.5

Rearranging the formula as actual = predicted + residual handles these questions quickly.

Interpreting a residual in context

Suppose a model predicts a plant's height and one plant has a residual of 2 centimeters. That means the plant was 2 cm taller than the model predicted for its age. A residual of −2 would mean 2 cm shorter than predicted. Always say “than predicted”: the residual compares the observation with the model, not with other data points.

Finding the largest residual

“Largest residual” usually means largest in size (absolute value), so look for the point farthest above or below the line, measured vertically. If the question says “largest positive residual,” you want the point farthest above the line. On a graph, be careful: a point can look far from the line because of a horizontal gap, but only vertical distance counts. When in doubt, compute each residual.

Checklist

  1. Find the predicted y by substituting the point's x into the model.

  2. Subtract: actual − predicted (in that order).

  3. Read the sign: positive means above the line, negative means below.

  4. For “largest,” compare sizes and check whether the question wants a sign too.

How this connects

Residuals combine predictions (TVD.2) with the data from the scatterplot (TVD.1). A good model has residuals that are small and scattered randomly above and below the line; if residuals form a curved pattern, a different model type may fit better (TVD.5). A point with a huge residual is an outlier in the two-variable sense, just as in ODV.4.

Visual

Line of best fit and a residual0246810051015xy

The line of best fit is y = 1.2x + 2. The highlighted point (5, 8.4) lies above the line, where the prediction is 8.0, so its residual is 8.4 − 8.0 = 0.4.

How to solve it

  1. Substitute the data point's x-value into the model to get the predicted y, because the residual compares the data with the model at the same x.
  2. Subtract in the order actual minus predicted, since reversing the order flips the sign.
  3. Read the sign to locate the point, with a positive residual above the line and a negative residual below it.
  4. Use actual = predicted + residual when the residual is given and you need the data value.
  5. Measure distance vertically and compare sizes when the question asks for the largest residual, checking whether it also wants a positive or negative sign.

Worked example

Read the question, then the solution.

Question

EasyTVD.4

A line of best fit for a data set is y = 3x + 12. One data point is (6, 28). What is the residual for this data point (actual value minus predicted value)?

Answer: -2

Strategy: Residual = actual − predicted.

Solution: The answer is −2. Predicted: 3(6) + 12 = 30. Residual = 28 − 30 = −2.

Common traps

Where points are lost.

  • Calculating predicted − actual. This gives the right size with the wrong sign, which is usually one of the answer choices; the residual is always actual − predicted.
  • Measuring distance horizontally. The model predicts y from x, so the residual is the vertical gap between the point and the line, not the sideways gap.
  • Using a data point instead of the line for the prediction. The predicted value must come from the model's equation or the line, not from a neighboring dot.
  • Ignoring the sign when it matters. “Largest residual” usually means largest in size, but “largest positive residual” means farthest above the line, so read the wording closely.

Quick checks

Answer, then read why.

Question 1

MediumTVD.4

The line y = 2x + 8 is used to model the data in the table.

x 2 6 7 8
y 8 23 27 25

Which data point is farthest from this line, measured vertically?

Explanation

Answer: B. Residuals (actual − predicted): (2, 8): 8 − 12 = −4; (6, 23): 23 − 20 = 3; (7, 27): 27 − 22 = 5; (8, 25): 25 − 24 = 1. The largest in size is 5.

Question 2

MediumTVD.4

The line y = 2x + 5 is used to model the data in the table.

x 2 3 5 9
y 6 16 13 19

Which data point has a positive residual?

Explanation

Answer: D. Residuals (actual − predicted): (2, 6): −3; (3, 16): 5; (5, 13): −2; (9, 19): −4. Only one is positive (above the line).

Key points

  • Residual = actual − predicted, always in that order.
  • Points above the line have positive residuals, points below have negative residuals, and points on the line have residuals of 0.
  • A residual is the vertical distance between a point and the line, with a sign showing direction.
  • A residual tells you how much higher or lower the real value was than the model predicted.

Practice

5 questions, easy to hard.

Question 1

EasyTVD.4

A line of best fit for a data set is y = 3x + 20. One data point is (8, 41). What is the residual for this data point (actual value minus predicted value)?

A number, decimal or fraction, such as 3.5, −12 or 7/2.
Explanation

Answer: −3. Predicted: 3(8) + 20 = 44. Residual = 41 − 44 = −3.

Question 2

EasyTVD.4

A line of best fit for a data set is y = 5x + 10. One data point is (4, 27). What is the residual for this data point (actual value minus predicted value)?

A number, decimal or fraction, such as 3.5, −12 or 7/2.
Explanation

Answer: −3. Predicted: 5(4) + 10 = 30. Residual = 27 − 30 = −3.

Question 3

MediumTVD.4

The table shows five data points, and the line y = 3.2x + 4 is used to model the data.

x 1 3 5 7 9
y 8 12 22 25 34

Which data point has the residual with the greatest absolute value?

Explanation

Answer: D. Residual = actual − predicted: 0.8, −1.6, 2, −1.4, and 1.2. The greatest absolute value is 2, for (5, 22).

Question 4

HardTVD.4

For a line of best fit, the residual of a data point is its actual y-value minus the y-value predicted by the line. The data point (4, 15) has a residual of 1.8, and the data point (10, 21.6) has a residual of −0.6. What is the slope of the line of best fit?

Explanation

Answer: B. Predicted value = actual value − residual, so the line passes through (4, 15 − 1.8) = (4, 13.2) and (10, 21.6 + 0.6) = (10, 22.2). Its slope is 22.2 − 13.2 over 10 − 4 = 1.5.

Question 5

HardTVD.4

The line y = 2.5x + 1 is used to model a set of four data points, and the residual of each point is its actual y-value minus its predicted y-value. Three of the residuals are 2.1, −0.8 and −1.9, and the mean of all four residuals is 0. If the fourth data point has an x-value of 6, what is its y-value?

Explanation

Answer: D. The four residuals sum to 0, so the fourth is −(2.1 − 0.8 − 1.9) = 0.6. The predicted value at x = 6 is 2.5(6) + 1 = 16, so the actual y-value is 16 + 0.6 = 16.6.

1600 Free appGoogle Play (get it on Google Play)