a Given the table below related to the popcorn Tim bought, we are asked to make a scatterplot. We will then draw the line of best fit and find its equation.
Price($)
|
2.30
|
0.60
|
1.30
|
1.50
|
1.70
|
1.00
|
#Unpopped
|
4
|
30
|
17
|
21
|
15
|
20
|
Let's start by plotting the points.
Recall that the line of best fit does not necessarily need to pass through the points, it just needs to represent the behavior of the data we have. We can choose two convenient points lying on the grid — let's use (0,35) and (2.40,5). Notice that there are infinitely many possible correct solutions, and this is just one possibility.
Now we will find the equation for our line of best fit. Recall the slope-intercept form of a line.
y=mx+b
Here
m is the slope of the line and
b is the
y-intercept. From our choice of points when we traced the line, we can identify the
y-intercept as
b=35. We can find the slope using the Slope Formula.
m=x2−x1y2−y1
Here
m is the slope and
(x1,y2) and
(x2,y2) are two known points. If we use the points we chose to trace our line we can calculate the slope of our linear function.
m=x2−x1y2−y1
m=0−2.435−5
m=-2.430
m=-12.5
Now that we found the slope and the
y-intercept we can write the equation for the line of best fit.
y=-12.5x+35.