Tutorials › AP Statistics › Common Errors Using a Fitted Line

Least-squares regression · Tutorial 878 of 1000

Common Errors Using a Fitted Line

Use variable roles and units to check a regression prediction, and describe it as an estimate rather than a guaranteed result.

Intermediate 8 min read

What You'll Learn

  • Identify which quantity belongs in the predictor position of a fitted line.
  • Check that a supplied predictor value uses the model’s units and scale.
  • Use units to catch errors in a substitution or reported prediction.
  • Distinguish a fitted-line prediction from an individual observed response.
  • Revise incomplete or overconfident prediction statements into clear contextual conclusions.

Small Errors Can Change What a Prediction Means

In “Prediction Rounding and Units,” you practiced evaluating a fitted line and reporting a rounded prediction with response units. This tutorial focuses on errors that can happen before or after that final calculation: substituting the wrong variable, using a value in the wrong units, leaving off units, or writing as though the prediction is certain.

For a line written as \(\hat{y}=a+bx\), the predictor \(x\) is the input. The line uses that input to produce a predicted response \(\hat{y}\). The symbols have different jobs, even though both \(x\) and \(y\) represent variables from the same situation. Before calculating, make those roles explicit. Then check the units in the equation and in your final sentence.

Key check: In \(\hat{y}=a+bx\), substitute the specified predictor value for \(x\). The result is a predicted response, so it has the response’s units. Describe it as a prediction from the fitted line, not a guaranteed observed value.

Keep the Predictor and Response in Their Roles

A common mistake is to put a response value into the equation where the predictor belongs. For example, if a line predicts quiz score from tutoring time, a quiz score is not a valid input just because it is a number. The equation is set up to take tutoring time as \(x\) and return a predicted quiz score as \(\hat{y}\).

The hat matters: \(y\) is an observed response, while \(\hat{y}\) is the response predicted by the line. The equation does not take an observed \(y\) and automatically tell you the corresponding \(x\). If a question asks which predictor value corresponds to a target predicted response, that is a different task; as covered in “Predicting x From y Using the Equation,” you solve the equation for \(x\). Do not switch the roles just by inserting the target response as the input.

Role check: Before substitution, say what \(x\) measures and what \(y\) measures. The value given for the predictor goes in place of \(x\); the equation’s output is \(\hat{y}\), the predicted response.

Use Units to Audit the Calculation

Units provide a quick way to spot a role or input error. If the response is measured in points and the predictor in hours, the intercept is in points and the slope is in points per hour. Multiplying the slope by a number of hours gives points, which can be added to the intercept. The final prediction must therefore be in points.

$$ (\text{response units per predictor unit})(\text{predictor units}) =\text{response units} $$

If the units do not work out, stop and check the setup. Perhaps the supplied value is for a different variable, or perhaps it is expressed in a different unit from the model. For example, an equation using minutes does not take hours as its input without a conversion. Similarly, if \(x\) is recorded in thousands, enter the number of thousands—not the unscaled count.

Units should also appear in the final report. A number alone does not say what was predicted, and attaching predictor units to the result confuses the input with the output. “About 30.6 points” may be a useful result; “about 30.6 tutoring hours” would not be, if quiz score is the response.

Worked Example: Don’t Substitute the Quiz Score

A fictional tutoring program uses tutoring time to predict a quiz score. Let \(x\) be tutoring time in hours and \(y\) be quiz score in points. Its fitted line is \(\hat{y}=18.6+2.4x\). Predict the score for a student who receives 5 hours of tutoring. A student in the class mistakenly tries to substitute a quiz score of 84 for \(x\).

Worked Example: Don’t Substitute the Quiz Score

State. Tutoring time is the predictor, measured in hours. Quiz score is the response, measured in points. The requested predictor value is \(x=5\) hours.

Plan. Substitute 5 for \(x\), because the line predicts quiz score from tutoring time. The slope has units of points per hour, so the prediction will be in points.

