Interpolation and Extrapolation
We use graphs to visualize trends between variables. We can use the trend to make predictions about other data points not available. When the predictable data falls within the available data points it is called interpolation. When the data falls outside the available data points it is called extrapolation.
Line of Best Fit
A Line of Best Fit simply refers to a line drawn through a scatter plot of data points that best expresses the relationship between those points.
To draw the line of best fit, we can estimated by drawing a line through most of the data points. However, there also exist a way to calculate the actual best line using Least Squares Regression (learnt later).
The table below shows the annual salaries of consumers and the price of cars they drive (in thousands of dollars):
| x Values(Salary, k$) | 42.7 | 195.0 | 35.5 | 214.0 | 75.0 | 130.0 | 42.0 | 151.0 | 55.0 | 120.0 | 132.0 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| y Values (Car price, k$) | 19.5 | 95.0 | 21.0 | 105.0 | 34.0 | 87.0 | 18.0 | 91.5 | 29.5 | 55.0 | 56.0 |
By plotting the points on a graph, we see there is a linear positive relation between the salary and cost of the car. That means, in general, someone who makes more money will have a more expensive car.
We can draw a line of best fit through the data that shows the trend between the two variables. The line should go through many points and be close to the others.


Let's look at some not so good lines of best fit. The first line doesn't go through any of the points. The second line goes through two points but is far away from the others.
A tip for drawing a good line of best fit is to make sure the number of points above and below the line are similar.


An outlier refers to a point that is separated from the main body of data on a graph. Sometimes, an outlier results from a meaurement error or from some factor that affects only a few of the observed values for a variable. In a scatter plot, an outlier is a point that either doesn't touch or is far away from the line of best fit.
Extrapolating
Take the Quiz:
- Interpolation & Extrapolation
Check yourself
Work each one out before you reveal it. Nothing here is recorded.
From the above graph, write the equation of the line for the line of best fit.
Check yourself: Interpolating
Work each one out before you reveal it. Nothing here is recorded.
From the graph above, estimate the price of cars for consumers making
Check yourself
Work each one out before you reveal it. Nothing here is recorded.
Referencing the above graph, estimate the price of cars for consumers making
Ready to practice this?
You have just read the whole lesson — no account needed. One is what lets you mark it complete, see how far through the course you are, and practice the topic with questions picked for you.
- Progresssaved, and counted in your progress through the course
- Unlimitedadaptive practice questions, on every plan
No credit card. Under 18? We email your parent or guardian when you sign up.
Three ways to make this stick
Reading it once isn’t the same as being able to do it on Thursday.