Using a Linear Model with Bivariate Data
Learn to interpret slope and intercept in linear models, use them to make predictions, and recognize when predictions extrapolate beyond collected data.
What you'll do in this lesson
A voice-first session with the Crimsora tutor on Using a Linear Model with Bivariate Data, then targeted practice and FRQs — with the tutor adapting to where you get stuck.
What this lesson covers
Understanding Slope in a Linear Model
Understanding the Intercept in Context
Making Predictions with a Linear Model
Extrapolation and the Limits of a Model
Checking Your Interpretation
Key terms
- Linear model.
- A line fitted to a scatter plot that describes the relationship between two variables; often written in the form .
- Slope.
- The rate of change represented by in ; tells you how much the output variable changes for each unit increase in the input variable, always with units.
- Intercept (y-intercept).
- The value of when , represented by in ; may or may not have a meaningful interpretation depending on whether makes sense in the real context.
- Interpolation.
- A prediction made for an input value that lies within the range of data actually collected; generally more reliable than extrapolation.
- Extrapolation.
- A prediction made for an input value outside the range of collected data; risky because the linear relationship may not continue beyond the data.
- Per-unit change.
- The amount the output variable changes for a single unit change in the input variable; this is what slope expresses.
- Fitted line.
- A line drawn through or near points on a scatter plot to model the relationship between two variables.
- Bivariate data.
- Data involving two variables, often displayed in a scatter plot to show the relationship between them.
Worked example
(b) The y-intercept is 0.2, which would represent the length of a turtle with age 0 years. A newborn or unborn turtle cannot be measured in the same way as the turtles in the study, so this intercept does not have a meaningful real-world interpretation. It is a mathematical feature of the line, not a prediction you would trust.
(c) Substitute age = 15 into the model: meters. The predicted length of a 15-year-old sea turtle is 6.2 meters.
(d) Yes, this prediction is reliable because age 15 falls within the range of data collected (2 to 20 years). This is an interpolation, not an extrapolation, so we can trust the model's prediction. If the biologist had asked about a 50-year-old turtle, that would be an extrapolation and much less trustworthy.
Practice questions
A scientist measures the temperature (in degrees Celsius) of water as it sits in the sun, and plots temperature against time (in minutes). The fitted line is , where is time and is temperature. The data came from observations over 45 minutes. What does the slope 0.8 tell you?
- The water was 0.8 degrees Celsius when the timer started.
- The water temperature increases by 0.8 degrees Celsius every minute.
- The water has been in the sun for 0.8 minutes.
- It takes 0.8 minutes for the water to warm up by 1 degree Celsius.
Answer: The water temperature increases by 0.8 degrees Celsius every minute.
You have a linear model that predicts a student's test score based on the number of hours studied, fitted from data where students studied between 2 and 8 hours. Would you be more confident predicting a test score for a student who studied 5 hours or one who studied 12 hours? Explain.
Answer: The prediction for 5 hours would be more confident. 5 hours is interpolation because it falls within the range of data collected (2 to 8 hours), so the model has been fitted on similar data. 12 hours is extrapolation, going beyond the range, so there is no guarantee the linear relationship continues at that level of study time.
A clothing store tracks daily sales revenue (in dollars) against the number of customers who enter the store. The linear model is , where is revenue and is the number of customers. (a) What does the y-intercept (120) represent, and does it make sense? (b) What does the slope tell you?
Answer: (a) The y-intercept (120) would represent revenue when 0 customers enter. This does not make practical sense because if nobody enters the store, there would be no sales revenue. It is a mathematical artifact of the fitted line, not a real quantity. (b) The slope (45) tells you that for each additional customer, revenue is expected to increase by 45 dollars.
FAQ
- Why do we use linear models if real-world relationships are often curved?
- Linear models are simple, interpretable, and work well over the limited range of data you collect. A relationship may be slightly curved overall, but linear within the range you measure—much like Earth appears flat on a local scale even though it is round. If a linear model fits your data well, it is a useful tool for prediction and interpretation. If the relationship is strongly curved, you would see that in the scatter plot (points would form a curve, not cluster around a line), and you would choose a different model.
- What is the difference between the line of best fit and the linear model?
- They are the same thing. The line of best fit is fitted to your data using a method like least squares, and once it is fitted, that line becomes your linear model. You use it to make predictions and to understand the relationship between the variables.
- If my prediction is way off when I check it against real data, what went wrong?
- Several things could have happened. First, the relationship in new data might differ from the original data (the real world changes). Second, you might have extrapolated beyond your data range, where the model is less reliable. Third, the original data might have had a weak linear relationship to begin with—if the scatter plot was very scattered, the line would not predict individual cases accurately, even if it captures the overall trend. Always check the strength of the original relationship and the range of your data.
- Can a slope be zero?
- Yes. A zero slope means the line is horizontal, and the output variable does not change as the input variable increases. This indicates no linear relationship. For example, if customer age has no relationship with purchase amount, the fitted line would have a slope near zero.
Learn this with a teacher, not a page
The Crimsora tutor teaches Using a Linear Model with Bivariate Data live — explaining on a whiteboard, asking you questions, and adapting to where you get stuck.