Do.

$$ \hat{y}=18.6+2.4(5) =18.6+12 =30.6\text{ points}. $$

The mistaken substitution would calculate \(18.6+2.4(84)=220.2\). That calculation treats 84 as if it were 84 hours of tutoring, not a quiz score of 84 points. It answers a different input question and is not the requested prediction.

Conclude. For a student who receives 5 hours of tutoring, the fitted line predicts a quiz score of about 30.6 points. The prediction has score units, not tutoring-time units.

The important correction is not just to notice that 220.2 looks surprising. It is to return to the variable roles: tutoring time is \(x\), and quiz score is \(y\). A calculator will evaluate a substitution even when the value has been assigned to the wrong variable. It cannot check whether the input makes sense in context.

Check the Model’s Units and Scale Before Substituting

Sometimes the correct predictor is supplied, but it is expressed in a different unit from the one used in the equation. Convert the value to the model’s units before substitution. Keep track of scale as well as unit: 0.75 hours and 45 minutes describe the same duration, but the number entered depends on whether the predictor is recorded in hours or minutes.

This is a good place to use the unit check from “Slope Units and Rates of Change.” If the slope is in kilocalories per minute, multiplying it by hours does not produce kilocalories without converting the hours to minutes first. The equation’s units tell you what kind of input it expects.

Worked Example: Convert the Predictor Before Using the Line

A fictional walking club models energy use from walking time. Let \(x\) be walking time in minutes and \(y\) be energy used in kilocalories. The fitted line is \(\hat{y}=42+5.6x\). Use it to predict energy use for a walk lasting 0.75 hour.

Worked Example: Convert the Predictor Before Using the Line

State. Walking time is the predictor, and the model measures it in minutes. Energy use is the response, measured in kilocalories. The duration in the question is 0.75 hour.

Plan. Convert 0.75 hour to minutes before substituting, because \(x\) in the fitted line is measured in minutes. Then evaluate the line and report the predicted response in kilocalories.

Do. Since \(0.75(60)=45\), the walk lasts 45 minutes. Substitute \(x=45\):

$$ \hat{y}=42+5.6(45) =42+252 =294\text{ kilocalories}. $$

If 0.75 were substituted directly, the result would be \(42+5.6(0.75)=46.2\), but that uses a number of hours as though it were a number of minutes. It does not match the predictor units in the model.

Conclude. For a 0.75-hour walk, the fitted line predicts energy use of about 294 kilocalories. The line’s input was 45 minutes, and its predicted response is measured in kilocalories.

The unit conversion changes the number entered, not the duration itself. Naming both the original duration and the converted input can make the work easier to follow. If a model instead recorded time in hours, then 0.75 would be the appropriate input—but this model records time in minutes.

A Prediction Is Not an Exact Individual Outcome

A fitted line gives a predicted response at a specified predictor value. It does not promise that an individual’s observed response will equal that prediction. As discussed in “Prediction Versus Observed Values,” an observed response can be above or below its predicted value; the difference is the residual, calculated as \(y-\hat{y}\).

Avoid wording such as “the person will have exactly” or “the actual response is.” Prefer “the fitted line predicts” or “the model estimates.” These phrases make clear that the number comes from a line fitted to data. Do not imply that a rounded result is exact just because it is written to a particular decimal place.

Worked Example: A Prediction and an Observed Yield

A fictional gardening class uses fertilizer amount to predict tomato yield per plot. Let \(x\) be fertilizer in kilograms and \(y\) be yield in kilograms. The fitted line is \(\hat{y}=12.4+0.38x\). For a plot receiving 20 kilograms of fertilizer, the line predicts 20 kilograms of tomatoes. One plot at that fertilizer amount actually produces 17.3 kilograms.

Worked Example: A Prediction and an Observed Yield

