Lesson 5

Fitting Lines

  • Let’s find the best linear model for some data.

5.1: Selecting the Best Line

Which of the lines is the best fit for the data in each scatter plot? Explain your reasoning.

1.

Scatter plot with two lines.

2.

Scatter plot with two lines of best fit.

3.

Scatter plot with two lines of best fit.

4.

Scatter plot with 2 lines of best fit.

5.2: Card Sort: Data Patterns

Your teacher will give you a set of cards that show scatter plots.

  1. Arrange all the cards in three different ways. Ensure that you and your partner agree on the arrangement before moving on to the next one. Sort all the cards in order from:
    1. best to worst for representing with a linear model
    2. least to greatest slope of a linear model that fits the data well
    3. least to greatest vertical intercept of a linear model that fits the data well
  2. For each card, write a sentence that describes how \(y\) changes as \(x\) increases and whether the linear model is a good fit for the data or not.

5.3: Fitting Lines with Technology

Three ice cream cones

The weight of ice cream sold in a day at a small store in pounds (\(x\)) and the average temperature outside during the day in degrees Celsius (\(y\)) are recorded in the table.

\(x\) \(y\)
20 6
18 4.5
21 6.5
17 3.5
21.5 7.5
19.5 6.5
21 7
18 5

  1. For this data, create a scatter plot and a line that fits the data well.
  2. Use technology to compute the best fit line. Round any numbers to 2 decimal places.
  3. What are the values for the slope and \(y\)-intercept for the best fit line? What do these values mean in this situation?
  4. Use the best fit line to predict the \(y\) value when \(x\) is 10. Is this a good estimate for the data? Explain your reasoning.
  5. Your teacher will assign a table of data from the previous activity. Following your teacher’s directions, use technology and the table of data to create a scatter plot that also shows the line of best fit, and then interpret the slope and \(y\)-intercept.

Tables for last question:

A. (card A in the previous activity)

\(x\) \(y\)
1 2
2.2 4
3.3 5
3.3 4.5
3.6 6
3.8 6.5
3.9 5.7
4 7
4.4 6.5
4.5 7
4.7 7
4.8 6
4.9 8.7
5 7
5.1 7.7
5.2 6.7
5.5 8
5.5 8.5
6 9.5
6.6 8.6
7 9
7.7 10.313

B. (card B in the previous activity)

\(x\) \(y\)
1 11.86
2.2 11.332
3.3 10.848
3.4 10.741
3.6 10.716
3.8 10.628
3.9 10.584
4 10.54
4.4 10.364
4.5 10.32
4.7 10.232
4.8 10.188
4.9 10.144
5 10.1
5.1 10.056
5.2 10.5
5.5 9.88
5.7 9.753
6 9.66
6.6 9.396
7 9.22
7.7 8.912

C. (card C in the previous activity)

\(x\) \(y\)
1 6.11
2.2 7.142
3.3 8.088
3.5 8.19
3.6 8.346
3.8 2.92
3.9 8.604
4 8.69
4.4 9.034
4.5 9.12
4.7 9.292
4.8 13.6
4.9 9.464
5 9.55
5.1 9.636
5.2 9.722
5.5 9.98
5.8 10.32
6 10.41
6.6 10.926
7 11.27
7.7 11.872

D. (card E in the previous activity)

\(x\) \(y\)
1 13.9
2.2 11.5
3.3 9.3
3.5 9.2
3.6 8.7
3.8 8.3
3.9 8.1
4 7.9
4.4 7.1
4.5 6.9
4.7 6.5
4.8 6.3
4.9 6.1
5 5.9
5.1 5.7
5.2 5.5
5.5 4.9
5.8 4.3
6 3.9
6.6 1.3
7 1.9
7.7 0.5

E. (card F in the previous activity)

\(x\) \(y\)
1 6.5
2.2 8.5
3.3 9.5
3.3 9
3.6 10.5
3.8 11
3.9 10.2
4 11.5
4.4 11
4.5 11.5
4.7 11.5
4.8 10.5
4.9 13.2
5 11.5
5.1 12.2
5.2 11.2
5.5 12.5
5.5 13
6 14
6.6 13.1
7 13.5
7.7 14.813



Priya uses several different ride services to get around her city. The table shows the distance, in miles, she traveled during her last 10 trips and the price of each trip, in dollars.

distance (miles)

price ($)

3.1

12.5

4.2

14.75

5

16

3.5

13.25

2.5

12

1

9

0.8

8.75

1.6

9.75

4.3

12

3.3

14

  1. Priya creates a scatter plot of the data using the distance, \(x\), and the price, \(y\). She determines that a linear model is appropriate to use with the data. Use technology to find the equation of a line of best fit.

  2. Interpret the slope and the \(y\)-intercept of the equation of the line of best fit in this situation.

  3. Use the line of best fit to estimate the cost of a 3.6-mile trip. Will this estimate be close to the actual value? Explain your reasoning.

  4. On her next trip, Priya tries a new ride service and travels 3.6 miles, but pays only \$4.00 because she receives a discount. Include this trip in the table and calculate the equation of the line of best fit for the 11 trips. Did the slope of the equation of the line of best fit increase, decrease, or stay the same? Why? Explain your reasoning.

  5. Priya uses the new ride service for her 12th trip. She travels 4.1 miles and is charged \$24.75. How do you think the slope of the equation of the line of best fit will change when this 12th trip is added to the table?

Summary

Some data appear to have a linear relationship, so finding an equation for a line that fits the data can help you understand the relationship between the variables.

A scatterplot. Horizontal, from 0 to 12, by 1's, labeled precipitation in centimeters. Vertical, 0 to 15, by 1’s, labeled crop yield, pounds per square meter. 19 dots trending upward and to the right.
 

Other data may follow non-linear trends or not have an apparent trend at all.

A scatterplot. Horizontal, from 0 to 12, by 1's, labeled precipitation in centimeters. Vertical, 0 to 140, by 10’s, labeled number of watermelons. 18 dots in a cluster near top right corner of graph.

When modeling data with a linear function seems useful, it is important to find a linear function that is close to the data. The line should have a \(y\)-intercept and slope to follow the shape of the data in the scatter plot as much as possible.

Technology can be used to quickly find a line of best fit for the data and provide the equation of the line that we can use to analyze the situation.