State. Fertilizer amount is the predictor, in kilograms, and tomato yield is the response, also in kilograms. We will calculate the predicted yield at \(x=20\) kilograms and compare it with the stated observed yield.

Plan. Substitute the predictor value into the fitted line. Then distinguish the predicted response \(\hat{y}\) from the plot’s observed response \(y\). Their difference is the residual.

Do.

$$ \hat{y}=12.4+0.38(20) =12.4+7.6 =20.0\text{ kilograms}. $$

The observed yield is \(y=17.3\) kilograms, so the residual is

$$ y-\hat{y}=17.3-20.0=-2.7\text{ kilograms}. $$

Conclude. For a plot receiving 20 kilograms of fertilizer, the fitted line predicts a tomato yield of 20.0 kilograms. The plot’s observed yield of 17.3 kilograms is 2.7 kilograms below that prediction. The prediction is not an exact statement of what every plot at that fertilizer amount will produce.

Here, both the prediction and observation are measured in kilograms, but they are not interchangeable. The line supplies \(\hat{y}=20.0\); the plot’s actual recorded response is \(y=17.3\). Calling 20.0 the plot’s exact yield would erase the difference shown by the residual.

A Reliable Prediction Audit

Use this short audit before finalizing a regression prediction. It combines variable roles, units, calculation, and wording into one check. In an AP response, showing these choices makes it clear that you understand what the fitted line is predicting.

1
Name the variables.
Identify what \(x\) measures and what \(y\) measures. Do not decide from the numbers alone.
2
Check the input’s units and scale.
Convert the predictor value if needed, and check whether the model uses scaled units such as hundreds or thousands.
3
Substitute the predictor.
Put the requested predictor value in place of \(x\), evaluate \(\hat{y}=a+bx\), and keep the result in response units.
4
Write a careful conclusion.
Name the predictor value and say that the fitted line predicts the response. Do not describe the prediction as an exact or guaranteed observation.

Common Mistakes and AP Exam Tips

  • Putting a response value in for \(x\). Check the variable names and roles before substituting. A full-credit response uses the predictor value as the input and identifies \(\hat{y}\) as the predicted response.
  • Using the right quantity in the wrong unit. If the equation uses minutes and the question gives hours, convert first. State or show the conversion so the input is traceable.
  • Ignoring a scaled predictor. If \(x\) is measured in thousands, substitute the number of thousands. Do not silently use the unscaled count.
  • Dropping units in the final answer. Give response units, not predictor units. A numerical result without units may not communicate what the line predicts.
  • Calling a prediction exact. Say “the fitted line predicts” or “the model estimates.” Do not claim that an individual outcome must equal the prediction.
  • Reporting a bare number. A strong conclusion names the predictor value, the predicted response, and its units in context.

A useful final read-through is to compare the prompt with your sentence: Does the input name the predictor? Does the answer name the response and use its units? Does the wording identify the result as a prediction rather than a certainty? Correcting even one of these details can change an unclear answer into a precise AP-style response.

Key takeaway: Keep the predictor in the input position, match the model’s units and scale, report the predicted response with its units, and describe it as an estimate—not an exact individual outcome.

Check Your Understanding

For each question, identify the predictor and response before deciding what to substitute or how to describe the result.

  1. A fitted line predicts reading score in points from minutes of daily reading: \(\hat{y}=24+1.8x\). What value should be substituted to predict for a student who reads 30 minutes daily? What are the prediction’s units?
  2. A line predicts water use in liters from shower time in minutes: \(\hat{y}=18+7.2x\). A shower lasts 0.4 hour. What input should be used, and why?
  3. A model predicts repair cost in dollars from machine age in years. Why would it be an error to substitute a repair cost of 350 dollars for \(x\)?
  4. A fitted line predicts a response of 42 centimeters, but an observed response is 39 centimeters. Is 42 an exact observation? Explain the difference between these values.
  5. Rewrite this sentence to make it careful and complete: “The answer is 16.7, so the person will definitely have that much.”